Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
its probably not in your path, there are examples for all of the normal WMs prebuilt for you into believe it or not, X... Try copying the example over the .xinitrc:
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
Well, yes and no. If your initdefault is runlevel 3, the preferred way to start the X server is to type startx when you are logged in as a non-root user. startx is a shell-script that calls the xinit binary with the appropriate options and that in turn forks the X server and your client apps as read from ~/.xinitrc if one exists.
When your initdefault is 5 or when you telinit(init behaves like telinit when you switch runlevels) to runlevel 5, an xdm server or equivalent ( gdm is default with RH ) gets started it and goes a different route that reads the ~/.xsession instead of ~/.xinitrc. The way I have both runlevels behave the same is by making .xsession a symlink that points to .xinitrc . This works like a champ if you're using xdm, but again you are using GDM and I had to tweak something in the GDM config to read my .xsession . Or I created some file that gdm looks for. I dont remember what.
That was about a year ago and I wiped it to install RH 8.0 so I cant go check. And I havent done it with 8.0 because I dont reboot at all and it wasnt worth the trouble. Let us know if you can get it going.
Inorder to use init you have to login as root right? And then login as someone else when the display manager starts up, is that correct?
You're using X as root? That's very bad... unless its handing off to xdm or kdm and then you're logging in as a user from there. I think startx will bypass that, I've never used a display manager...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.