LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2006, 08:36 AM   #1
Firewielder
LQ Newbie
 
Registered: Feb 2004
Location: Temple, Texas
Distribution: Fedora 4
Posts: 8

Rep: Reputation: 0
Start X automatically when user logs in?


I am running Fedora 4, using a very minimal install, with FVWM as my window manager. I would like to eliminate gdm (gnome desktop manager) from my system and simply have have FVWM (and consequently, X) start every time I log in as a certain user. How can I accomplish this?
 
Old 01-21-2006, 08:50 AM   #2
vaporizel
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware 10.0
Posts: 23

Rep: Reputation: 0
1. Go to console.
2. type "pico /etc/inittab" (if you have vi then replace pico -> vi)
3. Look the default runlevel in configuration, look the runlevel with meaning "X11 with xdm" or like it.
E.G (in that case, you must use 4):

# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot

3. replace default runlevel ("commented with #") with 4 (using as top before)
id:4:initdefault:

4. save you configuration

5. restart your computer.

Maybe this will help you.

Last edited by vaporizel; 01-21-2006 at 08:52 AM.
 
Old 01-21-2006, 08:57 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
how do you intend to log in without gdm?? if you mean a console login then gdm isn't used anyway, so is already got rid of. do you simply mean you want a user who logs in under a console to run startx automatically? i'd say run "tty" and if the response starts with "/dev/tty" then you know you're in a console, so start X if possible. so in that users .bashrc add:
Code:
[ $(tty | grep /dev/tty) ] && startx
 
Old 01-21-2006, 09:12 AM   #4
Firewielder
LQ Newbie
 
Registered: Feb 2004
Location: Temple, Texas
Distribution: Fedora 4
Posts: 8

Original Poster
Rep: Reputation: 0
Right, I want to be able to login from a console, without having any gdm/kdm/xdm/*dm, and have x and fvwm start when I log in as a certain user.
 
Old 01-21-2006, 10:00 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
try my solution then, should do the trick.
 
  


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
I want to automatically run a program when a user logs on their account bad_andy Linux - Newbie 7 02-01-2005 08:55 PM
Start applications automatically on an unprivileged user? DeathGoth Linux - General 3 10-27-2004 04:29 AM
how to get citrix automatically started up when a user logs in. sjel Linux - Newbie 2 09-06-2004 08:40 AM
Getting vncserver to run automatically when user logs in indespair Linux - Networking 2 10-26-2003 02:37 AM
Getting a program to start with root privileges when a user logs in. joeking Linux - Security 4 10-24-2003 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:54 AM.

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