VectorLinux

The nuts and bolts => X-Rated => Topic started by: newt on September 19, 2007, 12:35:32 pm

Title: TUI: Creating new start<windowmanager> scripts?
Post by: newt on September 19, 2007, 12:35:32 pm
I prefer to login to the TUI when starting VL and from there I can start X and a windowmanager/de using the provided startx(fce4) options.

The questions are: after installing a new windowmanager (for instance windowmaker [wmaker]) how does one go about starting that windowmanager/de?  Possibly more important, how does one go about creating a simple start<wm/de> script for easy starting?

This thread (http://www.vectorlinux.com/forum2/index.php?topic=4312.0), along with my own experiences, are what have forced me to finally ask this question ;D.  What I've done in the past was to create an xinitrc.<wm/de> for each wm/de along with a start<wm/de> for each by simply copying the existing ones and renaming, but I've never felt that this was the proper way (not to mention that I wasn't sure what data was important/relevant to keep).  Hopefully this makes sense - I'd be happy to re-phrase if needed ;D

Locations are:
xinitrc: /etc/X11/xinit (used xinitrc.xfce as template)
startx: /usr/bin (used startxfce4 as template)

Cheers!
Title: Re: TUI: Creating new start<windowmanager> scripts?
Post by: saulgoode on September 19, 2007, 01:55:10 pm
There's nothing wrong with specifying your window manager in ~/.xinitrc and manually invoking 'startx', I have been doing this for years.

I would mention that if you wish to permit remote graphical logins (a la thin-client xservers) then you should use a display manager (i.e., KDM, GDM, or XDM) -- but for a standalone desktop system one can usually forgo the functionality provided by display managers.

EDIT: As far as what data is important/relevant to keep, my current .xinitrc contains only:

#!/bin/sh
/usr/local/bin/uwm

Title: Re: TUI: Creating new start<windowmanager> scripts?
Post by: newt on September 20, 2007, 09:19:22 am
There's nothing wrong with specifying your window manager in ~/.xinitrc and manually invoking 'startx', I have been doing this for years.

Thanks for you help.  Maybe you can answer another question.  From what you say it sounds as though it may be possible to list multiple WMs in my ~/.xinitrc file and manually invoke 'startx' for the desired WM.

Example)
~/.xinitrc could contain:
#!/bin/sh
/usr/local/bin/uwm
/usr/local/bin/wmaker
/usr/local/bin/fluxbox

And I could start any by startx-ing the specific WM:
startx uwm (would start uwm)
or
startx wmaker (would start windowmaker)
or
startx fluxbox (would start fluxbox)

Could it be that simple?  Or have I oversimplified the matter? ???

Thanks again!
Title: Re: TUI: Creating new start<windowmanager> scripts?
Post by: Pita on September 20, 2007, 09:05:46 pm
[
There's nothing wrong with specifying your window manager in ~/.xinitrc and manually invoking 'startx', I have been doing this for years.

Thanks for you help.  Maybe you can answer another question.  From what you say it sounds as though it may be possible to list multiple WMs in my ~/.xinitrc file and manually invoke 'startx' for the desired WM.

Example)
~/.xinitrc could contain:
#!/bin/sh
/usr/local/bin/uwm
/usr/local/bin/wmaker
/usr/local/bin/fluxbox

And I could start any by startx-ing the specific WM:
startx uwm (would start uwm)
or
startx wmaker (would start windowmaker)
or
startx fluxbox (would start fluxbox)

Could it be that simple?  Or have I oversimplified the matter? ???

Thanks again!
[/quote]

Yes it is that simple at least in my VL box.