Acer Aspire One
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Acer Aspire One

Ultra-portátil Acer Aspire One
 
FORO ACER ASPIRE ONE  ÍndiceÍndice  PublicacionesPublicaciones  Últimas imágenesÚltimas imágenes  BuscarBuscar  RegistrarseRegistrarse  Conectarse  

 

 aone-config.sh

Ir abajo 
AutorMensaje
urme




Mensajes : 34
Fecha de inscripción : 16/12/2008

aone-config.sh Empty
MensajeTema: aone-config.sh   aone-config.sh EmptySáb Ene 31, 2009 4:18 am

anteriormente escribi un mensaje sobre algunos cambiosque habia hecho ejecutando el script aone-config.sh
este es el post
http://foro.aceraspireone.com/linpus-linux-lite-f5/mi-experiencia-con-el-aao-2-xfce-y-sistema-completo-t490.htm
la cosa es que han quitado el script de la pagina donde estaba y he visto que algunas personas lo estan pidiendo.
ha sido descuido mio no seguir los mensajes. mis disculpas.
pongo aqui el script
solo hay que copiarlo y pegarlo en cualquier editor de texto
guardarlo como (aone-config.sh) sin parentesis
y luego ejecutar como root (./aone-config.sh) sin parentesis claro
recuerda, conectado a internet y con el cable.
un saludo.
======================================
#!bin/bash
LOGFILE="/tmp/aone-config.log"

BASEURL="http://blogs.nologin.es/slopez/aone"
SYSTEM_FILES="system-files_0.2.tgz"
KERNEL_MODULES="kernel-modules_0.1.tgz"
DESKTOP_CONFIG="desktop-config_0.2.tgz"

FIREFOX_URL="http://download.mozilla.org/?product=firefox-3.0.1&os=linux&lang=en-US"
LIVNA_REPO_RPM="http://rpm.livna.org/livna-release-8.rpm"
LIVNA_RPM="livna-release-8.rpm"

PACKAGES_TO_REMOVE="gtk-xfce-engine xfce4-panel xfce4-session xfce-mcs-manager xfce-mcs-plugins xfce-utils xfdesktop xfwm4 xfwm4-themes Thunar kpowersave mplayer mplayerplug-in exo libetpan libpurple pcmlinux"
PACKAGES_TO_INSTALL="gtk-xfce-engine xfce4-panel xfce4-battery-plugin xfce4-mixer xfce4-session xfce-mcs-manager xfce-mcs-plugins xfce-utils xfdesktop xfwm4 xfwm4-themes Terminal Thunar thunar-volman acpid claws-mail pidgin openssh-clients bluez-utils bluez-gnome vlc mplayer mplayerplug-in"

change_packages () {
echo "Removing Linpus packages... "
yum remove -y $PACKAGES_TO_REMOVE 2>&1 >> $LOGFILE
if [ $? != 0 ]; then
echo "An error occurred while removing Linpus XFCE4 packages. Check the log file (${LOGFILE}) for more information."
exit 1
fi
echo "ok."

echo "Installing Fedora Core 8 packages... (this is going to take a while)"
yum install -y $PACKAGES_TO_INSTALL 2>&1 >> $LOGFILE
if [ $? != 0 ]; then
echo "An error occurred in the process. Check the log file (${LOGFILE}) for more information."
exit 1
fi
echo "ok."
}

download_files () {
echo -n "Downloading startup files, kernel modules and desktop config... "

cd $TMPDIR
wget $BASEURL/$SYSTEM_FILES 2>&1 >> $LOGFILE
if [ $? != 0 ]; then
echo "Error downloading files, please check your network connection."
exit 1
fi
wget $BASEURL/$KERNEL_MODULES 2>&1 >> $LOGFILE
if [ $? != 0 ]; then
echo "Error downloading files, please check your network connection."
exit 1
fi
wget $BASEURL/$DESKTOP_CONFIG 2>&1 >> $LOGFILE
if [ $? != 0 ]; then
echo "Error downloading files, please check your network connection."
exit 1
fi

echo "ok."
}

add_livna_repo () {
echo -n "Adding LIVNA repository... "
cd $TMPDIR
wget $LIVNA_REPO_RPM
rpm -i $LIVNA_RPM 2>&1 >> $LOGFILE
yum makecache
if [ $? != 0 ]; then
echo "Error adding livna repository, please check the log file (${LOGFILE}) for more information."
exit 1
fi
echo "ok."
}

update_system_files () {
echo -n "Updating system files... "
mkdir $TMPDIR/startup
cd $TMPDIR/startup
tar xzvf $TMPDIR/$SYSTEM_FILES
cp nowait.sh /etc/rc.d/slim/nowait.sh
cp bash_profile /home/user/.bash_profile
cp rem_driver.sh /usr/bin
cp lid.conf /etc/acpi/events
cp sleep.sh /etc/acpi/actions
rm /home/user/.gtkrc-2.0
rm /etc/xdg/autostart/redhat-print-applet.desktop
rm /etc/xdg/autostart/puplet.desktop
rm /etc/xdg/autostart/update-notifier.desktop
echo "ok."
}

install_kernel_modules () {
echo -n "Installing kernel modules... "
mv /lib/modules/2.6.23.9lw /lib/modules/2.6.23.9lw.orig
tar xzf $TMPDIR/$KERNEL_MODULES -C /
if [ $? != 0 ]; then
if [ -e /lib/modules/2.6.23.9lw ]; then
rm -r /lib/modules/2.6.23.9lw
fi
mv /lib/modules/2.6.23.9lw.orig /lib/modules/2.6.23.9lw
echo "An error occurred while installing the new kernel modules. The original modules have been restored."
exit 1
fi
echo "ok."
}

configure_desktop () {
echo -n "Configuring your new XFCE4 desktop... "
rm -r /home/user/.config
tar xzf $TMPDIR/$DESKTOP_CONFIG -C /home/user
echo "ok."
}

install_firefox3 () {
echo -n "Downloading Firefox 3... "
cd $TMPDIR
wget "${FIREFOX_URL}"
if [ $? != 0 ]; then
echo "An error occurred downloading Firefox. Continuing anyway (you can install it later)."
return
fi
echo "ok."

echo -n "Installing Firefox 3... "
tar xjf firefox-3.0.1.tar.bz2
mv firefox /usr/local
mv /usr/bin/firefox /usr/bin/firefox-2
ln -s /usr/local/firefox/firefox /usr/bin/firefox
cd /usr/local/firefox
mv plugins plugins.orig
ln -s /usr/lib/mozilla/plugins .
echo "ok."
}


echo "Welcome to the desktop config script for Aspire One"
echo ""
echo "This process replaces your Linpus Desktop with a standard XFCE4"
echo "Desktop. This means that some packages will be removed, some will"
echo "be installed, and others will be replaced. Also, a few system files"
echo "will be altered."
echo ""
echo "If something weird happens during this process, your system may get"
echo "into an inconsistent state, and you'll be forced to reinstall your"
echo "notebook with Acer's Recover CD, losing all the contents of your SSD"
echo ""
echo -n "Are you sure you want to continue? (Y/N): "

read

if [ "${REPLY}" != "Y" ] && [ "${REPLY}" != "y" ]; then
echo "Ok, maybe you want to try it later ;-)"
exit 0
fi

TMPDIR=`mktemp -d`

download_files
add_livna_repo
change_packages
install_kernel_modules
configure_desktop
update_system_files
install_firefox3

echo "Process finished, rebooting into your new desktop!"
sleep 5s
reboot
============================================
Volver arriba Ir abajo
 
aone-config.sh
Volver arriba 
Página 1 de 1.

Permisos de este foro:No puedes responder a temas en este foro.
Acer Aspire One :: Acer Aspire One :: Problemas, dudas y preguntas técnicas.-
Cambiar a:  

Cómo escoger