Debian or arch for my netbook?

I have tried openbox before and its awesome, but needs a few hours to tweak the desktop, time I simply don't have this year :p

XFCE +OB WM is my quick fix :p

So back up your configs, dude! then a new build on a new machine and you have something pretty and usable almost instantly!
 
Very nice... and as you've noticed, very, very lightweight!

Basically, it's a fork of Blackbox (so similar to Fluxbox as well... except it's actually updated!). It's one of the nicest WMs I've used and it's hugely customisable, which is good - because like Flux, it's ugly as sin by default!

EDIT:


lol - you've just installed it, haven't you? :)

Yes I have :D it's awesome! Just need to customize it a bit, any links on this? Many thanks for pointing openbox out to me though, I'll have to post a few vids showing the different in firefox opening times between Gnome and openbox on this box - it's just crazy!:D
 
Your config files are all xml and located in: ~/.config/openbox

You can manually edit them (as I was doing to start with - I came over to openbox from Flux), or you can download obmenu and obconf, then play away :)

You'll probably want a system tray and a task bar... there are HEAPS to choose from, but I use tint2 and trayer (although, the OSX style one is very popular as well, can't remember what it's called).

you'll also probably want a ~/.config/openbox/autostart.sh as well...

I can post up my configs for these later, if you want something to start on.
 
Thanks .walls :) I'd certainly appreciate it if you could post up your config files. Task bar would be nice, as minimising an app just makes it disappear and the only way back is via ALT-TAB. Also a workspace / desktop switcher would be ace. But you know what I'm actually enjoying the really minimal approach :)
 
Desktop switcher is already there: scroll your mouse on the desktop :)

EDIT: hmm... that might not work... it's a netbook, isn't it?!
 
Your config files are all xml and located in: ~/.config/openbox

You can manually edit them (as I was doing to start with - I came over to openbox from Flux), or you can download obmenu and obconf, then play away :)

You'll probably want a system tray and a task bar... there are HEAPS to choose from, but I use tint2 and trayer (although, the OSX style one is very popular as well, can't remember what it's called).

you'll also probably want a ~/.config/openbox/autostart.sh as well...

I can post up my configs for these later, if you want something to start on.

post erm up m8, I may soley use openbox!!!!!
 
also from my last adventure with openbox you can setup keybinds to launch apps. It's awesome but just takes ages to setup :p

I am going to have to get in the habit of backing up configs :(
 
Oooohhh... is this a convert from a full desktop? =D

Yes walls yes it is.

For background I've recently ditched my "good" PC which had all the trimmings (nice GPU, multicore CPU, 8GB of RAM etc... see here http://forums.overclockers.co.uk/showthread.php?t=18078376 ) in favor of a lower powered machine that still let me do what I needed (CUDA development basic C development, and occasionally Eclipse for some Java work) so I opted for a dual core Atom box which was about £200 (never draws more than 40w at full load - so +1 enviro points for me). But the full blown gnome desktop was, well sluggish at times, firefox took about 11 seconds to open, the performance using open box is fantastic, didn't realize it would be. Just launching emacs, or firefox is massively quicker, I mean seriously quicker - no idea why - but by half it is.

So no it's not a netbook, but the inners of it basically are. So the scrolling between desktops works perfectly.

Nice, simple, clean and easy to use. Openbox convert here :)
 
I vote for Arch :) The time input will pay off in the long run.

In which case, go Gentoo... at least you can update update Gentoo without breaking it!

(Disclaimer - I used to be a devout Arch user, but got bored of it breaking during updates!)



Anyway... as promised above!

Not quite current pics as the wallpaper is different and conky is different... but hey. Also, the black wallpaper doesn't really show off the transparency of the taskbar or the buttons!
linky

EDIT: here's a better one with a lighter background:


tint2 config - goes in ~/.config/tint2/tint2rc
Code:
#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 7
border_width = 0
background_color = #000000 60
border_color = #ffffff 18

rounded = 5
border_width = 0
background_color = #ffffff 10
border_color = #ffffff 50

rounded = 5
border_width = 0
background_color = #ffffff 0
border_color = #ffffff 70

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = bottom center
panel_size = 66% 30
panel_margin = 0 0
panel_padding = 7 0
font_shadow = 0
panel_background_id = 1
wm_menu = 0

#---------------------------------------------
# TASKBAR
#---------------------------------------------
#taskbar_mode = multi_desktop # used to have hulti, but have a phat screen now, so no need :)
taskbar_mode = single_desktop
taskbar_padding = 2 3 2
taskbar_background_id = 0

#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 1
task_width = 140
task_centered = 1
task_padding = 6 3
task_font = sans 9
task_font_color = #ffffff 70
task_active_font_color = #ffffff 85
task_background_id = 3
task_active_background_id = 2

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray_padding = 0 4 5
systray_background_id = 0

#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %H:%M
time1_font = sans 9
time2_format = %A %d %B
time2_font = sans 11
clock_font_color = #ffffff 76
clock_padding = 1 0
clock_background_id = 0
#clock_lclick_command = xclock
clock_rclick_command = orage

#---------------------------------------------
# BATTERY
#---------------------------------------------
#don't have one of these...
#battery = 0
#battery_low_status = 10
#battery_low_cmd = notify-send "battery low"
#bat1_font = sans 8
#bat2_font = sans 6
#battery_font_color = #ffffff 76
#battery_padding = 1 0
#battery_background_id = 0


#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
#fairly obvious ;)
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

Err... SNIP... couldn't fit my rc.xml in here (too big), but you can copy the default one from /etc/somewhere to $HOME/.config/openbox and make modifications in there for your key-bindings.
screenie1t.png

lol!

I've added things like this:
Code:
    <context name="Titlebar">
      <mousebind button="C-Up" action="Click">
        <action name="Execute">
          <execute>
		transset-df -p --inc 0.2
	   </execute>
        </action>
      </mousebind>
      <mousebind button="C-Down" action="Click">
        <action name="Execute">
          <execute>
		transset-df -p --min 0.2 --dec 0.2
	  </execute>
        </action>
      </mousebind>
.... other context (titlebar) related bits
</context>
which allows me to change the transparency of windows with ctrl+scroll (needs xcompmgr and transset-df)

autostart.sh doesn't need my comments, I've just added them to show what things are doing. It's a pretty simple layout though... just make sure to use "&" at the end of each command to background them :)
Code:
#!/bin/bash
# set a wallpaper...
fbsetbg -c /home/walls/Documents/pictures/Backdrops/pink_light.jpg # I used to use Fluxbox, so I'm used to fbsetbg... cba working  out how to use feh or whatever!

# Launch panel
(sleep 2s && tint2) & # wait two seconds for Openbox to load, then start the taskbar

# Launch system tray
(sleep 2s && trayer --expand true --transparent true  --alpha 255 --edge bottom --align right --expand true --SetDockType true --widthtype request --margin 130) &

# Launch some other bits
xcompmgr -fF -I-.004 -O-.004 -D2 -cC -t-4 -l-6 -r6 & # transparency stuff
setxkbmap -option terminate:ctrl_alt_bksp & # enable xorg zapping
kdeinit4 & # need it for amarok
kmix & # volume
conky & # stats
amarokapp & # musique :)
klipper & # kde clipboard app

.conkyrc - needs some extra fonts... listed in the file though
Code:
# set to yes if you want Conky to be forked in the background
background yes

# Update interval in seconds
update_interval 1
cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Lucida Console:size=10
xftalpha 0.8
text_buffer_size 2048

# Create own window instead of using desktop (required in nautilus)
own_window yes 
own_window_transparent yes 
own_window_type normal
own_window_hints undecorated below sticky skip_taskbar skip_pager

# Text alpha when using Xft
# xftalpha 0.8

# mail spool
#mail_spool $MAIL

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes 

# Minimum size of text area
#minimum_size 280 5
#maximum_width 150

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
#alignment top_right
#alignment bottom_left
alignment bottom_right

# Gap between borders of screen and text
gap_x 30
gap_y 30 

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer left 

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
#      Variable         Arguments                  Description                
#  acpiacadapter                     ACPI ac adapter state.                   
#  acpifan                           ACPI fan state                           
#  acpitemp                          ACPI temperature.                        
#  adt746xcpu                        CPU temperature from therm_adt746x       
#  adt746xfan                        Fan speed from therm_adt746x             
#  battery           (num)           Remaining capasity in ACPI or APM        
#                                    battery. ACPI battery number can be      
#                                    given as argument (default is BAT0).     
#  buffers                           Amount of memory buffered                
#  cached                            Amount of memory cached                  
#  color             (color)         Change drawing color to color            
#  cpu                               CPU usage in percents                    
#  cpubar            (height)        Bar that shows CPU usage, height is      
#                                    bar's height in pixels                   
#  downspeed         net             Download speed in kilobytes              
#  downspeedf        net             Download speed in kilobytes with one     
#                                    decimal                                  
#  exec              shell command   Executes a shell command and displays    
#                                    the output in torsmo. warning: this      
#                                    takes a lot more resources than other    
#                                    variables. I'd recommend coding wanted   
#                                    behaviour in C and posting a patch :-).  
#  execi             interval, shell Same as exec but with specific interval. 
#                    command         Interval can't be less than              
#                                    update_interval in configuration.        
#  fs_bar            (height), (fs)  Bar that shows how much space is used on 
#                                    a file system. height is the height in   
#                                    pixels. fs is any file on that file      
#                                    system.                                  
#  fs_free           (fs)            Free space on a file system available    
#                                    for users.                               
#  fs_free_perc      (fs)            Free percentage of space on a file       
#                                    system available for users.              
#  fs_size           (fs)            File system size                         
#  fs_used           (fs)            File system used space                   
#  hr                (height)        Horizontal line, height is the height in 
#                                    pixels                                   
#  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
#                                    may be omitted if you have only one I2C  
#                                    device. type is either in (or vol)       
#                                    meaning voltage, fan meaning fan or temp 
#                                    meaning temperature. n is number of the  
#                                    sensor. See /sys/bus/i2c/devices/ on     
#                                    your local computer.                     
#  kernel                            Kernel version                           
#  loadavg           (1), (2), (3)   System load average, 1 is for past 1     
#                                    minute, 2 for past 5 minutes and 3 for   
#                                    past 15 minutes.                         
#  machine                           Machine, i686 for example                
#  mails                             Mail count in mail spool. You can use    
#                                    program like fetchmail to get mails from 
#                                    some server using your favourite         
#                                    protocol. See also new_mails.            
#  mem                               Amount of memory in use                  
#  membar            (height)        Bar that shows amount of memory in use   
#  memmax                            Total amount of memory                   
#  memperc                           Percentage of memory in use              
#  new_mails                         Unread mail count in mail spool.         
#  nodename                          Hostname                                 
#  outlinecolor      (color)         Change outline color                     
#  pre_exec          shell command   Executes a shell command one time before 
#                                    torsmo displays anything and puts output 
#                                    as text.                                 
#  processes                         Total processes (sleeping and running)   
#  running_processes                 Running processes (not sleeping),        
#                                    requires Linux 2.6                       
#  shadecolor        (color)         Change shading color                     
#  stippled_hr       (space),        Stippled (dashed) horizontal line        
#                    (height)        
#  swapbar           (height)        Bar that shows amount of swap in use     
#  swap                              Amount of swap in use                    
#  swapmax                           Total amount of swap                     
#  swapperc                          Percentage of swap in use                
#  sysname                           System name, Linux for example           
#  time              (format)        Local time, see man strftime to get more 
#                                    information about format                 
#  totaldown         net             Total download, overflows at 4 GB on     
#                                    Linux with 32-bit arch and there doesn't 
#                                    seem to be a way to know how many times  
#                                    it has already done that before torsmo   
#                                    has started.                             
#  totalup           net             Total upload, this one too, may overflow 
#  updates                           Number of updates (for debugging)        
#  upspeed           net             Upload speed in kilobytes                
#  upspeedf          net             Upload speed in kilobytes with one       
#                                    decimal                                  
#  uptime                            Uptime                                   
#  uptime_short                      Uptime in a shorter format               
#
#  seti_prog                         Seti@home current progress
#  seti_progbar      (height)        Seti@home current progress bar
#  seti_credit                       Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a  %b  %d}${alignr -25}${time %k:%M}

TEXT
SYSTEM ${color grey} ${hr 2} $color
${font StyleBats:size=16}L${font}   Core Temp: ${alignr}${hwmon 1 temp 2} 
${font StyleBats:size=16}q${font}   Uptime:$color ${alignr}${uptime}
${font StyleBats:size=16}o${font}   RAID Status: ${alignr}${execi 60 gawk -f bin/raid_check /proc/mdstat}
${font StyleBats:size=16}g${font}   RAM Usage: ${alignr}$mem/$memmax - $memperc%
${font StyleBats:size=16}A${font}   CPU Usage:${color} ${cpu}% ${cpubar cpu}

NETWORKING ${color grey} ${hr 2} $color

${voffset -6}${font PizzaDude Bullets:size=12}O${font}   Up: ${upspeed eth0} ${alignr}${upspeedgraph eth0 12,120 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=12}U${font}   Down: ${downspeed eth0} ${alignr}${downspeedgraph eth0 12,120 789E2D A7CC5C}

FILESYSTEMS ${color grey} ${hr 2} $color

$color${fs_free /}/${fs_size /} ${fs_bar /}
$color${fs_free /home/}/${fs_size /home/} ${fs_bar /home/}

PROCESSES ${color grey} ${hr 2} $color
Name	  	  PID     CPU %  MEM % 
 ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
 ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
 ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
 ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

I've also added these to my menu.xml so I don't have to faff around with sudo shutdown -r now, etc:
Code:
<item label="ShutDown">
				<action name="Execute">
					<prompt>
						Shutdown?
					</prompt>
					<execute>
						dbus-send --system --print-reply --dest=&quot;org.freedesktop.Hal&quot; /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown
					</execute>
				</action>
			</item>
			<item label="Reboot">
				<action name="Execute">
					<prompt>
						Reboot?
					</prompt>
					<execute>
						dbus-send --system --print-reply --dest=&quot;org.freedesktop.Hal&quot; /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Reboot
					</execute>
				</action>
The last one needs HAL, of course!

I could go on... but I doubt anyone is using the other bits (e.g. mrxvt... which is a bloody great terminal emulator, btw...)

Like I mentioned before - obconf and obmenu are the easiest ways (clicky, clicky) of sorting out the themes and menus and I saw someone wrote a script to do the autostart... but it's not exactly difficult to write a bash script, is it?!
 
Last edited:
Would you be a true legend and post ur rc file on pastebin?

I will love you long time.

five dollah? ;):D

The rc.xml mods I've done are mostly for keybindings tbh and although I have quite a few of them (pointed out the first interesting one I saw in my post above), I'm not sure that you would find it that much more useful than the default one (which you should find at /etc/xdg/openbox/rc.xml - or somewhere round there), which you can then mod yourself :)
 
yeh ok, I think I wanna stay clear of compiz style apps on my little atom anyway :p

most of my keybindings are for things like "open mrxvt" or "open that_app" rather than compositing, but tbh, xcompmgmr is pretty small and easily killable with a key bound to "killall xcompmgr" and started again with another key bound to a bash script to start it with your config.
 
.wallis can you be a little clearer on where all those files go please :)

sure:

~/.config/openbox/autostart.sh (if you don't edit this, you'll have some random stuff that probably isn't installed trying to start!)
cp ./etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml (edit with your prefferred keybindings... or not!)
~/.conkyrc (you'll almost definitely need to modify this one to suit your rig!)
~/.config/tint2/tint2rc

Install obmenu and create a menu that suits you, then add the shutdown/reboot entries to that (honestly, the first time I did this, I needed to manually create a menu.xml and then run obmenu, although - I've just looked and there's a default one in the same location as rc.xml - you should be able to copy that over and then edit it)

BTW - "~" = your home directory - so /home/<username> == ~ (sorry if that sucking eggs)
 
Last edited:
Well I've had a play ended up going with conky as the system profiler as it looks cool! fbpanel is okay wanted pypanel but could get it to install via apt-get. I've seen instructions to get feh to display a background image but haven't got a decent background image anywhere :p Not quite sure why conky wants to report my CPU speed in MHz and GHz might want to edit the config file for that too I guess.:(
 
Back
Top Bottom