Skip to main content
Welcome guest. | Register | Login | Post

moving away from X

3 replies [Last post]
tbuitenh's picture
Joined: 2005-12-21

problem: I need multiple terminals and don't want to log in more than once
solution: use screen. it has a fine manual page Wink

problem: I want to continue working on exactly the same, eh, screen when I occasionally do need X
solution: my .xinitrc takes away the need to do a screen -x


# ~/.xinitrc
# Executed by startx (run your window manager from here)

# test for an existing bus daemon, just to be safe
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    # if not found, launch a new one
    eval `dbus-launch --sh-syntax --exit-with-session`
    echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"

# load xfce configuration

# start window manager, make things look good
evilwm -term Terminal &
xsetroot -solid '#000033'
xsetroot -cursor_name left_ptr

# attach to screen session (if there is none, it will disappear)
Terminal --geometry=128x48+62+46 -x screen -x &

# wait for terminal to start so clock is displayed over terminal
# hit ctrl-esc over the clock to log out :)
sleep 1
exec xclock -geometry -0+0

problem: I want to use my mouse to copy and paste while not using X
solution: use gpm

problem: gpm causes WEIRD stuff to be printed on my screen and makes a huge mess that can only be cleaned up by rebooting
solution part 1: If you had been using screen, it wouldn't be so extremely bad
solution part 2: gpm needs arguments appropriate for your mouse/mice. These work for me: -m /dev/input/mice -t ps2

problem: I want email with spam filtering and whatnot. I hate mutt.
solution: ehmmm.....

tbuitenh's picture
Joined: 2005-12-21

problem: I'd like a background image on the console
solution: you tell me...

free-zombie's picture
Joined: 2006-03-08

solution: bootsplash and friends

problem: so much to display, so little text space ?!
solution: use a larger framebuffer; for 1280x1024, appen vga=794 to your kernel boot options, for other resolutions see your kernel's vesafb documentation

problem: so I need to start X11 to browse the web ?
solution: links -g (or links2 -g) is really cool with a framebuffer

problem: xmms ?
solution: no, mp3blaster .

prolem: xine ?
solution: mplayer

tbuitenh's picture
Joined: 2005-12-21

problem: all screen windows get the same title
solution: edit your .bashrc
there will be something like PS1='[\u@\h \W]\$ '
replace it by PS1='\ek\e\\[\u@\h \W]\$ ' (or obvious equivalents)
screen will now recognize what commands you run and use those as window titles.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.