Linux - NewbieThis 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
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.
hi all,
I am using RHEL4 and using GNOME as the desktop env.
I have read some documentation and since I start up into runlevel 5 by default, I believe that I am usin the gdm display manager.
But I tried to explore the various files in my home dir and in the /etc/X11 dir, and got a bit confused !
It all started when I wanted to install and tryout a new window manager.
I understand that I need to do a exec /usr/bin/myWinMan, but there are too many of these exec statements in the shell scripts and all in different files. Seems like in my case gdm is calling xdm and then it checking and starts up the env.
How can I make some sense of all this ? can someone just provide a bit of guidance , I should be able to figure it out thereafter , maybe !
thanks in advance
nishith
1. Start a terminal (Either tty or VT, doesn't really matter) and run 'xinit -- :1'
That will launch a X-server, with a shell. This is known as a failsafe. The parameter "-- :1" is used to start a new session on a different window (Alt+f8, or ctrl+alt+f8 from another X). You will need this, since you most likely have a running server on :0. You can use this on many windows, xinit -- :2, xinit -- :3, and so on.
2. Start your desired wm/de with exec, i.e. exec fluxbox
3. Work
Hi Dinithion,
thanks for ur reply.
I tried using VT (CTRL+ALT+F1), then logged in as root and issued the command xinit --:1, even tried :2 but it said : Fatal Server Error
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0_lock and start again.
Firstly, the server is running so I shouldnot remove any lock file and then I donot understand this .... can I not start two instances of the x server ?
You're right: only one virtual terminal can run X-window. In Fedora (so presumably Red Hat too) it's 7.
Once you've installed a new desktop, like KDE, you can select it from the graphical log-in screen by clicking on Session. You can't (as far as I know) move from one GUI into another without logging out.
Notice that there is a space between -- and :1
Try that. It should work. I've never experienced a restriction in X-servers so far. I have used 3-4 at the same time, and never had any problems
Hi Dinithion,
I am using Redhat , what is your distro ?
If what David said is right then probably that's the end of it.
Anyway can anyone tell me once I choose the session , say GNOME from the login screen , what are the steps in which X starts up, I mean what are the config files it looks up and in what sequence ( remember the init sequence in linux and the rc scripts)
Distribution: Ubuntu 16.04.7 LTS, Kali, MX Linux with i3WM
Posts: 299
Rep:
Quote:
Originally Posted by nkd
It all started when I wanted to install and tryout a new window manager.
I understand that I need to do a exec /usr/bin/myWinMan, but there are too many of these exec statements in the shell scripts and all in different files. Seems like in my case gdm is calling xdm and then it checking and starts up the env.
How can I make some sense of all this ? can someone just provide a bit of guidance , I should be able to figure it out thereafter , maybe !
thanks in advance
nishith
I was running RH 9.0 a while back with Gnome or KDE as the windows managers. I downloaded the source files compiled and ran Fluxbox. If I can recall correctly I had to mess about with the Xsession file and several other files in the /etc/X11 directory / subdirectories in order to show the Fluxbox option in the display manager and then to actually run the said window manager if the option was chosen.
Unfortunately I stopped using RH at 9.0 so do not know if the XDM, KDM. GDM managers are still used at GUI login or if the Xsession file still exist in the Fedora / RHEL releases.
Your ~/.xinitrc file should give you an idea of what software starts when you login into X as well as what window manager will be used.
hi uncle-c
yeah there are no .Xsession files in the /etc/X11 dir I created a simple one
in my home dir using vi and added one line
exec path/to/winmanagerexecutable
This is not working ?!?!
I donot see it in the desktop switching tool window under preferences in RH.
Could you suggest something else ?
thanks
nishith
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.