LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-30-2004, 12:49 PM   #1
cain_eve
Member
 
Registered: Nov 2004
Posts: 93

Rep: Reputation: 15
how to choose session when I startx from text mode


Can anyone tell me how to choose the session when I startx from the text mode.
The default session if GNOME. Is there a way like

# startx -s kde

to choose the session I want to begin with.
Or there is a file in the /etc/X11 which I can modify something as the default.


Thanks very much!


cain
 
Old 12-30-2004, 01:00 PM   #2
Brain Drop
Member
 
Registered: Feb 2003
Location: just outside reality
Distribution: balanced
Posts: 752

Rep: Reputation: 35
You have in your home directory (or can make) a file ~/.xinitrc. To start kde put in a line that says startkde
just like that, nothing else needed, when you startx it will start kde. Now from here you can also google to find scripts that give you a choice when you startx, but I never have gotten around to this yet so I can't tell you anymore than that.

Last edited by Brain Drop; 12-30-2004 at 01:01 PM.
 
Old 12-30-2004, 02:45 PM   #3
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
Here's my ~/.xinitrc:

Code:
# xscreensaver-demo & 
# Turn NumLock on ( numlockx ) --------------- 
/usr/X11R6/bin/numlockx & 
# numlockx ----------------------------------- 
rxvt -geometry 108x44+0+0 & 
sleep 2  
rxvt -geometry 80x24+263+316 &  
# rxvt -geometry 108x44+0+0 &  
sleep 2  
/usr/local/bin/sylpheed & 
# /usr/bin/sylpheed &
sleep 2  
/usr/bin/opera &
exec icewm 
#exec startkde 
#exec gnome-session
As you can see I'm currently running IceWM.

The earlier command lines must end with "&" or the script will end at that command.

The window-manager command must be executed last.

When I want to change window-managers, I just comment the current line and uncomment the line for the WM I wish to use.

The sleep lines are just to ensure that the progs show up on my toolbar in the predicted order.
 
Old 12-30-2004, 03:17 PM   #4
cain_eve
Member
 
Registered: Nov 2004
Posts: 93

Original Poster
Rep: Reputation: 15
thanks a lot!
but it looks a little difficult for me
I will copy all the lines and try it
anyway thanks a lot

cain
 
  


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
How change text color using linux in text mode only runlevel 3? Xavius Linux - General 7 05-07-2009 02:19 AM
gui login failed despite users created. but Text mode + root + startx works OK Emmanuel_uk VectorLinux 2 11-21-2005 03:41 PM
How to; Suse9.3 prof. text mode to graphical mode anjum Linux - Software 5 07-20-2005 11:36 PM
how to choose session when boot from text mode cain_eve Linux - Software 3 03-08-2005 09:39 AM
Booting in text mode versus graphics mode LChalupa Linux - Newbie 3 01-15-2005 07:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:03 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
Open Source Consulting | Domain Registration