PDA

View Full Version : evitare gdm!


wizard_at
09-11-2009, 18:19
ciao a tutti

vorrei evitare di caricare all'avvio gdm e fare partire automaticamente lxde gia' con uno user aperto.

se non e' possibile, esiste un'alternativa a gdm piu' leggera?

Gimli[2BV!2B]
09-11-2009, 19:38
Per DE piuma di solito si usa slim (http://it.wikipedia.org/wiki/SLiM).

Autologin con Slim. (http://www.hwupgrade.it/forum/showpost.php?p=27369315&postcount=5)

wizard_at
09-11-2009, 21:54
Io ho provato questo....secondo voi e' piu' veloce Slim in caricamento?

sudo nano autologin.c

and paste this code inside (middle mouse button will paste the text you underline):


int main() {
execlp( "login", "login", "-f", "your_user_here", 0);
}


replace the string: your_user_here with the user you want to autologin. (ctrl+X to save) btw, use your prefered editor.

Let's compile.. you will need to have gcc installed:

sudo gcc -o autologin autologin.c

copy the compiled autologin file into /usr/local/sbin

sudo cp autologin /usr/local/sbin

now we need to edit the file /etc/inittab

sudo nano /etc/inittab

search for this:

1:2345:respawn:/sbin/getty 38400 tty1

put a # to comment this line and add this new line:


1:2345:respawn:/sbin/getty -n -l /usr/local/sbin/autologin 38400 tty1


it will look like this:

#1:2345:respawn:/sbin/getty 38400 tty1
1:2345:respawn:/sbin/getty -n -l /usr/local/sbin/autologin 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5


this will make the autologin stuff...



let's make the autostart:

nano .bash_profile

put this code on the bottom and save it


if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startxfce4
fi



then you just have to remove your login manager :

sudo apt-get remove gdm xdm kdm


reboot your machine

Gimli[2BV!2B]
09-11-2009, 23:04
:asd: Direi proprio di sė!

Ti mangia un tty, ma dovrebbe partire in un istante!

Unico dubbio... proprio la prima, la pių importante? Nel tuo caso č l'unica che ti copre i runlevel 4 e 5...

wizard_at
10-11-2009, 18:10
in effetti ora si avvia in 16 secondi e non ho ricompilato il kernel!

ps: P4 @ 2.00ghz , 512 ram