Project using Freesbie (autologin on FreeBSD using gettytab)

Dario Freni saturnero at freesbie.org
Thu Jun 1 11:29:41 CEST 2006


Dominique Goncalves ha scritto:
> Hi,
> 
> On 6/1/06, Henri-Pierre Charles <hpcharles at gmail.com> wrote:
>> Hello, just for information, I have started a project in my university
>> "Bureau portable", based on Freesbie2 and FreeBSD6.1. The goal is to
>> give an iso containing all the software usefull for the students.
>>
>> http://libre.uvsq.fr/index.php/projet-bureau-portable/
>> (in french only)
>>
>> It works actually pretty good. Actually the user has to login with
>> "root" in order to lauch xfce4. Is it possible to lauch it directly,
>> without using a login ?
> 
> You can use this example of using gdm and pam to autologin a specific user
> http://www.freebsd.org/gnome/docs/faq2.html#q23
> 
> If there is an another way to autologin a user without using gdm I'm
> interested ! :-)
> 
> HTH.

Geeky way:

Open /etc/gettytab and add the following rows at the bottom:

freesbie:\
	:al=freesbie:ht:np:sp#115200:

Assuming 'freesbie' is the user you want to login. Then edit /etc/ttys,
find the ttyv0 line and substitute "Pc" with "freesbie" or whatever
label you putted in gettytab.

ttyv0	"/usr/libexec/getty freesbie"	cons25	on	secure

Then kill -HUP 1 to make changes effective. To make X autostart, I
modified my .cshrc, you can do the same depending on your chosen shell.
I added a row:

[ "$?DISPLAY" = "0"] && [ "$?SSH_CLIENT" = "0" ] && startx

Bye,
Dario

-- 
Dario Freni (saturnero at freesbie.org)
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: OpenPGP digital signature
Url : http://mailman.gufi.org/pipermail/freesbie/attachments/20060601/0c7209cf/signature.bin


More information about the FreeSBIE mailing list