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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Login and autorun of startx

Status
Not open for further replies.

SATMPOWER

Technical User
Jan 27, 2005
17
GR
Hi!
I am new here and in SCO!
I have a stand-alone PC running SCO Open Server!
I use following BOOT script

DEFBOOTSTR=hd(40)unix swap=hd(41) dump=hd(41) root=hd(42)
TIMEOUT=0
FSCKFIX=YES
PANICBOOT=NO
MAPKEY=YES
SERIAL8=NO
SLEEPTIME=0
BOOTMNT=RO
#
# To enable login as root in single user mode
#
MULTIUSER=YES
AUTOBOOT=YES

I use my PC to run only one application
After booting my PC the applications starts loading....and it prompts for login and password.
After I login as a specific user, I have to enter "startx" in order to load the application.
Any idea how can I automate this process?
 
Add the startx call at the end of your user's profile

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thank for your response!!!
To be honest with you I don't even know where to find the user profile and how to edit it, but I won't bother you explaining me that, I think I can find that!
BUT can I make my system automatically login as "that" user without prompting me for a pawwsord?
 
Probably only if you login as root and issue an su - <user> within the .profile. Not a very secure thing to do. BTW, your user's .profile is probably in their home ($HOME) directory. Note the . (period) in front of it.
 
without prompting me for a pawwsord
If the user has a password prompt you're in trouble for an automatic login as the password will be read from /dev/tty.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks to all of you I managed to disable the password nad autorun startx after I login!
There are two thinks more I want to ask you.
When I login as "user" I get a "TERM=scoansi" messageand and I have to press enter to proceed to the prompt. Can I skip this step?
How can I tell my system to login as "user" when I boot(as default)?
 
Find this line in the ".profile" script for your user ID (located in their $HOME directory) and either delete it, or disable with leading "#" character.

# eval `tset -m ansi:${TERM:-ansi} -m :\?${TERM:-ansi} -e -r -s -Q`

You'll have to make sure the TERM variable is correct through some other means, depending upon how you connect to this system. Easiest would be to simply set that variable in the same ".profile" file like this:

TERM=ansi;export TERM
 
I fixed it!!! I copied the eval line from a user that does not have the same problem and gets the command prompt without enter. I had to change the "-ansi" to "-scoansi" in some cases! Is there any problem with that? It looks to work fine!
LAST think I am trying to do is to make my system boot and login immediately at a specific "user" without login prompt.
The point is that i disable the password for that "user" and I gave a "startx" in his .profile so the application starts automatically!
Any ideas?
 
On the system console (/dev/tty01) ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Have you scologin enable ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Make a backup of your actual /etc/inittab
Have no user logged on /dev/tty02
From the command prompt on the console (/dev/tty01) as root:
disable tty02
edit /etc/inittab to have something like this for tty02:
[tt]coX:2:eek:ff:/bin/login username </dev/tty02 >/dev/tty02 2>&1 #/etc/getty tty02 sc_m
c02:34:eek:ff:/etc/getty tty02 sc_m[/tt]
enable tty02
init q

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks a lot!!!
I'll try this tonight as soos as go home.
I'll post results.
Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top