re network info needing root privileges
try this
in a terminal put
type password and youll get something that looks like this at the top
Code:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
scroll down and you should see a line like this
Code:
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
right below this add a line like this
Code:
%admin ALL=NOPASSWD: /sbin/iwconfig
ctrl+x to close, it will ask you if you want to save, type y, then enter to save at th next prompt
you might need to log off and back on again, even restart
now when you type
into a terminal you wont need to put a password
now this doesnt solve the problem of conky objects not working unless conky is root... but now you can run sudo iwconfig (you still need the sudo) as an exec command in conky and line edit the info you want out
if no one else uses your computer and you dont want to type a password for any use of sudo you can add
Code:
%admin ALL=(ALL) NOPASSWD: ALL
so for this info
Code:
eth1 IEEE 802.11bg ESSID:"home-net"
Mode:Managed Frequency:2.442 GHz Access Point: 00:18:39:89:20:E0
Bit Rate=54 Mb/s Tx-Power:24 dBm
Retry min limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=5/5 Signal level=-49 dBm Noise level=-90 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:40 Invalid misc:0 Missed beacon:0
you sould need something like
Code:
${exec sudo iwconfig | grep "Bit Rate" | awk '{print $2}' | sed 's/Rate=//'}
Bookmarks