LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 11-04-2009, 07:35 AM   #1
u03pje
Member
 
Registered: Oct 2009
Location: Aberdeen
Distribution: RHEL
Posts: 36

Rep: Reputation: 15
Run Level 3 Log in


Is it possible to disable/remove the login at runlevel 3 and load straight to command line?
 
Old 11-04-2009, 07:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
yeah, you would look to change the process spawned on each tty as defined in /etc/inittab. Not sure what getty is used off hand, but I think mingetty, agetty etc can directly log you in. Alternatively you can (AFAIK) replace the getty process with a bash process etc.

Without knowing a hell of a lot more about WHY you're doing this, I can only suggest that this is an amazingly bad idea, but with context, maybe less do.
 
Old 11-04-2009, 09:04 AM   #3
u03pje
Member
 
Registered: Oct 2009
Location: Aberdeen
Distribution: RHEL
Posts: 36

Original Poster
Rep: Reputation: 15
In theory it does sound like a bad idea, however the intention is for RHEL to act solely as the OS, on top of which I will run an XP virtual desktop (using VM Player), which will be used for logging in and authenicating users
 
Old 11-04-2009, 10:04 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
OK, but in that case, why login at all? Why runlevel 3 if it's sole purpose is to run a VM program that is tethered to an X display to function?
 
Old 11-04-2009, 10:14 AM   #5
u03pje
Member
 
Registered: Oct 2009
Location: Aberdeen
Distribution: RHEL
Posts: 36

Original Poster
Rep: Reputation: 15
Are you suggesting running is in run level one then? If so, would i have to manually configure a connection to the network, or is this in face possible?

Last edited by u03pje; 11-04-2009 at 10:27 AM.
 
Old 11-04-2009, 11:01 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
No, i'm saying 5... you run vmware player, you need X running anway. Am I missing something?
 
Old 11-04-2009, 11:17 AM   #7
u03pje
Member
 
Registered: Oct 2009
Location: Aberdeen
Distribution: RHEL
Posts: 36

Original Poster
Rep: Reputation: 15
I'm pretty new to this game, so please bear with me Chris. The illusion I am trying to create is that the PC is running XP, when in fact it's a virtual desktop running via VM Player on a Linux OS.

Any authentication required will be through the virtual desktop, therefore no Linux authentication or login GUIs are required (or wanted).

When in run level 5, authentication is required, however this can be set to autologin in gdm.

I've been trying to see how I can load the virtual desktop without displaying the Linux desktop.

Do you know how I achieve this?

I appreciate and am very grateful for your time and input in this thread already.
 
Old 11-04-2009, 12:42 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,688
Blog Entries: 54

Rep: Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955
Quote:
Originally Posted by u03pje View Post
I've been trying to see how I can load the virtual desktop without displaying the Linux desktop.
In runlevel 5 (default) the default Display Manager (DM) or Chooser is run. This presents a login window at which the user can also select their preferred Desktop Environment (DE) to run. After logging in the DE is started which starts the Window Manager (WM). In short you could: install VMWare (if you run VMWare Server make it start on boot or runlevel change), then configure /etc/X11/prefdm, /etc/sysconfig/desktop to make X11/Xorg not start a default DM but VMWare instead.
 
Old 11-05-2009, 05:24 AM   #9
u03pje
Member
 
Registered: Oct 2009
Location: Aberdeen
Distribution: RHEL
Posts: 36

Original Poster
Rep: Reputation: 15
Hi unSpawn,

Thanks very much for your post, looks very interesting....

Within /etc/X11/prefdm, I can see where you can enter the path to VM Player instead of loading a DM.

/etc/sysconfig/desktop, the only text in that file at the moment is DESKTOP="", shoud there be more? Should DESKTOP be set to the path to VM Player?

/etc/X11/Xorg, what changes do I have to make to the existing file?

Many thanks again, I'm very grateful
 
Old 11-05-2009, 06:53 AM   #10
u03pje
Member
 
Registered: Oct 2009
Location: Aberdeen
Distribution: RHEL
Posts: 36

Original Poster
Rep: Reputation: 15
First attempt to edit the prefdm file has resulted in the Respawn error...is that due to fact that changes have to be made in the two other files?
 
Old 11-05-2009, 03:08 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,688
Blog Entries: 54

Rep: Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955
I'll post an example shortly.
 
Old 11-05-2009, 04:22 PM   #12
u03pje
Member
 
Registered: Oct 2009
Location: Aberdeen
Distribution: RHEL
Posts: 36

Original Poster
Rep: Reputation: 15
Excellent, thank you
 
Old 11-05-2009, 05:21 PM   #13
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,688
Blog Entries: 54

Rep: Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955
What I used to do (years ago) was start X without DM or DE and run an application fullscreen but I can't figure out how to do that now within the limits of available time. But apparently my VMware Server setup now throws "not configured" errors I can't bypass each time I start it from 'gdm'. Might be my particular setup but this makes I can't post good examples for VMWare. For now you could try and run it from 'gdm' this way (works with other applications): add a user account, lets call it "vmwareuser". Remove the password (don't do this with unprotected hosts and certainly not hosts connected to any network). In /etc/gdm/Xsession you see a reference to "$SWITCHDESKPATH/Xclients.$1" meaning you can drop a file in /usr/share/switchdesk/ called Xclients.vmware which 'gdm' then will run. The contents are the same as the other /usr/share/switchdesk/Xclients.* files (so copy one) except the WM variable and the "exec" line (with VMWare server be sure to make it read something like "vmware -l -q -X /path/to/VM/VM.vmx"). To be sure there's more files to edit like /etc/X11/gdm/Sessions/*, /etc/X11/xinit/Xsession, /etc/X11/xinit/Xclients to cover all possibilities but see if you can run this. Now in 'gdm' selecting the "vmware" session (might remove all other sessions later on when it works) with the "vmwareuser" should show VMWare.
 
Old 11-06-2009, 04:39 AM   #14
u03pje
Member
 
Registered: Oct 2009
Location: Aberdeen
Distribution: RHEL
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks unSpawn, will try this and report back to you.
 
Old 11-07-2009, 02:11 PM   #15
u03pje
Member
 
Registered: Oct 2009
Location: Aberdeen
Distribution: RHEL
Posts: 36

Original Poster
Rep: Reputation: 15
Not managed to try the suggestion just yet, check out the following link for exactly what I am trying to achieve

http://cyberdelia.de/2006/08/kiosk-s...th-vmware.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't switch to TTY or run level 3 from run level 5 reemfz Fedora 3 06-01-2009 09:06 AM
How to enter graphical mode (run level 5) command line (run lenel 3) edmondgyampoh Linux - Newbie 3 05-15-2009 07:33 PM
vsftpd and log files - can i up the log level to see login attempts? robr Linux - Newbie 3 04-04-2008 12:38 PM
set your default run level so you will boot to a default run level - vga console Adam555 Linux - Newbie 1 01-21-2008 05:55 PM
emacs in run level 3 then switch to X (level 7) then back to level 3 dsoliver Slackware 3 09-01-2006 04:31 AM


All times are GMT -5. The time now is 05:38 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration