Instalacija / Installing
> sudo apt-get install openbox obconf obmenu tint2 nitrogen conky guake
openbox - interfejs / interface
obconf - konfigurator za openbox / configuration
obmenu - konfigurator za glavni meni / main menu configuration
tint2 - panel
nitrogen - podesavanje pozadine / setting wallpaper
conky - info panel
guake - padajuci terminal emulator / drop down terminal
Autostart programi / programs:
u/in "/home/username/.config/openbox" napraviti/make "autostart.sh":
nano /home/username/.config/openbox/autostart.sh
Ovde se ubacuju programi komande koje hocete da se pokrecu pri ukljucivanju openbox interfejsa.
In here, you place programs and commands that you want to autostart with openbox interface.
Ovako izgleda moj autostart.sh:
###########
tint2 & #panel
nitrogen --set-scaled /home/username/Pictures/wallpaper.jpg & #Sliku wallpaper.jpg postavljao kao pozadinu. / Sets wallpaper.jpg as background.
conky & #ukljucuje info panel koji se na slici nalazi na levoj strani. / Starts info panel which is, in this case, placed on left side.
###########
U slucaju da openbox nije dosao uz sistem, on nece sam pokrecati menadzer za mreze, u tom slucaju treba instalirati nm-applet ili wcid menadzer za mreze i dodati ga u autostart.sh. Ikonica ce se pojaviti u desnom uglu tint2 panela, to treba biti znak da mreza funkcionise. U ovom slucaju je "nm-applet" koji po defaultu dolazi uz "GNOME" interface.
/
In case that openbox didn't came as default with system, it won't start network manager, in that case you should install "nm-applet" or "wcid" network manager and add it to autostart.sh. Network managers icon, in case it works, will appeare on the left side of tint2 panel, that should be you indicator that network is functional. In this case it's "nm-applet" which, by default comes with "GNOME" interface.
Conky je panel koji vam prikazuje stanje raznih elemenata sistema i informacije o hardveru (procentualno koriscenje jezgara procesora, temperatura istog, brzina hard diska itd).
/
Conky is panel which shows states of various elements of your system and informations about hardware (CPU usage percentage, cpu temperature, hard disk rotation speed etc.).
Conky je bez doradjene skripte u osnovi veoma ruzan i ne prikazuje mnogo informacija o celom sistemu.
/
Conky is without custom script very ugly and doesn't show much info about whole system.
Isto kao i autostart.sh, skripta za Conky se kreira i menja rucno.
Just as autostart.sh, Conky configuration script is created manualy.
Kreiranje skripte / Creating script:
"nano /home/username/.conkyrc "(conky skripta ne treba da ima ekstenziju .sh / conky script doesn't require .sh extention):
Skripta za conky koji se vidi na slici izgleda ovako / Script for conky that can be seen on pictures looks like this:
##########################################################
# UBUNTU-CONKY# A comprehensive conky script, configured for use on# Ubuntu / Debian Gnome, without the need for any external scripts.## Based on conky-jc and the default .conkyrc.# INCLUDES:# - tail of /var/log/messages # - netstat connections to your computer## -- Pengo (conky@pengo.us)#
# Create own window instead of using desktop (required in nautilus)own_window yesown_window_hints undecorated,below,skip_taskbarbackground no
# Use double buffering (reduces flicker, may not work for everyone)double_buffer yes
# fiddle with windowuse_spacer yesuse_xft yes
# Update interval in secondsupdate_interval 3.0
# Minimum size of text areaminimum_size 400 5
# Draw shades?draw_shades yes
# Text stuffdraw_outline no # amplifies text if yesdraw_borders no
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?stippled_borders 8
# border marginsborder_margin 4
# border widthborder_width 1
# Default colors and also border colors, grey90 == #e5e5e5default_color whitedefault_shade_color blackdefault_outline_color white
own_window_colour brownown_window_transparent yes
# Text alignment, other possible values are commentedalignment top_left#alignment top_right#alignment bottom_left#alignment bottom_right
# Gap between borders of screen and textgap_x 10gap_y 10
# stuff after 'TEXT' will be formatted on screen
override_utf8_locale noxftfont Terminus:size=8xftalpha 0.8
TEXT
${offset }${color slate grey}${time %a, } ${color }${time %e %B %G}${offset 2}${color slate grey}${time %Z, }${color }${time %H:%M:%S}${offset 2}${color slate grey}UpTime: ${color }$uptime${offset 2}${color slate grey}Kern:${color }$kernel${offset 2}${color slate grey}CPU:${color } $cpu% ${acpitemp}C${offset 2}${cpugraph 20,130 000000 ffffff}${offset 2}${color slate grey}Load: ${color }$loadavg${offset 2}${color slate grey}Processes: ${color }$processes ${offset 2}${color slate grey}Running: ${color }$running_processes
${offset 2}${color slate grey}Highest CPU:${offset 2}${color #ddaa00} ${top name 1}${top_mem cpu 1}${offset 2}${color lightgrey} ${top name 2}${top cpu 2}${offset 2}${color lightgrey} ${top name 3}${top cpu 3}${offset 2}${color lightgrey} ${top name 4}${top cpu 4}
${offset 2}${color slate grey}Highest MEM:${offset 2}${color #ddaa00} ${top_mem name 1}${top_mem mem 1}${offset 2}${color lightgrey} ${top_mem name 2}${top_mem mem 2}${offset 2}${color lightgrey} ${top_mem name 3}${top_mem mem 3}${offset 2}${color lightgrey} ${top_mem name 4}${top_mem mem 4}
${offset 2}${color slate grey}MEM: ${color } $memperc% $mem/$memmax${offset 2}${membar 3,100}${offset 2}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax${offset 2}${swapbar 3,100}
${offset 2}${color slate grey}ROOT: ${color }${fs_free /}/${fs_size /}${offset 2}${fs_bar 3,100 /}${offset 2}${color slate grey}HOME: ${color }${fs_free /home}/${fs_size /home}${offset 2}${fs_bar 3,100 /home}${offset 2}${color slate grey}SLACK: ${color }${fs_free /mnt/slack}/${fs_size /mnt/slack}${offset 2}${fs_bar 3,100 /mnt/slack}${offset 2}${color slate grey}NET: ${offset 2}${color}Up: ${color }${upspeed eth0} k/s${offset 2}${upspeedgraph eth0 20,130 000000 ffffff}${offset 2}${color}Down: ${color }${downspeed eth0}k/s${color}${offset 2}${downspeedgraph eth0 20,130 000000 ffffff}
########################################################
--------------------------------
Tip:
"nano" je uredjivac tekst dokumenata i skripti koji se koristi u temrinalu, tj. tekstualnom interfejsu. Ko nije iskusan sa tekstualnim interfejsom moze goristiti graficke (leafpad, gedit...)
/
"nano" is text and script editor which is command line interface based. Those who are not experienced with command line interfaces could use those based on graphical interface (leafpad, gedit...).
Da bi se u "nano" programu sacuvao obradjeni fajl - Ctrl + o
Da bi se izaslo iz programa - Ctrl + x
/
To save edited file in "nano" - Ctrl + o
To exit "nano" - Ctrol + x
-------------------------------
Drugi programi koji su koriscenju u ovom tutorialu su "scrot" za slikanje radne povrsine, koji je takodje baziran na tekstualnom interfejsu, i "guake" padajuci emulator terminala za Linux i slicne operativne sisteme.
/
Other programs used in this tutorial are "scrot" for taking screenshots, which is also based on command line interface, and guake which is drop down terminal emulator for Linux and similar operating systems.