View Full Version : [XFCE] autoboot xfce
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.
August 29th, 2009, 02:53
It seems kinda late..but I'll post it here incase anyone needs help with it. There are 3 files you need to edit:
3. Your shells' rc file, e.g: ~/.bashrc
Edit /etc/gettytab and search for autologin. Add these after the last entries:
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
Hope this helps.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.