LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 01-19-2003, 05:10 PM   #1
bryand
LQ Newbie
 
Registered: Jan 2003
Posts: 6

Rep: Reputation: 0
Question How do I start Xwindows from console?


I just recently installed Mandrake... but a friend helping me set it up (who turned out to know less than me) disabled Mandrake from automatically loading XWINDOWS. When I turn on my computer, it goes straight to the LOGIN prompt, but once I log in, it leaves me at a console prompt. I know where the option for automatically loading XWINDOWS is in Mandrake if I can only get back into the GUI. Anybody know what I should do?
 
Old 01-19-2003, 05:14 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
startx

login and then type
startx

Cool
 
Old 01-19-2003, 08:32 PM   #3
jdc2048
Member
 
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
You may also need to create a ".xinitrc" file that has the window manager you wish to run in it. i.e. "gnome-session" or "startkde".
 
Old 01-19-2003, 08:41 PM   #4
bryand
LQ Newbie
 
Registered: Jan 2003
Posts: 6

Original Poster
Rep: Reputation: 0
.XINITRC

And how do I create that file??

.xinitrc?
 
Old 01-19-2003, 08:46 PM   #5
jdc2048
Member
 
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
at the console, type "
Code:
vi .xinitrc
Then type "i" to get into insert mode, then type in the word "gnome-session". Next hit the escape button, then type to capital Z's (i.e. <Shift>+Z+Z). This should save the file and drop you out to the console again. If not, hit escape, then type ":wq", then hit enter.

next you would run the startx as Master LQ stated.

or for a one liner that would do it all, just use the following.
Code:
echo "gnome-session" > .xinitrc
startx

Last edited by jdc2048; 01-19-2003 at 08:48 PM.
 
Old 01-19-2003, 08:50 PM   #6
jdc2048
Member
 
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
Someone correct me if I am wrong, it is "gnome-session" isn't it? I use RedHat here.
 
Old 01-19-2003, 10:51 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Nah, it's "fluxbox" Just kidding of course Yes, I do believe you are correct withe the gnome-session

Cool
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I launch Xwindows on Redhat 9 console emcy43 Linux - Newbie 3 04-01-2005 05:43 AM
xwindows mais console texte andre06 Linux - Software 3 03-23-2005 02:37 AM
Xwindows won't start samiam Linux - Newbie 9 11-14-2004 11:05 AM
XWindows won't start !! netkepala Linux - Networking 5 08-31-2003 04:01 AM
start xwindows lakshman Linux - General 3 10-15-2002 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:11 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