Site Tools


ubuntu_deubuntuization

ubuntu de-ubuntuization

Ok, now we have our shining new oneiric install on our ac100.
We just realized on our desktop machine that unity sucks; but on our ac100 it's ever worst. All the 512MB of ram filled by the ubuntu-experience-stuff.

Waiting for a Debian Installer for Humans (something like the excellent oneiric installer) or waiting for ArchLinuxArm… or Angstrom distribution… or anything else - we have to grow up and skill up, we are new ac100 owners, we are noob - this is

my personal Ubuntu-on-ac100 recipe

#removing the unuseful stuff
sudo apt-get remove plymouth-theme-ubuntu-.
sudo apt-get remove lightdm
sudo apt-get remove libmono-. shotwell eog baobab gnome-games-common 
sudo apt-get remove unity. ubuntuone-.
sudo apt-get remove thunderbird banshee
sudo apt-get remove rhythmbox
sudo apt-get remove brasero aisleriot gnome-games-common checkbox 
sudo apt-get remove firefox gwibber ubiquity telepathy-.
sudo apt-get remove unity-2d unity-2d-launcher unity-2d-places unity-2d-panel 
sudo apt-get remove unity-2d-spread unity-common unity-lens. unity-greeter
sudo apt-get remove libgwibber2 libgwibber-gtk2 liblightdm-gobject-1-0 
sudo apt-get remove unity-asset-pool unity-services ubiquity-slideshow-ubuntu
sudo apt-get autoremove
sudo apt-get update

#installing the useful one
sudo apt-get install geany geeqie vim lxde gmrun tree
sudo apt-get install nodm
sudo apt-get remove lxdm
sudo apt-get install tint2 stjerm maximus htop
sudo apt-get update
sudo apt-get upgrade 

#multimedia stuff
sudo apt-get install vlc mplayer

#development stuff
sudo apt-get install subversion qtcreator
sudo apt-get update
sudo apt-get upgrade 
nodm configuration
sudo vi /etc/default/nodm

edit:

NODM_USER=yourusername
NODM_XSESSION=/usr/bin/startlxde
lxde configuration
sudo vi /etc/xdg/lxsession/LXDE/desktop.conf

edit if you want metacity with some compositing as your window manager ck-launch-session is maybe-needed by NetworkManager to connect to protected wifi networks

window_manager=ck-launch-session metacity -c
sudo vi /etc/xdg/lxsession/LXDE/autostart

this is mine:

@xscreensaver -no-splash
#@lxpanel --profile LXDE
@tint2
@setxkbmap it
@pcmanfm --desktop --profile LXDE
@maximus -m
@/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
@stjerm -k F12 -w 1024 -o 85
tint2 configuration
vi ~/.config/tint2/tint2rc

this is mine:

# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure

# To use this as default tint2 config: save as $HOME/.config/tint2/tint2rc

# Background definitions
# ID 1
rounded = 0
border_width = 0
background_color = #000000 60
border_color = #FFFFFF 14

# ID 2
rounded = 5
border_width = 0
background_color = #FFFFFF 40
border_color = #FFFFFF 46

# ID 3
rounded = 5
border_width = 0
background_color = #FFFFFF 14
border_color = #FFFFFF 66

# Panel
panel_monitor = all
panel_position = bottom center horizontal
panel_size = 100% 30
panel_margin = 0 0
panel_padding = 7 0 7
panel_dock = 0
wm_menu = 0
panel_layer = normal
panel_background_id = 1

# Panel Autohide
autohide = 1
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 2
strut_policy = none

# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 2 3 2
taskbar_background_id = 0
taskbar_active_background_id = 0

# Tasks
urgent_nb_of_blink = 8
task_icon = 1
task_text = 0
task_centered = 1
task_maximum_size = 36 35
task_padding = 6 2
task_background_id = 3
task_active_background_id = 2
task_urgent_background_id = 2
task_iconified_background_id = 3

# Task Icons
task_icon_asb = 70 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 70 0 0

# Fonts
task_font = sans 7
task_font_color = #FFFFFF 66
task_active_font_color = #FFFFFF 81
task_urgent_font_color = #FFFFFF 81
task_iconified_font_color = #FFFFFF 66
font_shadow = 0

# System Tray
systray = 1
systray_padding = 0 4 5
systray_sort = ascending
systray_background_id = 0
systray_icon_size = 16
systray_icon_asb = 70 0 0

# Clock
time1_format = %H:%M
time1_font = Sans 10
time2_format = %a %d %b
time2_font = sans 6
clock_font_color = #FFFFFF 72
clock_padding = 1 0
clock_background_id = 0
clock_rclick_command = orage

# Tooltips
tooltip = 0
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 1
tooltip_font = sans 10
tooltip_font_color = #000000 80

# Mouse
mouse_middle = none
mouse_right = none
mouse_scroll_up = toggle
mouse_scroll_down = iconify

# Battery
battery = 1
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_hide = 98
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #FFFFFF 72
battery_padding = 1 0
battery_background_id = 0
troubleshooting

i had problems connecting with NetworkManager to protected wifi networks; add your user to the 'networkmanager' group:

sudo gpasswd -a `whoami` networkmanager
reboot

cross your fingers and reboot :)

suspend on lid-close

to suspend from commandline:

sudo pm-suspend # pre-cooked script that does the clean thing (have a look to it: cat /usr/sbin/pm-suspend)

or

sudo bash -c "echo mem > /sys/power/state" #quick and dirty solution :)

i'm trying to make scripts/programs to manage with lid close event.. but i lost the reopen-after-suspend and first close-after-resume events.. currently suspend-on-lid-close is working only every 2 close so… work in progress!

suspend, reboot, backlight as user

you can create udev rules as sven done here http://ac100.grandou.net/backlightcontrol or, like me, you can add lines to visudo to allow your user to sudo without password some commands ('s' is my user):

sudo visudo
  
%s ALL=(ALL) NOPASSWD: /home/s/bin/wifi_off
%s ALL=(ALL) NOPASSWD: /home/s/bin/wifi_on
%s ALL=(ALL) NOPASSWD: /home/s/bin/suspend
%s ALL=(ALL) NOPASSWD: /home/s/bin/backlight
%s ALL=(ALL) NOPASSWD: /sbin/shutdown
%s ALL=(ALL) NOPASSWD: /sbin/mount
%s ALL=(ALL) NOPASSWD: /usr/sbin/pm-suspend
%s ALL=(ALL) NOPASSWD: /usr/sbin/rfkill
Maximize all Windows in Openbox

You can do this with maximus. Or - recommended - just by openbox. Insert these lines in Openbox/lubuntu-rc.xml (or Openbox/lxde-rc.xml respectively)

   <application class="*">
      <decor>no</decor>
      <maximized>yes</maximized>
    </application>

To get decoration back on un-maximize you can add similar statements. But this is rarely used. If some application classes shall not be maximized, just add those.

ubuntu_deubuntuization.txt · Last modified: 2011/11/07 18:25 by pibach