Advertisement
inukaze

Inukaze - iRO - Configure under NiX

Sep 16th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 23.03 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 :  
  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.     else
  115.         echo "Arquitectura NO SOPORTADA"
  116. fi
  117.  
  118. # Eliminar Arquitecturaivos existentes de DirectPlay
  119. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dplaysvr.exe
  120. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPLAYSVR.exe
  121. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dplayx.dll
  122. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPLAYX.dll
  123. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpmodemx.dll
  124. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPMODEMX.dll
  125. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnet.dll
  126. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPNET.dll
  127. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnhpast.dll
  128. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPNHPAST.dll
  129. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnlobby.dll
  130. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPNLOBBY.dll
  131. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnsvr.exe
  132. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPNSVR.exe
  133. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpwsockx.dll
  134. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/DPWSOCKX.dll
  135. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnhupnp.dll
  136. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpserial.dll
  137. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dplay.dll
  138. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnaddr.dll
  139. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dpnmodem.dll
  140.  
  141. # Eliminar Archivos existentes de DirectX
  142. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dciman32.dll
  143. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/ddrawex.dll
  144. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dsound.dll
  145. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/dsound3d.dll
  146. rm -rf "$RUTA"/wine/data/drive_c/windows/system32/quartz.dll
  147.  
  148. cd "$fixes/windows/system32"
  149. mkdir -p "$RUTA_C/windows/system32"
  150. cp *.* "$RUTA_C/windows/system32"
  151.  
  152. # Muestra en la terminal La arquitectura &
  153. # La version especifica de Wine usada
  154. Version_De_Wine=$(wine --version)
  155. echo ""
  156. echo ""
  157. echo "Running '$Version_De_Wine' under '$Nucleo' ( Machine '$Arquitectura' )"
  158. echo ""
  159. echo ""
  160.  
  161. cd "$fixes/windows/system32"
  162. cp *.* "$RUTA_C/windows/system32" && cd "$RUTA_C/windows/system32"
  163.  
  164. # Registrar Librerias con RegSvr32 ;
  165. regsvr32 ddraw.dll
  166. regsvr32 dsound.dll
  167. regsvr32 dinput.dll
  168. regsvr32 mfc42.dll
  169. regsvr32 mfc42u.dll
  170. regsvr32 MSCTF.dll
  171. regsvr32 MSIMTF.dll
  172. regsvr32 ole32.dll
  173. regsvr32 oleaut32.dll
  174. regsvr32 olepro32.dll
  175. regsvr32 rpcrt4.dll
  176. regsvr32 wintrust.dll
  177. regsvr32 shell32.dll
  178.  
  179.  
  180. # - Esto es DirectX 9.X? (Nativo de Windows XP SP 3)
  181. echo "REGEDIT4" >> fixes.reg
  182. echo "" >> fixes.reg
  183. echo "[HKEY_CURRENT_USER\Software\Wine\DllOverrides]" >> fixes.reg
  184. echo '"advapi32.dll"="native"' >> fixes.reg
  185. echo '"ADVPACK.dll"="native"' >> fixes.reg
  186. echo '"asycfilt.dll"="native"' >> fixes.reg
  187. echo '"atl90.dll"="native"' >> fixes.reg
  188. echo '"crypt32.dll"="native"' >> fixes.reg
  189. echo '"dciman32.dll"="native"' >> fixes.reg
  190. echo '"gdi32.dll"="native"' >> fixes.reg
  191. echo '"hid.dll"="native"' >> fixes.reg
  192. echo '"imagehlp.dll"="native"' >> fixes.reg
  193. echo '"imm32.dll"="native"' >> fixes.reg
  194. echo '"kernel32.dll"="native"' >> fixes.reg
  195. echo '"lpk.dll"="native"' >> fixes.reg
  196. echo '"mfc90.dll"="native"' >> fixes.reg
  197. echo '"mfcm90.dll"="native"' >> fixes.reg
  198. echo '"midimap.dll"="native"' >> fixes.reg
  199. echo '"msacm32.dll"="native"' >> fixes.reg
  200. echo '"msasn1.dll"="native"' >> fixes.reg
  201. echo '"MSCTFIME.IME"="native"' >> fixes.reg
  202. echo '"msvcirt.dll"="native"' >> fixes.reg
  203. echo '"msvcm90.dll"="native"' >> fixes.reg
  204. echo '"msvcp60.dll"="native"' >> fixes.reg
  205. echo '"msvcp90.dll"="native"' >> fixes.reg
  206. echo '"msvcr90.dll"="native"' >> fixes.reg
  207. echo '"msvcrt.dll"="native"' >> fixes.reg
  208. echo '"netapi32.dll"="native"' >> fixes.reg
  209. echo '"ntdll.dll"="native"' >> fixes.reg
  210. echo '"rpcss.dll"="native"' >> fixes.reg
  211. echo '"secur32.dll"="native"' >> fixes.reg
  212. echo '"setupapi.dll"="native"' >> fixes.reg
  213. echo '"shlwapi.dll"="native"' >> fixes.reg
  214. echo '"stdole2.tlb"="native"' >> fixes.reg
  215. echo '"user32.dll"="native"' >> fixes.reg
  216. echo '"usp10.dll"="native"' >> fixes.reg
  217. echo '"uxtheme.dll"="native"' >> fixes.reg
  218. echo '"vcomp90.dll"="native"' >> fixes.reg
  219. echo '"version.dll"="native"' >> fixes.reg
  220. echo '"W95INF16.dll"="native"' >> fixes.reg
  221. echo '"W95INF32.dll"="native"' >> fixes.reg
  222. echo '"winmm.dll"="native"' >> fixes.reg
  223. echo '"ws2_32.dll"="native"' >> fixes.reg
  224. echo '"ws2help.dll"="native"' >> fixes.reg
  225.  
  226. `wine regedit -s "$fixes"/directX.reg`
  227. `wine regedit -s "$fixes"/software.reg`
  228. `wine regedit -s "$fixes"/"$Nucleo"_video.reg`
  229. `wine regedit -s "$fixes"/"$Nucleo"_sound.reg`
  230.  
  231. tvid=$(lspci -v -s `lspci | awk '/VGA/{print $1}'` | sed -n '/Memory.*, prefetchable/s/.*\[size=\([^]]\+\)M\]/\1/p')
  232. let "mvid"=$tvid/2
  233.  
  234. echo ""
  235. echo ""
  236. echo "Has been put the 3D Configuration"
  237. echo "For Ragnarok International , using half"
  238. echo "of the video memory available"
  239. echo ""
  240. echo ""
  241. echo 'The Client use "'"$mvid MB"'" Video'
  242. echo ""
  243. echo ""
  244.  
  245. # Detectar el Directorio "Escritorio"
  246. # Dentro del usuario actual
  247.  
  248. cd $HOME
  249.  
  250. if [ -e Desktop ]; then cd Desktop; DirectorioEscritorio=$HOME/Desktop; fi
  251. if [ -e Escritorio ]; then cd Escritorio; DirectorioEscritorio=$HOME/Escritorio; fi
  252.  
  253. if [ ! -e $DirectorioEscritorio/iRO ]; then
  254. mkdir -p $DirectorioEscritorio/iRO
  255. cd $DirectorioEscritorio/iRO
  256. fi
  257.  
  258. if [ -e $DirectorioEscritorio/iRO ]; then
  259. cd $DirectorioEscritorio/iRO
  260. fi
  261.  
  262. if [ -f "Ragnarok International.desktop" ]; then rm -rf "Ragnarok International.desktop"; fi
  263.  
  264. # 1 - Ragnarok International
  265. touch "Ragnarok International.desktop"
  266.  
  267. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International.desktop"
  268. echo "" >> "Ragnarok International.desktop"
  269. echo '[Desktop Entry]' >> "Ragnarok International.desktop"
  270. echo "Version=1.0" >> "Ragnarok International.desktop"
  271. echo "Type=Application" >> "Ragnarok International.desktop"
  272. echo "Terminal=false" >> "Ragnarok International.desktop"
  273. echo 'Exec=sh "'$RUTA'"/.LanzarRagnarok' >> "Ragnarok International.desktop"
  274. echo "Name=Ragnarok International" >> "Ragnarok International.desktop"
  275. echo "Icon=$RUTA/.RagnarokOnline.png" >> "Ragnarok International.desktop"
  276. echo "Path=$RUTA" >> "Ragnarok International.desktop"
  277. echo "StartupNotify=true" >> "Ragnarok International.desktop"
  278. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International.desktop"
  279.  
  280. # 2 - Ragnarok Classic
  281.  
  282. if [ -f "Ragnarok International - Classic.desktop" ]; then rm -rf "Ragnarok International - Classic.desktop"; fi
  283. touch "Ragnarok International - Classic.desktop"
  284.  
  285. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International - Classic.desktop"
  286. echo "" >> "Ragnarok International - Classic.desktop"
  287. echo '[Desktop Entry]' >> "Ragnarok International - Classic.desktop"
  288. echo "Version=1.0" >> "Ragnarok International - Classic.desktop"
  289. echo "Type=Application" >> "Ragnarok International - Classic.desktop"
  290. echo "Terminal=false" >> "Ragnarok International - Classic.desktop"
  291. echo 'Exec=sh "'$RUTA'"/.LanzarRagnarokClassic' >> "Ragnarok International - Classic.desktop"
  292. echo "Name=Ragnarok International - Classic" >> "Ragnarok International - Classic.desktop"
  293. echo "Icon=$RUTA/.RagnarokOnline.png" >> "Ragnarok International - Classic.desktop"
  294. echo "Path=$RUTA" >> "Ragnarok International - Classic.desktop"
  295. echo "StartupNotify=true" >> "Ragnarok International - Classic.desktop"
  296. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International - Classic.desktop"
  297.  
  298. # 3 - Setup
  299.  
  300. if [ -f "Ragnarok International - Setup.desktop" ]; then rm -rf "Ragnarok International - Setup.desktop"; fi
  301. touch "Ragnarok International - Setup.desktop"
  302.  
  303. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International - Setup.desktop"
  304. echo "" >> "Ragnarok International - Setup.desktop"
  305. echo '[Desktop Entry]' >> "Ragnarok International - Setup.desktop"
  306. echo "Version=1.0" >> "Ragnarok International - Setup.desktop"
  307. echo "Type=Application" >> "Ragnarok International - Setup.desktop"
  308. echo "Terminal=false" >> "Ragnarok International - Setup.desktop"
  309. echo 'Exec=sh "'$RUTA'"/.LanzarSetup' >> "Ragnarok International - Setup.desktop"
  310. echo "Name=Ragnarok International - Setup" >> "Ragnarok International - Setup.desktop"
  311. echo "Icon=$RUTA/.Setup.png" >> "Ragnarok International - Setup.desktop"
  312. echo "Path=$RUTA" >> "Ragnarok International - Setup.desktop"
  313. echo "StartupNotify=true" >> "Ragnarok International - Setup.desktop"
  314. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International - Setup.desktop"
  315.  
  316. # 4 - Setup Classic
  317.  
  318. if [ -f "Ragnarok International - Setup Classic.desktop" ]; then rm -rf "Ragnarok International - Setup Classic.desktop"; fi
  319. touch "Ragnarok International - Setup Classic.desktop"
  320.  
  321. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International - Setup Classic.desktop"
  322. echo "" >> "Ragnarok International - Setup Classic.desktop"
  323. echo '[Desktop Entry]' >> "Ragnarok International - Setup Classic.desktop"
  324. echo "Version=1.0" >> "Ragnarok International - Setup Classic.desktop"
  325. echo "Type=Application" >> "Ragnarok International - Setup Classic.desktop"
  326. echo "Terminal=false" >> "Ragnarok International - Setup Classic.desktop"
  327. echo 'Exec=sh "'$RUTA'"/.LanzarSetupClassic' >> "Ragnarok International - Setup Classic.desktop"
  328. echo "Name=Ragnarok International - Setup Classic" >> "Ragnarok International - Setup Classic.desktop"
  329. echo "Icon=$RUTA/.SetupClassic.png" >> "Ragnarok International - Setup Classic.desktop"
  330. echo "Path=$RUTA" >> "Ragnarok International - Setup Classic.desktop"
  331. echo "StartupNotify=true" >> "Ragnarok International - Setup Classic.desktop"
  332. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International - Setup Classic.desktop"
  333.  
  334. # 5 - Replay -> Ragnarok International
  335.  
  336. if [ -f "Ragnarok International - Replay.desktop" ]; then rm -rf "Ragnarok International - Replay.desktop"; fi
  337. touch "Ragnarok International - Replay.desktop"
  338.  
  339. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International - Replay.desktop"
  340. echo "" >> "Ragnarok International - Replay.desktop"
  341. echo '[Desktop Entry]' >> "Ragnarok International - Replay.desktop"
  342. echo "Version=1.0" >> "Ragnarok International - Replay.desktop"
  343. echo "Type=Application" >> "Ragnarok International - Replay.desktop"
  344. echo "Terminal=false" >> "Ragnarok International - Replay.desktop"
  345. echo 'Exec=sh "'$RUTA'"/.LanzarReplay' >> "Ragnarok International - Replay.desktop"
  346. echo "Name=Ragnarok International - Replay" >> "Ragnarok International - Replay.desktop"
  347. echo "Icon=$RUTA/.2RO.png" >> "Ragnarok International - Replay.desktop"
  348. echo "Path=$RUTA" >> "Ragnarok International - Replay.desktop"
  349. echo "StartupNotify=true" >> "Ragnarok International - Replay.desktop"
  350. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International - Replay.desktop"
  351.  
  352. # 6 - OpenSetup -> Alternative OpenSource Setup Tool
  353. if [ -f "Ragnarok International - OpenSetup.desktop" ]; then rm -rf "Ragnarok International - OpenSetup.desktop"; fi
  354. touch "Ragnarok International - OpenSetup.desktop"
  355.  
  356. echo "#!/usr/bin/env xdg-open"  >> "Ragnarok International - OpenSetup.desktop"
  357. echo "" >> "Ragnarok International - OpenSetup.desktop"
  358. echo '[Desktop Entry]' >> "Ragnarok International - OpenSetup.desktop"
  359. echo "Version=1.0" >> "Ragnarok International - OpenSetup.desktop"
  360. echo "Type=Application" >> "Ragnarok International - OpenSetup.desktop"
  361. echo "Terminal=false" >> "Ragnarok International - OpenSetup.desktop"
  362. echo 'Exec=sh "'$RUTA'"/.LanzarOpenSetup' >> "Ragnarok International - OpenSetup.desktop"
  363. echo "Name=Ragnarok International - OpenSetup" >> "Ragnarok International - OpenSetup.desktop"
  364. echo "Icon=$RUTA/.OpenSetup.png" >> "Ragnarok International - OpenSetup.desktop"
  365. echo "Path=$RUTA" >> "Ragnarok International - OpenSetup.desktop"
  366. echo "StartupNotify=true" >> "Ragnarok International - OpenSetup.desktop"
  367. echo "X-KDE-SubstituteUID=false" >> "Ragnarok International - OpenSetup.desktop"
  368.  
  369. # Marcar como de Confianza (Dar Permiso de Ejecucion):
  370. chmod a+x "Ragnarok International.desktop"
  371. chmod a+x "Ragnarok International - Setup.desktop"
  372. chmod a+x "Ragnarok International - Replay.desktop"
  373. chmod a+x "Ragnarok International - Classic.desktop"
  374. chmod a+x "Ragnarok International - OpenSetup.desktop"
  375. chmod a+x "Ragnarok International - Setup Classic.desktop"
  376.  
  377. if [ -f "Window Mode - Ragnarok International.desktop" ]; then rm -rf "Window Mode - Ragnarok International.desktop"; fi
  378.  
  379. #Crear Enlaces en la Carpeta "$DirectorioEscritorio/iRO"
  380. #Del Software que configura este Script.
  381.  
  382. # 1 - Ragnarok Online - International
  383. touch "Window Mode - Ragnarok International.desktop"
  384.  
  385. echo "#!/usr/bin/env xdg-open"  >> "Window Mode - Ragnarok International.desktop"
  386. echo "" >> "Window Mode - Ragnarok International.desktop"
  387. echo '[Desktop Entry]' >> "Window Mode - Ragnarok International.desktop"
  388. echo "Version=1.0" >> "Window Mode - Ragnarok International.desktop"
  389. echo "Type=Application" >> "Window Mode - Ragnarok International.desktop"
  390. echo "Terminal=false" >> "Window Mode - Ragnarok International.desktop"
  391. echo 'Exec=sh "'$RUTA'"/.MV_IniciarRagnarok' >> "Window Mode - Ragnarok International.desktop"
  392. echo "Name=Window Mode - Ragnarok International" >> "Window Mode - Ragnarok International.desktop"
  393. echo "Icon=$RUTA/.RagnarokOnline.png" >> "Window Mode - Ragnarok International.desktop"
  394. echo "Path=$RUTA" >> "Window Mode - Ragnarok International.desktop"
  395. echo "StartupNotify=true" >> "Window Mode - Ragnarok International.desktop"
  396. echo "X-KDE-SubstituteUID=false" >> "Window Mode - Ragnarok International.desktop"
  397.  
  398. # 2 - Ragnarok Online - International Classic :
  399.  
  400. if [ -f "Window Mode - Ragnarok International - Classic.desktop" ]; then rm -rf "Window Mode - Ragnarok International - Classic.desktop"; fi
  401. touch "Window Mode - Ragnarok International - Classic.desktop"
  402.  
  403. echo "#!/usr/bin/env xdg-open"  >> "Window Mode - Ragnarok International - Classic.desktop"
  404. echo "" >> "Window Mode - Ragnarok International - Classic.desktop"
  405. echo '[Desktop Entry]' >> "Window Mode - Ragnarok International - Classic.desktop"
  406. echo "Version=1.0" >> "Window Mode - Ragnarok International - Classic.desktop"
  407. echo "Type=Application" >> "Window Mode - Ragnarok International - Classic.desktop"
  408. echo "Terminal=false" >> "Window Mode - Ragnarok International - Classic.desktop"
  409. echo 'Exec=sh "'$RUTA'"/.MV_LanzarRagnarokClassic' >> "Window Mode - Ragnarok International - Classic.desktop"
  410. echo "Name=Window Mode - Ragnarok International - Classic" >> "Window Mode - Ragnarok International - Classic.desktop"
  411. echo "Icon=$RUTA/.RagnarokOnline.png" >> "Window Mode - Ragnarok International - Classic.desktop"
  412. echo "Path=$RUTA" >> "Window Mode - Ragnarok International - Classic.desktop"
  413. echo "StartupNotify=true" >> "Window Mode - Ragnarok International - Classic.desktop"
  414. echo "X-KDE-SubstituteUID=false" >> "Window Mode - Ragnarok International - Classic.desktop"
  415.  
  416. # 3 - Replay -> Ragnarok International
  417.  
  418. if [ -f "Window Mode - Ragnarok International - Replay.desktop" ]; then rm -rf "Window Mode - Ragnarok International - Replay.desktop"; fi
  419. touch "Window Mode - Ragnarok International - Replay.desktop"
  420.  
  421. echo "#!/usr/bin/env xdg-open"  >> "Window Mode - Ragnarok International - Replay.desktop"
  422. echo "" >> "Window Mode - Ragnarok International - Replay.desktop"
  423. echo '[Desktop Entry]' >> "Window Mode - Ragnarok International - Replay.desktop"
  424. echo "Version=1.0" >> "Window Mode - Ragnarok International - Replay.desktop"
  425. echo "Type=Application" >> "Window Mode - Ragnarok International - Replay.desktop"
  426. echo "Terminal=false" >> "Window Mode - Ragnarok International - Replay.desktop"
  427. echo 'Exec=sh "'$RUTA'"/.MV_LanzarReplay' >> "Window Mode - Ragnarok International - Replay.desktop"
  428. echo "Name=Window Mode - Ragnarok International - Replay" >> "Window Mode - Ragnarok International - Replay.desktop"
  429. echo "Icon=$RUTA/.2RO.png" >> "Window Mode - Ragnarok International - Replay.desktop"
  430. echo "Path=$RUTA" >> "Window Mode - Ragnarok International - Replay.desktop"
  431. echo "StartupNotify=true" >> "Window Mode - Ragnarok International - Replay.desktop"
  432. echo "X-KDE-SubstituteUID=false" >> "Window Mode - Ragnarok International - Replay.desktop"
  433.  
  434. # 4 - Setup -> Ragnarok International
  435.  
  436. if [ -f "Window Mode - Ragnarok International - Setup.desktop" ]; then rm -rf "Window Mode - Ragnarok International - Setup.desktop"; fi
  437. touch "Window Mode - Ragnarok International - Setup.desktop"
  438.  
  439. echo "#!/usr/bin/env xdg-open"  >> "Window Mode - Ragnarok International - Setup.desktop"
  440. echo "" >> "Window Mode - Ragnarok International - Setup.desktop"
  441. echo '[Desktop Entry]' >> "Window Mode - Ragnarok International - Setup.desktop"
  442. echo "Version=1.0" >> "Window Mode - Ragnarok International - Setup.desktop"
  443. echo "Type=Application" >> "Window Mode - Ragnarok International - Setup.desktop"
  444. echo "Terminal=false" >> "Window Mode - Ragnarok International - Setup.desktop"
  445. echo 'Exec=sh "'$RUTA'"/.MV_LanzarSetup' >> "Window Mode - Ragnarok International - Setup.desktop"
  446. echo "Name=Window Mode - Ragnarok International - Setup" >> "Window Mode - Ragnarok International - Setup.desktop"
  447. echo "Icon=$RUTA/.Setup.png" >> "Window Mode - Ragnarok International - Setup.desktop"
  448. echo "Path=$RUTA" >> "Window Mode - Ragnarok International - Setup.desktop"
  449. echo "StartupNotify=true" >> "Window Mode - Ragnarok International - Setup.desktop"
  450. echo "X-KDE-SubstituteUID=false" >> "Window Mode - Ragnarok International - Setup.desktop"
  451.  
  452. # 5 - Setup Classic
  453.  
  454. if [ -f "Window Mode - Ragnarok International - Setup Classic.desktop" ]; then rm -rf "Window Mode - Ragnarok International - Setup Classic.desktop"; fi
  455. touch "Window Mode - Ragnarok International - Setup Classic.desktop"
  456.  
  457. echo "#!/usr/bin/env xdg-open"  >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  458. echo "" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  459. echo '[Desktop Entry]' >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  460. echo "Version=1.0" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  461. echo "Type=Application" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  462. echo "Terminal=false" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  463. echo 'Exec=sh "'$RUTA'"/.MV_LanzarSetupClassic' >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  464. echo "Name=Window Mode - Ragnarok International - Setup Classic" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  465. echo "Icon=$RUTA/.SetupClassic.png" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  466. echo "Path=$RUTA" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  467. echo "StartupNotify=true" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  468. echo "X-KDE-SubstituteUID=false" >> "Window Mode - Ragnarok International - Setup Classic.desktop"
  469.  
  470. # Marcar como de Confianza (Dar Permiso de Ejecucion):
  471. chmod a+x "Window Mode - Ragnarok International.desktop"
  472. chmod a+x "Window Mode - Ragnarok International - Setup.desktop"
  473. chmod a+x "Window Mode - Ragnarok International - Replay.desktop"
  474. chmod a+x "Window Mode - Ragnarok International - Classic.desktop"
  475. chmod a+x "Window Mode - Ragnarok International - Setup Classic.desktop"
  476.  
  477. xmessage -nearmouse -timeout 3 "Has been Configured Correclty : Ragnarok International" -buttons OK &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement