Setting up Openbox on Macdriva, OM, Moondrake...

Well it is a family: Mandriva Mageia ROSA Unity PCLOS. Brothers and sisters living together in perfect harmony - so it deserved som space of its own.

Moderators: b1o, jkerr82508

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Setting up Openbox on Macdriva, OM, Moondrake...

Postby viking60 » 21 Apr 2013, 13:21

Regardless of the name I gave Openbox a go:

Code: Select all

sudo urpmi openbox xcompmgr tint2 parcellite nitrogen openbox-menu lxmenu-data

That should be enough to get you going.
Then I made a directory for the config files

Code: Select all

mkdir -p ~/.config/openbox

That is my playground where I can FUBAR whatever I want - and then start again by simply copying the original config files back.
So time to copy over the original config files then:

Code: Select all

cp /etc/xdg/openbox/{rc.xml,menu.xml,autostart,environment} ~/.config/openbox

That's it! +1 you should now have Openbox. So we log out and check if this is an option.....
Image :s

So we log in and find a rather spartan looking grey desktop. One right-click gives us the menu and from there we can adjust Openbox further...
Image
You will find a discussion on Openbox here but that is not distro specific - like this description will be.

Then we fire nitrogen up from the konsole and under preferences we add /usr/share/wallpapers
Image
Pick a wallpaper.

Now you must edit the autostart file to make your changes stick

Code: Select all

nano .config/openbox/autostart

It should look like this (you can copy and paste from here):
:A

Code: Select all

#
# These things are run when an Openbox X Session is started.
# You may place a similar script in $HOME/.config/openbox/autostart
# to run user-specific things.
#

# If you want to use GNOME config tools...
#
#if test -x /usr/lib64/gnome-settings-daemon >/dev/null; then
#  /usr/lib64/gnome-settings-daemon &
#elif which gnome-settings-daemon >/dev/null; then
#  gnome-settings-daemon &
#fi

# If you want to use XFCE config tools...
#
#xfce-mcs-manager &
xcompmgr &
nitrogen --restore &
tint2 &
#bbrun &
parcellite &


This file will autostart anything you like - so if you want the konsole started when you log in you would simply add konsole & at the bottom of the file.

Pick reconfigure openbox from the right-click menu (under System) log out and back in and your desktop will look like this:
Image
Notice that little star on the top left corner? Click it to autorun anything. (Edit: bbrun will freeze your system - so go for gmrun instead)
Image
To configure your panel you could run tint2conf here.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Setting up Openbox on Macdriva, OM, Moondrake...

Postby viking60 » 10 May 2013, 22:46

OK time to finish this up.
As you may have noticed the menu that appears when you right-click on the desktop does not present everything you have on your system.
And it does not auto-add new installs - we have to fix that! +1
Replace your ~/.config/openbox/menu.xml with this:

menu.xml:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<openbox_menu xmlns="http://openbox.org/3.4/menu">
<menu id="desktop-app-menu" label="Applications" execute="openbox-menu"/>
<menu id="root-menu" label="Openbox 3">
<separator label="Menu"/>
<menu id="desktop-app-menu"/>
<separator label="Favorites"/>
<item label="Firefox">
<action name="Execute">
<command>firefox http://bjoernvold.com/forum</command>
</action>
</item>
<item label="Konsole">
<action name="Execute">
<command>konsole</command>
</action>
</item>
<item label="Control panel">
<action name="Execute">
<command>mcc</command>
</action>
</item>
<separator label="Openbox"/>
<item label="Configuration">
<action name="Execute">
<command>obconf</command>
</action>
</item>
<item label="Configure panel">
<action name="Execute">
<command>tint2conf</command>
</action>
</item>
<item label="Reconfigure openbox">
<action name="Reconfigure"/>
</item>
<separator label="Session"/>
<item label="Exit">
<action name="Execute">
<command>openbox --exit</command>
</action>
</item>
</menu>
</openbox_menu>

This will present everything you have on your system and auto add everything new that you install.
Image
This is cutting edge people! Mageia does not have openbox-menu in the repos - yet

OpenRosaMoondrakeMandriva rules! +1
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
rolf
Guru-Berserk
Posts: 1107
Joined: 16 Mar 2010, 16:07

Re: Setting up Openbox on Macdriva, OM, Moondrake...

Postby rolf » 11 May 2013, 04:52

:B Very impressive howto, as usual. I have a question:

Code: Select all

sudo nano .config/openbox/autostart


The relative path, .config/openbox/autostart, makes it look like you are editing the config file in your home directory. If so, why is root needed (sudo)?

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Setting up Openbox on Macdriva, OM, Moondrake...

Postby viking60 » 11 May 2013, 09:04

Ah :Doh: Good catch! As usual you are right - sudo is not needed at all. :oops: I have corrected the code above.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Setting up Openbox on Macdriva, OM, Moondrake...

Postby viking60 » 12 May 2013, 00:35

By now Openbox is fully functional but we want a cool dock.
And Cairo-dock does not work. This might be an X11 problem or a Cairo-dock problem or definetly..definetly a dbus problem (free after Rainman :-D ) :confused But we have kiba-dock in the repos so I installed that and put

Code: Select all

kiba-dock &
at the bottom of my ~/.config/openbox/autostart file.

You can drag with your mouse to the top or the sides. Adding launchers is very easy and you can make it autohide.

Like cairo-dock it can make X11 somewhat unstable while you are configuring. It can throw you out like if you had hit CTRL - backspace.
Other than that it works well for daily use!
Pics coming up....
ImageImageImage
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Behold: Macdriva

Postby viking60 » 12 May 2013, 11:58

Behold Macdriva!
:A
Image:dancer Image :dance1 Image
Video probably with messed up colors - but there is music :-D

Vimeo:
:A
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"


Return to “The Mandriva family”