Advertisement
inukaze

iRO - Configure Script

Sep 9th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 27.67 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # Autor :   Inukaze ( Venezuela )
  4. # Sitio     :   http://inukaze.wordpResolucions.com
  5. # Correo-E  :   inukaze.otaku@gmail.com
  6. # Licensia  :   GPL 3
  7. #
  8. # Acerca de este Script : Configurador para Ragnarok International en Sistemas Linux , Mac , FreeBSD , OpenSolaris 
  9. #
  10. # Yo intento escribir Scripts compatibles con
  11. # Sistemas Operativos Unix & Posix , y cualquier
  12. # Sistema Operativo que soporte versiones de la API
  13. # conocida como "Wine" o "WineHQ" para poder ejecutar
  14. # software de Microsoft Windows , sin necesidad de su
  15. # sistema operativo , y crear paquetes autocontenidos
  16. # para sistemas operativos como por ejemplo :
  17. # Linux , FreeBSD , OpenSolaris
  18. # Unix  , BSD     , Solaris     , MacOS
  19.  
  20. # Usando versiones pre-compiladas , para arquitecturas
  21. # como x86 & x86_64 (32 Bits & 64 Bits ) con versiones
  22. # Especificas de Wine/WineHQ y los Arquitecturaivos oficiales
  23. # para "Windows" para una mayor compatibilidad usando
  24. # los requisitos de Sistema Originales y que esto pueda
  25. # ser aprovechado , por Juegos , Programas , Software
  26. # Ahora apartir de aqui comienza mi Script :
  27.  
  28. xmessage -nearmouse -timeout 11 "Configuring Ragnarok International" -buttons OK &
  29.  
  30. # Definir el directorio actual , como el principal
  31. # del juego o programa
  32. RUTA=""$( cd -P "$( dirname "$" )" && pwd )""
  33. cd "$RUTA" ; ./.Permisos
  34. RUTA_C="$RUTA/wine/data/drive_c"
  35. fixes="$RUTA/fixes"
  36.  
  37. # Obtener el nombre del nucleo del sistema
  38. Nucleo=$(uname -s)
  39.  
  40. if      [ $Nucleo = "Darwin" ]; then
  41.         Nucleo=mac
  42. elif        [ $Nucleo = "Linux" ]; then
  43.         Nucleo=linux
  44. elif        [ $Nucleo = "FreeBSD" ]; then
  45.         Nucleo=linux
  46. elif        [ $Nucleo = "SunOS" ]; then
  47.         Nucleo=linux
  48. else
  49.         echo "Not Supported Operating System"
  50. fi
  51.  
  52. # Borrar Toda Configuracion Previa WINE:
  53. rm -rf "$RUTA/wine/data/drive_c/users"
  54. rm -rf "$RUTA/wine/data/drive_c/windows"
  55. rm -rf "$RUTA/wine/data/Program Files (x86)"
  56. rm -rf "$RUTA/wine/data/drive_c/Archivos de programa"
  57. rm -rf "$RUTA/wine/data/drive_c/Program Files (x86)"
  58. rm -rf "$RUTA/wine/data/drive_c/Program Files"
  59. rm -rf "$RUTA/wine/data/system.reg"
  60. rm -rf "$RUTA/wine/data/user.reg"
  61. rm -rf "$RUTA/wine/data/userdef.reg"
  62. rm -rf "$RUTA/wine/data/dosdevices"
  63. rm -rf "$RUTA/wine/data/.update-timestamp"
  64. rm -rf "$RUTA/wine/.DS_Store"
  65. rm -rf "$RUTA/wine/linux/.DS_Store"
  66. rm -rf "$RUTA/wine/linux/x86/.DS_Store"
  67. rm -rf "$RUTA/wine/linux/x86_64/.DS_Store"
  68. rm -rf "$RUTA/wine/linux/x86/bin/.DS_Store"
  69. rm -rf "$RUTA/wine/linux/x86_64/bin/.DS_Store"
  70. rm -rf "$RUTA/wine/mac/.DS_Store"
  71. rm -rf "$RUTA/wine/mac/x86/.DS_Store"
  72. rm -rf "$RUTA/wine/mac/x86_64/.DS_Store"
  73. rm -rf "$RUTA/wine/mac/x86/bin/.DS_Store"
  74. rm -rf "$RUTA/wine/mac/x86_64/bin/.DS_Store"
  75. rm -rf "$RUTA"/wine/data/cachedmetrics.\:0
  76.  
  77. # Determinando la arquitectura de la maquina
  78. Arquitectura=$(uname -m)
  79.  
  80. if         [ $Arquitectura = "i386" ]; then
  81.             PATH="$PWD/wine/$Nucleo/x86/bin:$PATH"
  82.             export WINESERVER="$PWD/wine/$Nucleo/x86/bin/wineserver"
  83.             export WINELOADER="$PWD/wine/$Nucleo/x86/bin/wine"
  84.             export WINEPREFIX="$PWD/wine/data"
  85.             export WINEDEBUG=-all
  86.             Arquitectura="32 Bits"
  87.     elif    [ $Arquitectura = "i486" ]; then
  88.             PATH="$PWD/wine/$Nucleo/x86/bin:$PATH"
  89.             export WINESERVER="$PWD/wine/$Nucleo/x86/bin/wineserver"
  90.             export WINELOADER="$PWD/wine/$Nucleo/x86/bin/wine"
  91.             export WINEPREFIX="$PWD/wine/data"
  92.             export WINEDEBUG=-all
  93.             Arquitectura="32 Bits"
  94.     elif    [ $Arquitectura = "i586" ]; then
  95.             PATH="$PWD/wine/$Nucleo/x86/bin:$PATH"
  96.             export WINESERVER="$PWD/wine/$Nucleo/x86/bin/wineserver"
  97.             export WINELOADER="$PWD/wine/$Nucleo/x86/bin/wine"
  98.             export WINEPREFIX="$PWD/wine/data"
  99.             export WINEDEBUG=-all
  100.             Arquitectura="32 Bits"
  101.     elif    [ $Arquitectura = "i686" ]; then
  102.             PATH="$PWD/wine/$Nucleo/x86/bin:$PATH"
  103.             export WINESERVER="$PWD/wine/$Nucleo/x86/bin/wineserver"
  104.             export WINELOADER="$PWD/wine/$Nucleo/x86/bin/wine"
  105.             export WINEPREFIX="$PWD/wine/data"
  106.             export WINEDEBUG=-all
  107.             Arquitectura="32 Bits"
  108.          elif [ $Arquitectura = "x86_64" ]; then
  109.             export WINESERVER="$PWD/wine/$Nucleo/x86_64/bin/wineserver"
  110.             export WINELOADER="$PWD/wine/$Nucleo/x86_64/bin/wine"
  111.             export WINEPREFIX="$PWD/wine/data"
  112.             export WINEDEBUG=-all
  113.             Arquitectura="64 Bits"
  114.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dplaysvr.exe
  115.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/DPLAYSVR.exe
  116.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dplayx.dll
  117.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/DPLAYX.dll
  118.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dpmodemx.dll
  119.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/DPMODEMX.dll
  120.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dpnet.dll
  121.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/DPNET.dll
  122.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dpnhpast.dll
  123.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/DPNHPAST.dll
  124.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dpnlobby.dll
  125.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/DPNLOBBY.dll
  126.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dpnsvr.exe
  127.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/DPNSVR.exe
  128.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dpwsockx.dll
  129.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/DPWSOCKX.dll
  130.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dplaysvr.exe
  131.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3d8.dll
  132.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3d8thk.dll
  133.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3d9.dll
  134.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dim.dll
  135.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dim700.dll
  136.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dpmesh.dll
  137.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dramp.dll
  138.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3drm.dll
  139.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_24.dll
  140.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_25.dll
  141.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_26.dll
  142.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_27.dll
  143.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_28.dll
  144.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_29.dll
  145.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_30.dll
  146.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_31.dll
  147.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_32.dll
  148.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_33.dll
  149.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_34.dll
  150.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_35.dll
  151.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dx9_36.dll
  152.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/D3DX9_37.dll
  153.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/d3dxof.dll
  154.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dciman32.dll
  155.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/ddrawex.dll
  156.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/devenum.dll
  157.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dinput.dll
  158.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dinput8.dll
  159.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dmband.dll
  160.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dmcompos.dll
  161.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dmime.dll
  162.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dmloader.dll
  163.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dmscript.dll
  164.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dmstyle.dll
  165.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dmsynth.dll
  166.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dmusic.dll
  167.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dnsapi.dll
  168.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dplay.dll
  169.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dpnaddr.dll
  170.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dpnmodem.dll
  171.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dsound.dll
  172.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dsound3d.dll
  173.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dswave.dll
  174.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dxdiagn.dll
  175.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/mscoree.dll
  176.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/msdmo.dll
  177.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/qcap.dll
  178.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/quartz.dll
  179.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/streamci.dll
  180.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dpnhupnp.dll
  181.             rm -rf "$RUTA"/wine/data/drive_c/windows/syswow64/dpserial.dll
  182.             mkdir -p "$RUTA"/wine/data/drive_c/windows/syswow64
  183.             cd "$RUTA"/wine/data/drive_c/software/directx
  184.             cp -rf *.* "$RUTA"/wine/data/drive_c/windows/syswow64
  185.     else
  186.         echo "Arquitectura NO SOPORTADA"
  187. fi
  188.  
  189. # Eliminar Arquitecturaivos existentes de DirectPlay
  190. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dplaysvr.exe
  191. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPLAYSVR.exe
  192. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dplayx.dll
  193. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPLAYX.dll
  194. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpmodemx.dll
  195. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPMODEMX.dll
  196. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnet.dll
  197. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPNET.dll
  198. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnhpast.dll
  199. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPNHPAST.dll
  200. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnlobby.dll
  201. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPNLOBBY.dll
  202. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnsvr.exe
  203. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPNSVR.exe
  204. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpwsockx.dll
  205. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPWSOCKX.dll
  206. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnhupnp.dll
  207. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpserial.dll
  208. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dplay.dll
  209. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnaddr.dll
  210. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnmodem.dll
  211.  
  212. # Eliminar Archivos existentes de DirectX
  213. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dciman32.dll
  214. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/ddrawex.dll
  215. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dsound.dll
  216. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dsound3d.dll
  217. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/quartz.dll
  218.  
  219. cd "$fixes/windows/system32"
  220. mkdir -p "$RUTA_C/windows/system32"
  221. cp *.* "$RUTA_C/windows/system32"
  222.  
  223. # Muestra en la terminal La arquitectura &
  224. # La version especifica de Wine usada
  225. Version_De_Wine=$(wine --version)
  226. echo ""
  227. echo ""
  228. echo "Running '$Version_De_Wine' under '$Nucleo' ( Machine '$Arquitectura' )"
  229. echo ""
  230. echo ""
  231.  
  232. cd "$fixes/windows/system32"
  233. cp *.* "$RUTA_C/windows/system32" && cd "$RUTA_C/windows/system32"
  234.  
  235. # Registrar Librerias con RegSvr32 ;
  236. regsvr32 ddraw.dll
  237. regsvr32 dsound.dll
  238. regsvr32 dinput.dll
  239. regsvr32 mfc42.dll
  240. regsvr32 mfc42u.dll
  241. regsvr32 MSCTF.dll
  242. regsvr32 MSIMTF.dll
  243. regsvr32 ole32.dll
  244. regsvr32 oleaut32.dll
  245. regsvr32 olepro32.dll
  246. regsvr32 rpcrt4.dll
  247. regsvr32 wintrust.dll
  248. regsvr32 shell32.dll
  249.  
  250.  
  251. # - Esto es DirectX 9.X? (Nativo de Windows XP SP 3)
  252. echo "REGEDIT4" >> fixes.reg
  253. echo "" >> fixes.reg
  254. echo "[HKEY_CURRENT_USER\Software\Wine\DllOverrides]" >> fixes.reg
  255. echo '"advapi32.dll"="native"' >> fixes.reg
  256. echo '"ADVPACK.dll"="native"' >> fixes.reg
  257. echo '"asycfilt.dll"="native"' >> fixes.reg
  258. echo '"atl90.dll"="native"' >> fixes.reg
  259. echo '"crypt32.dll"="native"' >> fixes.reg
  260. echo '"dciman32.dll"="native"' >> fixes.reg
  261. echo '"gdi32.dll"="native"' >> fixes.reg
  262. echo '"hid.dll"="native"' >> fixes.reg
  263. echo '"imagehlp.dll"="native"' >> fixes.reg
  264. echo '"imm32.dll"="native"' >> fixes.reg
  265. echo '"kernel32.dll"="native"' >> fixes.reg
  266. echo '"lpk.dll"="native"' >> fixes.reg
  267. echo '"mfc90.dll"="native"' >> fixes.reg
  268. echo '"mfcm90.dll"="native"' >> fixes.reg
  269. echo '"midimap.dll"="native"' >> fixes.reg
  270. echo '"msacm32.dll"="native"' >> fixes.reg
  271. echo '"msasn1.dll"="native"' >> fixes.reg
  272. echo '"MSCTFIME.IME"="native"' >> fixes.reg
  273. echo '"msvcirt.dll"="native"' >> fixes.reg
  274. echo '"msvcm90.dll"="native"' >> fixes.reg
  275. echo '"msvcp60.dll"="native"' >> fixes.reg
  276. echo '"msvcp90.dll"="native"' >> fixes.reg
  277. echo '"msvcr90.dll"="native"' >> fixes.reg
  278. echo '"msvcrt.dll"="native"' >> fixes.reg
  279. echo '"netapi32.dll"="native"' >> fixes.reg
  280. echo '"ntdll.dll"="native"' >> fixes.reg
  281. echo '"rpcss.dll"="native"' >> fixes.reg
  282. echo '"secur32.dll"="native"' >> fixes.reg
  283. echo '"setupapi.dll"="native"' >> fixes.reg
  284. echo '"shlwapi.dll"="native"' >> fixes.reg
  285. echo '"stdole2.tlb"="native"' >> fixes.reg
  286. echo '"user32.dll"="native"' >> fixes.reg
  287. echo '"usp10.dll"="native"' >> fixes.reg
  288. echo '"uxtheme.dll"="native"' >> fixes.reg
  289. echo '"vcomp90.dll"="native"' >> fixes.reg
  290. echo '"version.dll"="native"' >> fixes.reg
  291. echo '"W95INF16.dll"="native"' >> fixes.reg
  292. echo '"W95INF32.dll"="native"' >> fixes.reg
  293. echo '"winmm.dll"="native"' >> fixes.reg
  294. echo '"ws2_32.dll"="native"' >> fixes.reg
  295. echo '"ws2help.dll"="native"' >> fixes.reg
  296.  
  297. `wine regedit -s "$fixes"/directX.reg`
  298. `wine regedit -s "$fixes"/software.reg`
  299. `wine regedit -s "$fixes"/"$Nucleo"_video.reg`
  300. `wine regedit -s "$fixes"/"$Nucleo"_sound.reg`
  301.  
  302. tvid=$(lspci -v -s `lspci | awk '/VGA/{print $1}'` | sed -n '/Memory.*, prefetchable/s/.*\[size=\([^]]\+\)M\]/\1/p')
  303. let "mvid"=$tvid/2
  304.  
  305. echo ""
  306. echo ""
  307. echo "Has been put the 3D Configuration"
  308. echo "For Ragnarok International , using half"
  309. echo "of the video memory available"
  310. echo ""
  311. echo ""
  312. echo 'The Client use "'"$mvid MB"'" Video'
  313. echo ""
  314. echo ""
  315.  
  316. # Detectar el Directorio "Escritorio"
  317. # Dentro del usuario actual
  318.  
  319. cd $HOME
  320.  
  321. if [ -e Desktop ]; then cd Desktop; DirectorioEscritorio=$HOME/Desktop; fi
  322. if [ -e Escritorio ]; then cd Escritorio; DirectorioEscritorio=$HOME/Escritorio; fi
  323.  
  324. if [ ! -e $DirectorioEscritorio/iRO ]; then
  325. mkdir -p $DirectorioEscritorio/iRO
  326. cd $DirectorioEscritorio/iRO
  327. fi
  328.  
  329. if [ -e $DirectorioEscritorio/iRO ]; then
  330. cd $DirectorioEscritorio/iRO
  331. fi
  332.  
  333. if [ -f "Ragnarok International.desktop" ]; then rm -rf "Ragnarok International.desktop"; fi
  334.  
  335. # 1 - Ragnarok International
  336. touch "Ragnarok International.desktop"
  337.  
  338. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International.desktop"
  339. echo "" >> "Ragnarok International.desktop"
  340. echo '[Desktop Entry]' >> "Ragnarok International.desktop"
  341. echo "Version=1.0" >> "Ragnarok International.desktop"
  342. echo "Type=Application" >> "Ragnarok International.desktop"
  343. echo "Terminal=false" >> "Ragnarok International.desktop"
  344. echo 'Exec=sh "'$RUTA'"/.LanzarRagnarok' >> "Ragnarok International.desktop"
  345. echo "Name=Ragnarok International" >> "Ragnarok International.desktop"
  346. echo "Icon=$RUTA/.RagnarokOnline.png" >> "Ragnarok International.desktop"
  347. echo "Path=$RUTA" >> "Ragnarok International.desktop"
  348. echo "StartupNotify=true" >> "Ragnarok International.desktop"
  349. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International.desktop"
  350.  
  351. # 2 - Ragnarok Classic
  352.  
  353. if [ -f "Ragnarok International - Classic.desktop" ]; then rm -rf "Ragnarok International - Classic.desktop"; fi
  354. touch "Ragnarok International - Classic.desktop"
  355.  
  356. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International - Classic.desktop"
  357. echo "" >> "Ragnarok International - Classic.desktop"
  358. echo '[Desktop Entry]' >> "Ragnarok International - Classic.desktop"
  359. echo "Version=1.0" >> "Ragnarok International - Classic.desktop"
  360. echo "Type=Application" >> "Ragnarok International - Classic.desktop"
  361. echo "Terminal=false" >> "Ragnarok International - Classic.desktop"
  362. echo 'Exec=sh "'$RUTA'"/.LanzarRagnarokClassic' >> "Ragnarok International - Classic.desktop"
  363. echo "Name=Ragnarok International - Classic" >> "Ragnarok International - Classic.desktop"
  364. echo "Icon=$RUTA/.RagnarokOnline.png" >> "Ragnarok International - Classic.desktop"
  365. echo "Path=$RUTA" >> "Ragnarok International - Classic.desktop"
  366. echo "StartupNotify=true" >> "Ragnarok International - Classic.desktop"
  367. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International - Classic.desktop"
  368.  
  369. # 3 - Setup
  370.  
  371. if [ -f "Ragnarok International - Setup.desktop" ]; then rm -rf "Ragnarok International - Setup.desktop"; fi
  372. touch "Ragnarok International - Setup.desktop"
  373.  
  374. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International - Setup.desktop"
  375. echo "" >> "Ragnarok International - Setup.desktop"
  376. echo '[Desktop Entry]' >> "Ragnarok International - Setup.desktop"
  377. echo "Version=1.0" >> "Ragnarok International - Setup.desktop"
  378. echo "Type=Application" >> "Ragnarok International - Setup.desktop"
  379. echo "Terminal=false" >> "Ragnarok International - Setup.desktop"
  380. echo 'Exec=sh "'$RUTA'"/.LanzarSetup' >> "Ragnarok International - Setup.desktop"
  381. echo "Name=Ragnarok International - Setup" >> "Ragnarok International - Setup.desktop"
  382. echo "Icon=$RUTA/.Setup.png" >> "Ragnarok International - Setup.desktop"
  383. echo "Path=$RUTA" >> "Ragnarok International - Setup.desktop"
  384. echo "StartupNotify=true" >> "Ragnarok International - Setup.desktop"
  385. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International - Setup.desktop"
  386.  
  387. # 4 - Setup Classic
  388.  
  389. if [ -f "Ragnarok International - Setup Classic.desktop" ]; then rm -rf "Ragnarok International - Setup Classic.desktop"; fi
  390. touch "Ragnarok International - Setup Classic.desktop"
  391.  
  392. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International - Setup Classic.desktop"
  393. echo "" >> "Ragnarok International - Setup Classic.desktop"
  394. echo '[Desktop Entry]' >> "Ragnarok International - Setup Classic.desktop"
  395. echo "Version=1.0" >> "Ragnarok International - Setup Classic.desktop"
  396. echo "Type=Application" >> "Ragnarok International - Setup Classic.desktop"
  397. echo "Terminal=false" >> "Ragnarok International - Setup Classic.desktop"
  398. echo 'Exec=sh "'$RUTA'"/.LanzarSetupClassic' >> "Ragnarok International - Setup Classic.desktop"
  399. echo "Name=Ragnarok International - Setup Classic" >> "Ragnarok International - Setup Classic.desktop"
  400. echo "Icon=$RUTA/.SetupClassic.png" >> "Ragnarok International - Setup Classic.desktop"
  401. echo "Path=$RUTA" >> "Ragnarok International - Setup Classic.desktop"
  402. echo "StartupNotify=true" >> "Ragnarok International - Setup Classic.desktop"
  403. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International - Setup Classic.desktop"
  404.  
  405. # 5 - Replay -> Ragnarok International
  406.  
  407. if [ -f "Ragnarok International - Replay.desktop" ]; then rm -rf "Ragnarok International - Replay.desktop"; fi
  408. touch "Ragnarok International - Replay.desktop"
  409.  
  410. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International - Replay.desktop"
  411. echo "" >> "Ragnarok International - Replay.desktop"
  412. echo '[Desktop Entry]' >> "Ragnarok International - Replay.desktop"
  413. echo "Version=1.0" >> "Ragnarok International - Replay.desktop"
  414. echo "Type=Application" >> "Ragnarok International - Replay.desktop"
  415. echo "Terminal=false" >> "Ragnarok International - Replay.desktop"
  416. echo 'Exec=sh "'$RUTA'"/.LanzarReplay' >> "Ragnarok International - Replay.desktop"
  417. echo "Name=Ragnarok International - Replay" >> "Ragnarok International - Replay.desktop"
  418. echo "Icon=$RUTA/.2RO.png" >> "Ragnarok International - Replay.desktop"
  419. echo "Path=$RUTA" >> "Ragnarok International - Replay.desktop"
  420. echo "StartupNotify=true" >> "Ragnarok International - Replay.desktop"
  421. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International - Replay.desktop"
  422.  
  423. # 6 - OpenSetup -> Alternative OpenSource Setup Tool
  424. if [ -f "Ragnarok International - OpenSetup.desktop" ]; then rm -rf "Ragnarok International - OpenSetup.desktop"; fi
  425. touch "Ragnarok International - OpenSetup.desktop"
  426.  
  427. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International - OpenSetup.desktop"
  428. echo "" >> "Ragnarok International - OpenSetup.desktop"
  429. echo '[Desktop Entry]' >> "Ragnarok International - OpenSetup.desktop"
  430. echo "Version=1.0" >> "Ragnarok International - OpenSetup.desktop"
  431. echo "Type=Application" >> "Ragnarok International - OpenSetup.desktop"
  432. echo "Terminal=false" >> "Ragnarok International - OpenSetup.desktop"
  433. echo 'Exec=sh "'$RUTA'"/.LanzarOpenSetup' >> "Ragnarok International - OpenSetup.desktop"
  434. echo "Name=Ragnarok International - OpenSetup" >> "Ragnarok International - OpenSetup.desktop"
  435. echo "Icon=$RUTA/.OpenSetup.png" >> "Ragnarok International - OpenSetup.desktop"
  436. echo "Path=$RUTA" >> "Ragnarok International - OpenSetup.desktop"
  437. echo "StartupNotify=true" >> "Ragnarok International - OpenSetup.desktop"
  438. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International - OpenSetup.desktop"
  439.  
  440. # Marcar como de Confianza (Dar Permiso de Ejecucion):
  441. chmod a+x "Ragnarok International.desktop"
  442. chmod a+x "Ragnarok International - Setup.desktop"
  443. chmod a+x "Ragnarok International - Replay.desktop"
  444. chmod a+x "Ragnarok International - Classic.desktop"
  445. chmod a+x "Ragnarok International - OpenSetup.desktop"
  446. chmod a+x "Ragnarok International - Setup Classic.desktop"
  447.  
  448. if [ -f "Window Mode - Ragnarok International.desktop" ]; then rm -rf "Window Mode - Ragnarok International.desktop"; fi
  449.  
  450. #Crear Enlaces en la Carpeta "$DirectorioEscritorio/iRO"
  451. #Del Software que configura este Script.
  452.  
  453. # 1 - Ragnarok Online - International
  454. touch "Window Mode - Ragnarok International.desktop"
  455.  
  456. echo "#!/usr/bin/env xdg-open"  >> "Window Mode - Ragnarok International.desktop"
  457. echo "" >> "Window Mode - Ragnarok International.desktop"
  458. echo '[Desktop Entry]' >> "Window Mode - Ragnarok International.desktop"
  459. echo "Version=1.0" >> "Window Mode - Ragnarok International.desktop"
  460. echo "Type=Application" >> "Window Mode - Ragnarok International.desktop"
  461. echo "Terminal=false" >> "Window Mode - Ragnarok International.desktop"
  462. echo 'Exec=sh "'$RUTA'"/.MV_IniciarRagnarok' >> "Window Mode - Ragnarok International.desktop"
  463. echo "Name=Window Mode - Ragnarok International" >> "Window Mode - Ragnarok International.desktop"
  464. echo "Icon=$RUTA/.RagnarokOnline.png" >> "Window Mode - Ragnarok International.desktop"
  465. echo "Path=$RUTA" >> "Window Mode - Ragnarok International.desktop"
  466. echo "StartupNotify=true" >> "Window Mode - Ragnarok International.desktop"
  467. echo "X-KDE-SubstituteUID=false" >> "Window Mode - Ragnarok International.desktop"
  468.  
  469. # 2 - Ragnarok Online - International Classic :
  470.  
  471. if [ -f "Window Mode - Ragnarok International - Classic.desktop" ]; then rm -rf "Window Mode - Ragnarok International - Classic.desktop"; fi
  472. touch "Window Mode - Ragnarok International - Classic.desktop"
  473.  
  474. echo "#!/usr/bin/env xdg-open"  >> "Window Mode - Ragnarok International - Classic.desktop"
  475. echo "" >> "Window Mode - Ragnarok International - Classic.desktop"
  476. echo '[Desktop Entry]' >> "Window Mode - Ragnarok International - Classic.desktop"
  477. echo "Version=1.0" >> "Window Mode - Ragnarok International - Classic.desktop"
  478. echo "Type=Application" >> "Window Mode - Ragnarok International - Classic.desktop"
  479. echo "Terminal=false" >> "Window Mode - Ragnarok International - Classic.desktop"
  480. echo 'Exec=sh "'$RUTA'"/.MV_LanzarRagnarokClassic' >> "Window Mode - Ragnarok International - Classic.desktop"
  481. echo "Name=Window Mode - Ragnarok International - Classic" >> "Window Mode - Ragnarok International - Classic.desktop"
  482. echo "Icon=$RUTA/.RagnarokOnline.png" >> "Window Mode - Ragnarok International - Classic.desktop"
  483. echo "Path=$RUTA" >> "Window Mode - Ragnarok International - Classic.desktop"
  484. echo "StartupNotify=true" >> "Window Mode - Ragnarok International - Classic.desktop"
  485. echo "X-KDE-SubstituteUID=false" >> "Window Mode - Ragnarok International - Classic.desktop"
  486.  
  487. # 3 - Replay -> Ragnarok International
  488.  
  489. if [ -f "Window Mode - Ragnarok International - Replay.desktop" ]; then rm -rf "Window Mode - Ragnarok International - Replay.desktop"; fi
  490. touch "Window Mode - Ragnarok International - Replay.desktop"
  491.  
  492. echo "#!/usr/bin/env xdg-open"  >> "Window Mode - Ragnarok International - Replay.desktop"
  493. echo "" >> "Window Mode - Ragnarok International - Replay.desktop"
  494. echo '[Desktop Entry]' >> "Window Mode - Ragnarok International - Replay.desktop"
  495. echo "Version=1.0" >> "Window Mode - Ragnarok International - Replay.desktop"
  496. echo "Type=Application" >> "Window Mode - Ragnarok International - Replay.desktop"
  497. echo "Terminal=false" >> "Window Mode - Ragnarok International - Replay.desktop"
  498. echo 'Exec=sh "'$RUTA'"/.MV_LanzarReplay' >> "Window Mode - Ragnarok International - Replay.desktop"
  499. echo "Name=Window Mode - Ragnarok International - Replay" >> "Window Mode - Ragnarok International - Replay.desktop"
  500. echo "Icon=$RUTA/.2RO.png" >> "Window Mode - Ragnarok International - Replay.desktop"
  501. echo "Path=$RUTA" >> "Window Mode - Ragnarok International - Replay.desktop"
  502. echo "StartupNotify=true" >> "Window Mode - Ragnarok International - Replay.desktop"
  503. echo "X-KDE-SubstituteUID=false" >> "Window Mode - Ragnarok International - Replay.desktop"
  504.  
  505. # 4 - Setup -> Ragnarok International
  506.  
  507. if [ -f "Window Mode - Ragnarok International - Setup.desktop" ]; then rm -rf "Window Mode - Ragnarok International - Setup.desktop"; fi
  508. touch "Window Mode - Ragnarok International - Setup.desktop"
  509.  
  510. echo "#!/usr/bin/env xdg-open"  >> "Window Mode - Ragnarok International - Setup.desktop"
  511. echo "" >> "Window Mode - Ragnarok International - Setup.desktop"
  512. echo '[Desktop Entry]' >> "Window Mode - Ragnarok International - Setup.desktop"
  513. echo "Version=1.0" >> "Window Mode - Ragnarok International - Setup.desktop"
  514. echo "Type=Application" >> "Window Mode - Ragnarok International - Setup.desktop"
  515. echo "Terminal=false" >> "Window Mode - Ragnarok International - Setup.desktop"
  516. echo 'Exec=sh "'$RUTA'"/.MV_LanzarSetup' >> "Window Mode - Ragnarok International - Setup.desktop"
  517. echo "Name=Window Mode - Ragnarok International - Setup" >> "Window Mode - Ragnarok International - Setup.desktop"
  518. echo "Icon=$RUTA/.Setup.png" >> "Window Mode - Ragnarok International - Setup.desktop"
  519. echo "Path=$RUTA" >> "Window Mode - Ragnarok International - Setup.desktop"
  520. echo "StartupNotify=true" >> "Window Mode - Ragnarok International - Setup.desktop"
  521. echo "X-KDE-SubstituteUID=false" >> "Window Mode - Ragnarok International - Setup.desktop"
  522.  
  523. # 5 - Setup Classic
  524.  
  525. if [ -f "Window Mode - Ragnarok International - Setup Classic.desktop" ]; then rm -rf "Window Mode - Ragnarok International - Setup Classic.desktop"; fi
  526. touch "Window Mode - Ragnarok International - Setup Classic.desktop"
  527.  
  528. echo "#!/usr/bin/env xdg-open"  >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  529. echo "" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  530. echo '[Desktop Entry]' >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  531. echo "Version=1.0" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  532. echo "Type=Application" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  533. echo "Terminal=false" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  534. echo 'Exec=sh "'$RUTA'"/.MV_LanzarSetupClassic' >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  535. echo "Name=Window Mode - Ragnarok International - Setup Classic" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  536. echo "Icon=$RUTA/.SetupClassic.png" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  537. echo "Path=$RUTA" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  538. echo "StartupNotify=true" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  539. echo "X-KDE-SubstituteUID=false" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  540.  
  541. # Marcar como de Confianza (Dar Permiso de Ejecucion):
  542. chmod a+x "Window Mode - Ragnarok International.desktop"
  543. chmod a+x "Window Mode - Ragnarok International - Setup.desktop"
  544. chmod a+x "Window Mode - Ragnarok International - Replay.desktop"
  545. chmod a+x "Window Mode - Ragnarok International - Classic.desktop"
  546. chmod a+x "Window Mode - Ragnarok International - Setup Classic.desktop"
  547.  
  548. xmessage -nearmouse -timeout 3 "Has been Configured Correclty : Ragnarok International" -buttons OK &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement