Click to See Complete Forum and Search --> : how to add session options


BrokenUSMC2003
02-29-2004, 10:54 PM
I downloaded Enlightenment and would like to put it on my machine (a laptop) because I hear that E-AcpiPower is good. How do I go about setting it up?

glasdave
02-29-2004, 11:04 PM
I would use ark to view the file, look for the readme, and follow the instructions there. Or, go to the Enlightenment site and check the how to's there.

serz
02-29-2004, 11:29 PM
Read its documentation first.

BrokenUSMC2003
02-29-2004, 11:49 PM
The read-me's are all about purism in making mods, and I couldn't find anything on the site about actually putting it on. I did see some other forums discussing the modification of /etc/X11/gdm/Sessions, but I really don't know what I'm doing there. Sorry I can't be more specific, but I only have a couple weeks of experience on Linux.

asklepios
03-01-2004, 05:24 AM
which distro are you using?
can't you use .xinitrc file?
anyways i saved this in the times when i used to work on Mandrake.
not sure whether it will work with newer versions of Mandrake or your distro for that matter.
Open a terminal as root.
$ cd /etc/X11/gdm/Sessions

You will see several other scripts for other wms
there. Look at them.. pretty self-explanatory.

Create a script in /etc/X11/gdm/Sessions with your favorite editor and call it "fluxbox". It should contain the following:

#!/bin/sh
exec /usr/local/bin/fluxbox

Save the script and then make it executable with:

$ chmod a+x fluxbox

Then:

$ cd /etc/X11/wmsession.d

This directory contains OTHER startup scripts, I believe for Xsession. You will find scripts in there that begin with a two digit number like "02GNOME" or "07IceWM". Create another script in this directory called fluxbox that BEGINS with a two digit number NOT already in use, for example "08fluxbox". This script should contain:

NAME=fluxbox
ICON=fluxbox.png
EXEC=/usr/X11R6/bin/startfluxbox
DESC=A Light and nice looking window manager
SCRIPT:
exec /usr/X11R6/bin/startfluxbox

Save it. This script does NOT need to be executable.

Next switch to /usr/X11R6/bin and create a third
script called "startfluxbox". It should contain:

exec /usr/local/bin/fluxbox

This script MUST be made executable with:

$ chmod a+x startfluxbox


Next, while still in su/root, do the next two
commands:

$ fndSession

and

$ chksession -l

BrokenUSMC2003
03-01-2004, 03:09 PM
I'm pretty sure I found the file I need to link to, but when I try to add a session in vi, it says that modifiable is off. Its running as root already... what should I do?

asklepios
03-01-2004, 03:54 PM
does chmod +w <file name> help?

BrokenUSMC2003
03-01-2004, 04:30 PM
chmod +w /etc/X11/gdm/Sessions didn't allow me to add. I am able to edit the command for both GNOME and KDE. The name wouldn't be right, but if set as default I wouldn't have to remember. Would that mess things up?

Hayl
03-01-2004, 05:32 PM
copy the Gnome or KDE one to a new name and then eid tit.
i.e

cp gnome enlightenment
vi enlightenment

BrokenUSMC2003
03-01-2004, 07:27 PM
I found a posting with a problem similar to mine with a solution, found here: http://www.linuxquestions.org/questions/archive/2/2002/11/4/36194 The only problem is I can't find the .xinitrc file they keep talking about...

Hayl
03-01-2004, 08:23 PM
it's in your home directory - if it doesn't exist you need to create it.

PS ~/.xinitrc does nothing with GDM. if you are using GDM as your login manager, then you have to create a session file in /etc/X11/Sessions as was already discussed. (/etc/X11/gdm/Sessions is just a symlink back to /etc/X11/Sessions)

BrokenUSMC2003
03-01-2004, 09:11 PM
I found an install script buried in the program and ran it. It was definately a welcome thing, and it even set Enlightenment to default. However, there seems to be a video issue... I am using an Inspiron 1100 with a intel 845 graphics driver. I got the patch for it, and video works fine otherwise. Is there anything I can do?