raspjuan
Posts: 36
Joined: Wed May 29, 2013 2:53 am

why there is no xsession file at /home/pi folder

Sun Dec 07, 2014 8:01 pm

I installed the raspbian on my RPi, I am planning to install fluxbox as windows manager on raspbian.

I was trying to follow this link to edit the xsession file to start fluxbox, however I could not find xsession file:
http://www.raspberrypi.org/forums/viewt ... =50&t=7016
I'm assuming it's in Debian's ARM repos, if it's not you might need to compile it.
After that, edit the ".xsession" file in your home folder (/root if you're logged in as root (which isn't a good idea usually) or /home/<username> otherwise). You might need to create it if it dosen't exist. Make a copy of it if it does exist, so you can switch back to LXDE easily. If the text "lxde-session" appears in the file, replace it with "fluxbox". Otherwise, add "fluxbox" to the end of the file.
After that, just start up X as usual, it should start up in Fluxbox.
please tell me where to find the xsession file. thanks

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: why there is no xsession file at /home/pi folder

Sun Dec 07, 2014 8:11 pm

Files with a dot at the start are generally not shown. If you want to show them in a terminal window / console you need to use 'ls -a' to show all files.

But it also states 'create it if it doesn't exist'.
So, just create one...

Make sure you add the the '.' (dot) at the start of the name:

Code: Select all

.xsession
Gr.
Dirk.

raspjuan
Posts: 36
Joined: Wed May 29, 2013 2:53 am

Re: why there is no xsession file at /home/pi folder

Sun Dec 07, 2014 8:16 pm

thanks, Gr. Dirk. for the quick response.

I used ls -al command to display all the files and folders. however there is no .xsession file under pi folder.
however, there is a .xsession-errors file.

I am just curious to know why there is no .xession file in my raspbian, as you know raspbian has a windows manager come with it.

If I need to make a .xsession file by nano command, may you show me what I should write on that file?

thanks

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: why there is no xsession file at /home/pi folder

Sun Dec 07, 2014 10:56 pm

raspjuan wrote:I used ls -al command to display all the files and folders. however there is no .xsession file under pi folder.
however, there is a .xsession-errors file.

On the Pi where I have used X there's no .xsession either; works fine though.
Had a quick look around and it probably depends on the window manager. Some use it, some don't.
If I need to make a .xsession file by nano command, may you show me what I should write on that file?
When your in the home directory just enter

Code: Select all

nano .xsession
According to the instruction you link to you just have to add the text 'fluxbox' (without the quotes). Then save it (control-X and <ENTER>) and you're done...

HTH
Dirk.

Return to “Beginners”