DebianThis forum is for the discussion of Debian Linux.
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.
Hey all. I recently decided to try something new and installed Openbox . But i have a problem >__<
I have install pypanel.
And i have put a background image on using:
Code:
feh --bg-scale 2008266122028-11402.jpg
So to keep them up i made an autostart.sh file in ~, but when I fire up linux, neither the background or pypanel appear.
Can anyone help?
Debain Etch (4.0)
And heres my script:
Code:
#!/bin/sh
eval `cat $HOME/.fehbg` &
pypanel &
if pgrep pypanel
then exec openbox
else pypanel && exec openbox
fi
Cheers
Last edited by TeenyLemon; 09-25-2009 at 10:37 PM.
Reason: Missed an important detail.
Hello,
isn't that file supposed to go in ~/.config/openbox/ instead of ~ ?
autostart.sh will only run if you start openbox as a session, that is with openbox-session.
Moreover, that file is started by openbox before it starts (i.e when autostart.sh returns), thus there's no need to start openbox in it.
Which folder are talking about ?
Anyway, openbox-session shouldn't be an unknown command.
Did you installed openbox from apt or sources ?
The binary should be in /usr/bin/openbox-session.
What does that tell ? :
Code:
dpkg -L openbox | grep openbox-session
If you find it in /usr/bin/openbox-session, try again to start X with startx and then start openbox-session with
Okay,
since openbox-session is not present for any reason and it is that binary that loads the autostart.sh script, I recommend you to either install it, or use the ~/.Xsession to start your applications.
How do you start openbox ? Do you use an graphical login manager where you select your session or did you specified to launch openbox in your .Xsession ?
Okay,
since openbox-session is not present for any reason and it is that binary that loads the autostart.sh script, I recommend you to either install it, or use the ~/.Xsession to start your applications.
How do you start openbox ? Do you use an graphical login manager where you select your session or did you specified to launch openbox in your .Xsession ?
I usually start openbox through the Debian GUI login screen.
How do i start .Xsession?
God im a major fail. :P
Quote:
I personally start "exec openbox-session" from my .xinitrc ... I dont use a displaymanager (kdm.gdm,xdm,slim). This is what my autostart.sh looks like
~/.config/openbox
Thanks Manwithaplan, I shall try your code and report back later
Hello,
I think the default "Debian GUI login screen" is gdm. I haven't used it in a while but it seems that it starts the ~/.xsession only if you choose the "Debian default" entry (or something like that).
Try to put that in your ~/.xsession file and make it executable:
Code:
eval `cat $HOME/.fehbg` &
pypanel &
if pgrep pypanel
then exec openbox
else pypanel && exec openbox
fi
exec openbox
Then try to start the "Debian default" thing in gdm and see if it works.
But again, a better solution would be to get the openbox-session binary, there seems to be something wrong with your installation.
Why don't you install openbox directly from the apt ? Do you really need to compile it from sources ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.