![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2005
Beans: 4
|
Are you tired off typing logins? Don't want to load heavy/waste of time login managers? This guide let's you have autologin and autostart for your XFCE: Let's open a console and then create the file autologin.c Code:
sudo nano autologin.c Code:
int main() {
execlp( "login", "login", "-f", "your_user_here", 0);
}
Let's compile.. you will need to have gcc installed: Code:
sudo gcc -o autologin autologin.c Code:
sudo cp autologin /usr/local/sbin Code:
sudo nano /etc/inittab Code:
1:2345:respawn:/sbin/getty 38400 tty1 Code:
1:2345:respawn:/sbin/getty -n -l /usr/local/sbin/autologin 38400 tty1 Code:
#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 let's make the autostart: Code:
nano .bash_profile Code:
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startxfce4
fi
then you just have to remove your login manager : Code:
sudo apt-get remove gdm xdm kdm I used this page as guide: http://www.dicas-l.unicamp.br/dicas-l/20030129.shtml Last edited by peekpt; May 2nd, 2005 at 05:18 PM.. |
|
|
|
|
|
#2 |
|
Just Give Me the Beans!
![]() Join Date: May 2005
Beans: 68
Ubuntu 6.10 Edgy
|
Re: HOWTO: Autologin and Autostart XFCE (just pushing power button)
All I did was install Xfce with synaptic and then opened up the Login Screen Setup which can be found under Settings and clicked on Auto Login and selected a user.
|
|
|
|
|
|
#3 |
|
First Cup of Ubuntu
![]() Join Date: May 2005
Beans: 2
|
Re: HOWTO: Autologin and Autostart XFCE (just pushing power button)
abowman, I think you missread the title of his thread.
His howto is the *efficient way of loading xfce on a light system. The various, login managers, utilise memory in the background. Salut. |
|
|
|
|
|
#4 |
|
Ubuntu Extra Shot
![]() Join Date: Dec 2004
Location: Braga-Portugal
Beans: 332
|
Re: HOWTO: Autologin and Autostart XFCE (just pushing power button)
I'll try it... But if i screw my Ubuntu... I'LL KICK YOUR ***!!! (gently!)
Just kidding!
__________________
Linux user #383892 (\ /)
(O.o) (> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination. |
|
|
|
|
|
#5 | |
|
First Cup of Ubuntu
![]() Join Date: Apr 2005
Beans: 4
|
Re: HOWTO: Autologin and Autostart XFCE (just pushing power button)
Quote:
xfce rox... ![]() |
|
|
|
|
|
|
#6 | |
|
5 Cups of Ubuntu
![]() |
Re: HOWTO: Autologin and Autostart XFCE (just pushing power button)
Quote:
|
|
|
|
|
|
|
#7 |
|
Just Give Me the Beans!
![]() Join Date: Mar 2006
Location: Germany
Beans: 58
Ubuntu 7.10 Gutsy Gibbon
|
Re: HOWTO: Autologin and Autostart XFCE (just pushing power button)
Works even better when you uses "startx" instead of "startxfce4" in the ~/.bash_profile
Otherwise I got problems with font savings etc. Looks like this (compared with first post here): Code:
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi
|
|
|
|
|
|
#8 |
|
Just Give Me the Beans!
![]() Join Date: Aug 2005
Location: ON, Canada
Beans: 30
Kubuntu 7.10 Gutsy Gibbon
|
Re: HOWTO: Autologin and Autostart XFCE (just pushing power button)
This is a great idea! I have a few problems though. When I turn on the computer the autologin works and then xfce4 will begin to load. After a few milliseconds though it boots me out to the command line again and I have to type "sudo startx". Then everything runs as root. What did I do wrong?
Nevermind, I was wrong. It works now. Last edited by conor; March 21st, 2006 at 05:54 PM.. |
|
|
|
|
|
#9 |
|
Quad Shot of Ubuntu
![]() |
Re: HOWTO: Autologin and Autostart XFCE (just pushing power button)
If you are using a newer version of ubuntu you will need to
Code:
sudo apt-get install gcc-3.4 Code:
sudo gcc -o autologin autologin.c Code:
sudo gcc-3.4 -o autologin autologin.c
__________________
Regards, Haegin If all else fails curl up in bed with a good book. "<mc44> rob: every time you don’t read the topic, god kills a lolcat" |
|
|
|
|
|
#10 |
|
5 Cups of Ubuntu
![]() Join Date: Mar 2006
Beans: 18
|
Re: HOWTO: Autologin and Autostart XFCE without login managers
Wouldn't it also be possible to use something like sysv-rc-conf to remove gdm from the boot order and still use the method you described?
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|