Saturday, 16 February 2013

merubah tampilan desktop dengan conky




install conky
#apt-get install conky
install feh
#apt-get install feh
#gedit /etc/conky/conky.conf
co-pas script dibawah ini :
alignment top_right
background yes
use_xft yes
xftfont bitstream vera:size=10

xftalpha 1
update_interval 1
total_run_times 0
own_window yes
own_window_colour 0000cc
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
transparency 100
enable_transparency true
double_buffer yes
minimum_size 250
maximum_width 250
draw_shades no
draw_outline no
draw_borders no
border_width 0
border_margin 0
draw_graph_borders no
#default_color f0f0f0
#color1 dd6655
#color2 ff2244
#color3 yellow
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
short_units yes
gap_x 4
gap_y 4

TEXT
${color red}${font progenisis:bold:size=14}Indonesian BlackHat Team$color
${color green}${alignr}${font swift:bold:size=9}GREENCODE$color
${font sans-serif:bold:size=9}SYSTEM ${hr 2}
${font sans-serif:normal:size=7}$sysname $kernel on $machine
${color}${font sans-serif:normal:size=7}${execi 1000 cat /proc/cpuinfo | grep ‘model name’ | sed -e ‘s/model name.*: //’}
CPU1: ${cpu cpu1}% ${alignr}${cpubar 6,120 cpu1}
CPU2: ${cpu cpu2}% ${alignr}${cpubar 6,120 cpu2}
RAM: $memperc% ${alignr}${membar 6,120}
SWAP: $swapperc% ${alignr}${swapbar 6,120}
Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 6,120 BAT0}
${font sans-serif:normal:size=7}${color red}CPU: $color ${freq} Mhz $alignr${color red} Usage:$color $cpu%
${font sans-serif:normal:size=7}${color red}Disk I/O: $color${alignr}${diskio sda}
${font sans-serif:normal:size=7}${color red}Cache Size: $color$alignr$cached
File System: $alignr${fs_type}
Power: ${color red}$acpiacadapter$color $alignr$battery_percent% – $battery_time%
Uptime: ${alignr}${uptime}
Hostname $alignr $nodename
# Conky Version: $alignr$conky_version –disabled sementara
${cpugraph 000000 00FF00 19,250}
#Hari dan tanggal  –disabled sementara
# ${font sans-serif:bold:size=8}DATE ${hr 2}  –disabled sementara
# ${font sans-serif:normal:size=7}Time: ${color red}${alignr}${time %H:%M:%Ssec}$color –disabled sementara
# ${font sans-serif:normal:size=7}Days: ${color red}${alignr}${time %a %d %b %Y}$color –disabled sementara
#Status CPU
${font sans-serif:bold:size=8}INFO DISK ${hr 2}
# ${font sans-serif:normal:size=7}CPU $alignr ${cpu cpu0}%  –disabled sementara
# ${cpubar cpu0 3,250}  –disabled sementara
# MEMORY $alignc $mem / $memmax $alignr $memperc%
# ${membar 3,250}
# ROOT $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
# ${fs_bar / 2,250}
/Home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home 3,250}
# Local Disk C: $alignc ${fs_used /media/disk} / ${fs_size /media/disk} $alignr ${fs_free_perc /media/disk}%
# ${fs_bar /media/disk 3,250}
# Local Disk D: $alignc ${fs_used /media/Local Disk} / ${fs_size /media/Local Disk} $alignr ${fs_free_perc /media/Local Disk}%
# ${fs_bar /media/Local Disk 3,250}
swap $alignc $swap / $swapmax $alignr $swapperc%
${swapbar 3,250}
#NETWORK Setting
#Networking yang di pakek kalau pakek kabel biasanya pakek eth0 ato eth1 di sini saya pakek wirelles jadi wlan0
${font sans-serif:bold:size=8}NETWORK ${hr 2}
${font sans-serif:normal:size=7}${color red}Ethernet ${hr 1}$color
IP address: $alignr${addr eth0}
Gateway: ${alignr}$gw_ip
DNS: ${alignr}${nameserver}
${color green}Download speed: $alignr$color${downspeedf eth0} Kb/sec
${color green}Up: $color${upspeedf eth0} k/s ${alignr}${color red}Down: $color${downspeedf eth0} k/s
#Wifi
${color red}Wi-Fi ${hr 1}$color
IP address: $alignr${addr wlan0}
Gateway: $alignr$gw_ip
ESSID: $alignr ${wireless_essid wlan0}
MAC Access Point: ${alignr}${wireless_ap}
Signal Access Point: ${font Webdings:size=5}$alignr${if_match ${wireless_link_qual_perc wlan0} >= 80}${color green}nnnnn$else${if_match ${wireless_link_qual_perc wlan0} >= 60}${color light green}nnnn$else${if_match ${wireless_link_qual_perc wlan0} >= 40}${color yellow}nnn$else${if_match ${wireless_link_qual_perc wlan0} >= 20}${color orange}nn$else${if_match ${wireless_link_qual_perc wlan0} >= 0}${color red}n$endif$endif$endif$endif$endif$color
${font sans-serif:normal:size=7}Wireless signal: $alignr${wireless_link_qual wlan0} %
${font sans-serif:normal:size=7}${color green}Download speed: $alignr$color${downspeedf wlan0} Kb/secs
${color green}Up: $color${upspeedf wlan0} k/s ${alignr}${color red}Down: $color${downspeedf wlan0} k/s
${color green}${downspeedgraph wlan0 7,250}$color
#Proses applikasi yang berjalan CPU ID kalau di windots
${font sans-serif:bold:size=8}PROCESS ${hr 2}
${color red}${font sans-serif:normal:size=7}NAME $alignr PID      CPU       Mb  $color
${top name 1} $alignr ${top pid 1} ${top cpu 1}% ${top mem 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}% ${top mem 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}% ${top mem 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}% ${top mem 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}% ${top mem 5}
${font sans-serif:normal:size=7}$alignr$processes processes ($running_processes running)
${color red}Dial Up${hr 1}$color
IP address:$alignr${addr ppp0}
${color green}Up: $color${upspeedf ppp0} k/s ${alignr}${color red}Down: $color${downspeedf ppp0} k/s
${alignr}${upspeedgraph ppp0 25,127 000000 00ff00} ${downspeedgraph ppp0 25,127 000000 ff0000} $color
Total: ${totalup ppp0} ${alignr}Total: ${totaldown ppp0}
#FACEBOOk
${if_existing /proc/net/route eth0}${font Ubuntu:size=8}${color4}Facebook Notifications: ${color}
$stippled_hr
${voffset -2}${font Ubuntu:size=7}${color1}${execi 60 /etc/conky/.scripts/facebook}${color white}
${endif}

#gedit conky.sh
copas script berikut dan simpan :
#! /bin/bash
feh –bg-scale /usr/share/wallpapers/backtrack/Backtrack_5_Black.jpg | head -n1 | tail –bytes=+11
sleep 15
conky -&

kalau mau auto start … add aja pada startup nya backtrack

Menu :
system – preference – startup applications preference – Add

Name        : conky
Command : /home/Downloads/conky.sh
Comment  : conky