LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2004, 10:55 PM   #1
th3_d0c
Member
 
Registered: Nov 2003
Location: New Hampshire
Distribution: Slack 9.2
Posts: 39

Rep: Reputation: 15
Starting X and a little VNC


No, no, not just startx..
And not starting into X with Runlevel 5.

But how do you autologin a user, and than start X *automatically?
Basically i just want one X screen, while my other tty# screens will be login prompts.

I tried fooling around with the inittab by editing the first tty1, but to no avail..

I am doing this because I want my mythfrontend to start on bootup. But,
one, it needs X
two, I dont want it to load with root anymore. (going back to school, no need to have anyone fooling around wiht stuff they shouldnt).

I can get mythfrontend to load when I type "startx" that is easy.
And I am running Slack 10.0




VNC:
And with VNC when you put it in the rc.local to load a server on startup. What are you supposed to do to have it load a non-root user?
I have:
su -c -l "vncserver :1"
I have tried su -c USER -l "
su -l vncserver :3 -name USER-depth 16 -geometry 1024x768

But those dont work

Thanks in advance!!

Last edited by th3_d0c; 08-18-2004 at 10:59 PM.
 
Old 08-18-2004, 11:50 PM   #2
th3_d0c
Member
 
Registered: Nov 2003
Location: New Hampshire
Distribution: Slack 9.2
Posts: 39

Original Poster
Rep: Reputation: 15
well did the first part. Just relized how unsafe this is, but ohwell.. lol


I followed this page(incase someone else needs help):
http://www.linuxgazette.com/issue72/chung.html

creating the script autologin.c:
int main() {
execlp( "login", "login", "-f", "USER", 0);
}

$ gcc -o autologin autologin.c

# cp autologin /usr/local/sbin/


than edited inittab with:
c1:1235:respawn:/sbin/agetty -n -l /usr/local/sbin/autologin 38400 tty1

I also had to mess with /etc/login.defs and allow tty1 to let non-root users log in without passwords:

from: NO_PASSWORD_CONSOLE tty1:tty2:tty3:tty4....
to: NO_PASSWORD_CONSOLE tty1


than i had to create .bash_profile in that users ~ dir and have it say
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi

Still need a little help with the VNC part though..

Last edited by th3_d0c; 08-18-2004 at 11:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
starting up vnc in mandrake nanjil Linux - Newbie 1 07-10-2005 09:32 AM
Starting VNC from Startup Ruler2112 Slackware 6 05-03-2005 03:40 PM
starting x in vnc maybbach Linux - Software 1 04-25-2005 08:56 PM
Help starting VNC service hongman Linux - Software 2 02-21-2005 03:58 PM
starting KDE with VNC nadine.mauch Linux - Software 1 08-29-2003 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration