ubuntu light install [update 2019 06 19]

- alternative computing with amiga icaros desktop linux haiku - get back our freedom ! free the world of technological hegemony together - tutorials and how to

ubuntu light install [update 2019 06 19]

Hits: 459

The first version of this article is from 2014 April 14 Compatible with
  • Ubuntu 12.04LTS
  • Ubuntu 16.04LTS
  • Ubuntu 18.04LTS
Unity, Gnome, KDE are very heavy. It cannot run there, on my DELL Optiplex GX280 2Gb RAM. This is quite a challenge to have a modern environment on such an old comp (at least 6-8 years). I also want to use this article as an introduction to the installation of custom E-UAE running amiga OS AND/OR AROS linux hosted.

Targeted system

– Ubuntu 12.04 server LTS 32bits/64bits OR Ubuntu 16.04LTS O

– use of tint2 and openbox

This is MY way, but this should be usefull for everyone.  

Download Ubuntu Server 12.04 LTS 32 or 64 bits

Do it there :

http://www.ubuntu.com/download/server

Burn the iso

(or make a bootable usb with the iso using

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows)

boot your comp’

using the media you created in 2

during the installation

do not choose any package to install

reboot

and log on for the first time with the user you created during the install process. For the moment, there is no need for an X server, so you just have a black screen with a prompt, and it is just enough to begin !

These are the packages i installeD

Using the command

sudo apt-get install [package-name]

All the tutorial is below. Don’t forget it’s a huge work to write those articles, please show me you support in liking my facebook page !

ubuntu-desktop : because i’m lazy. this is a huge package. it installs unity and all the dependences. we won’t use it, but it uses to install a lot of packages for usb volumes handling, alsa, XServer, udevd… and many stuffs that are needed in modern OSes.

openbox : the windows manager we will use

nitrogen : openbox is a fucking light and efficient windows manager, but it is… blanck. this package allow a wallpaper [correction : I don’t use it anymore, see below, paragraph 9c]

tint2 : we also need a taskbar, there it is

conky : show ressources informations on the background

firefox : the only really open-source web browser

ia32-libs : 32bits compatibility layer. Only available/usefull if you decided to install 64bits version of ubuntu

ubuntu-restricted-extras (flash 11) : many packages are installed there. This is most for flash plugin. [correction : this package can get you in some issues, i personally decided not to install it, it’s up to you]

vlc : the video best player ever !

leafpad : a cool gedit replacement

pcmanfm : a cool filebrowser

obmenu : graphical interface for openbox menu editing

imagemagick : to take screenshots

usbmount : for usb automounting [correction : i don’t use it anymore, see below, paragraph 9c]

volti : a simple volume level manager for tint2

This drives us this command line :

sudo apt-get install ubuntu-desktop openbox tint2 pcmanfm vlc volti leafpad firefox thunderbird playonlinux wine nitrogen obmenu usbmount

UPDATE 2019 06 19

Under Ubuntu 18.04LTS, some packages have changed, like ia32libs.

So add those packages to the list :

apcupsd audacious moc mpd xmms2 libxml2-dev openbox-gnome-session openbox-kde-session python-gtk2-doc lib32ncurses5 lib32z1

Don’t forget to update / upgrade

Using :

sudo apt-get update
sudo apt-get upgrade

make the sound (alsa) work

So, we are on ubuntu server. At least, we now have a light and efficient core. But, everything has still to be done to “pimp” your configuration.

This is something I really love, since I am on Amiga (like) systems for ages.

to make the sound work, it is simple, you have to add yourself in the “audio” group, and initialise ALSA.

to do so :

sudo adduser $USER audio
sudo alsa force-reload
sudo alsactl -F init

That’s all. You can try your sound using vlc for example.

Normally, alsa should have recognized your audio card. If you have any problem, I suggest you to read this article :

https://help.ubuntu.com/community/SoundTroubleshootingProcedure

pimp my desktop

Here are some tricks to configure your desktop and make it simple and efficient.

So, we have : openbox, tint2, nitrogen and conky installed, we’ll make them work together.

First, login into openbox session from the login screen. You’ll get a blanck screen. [Right Click] and open a terminal.

nano ~/.config/openbox/autostart

this is the autostart list of programs to load at the beginning of the session. so type that, in any order, at the end of the file :

nitrogen --restore &
conky&
tint2&
volti&

To save your file, use [ctrl+x], then “Y” (for “yes”, french users will type “O”), then [enter].

Get out of the session, and re-enter it. You should now have a taskbar on the bottom, and something on your background that give you infos on the used resources.

You can change the background now, using

nitrogen ~/Images

You should ofcourse have put some images inside your Images drawer.

Get out and get back in your session and look at the result.

Why is there no icons inside the pcmanfm window ?

Add the line

gnome-settings-daemon &

in the autostart file.

An other way…

… of having a background image and to have a real desktop / peripheral automount.

I used to use nitrogen to show a background image, and when I plug an usb peripheral, or put a cd in the driver, I used to open a pcmanfm window to get them automounted (usbmount also do the job well),or even use the “mount” command, which is nice to learn, but not very convenient when you are unsure of the filesystem you want to mount. The usbmount package use to create directories inside “/media/”, that I don’t feel very pretty.

So, there is a way to have a real modern, but light desktop manager. Instead of using usbmount and nitrogen, I now prefer to launch pcmanfm with the “–desktop” option.

You just have to delete the lines regarding to nitrogen and uninstall usbmount (if previously installed).

sudo apt-get remove usbmount

And add :

pcmanfm --desktop &

to the autostart file.

The autostart file

With the last updates of this article, your autostart file should look like that :

conky&
tint2&
gnome-settings-daemon &
volti&
pcmanfm --desktop &

To change preferences of your desktop, you now have to launch pcmanfm from terminal like this :

pcmanfm --desktop-pref

This allows you to change the background, and some other prefs.

openbox menu editing

There are 2 ways to do that :

– using obmenu app

-manually edit “~/.config/openbox/menu.xml” config file

To use obmenu app, use the command :

obmenu

inside a terminal.

Edit the “menu.xml” config file is simple. You just have to respect the xml format.

Automate the menu content

You must install:

sudo apt-get install menu menu-xdg gnome-menus

when done, open your menu.xml (like in the last paragraph), and add those 2 lines :

<menu execute="obm-xdg" id="xdg-menu" label="xdg" /> <!-- at the begining of the file (2nd line) -->

and:

<separator />
<menu id="xdg-menu" /> <!-- where you want the menu to appear-->
<separator />

Here is mine.

do not type your root password…

…for closing the session or stop the machine.

You can use your openbox like this, but, it is annoying to type your password each time you want to close your session or stop your machine.

This is simple, use visudo to edit /etc/sudoers and add one line at the end of the file. Be carefull, but don’t worry. psexec can help you if you get stuck.

so, type this :

sudo visudo

then type your root password

then add this at the end of the file :

[yourusername] ALL= NOPASSWD: /sbin/telinit

if you get stuck, try to use “psexec visudo” to open the file again and fix the problem.

tint2 simple config editing

This can easily be done editing the file “~/.config/tint2/tint2rc“.

I personnally wished to have some “docking” launch icons for the programs I use the most : thunderbird, firefox, xterm, leafpad and pcmanfm.

The icons are stored there :

/usr/share/icons

Each drawer is a complete set.

The description of the “dock” can be found there :

/usr/share/applications

For each .desktop textfile, there is a possible menu for tint2.

Here are the lines you have to modify inside your tint2rc file :

panel_items = LTSBC
autohide = 1
#——————————————
#LAUNCHER
#——————————————
launcher_icon_theme = gnome
launcher_padding = 2 2
launcher_background_id = 1
launcher_icon_size = 20
launcher_item_app = /usr/share/applications/firefox.desktop
launcher_item_app = /usr/share/applications/debian-xterm.desktop
launcher_item_app = /usr/share/applications/thunderbird.desktop
launcher_item_app = /usr/share/applications/leafpad.desktop
launcher_item_app = /usr/share/applications/pcmanfm.desktop

Usefull ressources

There are my configuration for openbox :

-openbox startup : autostart

If you want more informations about nitrogen, conky or tint2, please, have a look there :

– about tint2 : http://code.google.com/p/tint2/wiki/Install

– about conky : https://help.ubuntu.com/community/SettingUpConky

– about nitrogen :…

– There is there an other way to replace unity with openbox (straight to the end : install LUbuntu) : http://www.reddit.com/r/Ubuntu/comments/vh4yd/replacing_unity_with_openbox/

– About Openbox (in french) : http://doc.ubuntu-fr.org/openbox

Tags: , , ,

10 Responses

  1. […] cet article (en anglais pour le moment, mais je suis en train de le traduire) pour installer une version légère d’openbox (étapes écrites pour 12.04LTS Ubuntu, mais […]

  2. […] Install an ubuntu 12.04LTS  or 16.04LTS server 64bits (follow this article). […]

  3. […] this article to install a light version of openbox (written for 12.04LTS Ubuntu, but it can still be used under […]

  4. […] the amiga hd is, so now it is time for mounting it. Automount does not work (at least there with my Ubuntu 12.04LTS server light install). The filesystem FFS, for ubuntu, is known as “AFFS”. Here I’ll just mount the […]

  5. […] You should have first installed your ubuntu server 64bits in the way written in this article. […]

  6. […] use with the openbox windows manager package (have a look to this article about installing a light ubuntu […]

  7. […] use with the package tint2 (have a look to this article about installing a light ubuntu […]

  8. […] use with the package tint2 (have a look to this article about installing a light ubuntu […]

  9. […] You should have first installed your ubuntu server 64bits in the way written in this article. […]

Leave a Reply

Your email address will not be published. Required fields are marked *

css.php