View Full Version : autologin and auto run X server
gulanito
September 4th, 2009, 01:11
Hi.
I use freebsd as a desktop computer, so I want that when freebsd boots up, automatically login as user and run the X server.
What can I do that?
Thanks!
SirDice
September 4th, 2009, 07:58
Both GDM and KDM can be configured this way.
For GDM:
http://www.freebsd.org/gnome/docs/faq2.html#q23
Xand_69
October 2nd, 2009, 17:58
Hi.
I use freebsd as a desktop computer, so I want that when freebsd boots up, automatically login as user and run the X server.
What can I do that?
Thanks!
user - HouseMD
autologin to ttyv1
shell - csh
1. insert /etc/gettytab
al_HouseMD:\
:ht:np:sp#115200:al_HouseMD:
2. edit /etc/ttys
ttyv1 "/usr/libexec/getty al_HouseMD" cons25r on secure
3 cd /home/HouseMD
insert .csh
if ($tty == ttyv1) then
startx
logout
endif
4. shutdown -r now
5. enjoy :)
segfault
July 22nd, 2012, 03:41
THis did not work for me (FreeBSD 9.0) and rendered my system unusable.
Did I do something wrong or was this a just sabotage?
wblock@
July 22nd, 2012, 04:15
It is kind of an old thread. Some things have changed in the last three years. Here's my updated autologin setup: http://forums.freebsd.org/showpost.php?p=125992&postcount=6.
kpedersen
July 23rd, 2012, 00:02
I usually just create and add to /etc/rc.local
su -l myusername -c /usr/local/bin/startx &
On some installs it seems to lock up keyboard input (I think the getty / login takes input focus) so I also replace the startx with a script that sleeps for about 5 seconds and then starts X11.
Remember to add the '&' or it may prevent other services from starting.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.