View Full Version : [XFCE] autoboot xfce
DemoDoG
July 14th, 2009, 10:45
Could you recommend a way the get FreeBSD autologin to a user account at boot and then start X using .xinitrc?
I would like to boot right into xfce4 without using xdm or slim.
ripcurl
August 29th, 2009, 02:53
Hi there,
It seems kinda late..but I'll post it here incase anyone needs help with it. There are 3 files you need to edit:
1. /etc/gettytab
2. /etc/ttys
3. Your shells' rc file, e.g: ~/.bashrc
Edit /etc/gettytab and search for autologin. Add these after the last entries:
logmein:\
:al=your_username:sp#115200:
Replace 'your_username' with your user login.
Next edit /etc/ttys. I set mine to autologin on ttyv5. So my entry looks like this:
#ttyv5 "/usr/libexec/getty Pc" cons25 on secure
ttyv5 "/usr/libexec/getty logmein" cons25 on secure
Lastly, I'm using bash shell so this is what I have in my ~/.bashrc:
if [ `/usr/bin/tty` = '/dev/ttyv5' ]; then
/usr/bin/ssh-agent /usr/local/bin/startx -- -nolisten tcp
fi
Hope this helps.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.