I thought it might be a good idea to share some configs/scripts that might be useful to someone else.
Without further ado:
I have an AMD k10 CPU. As some may know the temp sensor on the chip is a little flaky. I wanted to see my temps on conky and needed to come up with something. If I minus 10 degrees from the false report from my CPU I am about right on the money.
Here is my solution:
Awhile ago I used Debian. I have always done base installs and wanted something to make the process easier. I wrote a little script to take care of this. Of course the script does need to be edited to start with.Code:#!/bin/bash temp1=`sed -n 's/temperature:[[:space:]]*//p' /proc/acpi/thermal_zone/temperature | tr -d [:cntrl:][:space:] | cut -c1-2` echo $((temp1 -10))
Here it is:
I am also a user of conky. Here is what I use:Code:#!/bin/bash #Script to install all your personal software after a base Debian install! #Written by corbintechboy #email corbintechboy(at)gmail(dot)com #Comes with no warranty #You assume all risks! echo "Please review this file and be sure to make any changes you may need" echo "You will need to be running as root in order for this to work" if [ $( whoami ) == "root" ]; then echo "You are root, let's get started" else echo "You are not root! Please run sudo sh script.sh or su and start over!" exit 0 fi #If you have any special repositories that need added in order #for you to get extra software, uncomment these lines #below and add them below. There will be a backup of #your sources.list placed in /etc/apt/sources.list.back. #If you are going to use this feature, please uncomment #the line below in case of mistakes! #cp /etc/apt/sources.list /etc/apt/sources.list.back #This next line can be repeated as many times as #needed. Just simply copy and paste a new line with #the new info! #echo "<put your source here with removed brackets>" >> /etc/apt/sources.list #In order for apt not to error, you will need to download keyring files for above #wget "<enter url to download keyring here remove brackets>" #Then dpkg the keyrings you download #dpkg -i <filenames here remove brackets> { echo "Would you like to run apt-get update now y/n?" read a case "$a" in y|yes)apt-get update;; n|no)exit 0;; esac } echo "This next portion of the script will install your packages" { echo "Are we ready to install your programs y/n?" read b case "$b" in y|yes)echo "Lets get to work";; n|no)exit 0;; esac } #This portion needs to be edited to suit your needs, add whatever you like apt-get install x-window-system hal fluxbox alsa conky nedit iceweasel synaptic mesa-utils audacious alsa-utils alsamixergui #If you use a light desktop that does not come with a login manager, #you may use this line below to generate your .xinitrc file so when #you startx you are dropped to your desktop! #touch .xinitrc #echo "exec <put command here remove brackets>" > .xinitrc exit 0
I will also share anything else anyone might need, just let me know!Code:background yes use_xft yes xftfont cure:size=8 xftalpha 0.5 update_interval 1.0 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 double_buffer yes minimum_size 170 5 maximum_width 190 draw_shades no draw_outline no draw_borders no draw_graph_borders yes default_color ffffff default_shade_color red default_outline_color green alignment top_right gap_x 5 gap_y 5 no_buffers yes uppercase no cpu_avg_samples 2 override_utf8_locale no${color #ffffff}${freq (0)}MHz TEXT ${color #3CB3D1} ${font OpenLogos:size=75}B${font size=20} ${color #ffffff} Arch Linux ${font}SYSTEM ${hr 2} ${color #48CCCD}${font StyleBats:size=16}K${font}${color #ffffff} Kernel: ${alignr}${kernel} ${color #3E3535}${font StyleBats:size=16}A${font}${color #ffffff} CPU1: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60} ${color #3E3535}${font StyleBats:size=16}A${font}${color #ffffff} CPU2: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60} ${color #3E3535}${font StyleBats:size=16}A${font}${color #ffffff} CPU3: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60} ${color #3E3535}${font StyleBats:size=16}A${font}${color #ffffff} CPU4: ${cpu cpu3}% ${alignr}${cpubar cpu3 8,60} ${color #FF0000}${font StyleBats:size=16}E${font}${color #ffffff} CPU TEMP: ${alignr}${execpi 10 ~/scripts/temps}C ${color #800517}${font StyleBats:size=16}g${font}${color #ffffff} RAM: $memperc% ${alignr}${membar 8,60} ${color #6AFB92}${font StyleBats:size=16}j${font}${color #ffffff} SWAP: $swapperc% ${alignr}${swapbar 8,60} ${color #827B60}${font StyleBats:size=16}q${font}${color #ffffff} Uptime: ${alignr}${uptime} DRIVE ${hr 2} ${color #307D7E}${font StyleBats:size=16}i${font}${color #ffffff} ${voffset -5}Root: ${alignr}${fs_bar 8,60 /} ${color #307D7E}${font StyleBats:size=16}i${font}${color #ffffff} ${voffset -5}Home: ${alignr}${fs_bar 8,60 /home/} NETWORK ${hr 2} ${color #FF0000}${voffset -6}${font PizzaDude Bullets:size=14}O${font}${color #ffffff} Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 F57900 FCAF3E} ${color #00ff00}${voffset 4}${font PizzaDude Bullets:size=14}U${font}${color #ffffff} Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 F57900 FCAF3E} ${color #FF0000}${voffset 4}${font PizzaDude Bullets:size=14}N${font}${color #ffffff} Upload: ${alignr}${totalup eth1} ${color #00ff00}${voffset 4}${font PizzaDude Bullets:size=14}T${font}${color #ffffff} Download: ${alignr}${totaldown eth1} ${color #00FFFF}${voffset 4}${font PizzaDude Bullets:size=14}a${font}${color #ffffff} Local Ip: ${alignr}${addr eth1} POWER ${hr 2} ${color #FFFF00}${font PizzaDude Bullets:size=14}K${font}${color #ffffff} ${battery BAT0} ${battery_percent BAT0}% ${battery_bar BAT0 8,60} ${execpi 300 ~/.conky/imap.pl} ${color #8BB381}${font StyleBats:size=16}B${font}${color #ffffff} CPU1 Frequency:${alignr}${color #ffffff}${freq cpu0}MHz ${color #8BB381}${font StyleBats:size=16}B${font}${color #ffffff} CPU2 Frequency:${alignr}${color #ffffff}${freq cpu1}MHz ${color #8BB381}${font StyleBats:size=16}B${font}${color #ffffff} CPU3 Frequency:${alignr}${color #ffffff}${freq cpu2}MHz ${color #8BB381}${font StyleBats:size=16}B${font}${color #ffffff} CPU4 Frequency:${alignr}${color #ffffff}${freq cpu3}MHz MISC ${hr 2} Weather:${alignr}${execi 300 /home/ron/scripts/weather 40740} ${alignc}LQ RSS ${color #3CB3D1}${rss http://feeds.(removed) 1 item_titles 05 }
-
corbintechboy Notebook Consultant
-
corbintechboy Notebook Consultant
Come on people I pictured a place where we geeks might post scripts or whatnots that people could use.
I am amongst geeks? Right? -
I started a Conky Script thread here a couple of years ago....but it never took off....but this might, hang in there! I'll try out your conky script (I'll have to remove the "Arch" text and switch it to wireless though....hehe)....thanks!
-
corbintechboy Notebook Consultant
.
One of these days when I feel really ambitious, I want to try and make a bash script as a sort of desktop replacement. Something that would change the way apps launch and such. Many shortcuts would be key.
Might prove to be a challenge and fun. I also would like to set up some sort of fun thing that when I type certain things bash will "think" about a response to whatever I type. I think that would be neat.
I don't know any programming but bash is very flexible and powerful and I would recommend anyone new to the GNU/Linux OS to try and learn. Very productive and useful indeed! -
I'm checking out your conky now, love the flexibility of that! -
I like conky, but why start a thread here? There's a huge thread (15K+ posts) on ubuntuforums on it: Post your .conkyrc files w/ screenshots - Ubuntu Forums
-
corbintechboy Notebook Consultant
IMHO there is nothing wrong with building an interest on a site that supports given interest. Sure, I could go to LQ and talk about Linux all day long, or even the Arch forums (I am a member of both).
There is even a conky configs posted on the Arch forums as well. Truth is the ratio of people that know what their doing varies between here and there and LQ. I would be more likely to help someone here then on a specific Linux forum.
Hope I make sense... -
.. scripts just scary people away, screenshots pull then in
... I'll take one when I get a chance .. have RAID10 monitoring snippet + HDD temperature monitor that changes color as the temperature changes.
-
corbintechboy Notebook Consultant
Useful scripts/configs
Discussion in 'Linux Compatibility and Software' started by corbintechboy, Jan 20, 2011.