LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-22-2009, 07:50 AM   #16
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,852

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346

Quote:
Originally Posted by catkin View Post
You could change DM from GDM to XDM -- a lot lighter and faster. Worked fine on ubuntu 8.04 using Xfce instead of Gnome.
I am not sure that's too important though. The DM dies once it's done the work, and while it's loaded it's irrelevant how much ram it uses because you can't do anything else anyway, unless you are of the command line type of guy, which doesn't seem to be the case.

About the openbox thing, TheStarLion, can you start openbox from the command line? Try putting openbox into your ~/.xinitrc file, and then use startx to start the session manually. See if it loads, if not, see if there are error messages or something.

If the DM is active, you might need to go to the console using control+alt+f1, then use "startx -- :0.1" to start another X session and see what happens.
 
Old 11-22-2009, 08:25 AM   #17
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 460

Original Poster
Rep: Reputation: 39
Well, that's crystal ruled out. I don't mind mucking around in the config files like that once in a while, but having to do it that often isn't something I'd enjoy.
XDM, I've tried, and its minimalistic interface is useful, but not if I'm likely to change sessions, so I'll leave it at GDM.

I couldn't start Openbox from within my normal XFCE session - probably wouldn't start because there's already another WM active.
I also didn't have an .xinitrc file, so I'm not entirely certain what to add to it.

I also tried running startx as you suggested, from control-alt-f1 at the gdm login to tty1, I logged in and ran it and got an error. While in an XFCE session, it just tells me there's another WM already active.
I suspect I've mis-interpreted where you wanted me to enter that command.
 
Old 11-22-2009, 08:41 AM   #18
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,852

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by TheStarLion View Post
Well, that's crystal ruled out. I don't mind mucking around in the config files like that once in a while, but having to do it that often isn't something I'd enjoy.
"Often" means "repeatedly, customarily". It's not the right word here. You shouldn't need to touch the config files often. If you use crystal, in fact, you shouldn't need to touch them at all. If you use plain fvwm then you will need to do "intensive" (that's the word) editing at first. But once it's set up you shouldn't ever need to see that config again unless there's a serious update that changes the syntax (not likely since the fvwm development pace is from nil to extremely slow at best.

But, I agree that fvwm is not for the lazy, or those that simply haven't the time or interest to learn it. That's not a good or a bad thing. Fvwm simply is not like other wm's. There are quite a lot of good wm's, openbox and fluxbox are two excellent wm's, so if they really work for you I don't advice going the fvwm route anyway.

Quote:
I couldn't start Openbox from within my normal XFCE session - probably wouldn't start because there's already another WM active.
Most wm's do have a --replace flag, use openbox --help and take a look. I don't know if openbox has it.

Quote:
I also didn't have an .xinitrc file, so I'm not entirely certain what to add to it.
~/.xinitrc is a file that will be sourced when you run "startx". It's used to define which wm will be loaded when you use startx. If it doesn't exist, just create it with a text editor (note that its name starts with a dot) and then put a single line inside of it, like this:

Code:
exec openbox > ${HOME}/openbox.log 2>&1
Quote:
I also tried running startx as you suggested, from control-alt-f1 at the gdm login to tty1, I logged in and ran it and got an error. While in an XFCE session, it just tells me there's another WM already active.
I suspect I've mis-interpreted where you wanted me to enter that command.
That's the correct place, but I can't be sure what the problem is without taking a look at that error. The xorg errors will appear on the screen (more extensive info usually at /var/log/Xorg.0.log), any error related to openbox should be logged to ~/openbox.log if you use the line I posted above in your ~/.xinitrc. I don't think the problem is in Xorg, because that would prevent GDM from running as well. So it must be something wrong with openbox.

Remember that if you have gdm loaded, you will need to add the display number to the startx sentence, otherwise it will refuse to start a new X session complaining that there's already an X running on the current display.

Code:
start -- :0.1
Or :0.2, or whatever belongs if you have more than one gdm running.

Last edited by i92guboj; 11-22-2009 at 08:44 AM.
 
1 members found this post helpful.
Old 11-22-2009, 08:51 AM   #19
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 460

Original Poster
Rep: Reputation: 39
using "startx -- 0:1" on tty1, I get the following error (After making the .xinitrc)

Invalid MIT-MAGIC-COOKIE-1 keygiving up.
xinit: Resource temporarily unavailable (errno 11): unable to connect to x server
xinit: No such process (errno 3): server error
 
Old 11-22-2009, 08:53 AM   #20
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,852

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
startx -- 0:1
The correct syntax is

Code:
startx -- :0.1
 
Old 11-22-2009, 08:56 AM   #21
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 460

Original Poster
Rep: Reputation: 39
Oops. My mistake.
I tried that just now.
Now I get:

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again

followed by the same three lines I had before.
 
Old 11-22-2009, 09:20 AM   #22
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,852

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Quote:
Originally Posted by TheStarLion View Post
Oops. My mistake.
I tried that just now.
Now I get:

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again

followed by the same three lines I had before.
Sorry, that one was my fault, try this

Code:
startx -- :1
ps. that should work for the X part, if openbox doesn't come up, look into the log file (assuming you used my line for xinitrc above), and see if there's something into it.

Last edited by i92guboj; 11-22-2009 at 09:21 AM.
 
1 members found this post helpful.
Old 11-22-2009, 09:23 AM   #23
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 460

Original Poster
Rep: Reputation: 39
That worked, although I don't seem to have anything at all - just a blank screen, a mouse pointer and the openbox menu if I right click.
I thought there was meant to be a panel like that flux/black box has at the bottom?
 
Old 11-22-2009, 09:33 AM   #24
arochester
Member
 
Registered: May 2006
Location: Scotland
Distribution: Debian Squeeze Xfce
Posts: 517

Rep: Reputation: 67
I use Crunchbang.

In previous issues it used lxpanel at the bottom - I preferred that. Now it has tint2 at the bottom.

Have you got either installed?
 
Old 11-22-2009, 09:34 AM   #25
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,852

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
No. Openbox is just a window manager. It manages windows, and little more.

If you want a panel, then use AWN, fbpanel, perlpanel, suxpanel or any other 3rd party application. This is a bit outdated, but you can use it as a starting point:

http://www.gilesorr.com/wm/helpers.html

You can start them in the same .xinitrc file, but remember to add an ampersand at the end of each line, except the one that launches the wm, which must be the last one. For example:

Code:
gkrellm &
fbpanel &
xterm &
exec openbox
Surely openbox has a way to autostart programs as well, you could use that instead. I just don't remember *how*.

Most standalone wms are this way, including fluxbox. IceWM has a native taskbar so you might want to check it. It's kind of a win95 clone or something like that. Fvwm has some extra modules that can do this (FvwmButtons and FvwmIconMan). I think e17 also has native panels, it's quite experimental though.

This litle experiment, however, demonstrates that openbox is working, and your config is sane. It remains a mystery why it doesn't work from GDM though... I don't know much about GDM so I can't help. But at least now you know it's not openbox fault.
 
Old 11-22-2009, 09:37 AM   #26
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 460

Original Poster
Rep: Reputation: 39
Tint2 is installed, but doesn't appear to launch.
lxpanel isn't but I can install it easily. I could try that, and see what happens, if not then I'll just see what I can knock up.

This raises the question though that if startx will launch into an openbox session with no issues, why can GDM not log into an Openbox session?
 
Old 11-22-2009, 09:40 AM   #27
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 460

Original Poster
Rep: Reputation: 39
Well, it's an improvement from before, and thanks to all of you for helping. I'll use AWN, as I like that, and it has it's own autostart setting in it's control panel, hopefully that will work.
 
Old 11-22-2009, 10:22 AM   #28
arochester
Member
 
Registered: May 2006
Location: Scotland
Distribution: Debian Squeeze Xfce
Posts: 517

Rep: Reputation: 67
Crunchbang has a file to autostart apps called ~/.config/openbox

Here is a copy of the entire file:
Quote:
# Run the system-wide support stuff
#. $GLOBALAUTOSTART

# Programs to launch at startup
# =============================

# Start session manager
lxsession &

# Start Bluetooth applet
#bluetooth-applet &

# Enable power management
gnome-power-manager &

# Set-up keyboard maps and sytem tray switcher
# tip - quickly toggle between keyboard maps by holding both shift keys!
#setxkbmap -option grp:switch,grp:shifts_toggle,grp_led:scroll gb,us,de,fr &
#(sleep 1s && fbxkb) &
# ^^ note: if using the LiveCD, you can also change to a different
# keyboard map by entering the terminal command:
# setxkbmap xx
# Where "xx" is the 2 letter country code.

# Force openoffice.org to use GTK theme
# enable this if you install openoffice
#export OOO_FORCE_DESKTOP=gnome

# Start volume control system tray applet
volwheel &

# Set desktop wallpaper
nitrogen --restore &

# Enable Eyecandy - off by default
# see "/usr/bin/crunchbang/xcompmgr-crunchbang" for more info
#xcompmgr-crunchbang --startstop &

# Start screensaver deamon
gnome-screensaver &

# Launch network manager applet
(sleep 4s && nm-applet) &

# Launch clipboard manager
#(sleep 1s && parcellite) &

# Uncomment to enable system updates at boot
#(sleep 180s && system-update) &

# Check for restricted hardware
(sleep 60s && jockey-gtk --check) &

# Launch Conky
conky -q &

# Launch panel
tint2 &
 
Old 11-22-2009, 10:25 AM   #29
TheStarLion
Member
 
Registered: Nov 2009
Location: UK
Distribution: Gentoo
Posts: 460

Original Poster
Rep: Reputation: 39
I've seen that, but after investigating an Openbox help page on autostarting, I've discovered that when Openbox is launched by the startx command as used above, that script isn't run.
But since I only have a few things to start, it's not too much of a problem. I just use grun to launch AWN and wicd, then from AWN I run Dropbox and Guake, then finally gsetroot for the desktop wallpaper.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Making Ubuntu Look better edgartech Ubuntu 4 11-14-2008 07:55 AM
LXer: Adding a Lightweight GUI and Webmin to Ubuntu Server LXer Syndicated Linux News 0 10-24-2008 05:50 AM
Making gateway in Ubuntu 01pratap01 Linux - Newbie 1 10-01-2008 08:02 PM
LXer: LXDE - Lightweight X11 Desktop Environment for Ubuntu LXer Syndicated Linux News 0 07-06-2008 02:42 PM
LXer: Audacious - Lightweight Music Player for Ubuntu LXer Syndicated Linux News 0 01-28-2008 09:00 PM


All times are GMT -5. The time now is 11:44 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration