LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-05-2004, 11:41 AM   #1
nub47
LQ Newbie
 
Registered: Aug 2003
Posts: 18

Rep: Reputation: 0
WMs from the console


How would i start different WMs from the console. An example would be, typeing 'startkde' would start both XFree86 and KDE. By default on my machine, KDE starts when i run 'startx'. I just removed gdm for other reasons, so how would i change the default WM for startx. Or, what commands can i use to start different WMs, such as:
Gnome
Blackbox
IceWM
while in console. Thank you in advance
 
Old 01-05-2004, 12:05 PM   #2
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
startx should read your ~/.xinitrc for what commands to use if you have one. The only one of the commands that I know that you'll want would be "exec gnome-session" for GNOME (at least, it was way back in the 1.x days ...). Just put that line (by itself) in your ~/.xinitrc and startx should read that and start GNOME.

By the way, why did you remove GDM? I used to be anti-login manager, but I've since been swayed
 
Old 01-05-2004, 12:10 PM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Like Strike said

The basic format is
exec binaryname_of_windowmanager

For example
exec blackbox
exec icewm
 
Old 01-05-2004, 12:11 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
You could either alais commands in your .bashrc, or create a .xinitrc file.
Code:
# Celeron 850 tinwhistle .bashrc file for user fancy
# User specific aliases and functions

# Change bash prompt. See the article:
# http://www-106.ibm.com/developerwork.../l-tip-prompt/
export PS1='\d \@ \[\e[32;1m\]\u\[\e[34;1m\]@\[\e[36;1m\]\H \[\e[34;1m\]\w\[\e[32;1m\] $ \[\e[0m\]'
# For the root account use this
# export PS1='\d \@ \[\e[31;1m\]\u\[\e[34;1m\]@\[\e[36;1m\]\H \[\e[34;1m\]\w\[\e[31;1m\] # \[\e[0m\]'

# Set paths
alias path='echo -e ${PATH//:/\\n}'

# Allow local users to use my X session
# xhost +local:

# Dialup, start fetchmail daemon and startx
alias x='/sbin/ifup ppp0;fetchmail -d 300;startx'

# Alter the ls command
alias ls='ls -ac'
alias lls='ls -lac'

# Become system administrator
alias god='su -'

# Connect/disconnect the internet by modem
alias dial='/sbin/ifup ppp0'
alias hangup='/sbin/ifdown ppp0'

# Launch links with my linux links page
alias links='links /home/fancy/bookmarks.html'

# Power down/reboot
alias off='shutdown -h now'
alias boot='shutdown -r now'

# For nano editor because I forget which one I use in which distro
alias pico='nano -w'
alias nano='nano -w'

# for launching window manager/desktop environments from console login
alias a='echo DESKTOP=AfterStep > ~/.desktop;startx'
alias ice='echo DESKTOP=icewm > ~/.desktop;startx'
alias kde='echo DESKTOP=KDE3 > ~/.desktop;startx'
alias wm='echo DESKTOP=WindowMaker > ~/.desktop;startx'
alias sf='echo DESKTOP=Sawfish > ~/.desktop;startx'
alias g='echo DESKTOP=Gnome > ~/.desktop;startx'
alias xf='echo DESKTOP=XFce > ~/.desktop;startx'
alias bb='echo DESKTOP=BlackBox > ~/.desktop;startx'
alias fb='echo DESKTOP=FluxBox > ~/.desktop;startx'
alias e='echo DESKTOP=Enlightenment > ~/.desktop;startx'

# Script needs to be on the bottom of the file or RH updates will fsck it up
# Source global definitions
if [ -f /etc/bashrc ]; then
       	. /etc/bashrc
fi
Code:
# Celeron 850 box "tinwhistle" user fancy .xinitrc file
# Start the stuff I want to run when I startx

# The artwiz-fonts sometimes conflict with your locale settings. To get
# them to work you may have to put the following at the beginning of your
# .xinitrc file
# export LC=C
# export LC_ALL=C

# Set the background for fluxbox
# Esetroot ~/backgrounds/linux.png &

# Start gkrellm and put it in the slit
gkrellm -w &

# This will run a screensaver as your background
# /usr/X11R6/lib/xscreensaver/hopalong -root &

# Start the screensaver daemon
# xscreensaver &

# Finally, I start my window manager
exec fluxbox
# exec kde
# exec gnome-session

Last edited by fancypiper; 01-05-2004 at 12:13 PM.
 
  


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
Using Multiple WMs ncf Slackware 4 11-03-2005 11:00 PM
having two WMs open? DJOtaku Linux - General 6 08-16-2005 05:30 PM
Lots of WMs khsater Linux - Distributions 3 03-26-2005 11:12 PM
WMs from the console nub47 Linux - Newbie 2 01-05-2004 05:00 PM
DEs and WMs KptnKrill Linux - General 3 06-22-2003 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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