![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Fresh Brewed Ubuntu
![]() Join Date: Sep 2005
Beans: 1,100
Ubuntu 7.10 Gutsy Gibbon
|
A Blackbox Guide.
After searching the internet, I found there was really no easy, all-in-one guide for the new Blackbox user. Although some of this information has been listed elsewhere, here's an attempt at putting together all the information I found most useful. This guide assumes you are using Gnome, and are familiar with the GDM. Much of this uses the terminal, but can also be done with Nautilus. I have included some of my configuration files and a screenshot. Blackbox isn't terribly hard to install and configure. It can be very fast, as long as you don't mind typing some commands. Here we go! I. INSTALLATION II. CONFIGURATION III. OTHER USEFUL PROGRAMS IV. STARTUP V. EYE CANDY VI. FURTHER READING and SOURCES I. INSTALLATION: 1. You will have to enable the Universe repositories... https://help.ubuntu.com/community/Repositories/Ubuntu Code:
sudo apt-get install blackbox blackbox-themes That's it!!! A few of the following will help with customizing. ================================================== ==== Now, the following will move some folders to your home folder to make editing easier. 2. See if there is a .blackbox folder in your home directory. "ls -a" If yes, skip skep 3. If not... 3. Code:
cd mkdir .blackbox We need a .blackboxrc file. Code:
gedit .blackboxrc Quote:
II. CONFIGURATION -Menu/Styles: 1.Menu: Since we changed the path of the menu file, we have to add our own menu. If you don't paste in some sort of menu then nothing will appear with a right click on the desktop. Code:
gedit .blackbox/menu Code:
[begin] (b l a c k b o x )
[exec] (Eterm) {Eterm -x -0 --trans --scrollbar=off --buttonbar 0 --geometry 79x35+13+495 --font-fx none -f lightgrey}
[nop] ()
[submenu] (terminals) {terminals}
[exec] (aterm) {aterm -tr -bg black -fg lightgrey -fn 7x14 -fb 7x14 +vb +sb -geometry 79x32+13+495}
[exec] (gterm) {gnome-terminal}
[exec] (kterm) {konsole}
[exec] (xterm) {xterm -ls}
[end]
[submenu] (gnome) {gnome}
[exec] (nautilus) {nautilus --no-desktop}
[exec] (gnome-theme-manager) {gnome-theme-manager}
[exec] (gnome-settings-daemon) {gnome-settings-daemon}
[end]
[submenu] (audio) {}
[exec] (xmms) {xmms}
[exec] (gnome-volume) {gnome-volume-manager}
[end]
[submenu] (internet) {}
[exec] (firefox) {firefox}
[exec] (gaim) {gaim}
[exec] (gftp) {gftp}
[exec] (bluefish) {bluefish}
[exec] (firestarter) {gksudo /usr/sbin/firestarter}
[exec] (virus scanner) {aegis-virus-scanner}
[end]
[submenu] (graphics) {}
[exec] (the gimp) {gimp}
[end]
[submenu] (office apps) {}
[exec] (oo.o writer) {ooffice2}
[end]
[submenu] (video) {}
[exec] (gmplayer) {gmplayer}
[exec] (vlc) {vlc}
[exec] (xine) {xine}
[end]
[submenu] (system monitor) {}
[exec] (monitor start) {conky}
[exec] (monitor stop) {killall conky}
[end]
[nop] ()
[workspaces] (workspace list)
[config] (configuration)
[nop] ()
[submenu] (startup) {}
[exec] (gnome-settings-daemon ) {gnome-settings-daemon &}
[exec] (conky) {conky &}
[exec] (Esetroot) {Esetroot .blackbox/backgrounds/Complex_2.jpg}
[exec] (wmbutton) {wmbutton &}
[exec] (wmweather) {wmweather -w -s KROC &}
[exec] (wmcpuload ) {wmcpuload &}
[exec] (wmclock) {wmclock -12 -led white &}
[end]
[nop] ()
[reconfig] (reconfigure)
[restart] (restart) {}
[exit] (exit)
[end]
You can edit the styles by hand. Open your /usr/share/blackbox/styles/ files with your favorite text editor and edit away (colors/borders/fonts... etc.). To have a wallpaper install "eterm" to use its "esetroot" utility. Add/Replace this command to your current style file for a wallpaper/background Code:
rootCommand: Esetroot /usr/share/blackbox/backgrounds/wallpaper.jpg III. OTHER USEFUL PROGRAMS: -conky: Used to monitor your system. Neat because it sits on the desktop as if it were part of it, displaying useful system information... CPU temps, RAM, swap, CPU+MEM usage, networking info... 1. Code:
sudo apt-get install conky You can download the newest version from http://conky.sourceforge.net/ and do the following: (you can add all or none of the following options during ./configure. I highly recommend --enable-double-buffer [more on that in a bit]) Code:
./configure --prefix=/usr --enable-xft --enable-mpd --enable-seti --enable-double-buffer --enable-own-window --enable-proc-uptime make sudo checkinstall 2. You can edit what appears by changing the .conkyrc file. (Make a backup first) Code:
cp .conkyrc ~/.conkyrc_backup gedit .conkyrc -Potential problems with conky: Flickering. To get rid of the flicker from conky you will to manually install it and make sure, make sure the following are true: In .conkyrc double_buffer yes and in /etc/X11/xorg.conf (make a backup first!!) Code:
sudo gedit /etc/X11/xorg.conf Section "Module" Load "dbe" Restart the computer, start conky, and it should not flicker! CONKY EXTRA: weather From what I've read METAR support was stopped after version 1.3... but here's somewhat of a workaround (not the greatest, hopefully something better will work) get python-pymetar... Code:
sudo apt-get install python-pymetar Code:
${texeci 60 pymetar KROC}
Code:
${execi 60 pymetar KROC}
The texeci works for me, others say that execi works for them, but I suggest you experiment and see which works for you. (You might want to comment out some of the description or other features. Simply open the file (make a backup first if you would like) then type Code:
sudo gedit /usr/bin/pymetar Code:
#print "Weather report for %s (%s) as of %s" %\ # (pr.getStationName(), station, pr.getISOTime()) #print "Values of \"None\" indicate that the value is missing from the report." http://adds.aviationweather.noaa.gov...s/stations.txt Find your code then replace my 'KROC' with your four digit code, or you will simply get the weather for Rochester, NY USA. IV. STARTUP 1. We make a startup script. 2. We change the path of exec blackbox in /usr/share/xsessions/blackbox.desktop 1. We create a script. Code:
gedit ~/.bbstartup.sh Code:
#!/bin/sh gnome-settings-daemon & conky & exec /usr/local/bin/blackbox Code:
chmod +x ~/.bbstartup.sh first a backup. Code:
sudo cp /usr/share/xsessions/blackbox.desktop /usr/share/xsessions/blackbox.desktop_backup Code:
sudo gedit /usr/share/xsessions/blackbox.desktop Code:
[Desktop Entry] Encoding=UTF-8 Name=BlackBox Comment=Highly configurable and low resource X11 Window manager Exec=/usr/local/bin/blackbox Terminal=False TryExec=/usr/local/bin/blackbox Type=Application Code:
[Desktop Entry] Encoding=UTF-8 Name=BlackBox Comment=Highly configurable and low resource X11 Window manager Exec=/home/bluevoodoo1/.bbstartup.sh Terminal=False TryExec=/home/bluevoodoo1/.bbstartup.sh Type=Application V. EYE CANDY: (more info on these topics can be found throughout the forums) -Eterm: Terminal with many customizable features. 1. Code:
sudo apt-get install eterm Code:
Eterm -x -0 --trans --scrollbar=off --buttonbar 0 --geometry 79x35+13+495 -f lightgrey This is my command for Eterm. It will produce a transparent, borderless terminal with lightgray text in the exact position I want. Type "man Eterm" or "Eterm --help" to get a full listing of what each command does. For Eterm to be transparent and not simply shuffle a random background on startup, you must use Esetroot to set the wallpaper before launching Eterm... everytime you start Blackbox*. Use Esetroot and the path to the wallpaper you want, for example... Code:
Esetroot /usr/share/blackbox/backgrounds/yourpicture.jpg VI. FURTHER READING and SOURCES http://blackboxwm.sourceforge.net/ http://ubuntuforums.org/showthread.p...light=blackbox http://snkmchnb.no-ip.com/bbstyles.php http://conky.sourceforge.net/variables.html http://www.dotfiles.com/software/wmmp3/ http://home.nyc.rr.com/computertaijutsu/blackbox.html http://www.dockapps.org/file.php/id/17 http://www.linuxquestions.org/questi...d.php?t=218928 http://adds.aviationweather.noaa.gov...s/stations.txt Last edited by bluevoodoo1; June 21st, 2006 at 05:32 PM.. |
|
|
|
|
|
|
#2 |
|
Way Too Much Ubuntu
![]() Join Date: May 2005
Location: Germany
Beans: 233
|
Re: HOWTO: A Blackbox Guide
Nice how to!
I've been getting blackbox set up on my computer for a week now, but there are a few useful things in your how to for me. Coming from bblean in my windows days I am used to bb conf - slowly getting better with Linux. I spent a week playing around with a way to run a start-up script, so far, your solution seems to be the only way without really screwing things up for Gnome. ![]()
__________________
VivaLaRoach _______________________ Linux pure since 2004 |
|
|
|
|
|
#3 |
|
A Carafe of Ubuntu
![]() Join Date: Jun 2005
Location: Sweden
Beans: 113
|
Re: HOWTO: A Blackbox Guide
Yes, a very nice howto. Too bad you didn't post this a week earlier when I installed Blackbox.
One thing though, I think it is much easier to install the package "menu" which generates a program menu for practically all installed applications, and then delete the ones you don't want in it. "Menu" will also create a "Debian" entry in the Gnome menu, but if you don't want it you can easilly remove it with "Applications menu editor". |
|
|
|
|
|
#4 |
|
Fresh Brewed Ubuntu
![]() Join Date: Sep 2005
Beans: 1,100
Ubuntu 7.10 Gutsy Gibbon
|
Re: HOWTO: A Blackbox Guide
Thank you for the kind words. I will have a look at the menu package. That "Debian" menu somewhat annoys me, but you're right that it can be turned off. I'll have to give that a try.
EDITS: Added how to manually install conky, get rid of flickering in conky and how to add weather reading to conky. |
|
|
|
|
|
#5 |
|
A Carafe of Ubuntu
![]() |
Re: HOWTO: A Blackbox Guide
Very nice HOWTO, thank you! I just installed blackbox in my ubuntu on an old Cyrix 200MHz with 96MB that I use as a headless fileserver/bittorrent downloader and it flies! The same PC was struggling with XFCE.
One thing that gave me some trouble is that there was no ~/.blackbox/menu file and when I created one blackbox refused to read from it. What I had to do was create a .blackboxrc file in my home folder and then add the following line in it: Code:
session.menuFile: /home/george/.blackbox/menu |
|
|
|
|
|
#6 | |
|
Fresh Brewed Ubuntu
![]() Join Date: Sep 2005
Beans: 1,100
Ubuntu 7.10 Gutsy Gibbon
|
Re: HOWTO: A Blackbox Guide
Quote:
EDIT: george_apan, I added your suggestion. Last edited by bluevoodoo1; February 12th, 2006 at 12:22 PM.. |
|
|
|
|
|
|
#7 |
|
Fresh Brewed Ubuntu
![]() |
Re: HOWTO: A Blackbox Guide
One quick question: why Blackbox? Why not Fluxbox, or Openbox, or any of the other *boxen floating around? Is there anything special in BB that the others don't have yet?
|
|
|
|
|
|
#8 | |
|
Fresh Brewed Ubuntu
![]() Join Date: Sep 2005
Beans: 1,100
Ubuntu 7.10 Gutsy Gibbon
|
Re: HOWTO: A Blackbox Guide
Quote:
I've had the most success with Blackbox compared to Open* or Flux*. Why not experiment with them? I had some trouble having Black* and Flux* on my system at the same time, but perhaps experimenting one at a time is an idea? They all have features unique to them. Read up on them, there is some information around the forums and also in these links.... http://blackboxwm.sourceforge.net/Ab...tAboutBlackbox and http://fluxbox.sourceforge.net/ and http://icculus.org/openbox/about.php |
|
|
|
|
|
|
#9 | |
|
Ubuntu Extra Shot
![]() |
Re: HOWTO: A Blackbox Guide
Quote:
when I try to mv the /menu file, I get this: Code:
mv: cannot stat `/usr/share/blackbox/menu': No such file or directory
__________________
Ubuntu User #10925| Linux User #406036 | x64 Ubuntu Intrepid Ibex |
|
|
|
|
|
|
#10 | |
|
Fresh Brewed Ubuntu
![]() Join Date: Sep 2005
Beans: 1,100
Ubuntu 7.10 Gutsy Gibbon
|
Re: HOWTO: A Blackbox Guide
Quote:
EDIT: I also noticed that I had a typo, it should be... sudo mv /usr/share/blackbox/backgrounds ~/.blackbox/backgrounds sudo mv /usr/share/blackbox/styles ~/.blackbox/styles sudo mv /usr/share/blackbox/menu ~/.blackbox and NOT be... sudo mv usr/share/blackbox/backgrounds ~/.blackbox/backgrounds sudo mv usr/share/blackbox/styles ~/.blackbox/styles sudo mv usr/share/blackbox/menu ~/.blackbox Last edited by bluevoodoo1; February 12th, 2006 at 10:59 PM.. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|