Skip to forum content
CrunchBang Linux Forums
A discussion board for CrunchBang Linux users.
Search options (Page 1 of 2)
Having installed vsftpd ( following this tutorial- http://ubuntuforums.org/showthread.php?
light=nfs) I can see my netbook from my desktop but cannot see how to configure networking from CBL.
Anyone able to offer some pointers? I have tried NFS as well but always struggle big style 
I'm using Gnome/Nautilus- this is my main (non-CB) desktop!.
I'll try commenting out various things but it was rock solid previously. Only thing I can think of is that the last.fm script isn't updating anymore so the two may be linked ( or not)
This one may be unsolvable but every time I left click on my desktop my Conky disappears!
Anyone got any ideas?
My conky script
# --- Window Layout & Options --- #
own_window yes
own_window_colour brown
own_window_transparent yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer right
use_xft yes
alignment top_right
gap_x 10
gap_y 40
# --- Colours, Sizes, Fonts & Margins --- #
update_interval 2.0
maximum_width 280
stippled_borders 3
window.border_inner_margin 9
border_width 10
default_color grey
# --- Text --- #
draw_outline no
draw_borders no
font Monospace:size=8:weight=bold
uppercase no
draw_shades yes
TEXT
${color orange}${font zerothrees:size=8}SYSTEM INFORMATION ${hr 2}$color
${color white}Machine$color $nodename ${alignr}${color white}Uptime$color $uptime
${color white}Kernel$color $kernel ${alignr}${color white}Arch$color $machine
${color orange}DATE ${hr 2}
${alignc 35}${font zerothrees:size=30}${time %H:%M}${font zerothrees:size=14}
${alignc}${time %a %d %b %Y}
${color orange}${font zerothrees:size=8}CPU ${hr 2}$color
${font zerothrees:bold:size=8}${color #ff9999}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
${color white}Temp:$color ${execi 20 sensors |grep "Core0 Temp" | cut -d" " -f4}$font$color$alignr${freq_g 2}GHz ${color #c0ff3e}
${cpugraph cpu1 25,120 000000 ff6600 }
${color #ff6600}${cpubar cpu1 3,120}
${color orange}TOP 5 PROCESSES ${hr 2}$color
${color #ff9999}NAME PID CPU MEM
${color #ffff99}1. ${top name 1}${top pid 1} ${top cpu 1} ${top mem 1}$color
2. ${top name 2}${top pid 2} ${top cpu 2} ${top mem 2}
3. ${top name 3}${top pid 3} ${top cpu 3} ${top mem 3}
4. ${top name 4}${top pid 4} ${top cpu 4} ${top mem 4}
5. ${top name 5}${top pid 5} ${top cpu 5} ${top mem 5}
${color orange}MEMORY & SWAP ${hr 2}$color
${color white}RAM$color $memperc% ${membar 6}$color
${color white}Swap$color $swapperc% ${swapbar 6}$color
${color orange}DRIVES - FREE SPACE ${hr 2}$color
${color white}Ubuntu$color ${fs_free_perc /}%$alignr${fs_free /}/ ${fs_size /}
${fs_bar 3 /}$color
${color white}Home$color ${fs_free_perc /home}%$alignr${fs_free /home}/ ${fs_size /home}
${fs_bar 3 /home}$color
${color orange}ETHERNET (${addr eth1}) ${hr 2}$color
${color white}Down:$color ${downspeed eth1} KB/s${alignr}${color white}Up:$color ${upspeed eth1} KB/s
${downspeedgraph eth1 25,120 000000 00ff00} ${alignr}${upspeedgraph eth1 25,120 000000 ff0000}$color
#LAST.FM
${color orange}${font zerothrees:size=12}Last.FM ${hr 2}
${font zerothrees:size=10}${execi 60 ~/conky/ag.fm lemmy998 2}Now Playing:
${font zerothrees:size=8}${execi 60 cat ~/conky/last.fm/1.txt}
${font zerothrees:size=10}Last Played:
${font zerothrees:size=8}2: ${execi 60 cat ~/conky/last.fm/3.txt}
3: ${execi 60 cat ~/conky/last.fm/4.txt}
4: ${execi 60 cat ~/conky/last.fm/5.txt}
${color orange}Gmail${hr 2}$color
$color${execi 30 python ~/bin/gmail.py}$color1 new messages
@arpinux
Thanks. That has cured that particular problem. Now all I need is some time to play around with the rest of the script to get it to look right. No better way to learn than messing about!:D
I love searchOne's horizontal Conky but I'm having problems with Conky being cropped

Conky
background no
use_xft yes
xftfont terminus:size=8
xftalpha 0.2
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_class conky
double_buffer yes
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color black
alignment tl
uppercase no
text_buffer_size 2048
imlib_cache_size 0
minimum_size 1330 10
gap_y 10
# — Lua Load — #
#lua_load ~/conky/lua/rings.lua
#lua_draw_hook_pre ring_stats
TEXT
${voffset 55}${goto 480}${diskiograph 50,300 FFFF00 FF0000 -t}${voffset -110}
${voffset 98}${goto 173}${color 1E90FF}${cpubar cpu5 2,1015}${color}
${voffset -40}${goto 240}${font zerothrees:size=14}Ubuntu 9.10 ${font zerothrees:size=10}${voffset 1}
${voffset 10}${goto 240}Conky ${conky_version} ${goto 480}Kernel: ${kernel}
${goto 240}${exec whoami} @ $nodename $machine ${goto 480}Uptime: ${uptime}
${goto 240}Desktop: ${desktop_number} - ${desktop}${goto 480}CPU Temp: ${acpitemp}${offset -2} °C
${goto 240}HDD Temp: ${hddtemp /dev/sda}${offset -2} °C #${goto 480}Grafik Temp: ${nvidia temp}${offset -2} °C${if_existing /proc/net/route wlan0}${goto 700}WLAN: ${addrs wlan0}${endif}${if_existing /proc/net/route eth0}${goto 700}LAN: ${addrs eth0}${endif}
${goto 240}${font zerothrees:Bold:size=10}Name top${goto 370}time${goto 450}cpu${goto 500}mem${goto 600}${font zerothrees:Bold:size=10}Name top-io${goto 730}time${goto 820}mem${font zerothrees:size=8}
${color red}${goto 240}${top name 1} ${goto 370}${top time 1}${goto 450}${top cpu 1}${goto 500}${top mem 1} ${goto 600}${top_io 1}${top_io name 1}${goto 730}${top_io time 1}${goto 820}${top_io mem 1} ${color}${goto 940}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2-}
${goto 240}${top name 2} ${goto 370}${top time 2}${goto 450}${top cpu 2}${goto 500}${top mem 2}${color} ${top_io 2} ${goto 600}${top_io name 2}${goto 730}${top_io time 2}${goto 820}${top_io mem 2} #${goto 940}${execpi 3600 /home/search/conkynv.sh}
${goto 240}${top name 3} ${goto 370}${top time 3}${goto 450}${top cpu 3}${goto 500}${top mem 3}${color} ${top_io 3} ${goto 600}${top_io name 3}${goto 730}${top_io time 3}${goto 820}${top_io mem 3}
${if_existing /proc/net/route wlan0}${voffset -210}${goto 810}${font DTPDingbats:size=18}${color green}C${font zerothrees:size=12}${downspeed wlan0}${color}
${voffset -15}${goto 810}${font DTPDingbats:size=18}${color red}D${font zerothrees:size=12}${upspeed eth1}${color}${endif}
${if_existing /proc/net/route eth0}${voffset -210}${goto 810}${font DTPDingbats:size=18}${color green}C${font zerothrees:size=12}${downspeed eth1}${color}
${voffset -15}${goto 810}${font DTPDingbats:size=18}${color red}D${font zerothrees:size=12}${upspeed wlan0}${color}${endif}
${font}
${voffset -130}
${goto 90}${color 1E90FF}RAM: ${memperc}%
${goto 90}${color FF0000}CPU-1: ${cpu cpu0}%
${goto 90}${color FF0000}CPU-2: ${cpu cpu1}%
#${goto 90}${color FFFF00}BAT: ${battery_percent BAT0}%
${goto 90}${color 00FF00}Disk: ${fs_used_perc /}%${color}
${voffset -45}${goto 1210}${font zerothrees:size=10}${time %H:%M:%S}
${voffset -80}${color CDCD00}${goto 1010}${font zerothrees:Bold:size=10}${time %A}
${goto 930}${font zerothrees:size=16}${time %_d %B %Y}${color}
${font LiberationMono:Bold:size=10}
${voffset -10}${execpi 60 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${goto 930} /' | sed /" $DJS "/s/" $DJS "/" "'${color orange}'"$DJS"'${color}'" "/}
${voffset -300}
Solved! Got some help from mobilediesel on the ubuntu forum. His latest script
#!/bin/bash
cd $(dirname $0)
#
# ag.fm -- a trivial script echoing recently listened Last.fm tracks.
# ------------------------------------------------------------------------
#
# Written by Tomasz 'odder' Kozłowski <odder.wiki@gmail.com>.
# Released into the public domain. Modified by mobilediesel
#
# The script requires curl to run.
#
# Defining the variables, supplied command line arguments. Username required.
if [ -z "$1" ]
then
echo "Supply username"
exit 1
else
login="$1"
fi
# version of recent tracks, 1 or 2, default is 1 if not specified, 1 shows last completed songs, 2 also shows current playing track.
case "$2" in
[1-2]) v=$2;;
*) v=1;;
esac
ad=http://ws.audioscrobbler.com/$v.0/user/$login/recenttracks.rss
# file curl will download the RSS into.
f=last.fm/tmp.txt
# checks to see if tmp.txt exists, creates if not.
tmpfile () {
touch $f || mkdir $(dirname $f) && touch $f
for i in $(seq 1 10)
do echo $i >> $f
echo $i > $(dirname $f)/$i.txt
done
}
[ -s $f ] || tmpfile
# Check the Internet connection & get the rss
if ping -qc1 195.24.233.53
then
curl -s $ad | grep title | sed '1d' | sed "s/^.*<title>//;s/<\/title>//;s/\'\;/'/;s/\&\;/\&/;s/\"\;/\"/g" > $f
# write individual recent tracks to their own files.
for i in $(seq 1 10)
do
sed -n "${i}p" $f > $(dirname $f)/$i.txt
done
fi
exit
Then add
${execi 60 ~/conky/ag.fm username 2}
and
${execi 60 cat ~/conky/last.fm/1.txt}
${execi 60 cat ~/conky/last.fm/2.txt}
${execi 60 cat ~/conky/last.fm/3.txt}
to your conkyrc and you are good to go!
@ anonymous
Changing the last.fm script as suggested has stopped the error message. I have checked the relevant folder and the folder and files are there as expected. Still not actually getting any updates to the txt files and therefore to conky!
I'm trying to get conky to show the last few songs I have listened to on last.fm
I found this script ( thanks mobilediesel!) which i think i have modified correctly
#!/bin/bash
cd $(dirname $0)
#
# ag.fm -- a trivial script echoing sb's recently listened Last.fm tracks.
# ------------------------------------------------------------------------
#
# Written by Tomasz 'odder' Kozłowski <odder.wiki@gmail.com>.
# Released into the public domain. Modified by mobilediesel
#
# The script requires curl to run.
#
# Defining the variables, supplied command line arguments. Username required.
if [ -z "$1" ]
then
echo lemmy998
exit 1
else
login="$1"
fi
# version of recent tracks, 1 or 2, default is 1 if not specified, 1 shows last completed songs, 2 also shows current playing track.
case "$2" in
[1-2]) v=$2;;
*) v=1;;
esac
ad=http://ws.audioscrobbler.com/$v.0/lemmy998/$login/recenttracks.rss
# file curl will download the RSS into.
f=last.fm/tmp.txt
# checks to see if tmp.txt exists, creates if not.
tmpfile () {
touch $f || mkdir $(dirname $f) && touch $f
for i in $(seq 1 10)
do echo $i >> $f
echo $i > $(dirname $f)/$i.txt
done
}
[ -s $f ] || tmpfile
# Check the Internet connection & get the rss
if [ `ping -c1 195.24.233.53 | grep from | wc -l` -eq 0 ]
then
echo "The server is currently unreachable."
else
curl -s $ad | grep title | sed '1d' | sed "s/^.*<title>//;s/<\/title>//;s/\'\;/'/;s/\&\;/\&/" > $f
# write individual recent tracks to their own files.
for i in $(seq 1 10)
do
sed -n "${i}p" $f > $(dirname $f)/$i.txt
done
fi
exit
When I run conky I get the following
touch: cannot touch `last.fm/tmp.txt': No such file or directory
Have i made some elementary error modifying the script? My conky looks like this
TEXT
${font zerothrees:size=12}SYSTEM ${hr 2}
${voffset 4}${font StyleBats:size=12}A${font} CPU: ${cpu}% ${alignr}${cpubar 8,80}
#${voffset -2}${alignr} ${alignr}${freq}MHz ${acpitemp}°C
${voffset 0}${font StyleBats:size=12}A${font} RAM: $memperc% ${alignr}${membar 8,80}
#${voffset 4}${font StyleBats:size=12}A${font} Battery: ${alignr}${battery_percent BAT1}% ${battery_time BAT1}
${font zerothrees:size=12}PROCESSES ${hr 2}
${font zerothrees:size=10}${alignr}CPU% MEM%
${voffset 2}${font PizzaDude Bullets:size=9}t${font} ${top_mem name 1}${alignr}${top_mem cpu 1} ${top_mem mem 1}
${voffset 2}${font PizzaDude Bullets:size=9}t${font} ${top_mem name 2}${alignr}${top_mem cpu 2} ${top_mem mem 2}
${voffset 2}${font PizzaDude Bullets:size=9}t${font} ${top_mem name 3}${alignr}${top_mem cpu 3} ${top_mem mem 3}
${voffset 2}${font PizzaDude Bullets:size=9}t${font} ${top_mem name 4}${alignr}${top_mem cpu 4} ${top_mem mem 4}
${voffset 2}${font PizzaDude Bullets:size=9}t${font} ${top_mem name 5}${alignr}${top_mem cpu 5} ${top_mem mem 5}
DATE ${hr 2}
${alignc 35}${font zerothrees:size=30}${time %H:%M}${font zerothrees:size=14}
${alignc}${time %a %d %b %Y}
${font zerothrees:size=12}STORAGE ${hr 2}
${voffset 4}${font StyleBats:size=9}c${font} ${voffset 0}Root:
${voffset 2}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,80 /}
${voffset 4}${font StyleBats:size=9}c${font} ${voffset 0}Home:
${voffset 2}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,80 /home}
${font zerothrees:size=12}NETWORK ${hr 2}
IP address: ${font zerothrees:size=10}$alignr ${addr eth1}
${if_up eth1}${voffset 2}${font PizzaDude Bullets:size=9}N${font} Upload: ${alignr}${upspeed eth1}kb/s
${voffset 2}${font PizzaDude Bullets:size=9}T${font} Download: ${alignr}${downspeed eth1}kb/s
${endif}
#${if_up eth0}${voffset 2}${font PizzaDude Bullets:size=9}N${font} Upload: ${alignr}${upspeed eth0}kb/s
#${voffset 2}${font PizzaDude Bullets:size=9}T${font} Download: ${alignr}${downspeed eth0}kb/s
#${endif}
${font zerothrees:size=12}MUSIC ${hr 2}
#${execi 300 /home/chris/Conky/ag.fm last.fm-lemmy998 2}
I already have CB 9.04 on my 900 and love it. However I use that really for browsing when i am away from home. At home I do a load of stuff which means that i don't want to have to spend too much time setting up a new CB install.
@Snowpine
Your feedback is exactly what i wanted. /home is already over 90gig and I don't want to be duplicating that!
Is it possible to install CB as a session ( rather like you can do with XCFE/Openbox etc) I'm thinking about moving over completely from a vanilla 9.04 install on my main machine but want to retain it as a safety net until I'm happy getting to grips with OB etc
My solution installing Ubuntu on a small IBM X series laptop was to take the hdd out of the old machine, put into a newer laptop with a CD-Rom drive and install the OS. When done just removed the disk and put it into the old lappy! All working fine
YMMV:)
Downloading 9.04 lite (torrent) @ 835K. Full d/l in 9mins 14 secs.
Now to seed for the next few days!
I take it you are using network-manager. I have found exactly the same thing. NM just "works" with 3g modems.I'd like to try WICD but I hear that its not as good with 3g:(
9.04 is pretty good. Only problem for me is that whilst network-manager connects my usb dongle I cannot actually use a web browser to access the interweb thingy.
So its back to 8.10 for me
@Omns
Thanks for your suggestion. I tried it out but it didn't work so I used the unofficial 9.04 lite deb to reinstall.
Working well now:)
OK- I have followed the article but now the message is /dev/sda1 is missing.
My amended fstab looks like this
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
#UUID=09b9e511-3bc3-4f8e-8ac4-1a33a05329cb /
/dev/sda1 / ext2 relatime,errors=remount-ro 0
# /dev/sdb1
UUID=2b57029a-2b9e-44c5-9857-e458ed9787a4 /home ext2 relatime 0 2
# /dev/sdb5
UUID=77ca82f4-c9a9-40d3-aebd-a82093d32413 none swap sw 0 0
My Grub menu.lst is
title Ubuntu 8.10, kernel 2.6.27-8-eeepc-lean
#uuid 09b9e511-3bc3-4f8e-8ac4-1a33a05329cb
kernel /boot/vmlinuz-2.6.27-8-eeepc-lean root=/dev/sda1 ro quiet splash
It looks like I have borked the OS during an upgrade from 8.10 to 9.04.
Upon reboot I get the following message
ALERT! /dev/disk/by-uuid/09b9e511-3bc3-4f8e-8ac4-1a33a05329cd does not exist.Dropping to a shell
BusyBox v1.10.2 (Ubuntu 1:1.10.2-2ubuntu7) built-in shell (ash)
(initramfs
Is there any way back for this or is it "re-install from fresh" time?
Crunchee works really well with 3G dongles. I am writing this using a Huawei E270 dongle with a Vodafone HSDPA sim card on a EEEPC 900 running Crunchee 8.10.
Just make sure you stick to using networkmanager (rather than WICD)
Success!! All works fine once I engage brain. Just deleted all the irrelevant files out of /var/lib/vnstat and left ppp0.
Many thanks Iggy for your assistance
OK. I'll have another look at vnstat tomorrow and see if I can figure where I'm going wrong.
Hmm!! Now I'm getting "bash: vnstat-icon.py: command not found" ????
Added to that I still haven't found the config file to change the default interface to ppp0
Output of vnstat -d
chris@bravo:~$ vnstat -d
eth0 / daily
day rx | tx | total
------------------------+-------------+----------------------------------------
25.04. 13.70 MB | 0 kB | 13.70 MB %%%%%%%%%%%%%%%%%%%%%%%%%
26.04. 1.57 MB | 0 kB | 1.57 MB %%
------------------------+-------------+----------------------------------------
estimated -- | -- | --
chris@bravo:~$
having done some further research i think the problem is that no config file is being created. This post suggests changing permissions on /etc and I'm not too sure how to do that.:(
Update- I have now got it to work with eth0. Not too sure now how to change the (missing) config file to monitor ppp0.
Iggy- tried your script again and got the following output
chris@bravo:~$ ./vnstat-icon.py
Traceback (most recent call last):
File "./vnstat-icon.py", line 178, in on_left_click
check(interval)
File "./vnstat-icon.py", line 33, in check
elif sizes.index(rx_size) > sizes.index(stats[2]):
ValueError: list.index(x): x not in list
Traceback (most recent call last):
File "./vnstat-icon.py", line 178, in on_left_click
check(interval)
File "./vnstat-icon.py", line 97, in check
elif sizes.index(rx_size) > sizes.index(stats[3]):
ValueError: list.index(x): x not in list
Traceback (most recent call last):
File "./vnstat-icon.py", line 178, in on_left_click
check(interval)
File "./vnstat-icon.py", line 97, in check
elif sizes.index(rx_size) > sizes.index(stats[3]):
ValueError: list.index(x): x not in list
That makes sense. Unfortunately I'm having problems setting up vnstat. I keep getting the following error message
chris@bravo:~$ vnstat -u -i ppp0
Error:
Unable to read database "/var/lib/vnstat/ppp0".
Error:
Unable to get interface statistics.
chris@bravo:~$
Hey!! it works.:) However I don't know which NIC its monitoring. I tend to use my eeepc with all manner of media ( wired/wifi and mobile broadband ppp0)
I'm really looking to use this this app to see how much of the 1G I bought from Vodafone has been used.
Posts found [ 1 to 25 of 28 ]
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.