Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with auto login

Status
Not open for further replies.

shall6645

Technical User
Jan 7, 2004
11
US
I want to install text based linux on a machine that will auto logon to a user that I create and run a specified program.

What I am trying to do is reuse older machines as dummy terminals to connect to a Citrix Metaframe server to run a Citrix desktop. I want linux to boot directly into my created user and run the ICA Client. I'm just not sure how to do it.

Thanks for any help
Steve
 
I don't know wheter some distro will give you an option to install text-based services only.

After an installation, you edit /etc/inittab
Normally an entry

id:5:initdefault

is produced by distros, which boot into a graphical login,
and

id:4:initdefault

is used for multiuser + networking.
Since you need networking, this is your runlevel of choice.
Note that some distros interpret runlevels differently, but most mention in coments in the inittab, which level is used for what purpose.

later in inittab, I have a section:
Code:
# Console logins using agetty.
c1:12345:respawn:/sbin/getty 38400 tty1 linux
c2:12345:respawn:/sbin/getty 38400 tty2 linux
c3:12345:respawn:/sbin/getty 38400 tty3 linux
c4:12345:respawn:/sbin/getty 38400 tty4 linux
c5:12345:respawn:/sbin/getty 38400 tty5 linux
c6:12345:respawn:/sbin/getty 38400 tty6 linux
#which is:
#cx        an unique identifier
#12345     runlevels in which to run
#respawn   restart on exit
#/sbin/getty ...    program to run and parameters.
#
# if you change it to:
c1:4:respawn:/bin/bash >/dev/tty1 2>&1 </dev/tty1
c2:12345:respawn:/sbin/getty 38400 tty2 linux
You would have a normal login for root to do admin-tasks,
and /bin/bash as login-shell (without login, I guess) on console 1.

Perhaps you may specify a script to run:
c1:4:respawn:/bin/bash sh myIcaClient.sh
or you start it in /etc/rc4.d/S99icaClient

I don't know how to specify a special user, and I didn't test it. So be careful :)

seeking a job as java-programmer in Berlin:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top