1

(2,564 replies, posted in Tips, Tricks & Scripts)

This is my conkyrc, nothing paranormal big_smile
http://img228.imageshack.us/img228/2548/screenshot1l.th.jpg

# Use Xft?
use_xft yes
#xftfont DejaVu Sans:size=8
xftfont Hitman:size=9
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background yes

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

# Minimum size of text area
minimum_size 180 0
maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black
own_window_colour black
color1 black

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

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 15
gap_y 5

# Subtract file system buffers from used memory?
no_buffers yes

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

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

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

TEXT
${font Infected:size=20}SYSTEM${font } ${hr 2}

${alignc 25}${font Karate:size=16}Hp Zv6069EA${font}
#${voffset 2}${font StyleBats:size=16}i${font}   Kernel:  ${alignr}${kernel}
${voffset 2}${font openlogos:size=18}u${font}   Kernel:  ${alignr}${kernel}
${font StyleBats:size=16}A${font}   CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font}   SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font StyleBats:size=16}q${font}   Uptime: ${alignr}${uptime}

${font Infected:size=20}DATE ${hr 2}
${color black}${voffset -10}
${alignc 35}${font defused:size=52}${time %H}${voffset -25}${font defused:size=23}${time :%M}${voffset -10}${font defused:size=10}${time :%S}
${voffset 15}

${alignc 20}${font Capture it 2:size=20}${time %d}${voffset -11}${alignr 20}${font Capture it 2:size=10}${time %a}
${alignr  20}${font Capture it 2:size=10}${time %B %Y}
${color}${font Infected:size=20}HD${font} ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${font Pie charts for maps:size=14}7${font}   ${voffset -5}DEPOSITO:
${voffset 4}${fs_used /media/DEPOSITO}/${fs_size /media/DEPOSITO} ${alignr}${fs_bar 8,60 /media/DEPOSITO}

${font Infected:size=20}WIRELESS${font} ${hr 2}
${color white}
${voffset 4}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed wlan0} ${alignr}${upspeedgraph wlan0 8,60 000000 000000}
${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed wlan0} ${alignr}${downspeedgraph wlan0 8,60 000000 000000}
${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font}   Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
#${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Local Ip: ${alignr}${addr wlan0}

${font Infected:size=20}PROCESSES${font} ${hr 2}
NAME $alignr PID    CPU${font Hitman:size=8}
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}
${top name 6} $alignr ${top pid 6} ${top cpu 6}

@tunafish thanks for european nist servers!

In my experience, I had only to disable the service network-manager (I dont remember exactly the name) through sysv-rc-conf, because I didnt uninstalled nm-applet package.

4

(3 replies, posted in Devel: CrunchBang 10 "Statler")

The installation of the official ati driver went wrong so I removed to come back to the open ones that work perfectly.
However because of I had a config file I done months ago 4 my nb, I recompiled the kernel 2.6.34 and I've to say that nb is more quiet now.

I dont know what to think/say.

slapfish wrote:

is there a way to be executed on startup but without the need of sudo (in autostart.sh)???

about autostart.sh... i've seen right now that there is this code in the file

rdate -s ntp2.inrim.it 

-s set the date without printing it.
I tried this from the shell and it works fine, so I'm wondering why sometimes the time goes 1/2 hours in the future?

6

(5 replies, posted in Help & Support (Stable))

this is my tint2rc

# 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 = 5
border_width = 2
background_color = #FFFFFF 7
border_color = #FF002C 100

# ID 2
rounded = 5
border_width = 2
background_color = #FFFFFF 4
border_color = #0400FF 100

# ID 3
rounded = 5
border_width = 2
background_color = #FFFFFF 6
border_color = #14FF00 100

# ID 4
rounded = 5
border_width = 2
background_color = #FFFFFF 6
border_color = #FFFFFF 100

# ID 5
rounded = 5
border_width = 0
background_color = #FFFFFF 0
border_color = #000000 100

# Panel
panel_monitor = all
panel_position = bottom center horizontal
panel_size = 1150 40
panel_margin = 5 5
panel_padding = 15 5 15
panel_dock = 0
wm_menu = 0
panel_layer = bottom
panel_background_id = 0

# Panel Autohide
autohide = 0
autohide_show_timeout = 0.0
autohide_hide_timeout = 0.0
autohide_height = 0
strut_policy = follow_size

# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 5 0 0
taskbar_background_id = 1
#taskbar_active_background_id = 0

# Tasks
urgent_nb_of_blink = 7
task_icon = 1
task_text = 1
task_centered = 0
task_maximum_size = 200 32
task_padding = 7 2
task_background_id = 5
task_active_background_id = 4
task_urgent_background_id = 0
task_iconified_background_id = 0

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

# Fonts
task_font = kiloji 10
task_font_color = #FFFFFF 80
task_active_font_color = #FFFFFF 100
task_urgent_font_color = #FFFFFF 100
task_iconified_font_color = #FFFFFF 100
font_shadow = 0

# System Tray
systray = 1
systray_padding = 9 0 4
systray_sort = ascending
systray_background_id = 2
systray_icon_size = 0
systray_icon_asb = 100 0 0

# Clock
time1_format = %H:%M
time1_font = Sans 10
time2_format = %a %d %b
time2_font = Sans 8
clock_font_color = #FFFFFF 100
clock_padding = 10 5
clock_background_id = 3

# Tooltips
tooltip = 0
tooltip_padding = 0 0
tooltip_show_timeout = 0
tooltip_hide_timeout = 0
tooltip_background_id = 0
tooltip_font = Sans 12
tooltip_font_color = #FFFFFF 100

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

# Battery
battery = 0
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
battery_hide = 90
bat1_font = Sans 12
bat2_font = Sans 12
battery_font_color = #FFFFFF 100
battery_padding = 0 0
battery_background_id = 0

# End of config

you can try this and if it works you can start from this.
btw there is this fine gui to edit tint2 in easier way than manually edit the file.

I'm 24 and I use #! from Sicily.

I didn't find anything about it in the forum.
No packages installation needed!

So, only to print date

rdate -p time-a.timefreq.bldrdoc.gov

to set date

sudo rdate time-a.timefreq.bldrdoc.gov

I've put this alias in my ~/.bashrc because of frequent use.

alias time_adjust='sudo rdate time-a.timefreq.bldrdoc.gov'

List of servers here.

I hope this will helpful. smile

9

(125 replies, posted in Devel: CrunchBang 10 "Statler")

Toolz wrote:

So based on my experience I'd say use Unetbootin with 'cdrom-detect/try-usb=true' boot option

Imaginary "thanks button" pressed!

every time I install a new linux distro on my pc, I use this package I made because I don't have easy access to the router.
How to install:
extract the archive
move to the new directory (in a shell )
launch ./install_wireless
and enjoy!

I hope this will help someone unlucky&lazy like me! big_smile
Downlaod

11

(132 replies, posted in Tips, Tricks & Scripts)

i add to my .bashrc these lines, the only differences from the others' are the 2 function "psp" e "my_kill" at he end of the code.
psp $1 prints all the processes which has the string $1 in the name,
my_kill $1 kills all the processes which has the string $1 in the name
my_kill SIGNAME PROCESS_NAME instead not kill the processes but its behaviour depends on the type of signal (SIGNAME) you want to send to all the processes which has the string 'PROCESS_NAME' in the name

I hope this will be useful to someone.

alias governor='sudo cpufreq-set -g'
alias cpuinfo='cpufreq-info'

## Sudo fixes
alias install='sudo apt-get install'
alias remove='sudo apt-get --purge remove'
alias dupgrade='sudo apt-get update && sudo apt-get dist-upgrade'
alias orphand='sudo deborphan | xargs sudo apt-get -y remove --purge'
alias cleanup='sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get clean && sudo apt-get remove && orphand'
alias updatedb='sudo updatedb'

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi


#------------------------------------------////
# Colors:
#------------------------------------------////
black='\e[0;30m'
blue='\e[0;34m'
green='\e[0;32m'
cyan='\e[0;36m'
red='\e[0;31m'
purple='\e[0;35m'
brown='\e[0;33m'
lightgray='\e[0;37m'
darkgray='\e[1;30m'
lightblue='\e[1;34m'
lightgreen='\e[1;32m'
lightcyan='\e[1;36m'
lightred='\e[1;31m'
lightpurple='\e[1;35m'
yellow='\e[1;33m'
white='\e[1;37m'
nc='\e[0m'

#------------------------------------------////
# System Information:
#------------------------------------------////
clear
echo -e "${LIGHTGRAY}";figlet "Realgpp";echo ""
echo ""
echo -ne "${red}Today is:\t\t${cyan}" `date`; echo ""
echo -e "${red}Kernel Information: \t${cyan}" `uname -smr`

echo -e "${yellow}"; cal -3
#------------------------------------------////
# Man Pages Colorate
#------------------------------------------////
export MANPAGER="/usr/bin/most -s"

#------------------------------------------
#------Extraction of compressed files------

extract () {
  if [ -f $1 ] ; then
      case $1 in
          *.tar.bz2)   tar xvjf $1    ;;
          *.tar.gz)    tar xvzf $1    ;;
          *.bz2)       bunzip2 $1     ;;
          *.rar)       rar x $1       ;;
          *.gz)        gunzip $1      ;;
          *.tar)       tar xvf $1     ;;
          *.tbz2)      tar xvjf $1    ;;
          *.tgz)       tar xvzf $1    ;;
          *.zip)       unzip $1       ;;
          *.Z)         uncompress $1  ;;
          *.7z)        7z x $1        ;;
          *)           echo "don't know how to extract '$1'..." ;;
      esac
  else
      echo "'$1' is not a valid file!"
  fi
}

my_kill () {

if ( [ $# -gt 2 ] || [ $# -lt 1 ] )
then 
echo "ERR. Correct usage: $0 SIGNAME PROCESS_NAME"
exit 1
fi

SIGN=''
NAME=''

if [ $# -eq 2 ]
then
    SIGN=$1
    NAME=$2
else if [ $# -eq 1 ]    
    then
    SIGN='SIGKILL'
    NAME=$1
    fi
fi

PD=$( ps -A | grep $NAME | awk '{print $1}' )
P=$(echo $PD)
for i in $P
do
sudo kill -s $SIGN $i
done
}

psp () {
if [ $# -lt 2 ]
then 
    ps -A | grep $1
else
    echo "err: too parameter"
    exit 1
fi
}

12

(3 replies, posted in Devel: CrunchBang 10 "Statler")

Hi everyone, I'm reading this forum from 3 days ago finding every kind of solution to my confguration box problem big_smile... untill now. sad
I've to say I fall in love with #! + xfce! cool
I've installed the cpufreqd (I dont remember if it's the real name) package and the command
sudo cpufreq-set -g ondemand
seems to work but the cpu freq is always 2.2GHz even on startup!

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies 
2200000 2000000 1800000 1000000 

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 
userspace powersave conservative ondemand performance

$ cat /etc/modules 
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

#firewire-sbp2
loop

powernow_k8
acpi-cpufreq
cpufreq_conservative
cpufreq_ondemand
cpufreq_powersave
cpufreq_userspace

I hope this information can help to find a solution because the noise of the fan is gonna drive me crazy! yikes