Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
That works if you use the console login and startx (my recommended method).
Of course, if you use a gui login, you have to use it's config file rather then .xinitrc. That file should be <dot x something> in your user home directory.
In that case, to get where you want to go, you will either have to find the file that your gui login manager (probably gdm) uses and edit that file, or switch to console login and customize your .xinitrc file.
Code:
# Duron 950 box "uilleann" 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
# 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; 08-31-2003 at 10:43 AM.
You may have to when you run something besides gnome/kde as most lightweight stuff requres some hand configuration. Have you explored any documentation on that WM?
As you see, I prefer fluxbox and I am familiar with some of it's features, but I had to read a lot...
Last edited by fancypiper; 08-31-2003 at 11:08 AM.
gdm uses /etc/gdm/Sessions to work out what window managers to show (if you are using GDM). As far as i know you have to use this, not a file in the home directory (yep, just checked at GDM site) You need to do two things. Add an entry to Xsession to run your window manager, then make a new file in Sessions to add an entry to the GDM menu.
I: go down to the bit in Xsession that looks something like this:
enlightenment)
exec enlightenment
;;
twm)
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
xterm -geometry 80x66+0+0 -name login &
xsetroot -solid SteelBlue
exec twm
;;
openbox)
exec openbox
;;
waimea)
exec waimea
and put under your last entry :
amiwm)
exec amiwm
;;
(this assumes the command for AmiWM is amiwm, if it isn't, just change the word after exec.)
II:
Put this in a file called AmiWM or what ever you want the menu entry to look like:
#!/bin/bash -login
/etc/gdm/Sessions/Xsession amiwm
You can add other stuff in here too, if you want it to run when the WM runs, just don't forget to tell them to run in the background by putting & after each command. If that sounds confusing, here's my Waimea file for reference.
Now, with any luck that's all. Just restart GDM (either by doing 'skill gdm-binary', then 'gdm' or 'init 3' then 'init 5') and hopefully you'll now have the option in GDM to boot in to amiwm.
EDIT: damn, THREE whole posts while i type? That has to be a record. Hope this isn't redundant now.
Last edited by BigBadPenguin; 08-31-2003 at 11:29 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.