|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Jul 2006
Città: MILANO
Messaggi: 1645
|
evitare gdm!
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?
__________________
xoooxoooxooox |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Feb 2006
Città: Parma
Messaggi: 3010
|
__________________
~Breve riferimento ai comandi GNU/Linux (ormai non molto breve...) |
![]() |
![]() |
![]() |
#3 |
Senior Member
Iscritto dal: Jul 2006
Città: MILANO
Messaggi: 1645
|
Io ho provato questo....secondo voi e' piu' veloce Slim in caricamento?
Codice:
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
__________________
xoooxoooxooox |
![]() |
![]() |
![]() |
#4 |
Senior Member
Iscritto dal: Feb 2006
Città: Parma
Messaggi: 3010
|
![]() 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...
__________________
~Breve riferimento ai comandi GNU/Linux (ormai non molto breve...) |
![]() |
![]() |
![]() |
#5 |
Senior Member
Iscritto dal: Jul 2006
Città: MILANO
Messaggi: 1645
|
in effetti ora si avvia in 16 secondi e non ho ricompilato il kernel!
ps: P4 @ 2.00ghz , 512 ram
__________________
xoooxoooxooox |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 03:49.