Instalar Eternal Lands desde un script (Funciona perfecto)

Moderadores: Kravenbcn, largeroliker, fidelcastro, cerealkiller, pspCaracas, dark_sasuke, m0skit0, LnD, ka69, zacky06

Avatar de Usuario
hiddenotebook
Experto
Experto
Mensajes: 634
Registrado: 28 Dic 2009, 14:56
Ubicación: En un lugar de la mancha...

Instalar Eternal Lands desde un script (Funciona perfecto)

Mensaje por hiddenotebook »

Bueno el uso del script es muy sencillo.

paso 1. Lo descargas.

paso 2. Damos clic derecho sobre el script clic en propiedades y en permisos damos a permitir ejecutar el archivo como un programa y cerramos.

paso 3. doble clic encima del archivo y elegimos ejecutar en un terminal.

después a esperar que termine y listo ya tenemos el juego funcional.

captura:

Imagen

contenido del script:

Código: Seleccionar todo

#! /usr/bin/env bash

# Instructions to use:
# Download to, for example, your desktop then right click and select "Properties".
# From the "Permissions" tab, set the execute flag then click "Close".
# When that is done, double click the icon and click "Run in Terminal"

# Author Paul Broadhead pjbroad@twinmoons.org.uk
#
# This program (script) is released as Public Domain software. 
# You are free to use it as you wish.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

vers="$(lsb_release -sc)"
repoline="deb http://ppa.launchpad.net/pjbroad/ppa/ubuntu ${vers} main"

# show some information and give the chance to quit
if [ "$1" != "skip" ]
then
  cat << EOT
To install the EL packages you need root/admin privileges.

1. The following extra line will be added to your package sources list
  "${repoline}"
 
2. The key "Launchpad PPA for Paul Broadhead" will be added to your trusted
software providers list.

3. The eternallands and eternallands-data packages will be installed.  The sound
and music packages may also be installed depending on your system settings.

If you prefer, you can add add the sources and key manually using the
information provided at <https://launchpad.net/~pjbroad/+archive/ppa>.

Once installed, you will have an "Eternal Lands" icon in the
"Applications->Games" menu.  This program/icon can be deleted from
your desktop.

EOT
  read -p "Press the return/enter key to continue" dummy
  echo ""
fi

# restart as the root user if required
if [ "$(id -u)" != "0" ]
then
  sudo $0 skip
  exit
fi

# get and install the PPA key
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com d0c20459417c1d349e2ab7d053babe78df90c47a

# write the sources line if not already there, update if added now
pks=/etc/apt/sources.list
if [ "$(grep "^${repoline}$" $pks)" == "" ]
then
  echo -e "\n#Eternal Lands package repository\n${repoline}" >> $pks
  apt-get update
fi

# install the client package (and hence the data and other dependencies)
apt-get install eternallands
No tiene los permisos requeridos para ver los archivos adjuntos a este mensaje.

Responder