LinuxGurl
A novice's guide to the wide world of Linux
Subscribe
Pages
Categories
Calendar
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| « Dec | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | ||||||
Donate
Advertisements
Archives
Tweets
Usefull Links
Popular Tags
Visitor Map
Recent Comments
Spam Blocked
‘Tis the Season
21st December 2009
‘Tis the season to relax and enjoy spending time with your family. If you feel the need, give gifts as well. I know that most everyone is feeling a pinch in their wallets, and its hard to be as giving as the commercials and shows tell us we should be. This is especially hard when you have a young child (or children) in your household. (We have a 3 year old.) There will not be much under our tree this year. Maybe one gift for our son. But we are blessed in so many other ways. We have a large family and we get to see them and enjoy the time we spend with them.*
The reason I brought all this up because reading information on NORAD’s website, as well as cnet’s article on it, bought tears of joy to my eyes. Whether or not you still believe in the spirit of Saint Nicolas (Santa Claus), if you have small children, or know those who do, try to get together and watch Santa fly over the world. You shan’t be disappointed. And to think, it all started with a wrong number in the 50’s…
01. This is no means a post to draw sympathy towards me or my family. I am merely stating the facts. There are a lot of people in worse situations than we are. If you have something like Goodwill, the Salvation Army, or any other charitable organization where you can donate money or material goods that you no longer need/use, please donate them. Even take an angel (or two) from an Angel Tree.

Karmic Slide-Show Breakdown
01st November 2009
Yes, there has been a slide-show type wallpaper(s) for Linux for a while available over at gnome-look.org (Just search for animated under the wallpaper section). But now it comes as one of the options for Karmic (Ubuntu 9.10). The process is a simple one if you want to make your own. I will break down the method they used to create the cosmic slide-show that comes default with Karmic.
First, if you go to /usr/share/backgrounds you will see a folder named cosmos. Inside the folder, you will find an xml file and the 9 images that rotate every 30 minutes.
If you want to create your own, I suggest that you create your own folder within your $HOME/Pictures directory. (I do not condone copying files to your root directories when it is not necessary.
Select the images that you want to use, and decide how often you want them to rotate (you will need to know how many seconds that this is so grab a calculator to do the math). Below is the xml file that controls the cosmos wallpapers.
-
<background>
-
<starttime>
-
<year>2009</year>
-
<month>08</month>
-
<day>04</day>
-
<hour>00</hour>
-
<minute>00</minute>
-
<second>00</second>
-
</starttime>
-
<!– This animation will start at midnight. –>
-
<static>
-
<duration>1795.0</duration>
-
<file>/usr/share/backgrounds/cosmos/cloud.jpg</file>
-
</static>
-
<transition>
-
<duration>5.0</duration>
-
<from>/usr/share/backgrounds/cosmos/cloud.jpg</from>
-
<to>/usr/share/backgrounds/cosmos/comet.jpg</to>
-
</transition>
-
<static>
-
<duration>1795.0</duration>
-
<file>/usr/share/backgrounds/cosmos/comet.jpg</file>
-
</static>
-
<transition>
-
<duration>5.0</duration>
-
<from>/usr/share/backgrounds/cosmos/comet.jpg</from>
-
<to>/usr/share/backgrounds/cosmos/earth-horizon.jpg</to>
-
</transition>
-
<static>
-
<duration>1795.0</duration>
-
<file>/usr/share/backgrounds/cosmos/earth-horizon.jpg</file>
-
</static>
-
<transition>
-
<duration>5.0</duration>
-
<from>/usr/share/backgrounds/cosmos/earth-horizon.jpg</from>
-
<to>/usr/share/backgrounds/cosmos/blue-marble-west.jpg</to>
-
</transition>
-
<static>
-
<duration>1795.0</duration>
-
<file>/usr/share/backgrounds/cosmos/blue-marble-west.jpg</file>
-
</static>
-
<transition>
-
<duration>5.0</duration>
-
<from>/usr/share/backgrounds/cosmos/blue-marble-west.jpg</from>
-
<to>/usr/share/backgrounds/cosmos/galaxy-ngc3370.jpg</to>
-
</transition>
-
<static>
-
<duration>1795.0</duration>
-
<file>/usr/share/backgrounds/cosmos/galaxy-ngc3370.jpg</file>
-
</static>
-
<transition>
-
<duration>5.0</duration>
-
<from>/usr/share/backgrounds/cosmos/galaxy-ngc3370.jpg</from>
-
<to>/usr/share/backgrounds/cosmos/helix-nebula.jpg</to>
-
</transition>
-
<static>
-
<duration>1795.0</duration>
-
<file>/usr/share/backgrounds/cosmos/helix-nebula.jpg</file>
-
</static>
-
<transition>
-
<duration>5.0</duration>
-
<from>/usr/share/backgrounds/cosmos/helix-nebula.jpg</from>
-
<to>/usr/share/backgrounds/cosmos/jupiter.jpg</to>
-
</transition>
-
<static>
-
<duration>1795.0</duration>
-
<file>/usr/share/backgrounds/cosmos/jupiter.jpg</file>
-
</static>
-
<transition>
-
<duration>5.0</duration>
-
<from>/usr/share/backgrounds/cosmos/jupiter.jpg</from>
-
<to>/usr/share/backgrounds/cosmos/sombrero.jpg</to>
-
</transition>
-
<static>
-
<duration>1795.0</duration>
-
<file>/usr/share/backgrounds/cosmos/sombrero.jpg</file>
-
</static>
-
<transition>
-
<duration>5.0</duration>
-
<from>/usr/share/backgrounds/cosmos/sombrero.jpg</from>
-
<to>/usr/share/backgrounds/cosmos/whirlpool.jpg</to>
-
</transition>
-
<static>
-
<duration>1795.0</duration>
-
<file>/usr/share/backgrounds/cosmos/whirlpool.jpg</file>
-
</static>
-
<transition>
-
<duration>5.0</duration>
-
<from>/usr/share/backgrounds/cosmos/whirlpool.jpg</from>
-
<to>/usr/share/backgrounds/cosmos/cloud.jpg</to>
-
</transition>
-
</background>
To make it your own, copy the xml file, replace the file names to the path of the pictures, and there you have it, or you can continue reading to where I have disected another “animated” slide-show wallpaper.
If you want to look at one that hasn’t been “installed” I suggest downloading the MacAnimated wallpaper pack from gnome-look (Use the first download link, it doesn’t try to sell you anything or really make you wait a long amount of time). After you have the tar.gz file downloaded, extract it (don’t install it) and you can see the xml file in all it’s un-installed glory. (All the install SHOULD do is copy the files over into usr/share/backgrounds.)
I decided to test out to see if I could get the slide-show to work using the MacAnimated wallpapers, WITHOUT having to copy/move the files into /usr/share/backgrounds.
First I edited the xml file to change the directory of where it should look for the files. Here is the original xml file:
-
<!– Based on Fedora Animated. Put together by zeeleck –>
-
<!– backgrounds created by El-Sato –>
-
<background>
-
<starttime>
-
<hour>0</hour>
-
<minute>00</minute>
-
<second>01</second>
-
</starttime>
-
<!– + 12 am –>
-
<static>
-
<duration>18000.0</duration>
-
<file>/usr/share/backgrounds/MacAnimated/night.svg</file>
-
</static>
-
<!– +5 am –>
-
<transition type="overlay">
-
<duration>10800.0</duration>
-
<from>/usr/share/backgrounds/MacAnimated/night.svg</from>
-
<to>/usr/share/backgrounds/MacAnimated/sunrise.svg</to>
-
</transition>
-
<!– +8 am –>
-
<transition type="overlay">
-
<duration>7200.0</duration>
-
<from>/usr/share/backgrounds/MacAnimated/sunrise.svg</from>
-
<to>/usr/share/backgrounds/MacAnimated/day.svg</to>
-
</transition>
-
<!– +10 am –>
-
<static>
-
<duration>25200.0</duration>
-
<file>/usr/share/backgrounds/MacAnimated/day.svg</file>
-
</static>
-
<!– +5 pm –>
-
<transition type="overlay">
-
<duration>7200.0</duration>
-
<from>/usr/share/backgrounds/MacAnimated/day.svg</from>
-
<to>/usr/share/backgrounds/MacAnimated/sunset.svg</to>
-
</transition>
-
<!– +7pm –>
-
<transition type="overlay">
-
<duration>7200.0</duration>
-
<from>/usr/share/backgrounds/MacAnimated/sunset.svg</from>
-
<to>/usr/share/backgrounds/MacAnimated/night.svg</to>
-
</transition>
-
<!– +9pm –>
-
<static>
-
<duration>10800.0</duration>
-
<file>/usr/share/backgrounds/MacAnimated/night.svg</file>
-
</static>
-
</background>
to
-
<!– Based on Fedora Animated. Put together by zeeleck –>
-
<!– backgrounds created by El-Sato –>
-
<background>
-
<starttime>
-
<hour>0</hour>
-
<minute>00</minute>
-
<second>01</second>
-
</starttime>
-
<!– + 12 am –>
-
<static>
-
<duration>18000.0</duration>
-
<file>/home/your username/Pictures/MacAnimated/night.svg</file>
-
</static>
-
<!– +5 am –>
-
<transition type="overlay">
-
<duration>10800.0</duration>
-
<from>/home/your username/Pictures/MacAnimated/night.svg</from>
-
<to>/home/your username/Pictures/MacAnimated/sunrise.svg</to>
-
</transition>
-
<!– +8 am –>
-
<transition type="overlay">
-
<duration>7200.0</duration>
-
<from>/home/your username/Pictures/MacAnimated/sunrise.svg</from>
-
<to>/home/your username/Pictures/MacAnimated/day.svg</to>
-
</transition>
-
<!– +10 am –>
-
<static>
-
<duration>25200.0</duration>
-
<file>/home/your username/Pictures/MacAnimated/day.svg</file>
-
</static>
-
<!– +5 pm –>
-
<transition type="overlay">
-
<duration>7200.0</duration>
-
<from>/home/your username/Pictures/MacAnimated/day.svg</from>
-
<to>/home/your username/Pictures/MacAnimated/sunset.svg</to>
-
</transition>
-
<!– +7pm –>
-
<transition type="overlay">
-
<duration>7200.0</duration>
-
<from>/home/your username/Pictures/MacAnimated/sunset.svg</from>
-
<to>/home/your username/Pictures/MacAnimated/night.svg</to>
-
</transition>
-
<!– +9pm –>
-
<static>
-
<duration>10800.0</duration>
-
<file>/home/your username/Pictures/MacAnimated/night.svg</file>
-
</static>
-
</background>
Just right click on your desktop, select change appareance, click Add (+), and be sure to click All Files on the bottom right and select your xml file. It will work, and your don’t have to “install” it to your system. Happy Wallpaper Animating/Slide-Show-ing!
(This was just a pre-made example that I broke apart. You can truly take any images you want, with any time frame you want to have them change at. Remember, reverse engineering something fairly simple can teach you some things. :))
Conky, revisited
10th October 2009
With lots of googling and failed attempts, not quite right attempts, and then finnaly the product I was aiming at, I have my conky the way I have been wanting it for months. It consists of 11 different files with 1 calling them all together. (Yes, 12 different files, and my average CPU usage is low, and RAM usage is acceptable.)
(Click the image at left for the full size)
It consists of 5 different conky config files (probably could be less if I figured out how to use $voffset and $offset properly), 3 plain text files, the conky forecast config, 2 bash scripts, and one lua script.
The config files are as follows:
My “header” for my desktop
-
#top header config
-
-
background yes
-
use_xft yes
-
xftfont Sans:size=9
-
xftalpha 0.8
-
update_interval 1.0
-
total_run_times 0
-
own_window yes
-
own_window_type override
-
own_window_transparent yes
-
#own_window_colour black
-
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
-
double_buffer yes
-
minimum_size 1680 60
-
maximum_width 1680
-
draw_shades no
-
draw_outline no
-
draw_borders no
-
draw_graph_borders no
-
border_margin 2
-
border_width 1
-
default_color white
-
default_shade_color black
-
default_outline_color black
-
alignment top_middle
-
gap_x 0
-
gap_y 0
-
no_buffers yes
-
uppercase no
-
cpu_avg_samples 2
-
net_avg_samples 2
-
override_utf8_locale yes
-
use_spacer none
-
show_graph_scale no
-
show_graph_range no
-
text_buffer_size 2048
-
-
color3 FFFFFF
-
color4 CCCCCC
-
-
lua_load ~/.conky/scripts/draw_bg.lua
-
lua_draw_hook_pre draw_bg
-
-
##
-
# stuff after ‘TEXT’ will be formatted on screen
-
##
-
-
TEXT
-
${color3}${alignc}${font Webdings:bold:size=26}Y${voffset -10}${font Domestic Manners:size=30}SuzyQ
-
${color4}${voffset -50}${stippled_hr}
System and Network Config
-
# system
-
-
background yes
-
use_xft yes
-
xftfont Sans:size=9
-
xftalpha 0.8
-
update_interval 1.0
-
total_run_times 0
-
own_window yes
-
own_window_type override
-
own_window_transparent yes
-
#own_window_colour black
-
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
-
double_buffer yes
-
minimum_size 280 555
-
maximum_width 280
-
draw_shades no
-
draw_outline no
-
draw_borders no
-
draw_graph_borders no
-
border_margin 2
-
border_width 1
-
default_color white
-
default_shade_color black
-
default_outline_color black
-
alignment top_right
-
gap_x 10
-
gap_y 75
-
no_buffers yes
-
uppercase no
-
cpu_avg_samples 2
-
net_avg_samples 2
-
override_utf8_locale yes
-
use_spacer none
-
show_graph_scale no
-
show_graph_range no
-
text_buffer_size 2048
-
#imlib_cache_size 10
-
color1 FFFFFF
-
#color3 191547
-
color2 CCCCCC
-
#color4 0b3d58
-
#color1 000000
-
#color2 0B3E59
-
#color3 2D5F7A
-
#color4 43708A
-
color3 FFFFFF
-
color4 CCCCCC
-
-
##
-
# stuff after ‘TEXT’ will be formatted on screen
-
##
-
-
lua_load ~/.conky/scripts/draw_bg.lua
-
lua_draw_hook_pre draw_bg
-
-
TEXT
-
${font Sans:bold:size=10}${color2}SYSTEM${hr 2}${font}
-
${color1}${font StyleBats:size=10}i${font} Kernel:${alignr}${kernel}
-
${font StyleBats:size=10}A${font} CPU1:${alignr}${cpu cpu1}%
-
${color2}${cpubar cpu1}${color1}
-
${font StyleBats:size=10}A${font} CPU2:${alignr}${cpu cpu2}%
-
${color2}${cpubar cpu2}${color1}
-
${font StyleBats:size=10}g${font} RAM:${alignc}${mem}/${memmax}${alignr}${memperc}%
-
${color2}${membar}
-
${color1}${font StyleBats:size=12}j${font} SWAP:${alignc}${swap}/${swapmax}${alignr}${swapperc}%
-
${color2}${swapbar}
-
${color1}${font Pie charts for maps:size=10}7${font} Root:${alignc}${fs_free /}/${fs_size /}${alignr}${fs_free_perc /}%
-
${color2}${fs_bar /}
-
${color1}${font Pie charts for maps:size=10}7${font} Home:${alignc}${fs_free /home}/${fs_size /home}${alignr}${fs_free_perc /home}%
-
${color2}${fs_bar /home}
-
${color1}${font Pie charts for maps:size=10}7${font} Win7:${alignc}${if_mounted /media/disk}${fs_free /media/disk}/${fs_size /media/disk}${alignr}${fs_free_perc /media/disk}%
-
${color2}${fs_bar /media/disk}${else}${alignc} Not Mounted${endif}
-
${color1}${font Pie charts for maps:size=10}7${font} Other:${alignc}${if_mounted /media/disk-1}${fs_free /media/disk-1}/${fs_size /media/disk-1}${alignr}${fs_free_perc /media/disk-1}%
-
${color2}${fs_bar /media/disk-1}${else}${alignc} Not Mounted${endif}
-
${color1}${font Pie charts for maps:size=10}7${font} Storage:${alignc}${if_mounted /bigdrive}${fs_free /bigdrive}/${fs_size /bigdrive}${alignr}${fs_free_perc /bigdrive}%
-
${color2}${fs_bar /bigdrive}${else}${alignc} Not Mounted${endif}
-
${color1}${font StyleBats:size=10}k${font} Processes:${alignr}${processes} (${running_processes} running)
-
Load:${alignr}${loadavg}
-
NAME${alignr} PID CPU MEM
-
${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:bold:size=10}${color2}NETWORK${hr 2}${font}
-
${if_existing /proc/net/route eth0}${color1}${font PizzaDude Bullets:size=10}b${font} Local IP:${alignr}${addr eth0}
-
${font PizzaDude Bullets:size=10}a${font} Public IP:${alignr}${execi 3600 $HOME/.conky/scripts/myip.sh}
-
${font PizzaDude Bullets:size=10}T${font} Total Download:${alignr}${totaldown eth0}
-
${font PizzaDude Bullets:size=10}N${font} Total Upload:${alignr}${totalup eth0}
-
${font PizzaDude Bullets:size=10}U${font} Down Speed:${alignr}${downspeed eth0}
-
${font PizzaDude Bullets:size=10}O${font} Up Speed:${alignr}${upspeed eth0}${else}${font PizzaDude Bullets:size=10}4${font} Network Unavailable ${endif}
Weather Config (remember to get your own weather XOAP location)
-
# weather
-
-
background yes
-
use_xft yes
-
xftfont Sans:size=9
-
xftalpha 0.8
-
update_interval 1.0
-
total_run_times 0
-
own_window yes
-
own_window_type override
-
own_window_transparent yes
-
own_window_colour black
-
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
-
double_buffer yes
-
minimum_size 280 235
-
maximum_width 280
-
draw_shades no
-
draw_outline no
-
draw_borders no
-
draw_graph_borders no
-
border_margin 2
-
border_width 1
-
default_color white
-
default_shade_color black
-
default_outline_color black
-
alignment top_right
-
gap_x 300
-
gap_y 75
-
no_buffers yes
-
uppercase no
-
cpu_avg_samples 2
-
net_avg_samples 2
-
override_utf8_locale yes
-
use_spacer none
-
show_graph_scale no
-
show_graph_range no
-
text_buffer_size 2048
-
#imlib_cache_size 10
-
color1 FFFFFF
-
color2 CCCCCC
-
-
lua_load ~/.conky/scripts/draw_bg.lua
-
lua_draw_hook_pre draw_bg
-
-
-
##
-
# stuff after ‘TEXT’ will be formatted on screen
-
##
-
-
TEXT
-
${font Sans:bold:size=10}${color2}WEATHER${hr 2}
-
${color1}${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 5 conkyForecast –location=USAR0124 –datatype=WF}
-
${voffset -52}${font Weather:size=40}y ${offset -15}${font Sans:size=20}${execi 5 conkyForecast –location=USAR0124 –datatype=HT –imperial}
-
${font}${alignr}${offset 0}${voffset -15}${execi 5 conkyForecast –location=USAR0124 –datatype=CT}
-
Temperature:${alignr}${execi 5 conkyForecast –location=USAR0124 –datatype=HT –imperial} (Feels Like ${execi 5 conkyForecast –location=USAR0124 –datatype=LT –imperial})
-
Humidity:${alignr}${execi 5 conkyForecast –location=USAR0124 –datatype=HM}
-
Dew Point:${alignr}${execi 5 conkyForecast –location=USAR0124 –datatype=DP –imperial}
-
Visibility:${alignr}${execi 5 conkyForecast –location=USAR0124 –datatype=VI –imperial}
-
Wind:${alignr}${execi 5 conkyForecast –location=USAR0124 –datatype=WD –imperial} (${execi 5 conkyForecast –location=USAR0124 –datatype=WS –imperial})
-
UV-Index:${alignr}${execi 5 conkyForecast –location=USAR0124 –datatype=UI} (${execi 5 conkyForecast –location=USAR0124 –datatype=UT})
-
Barometer:${alignr}${execi 5 conkyForecast –location=USAR0124 –datatype=BR –imperial} (${execi 5 conkyForecast –location=USAR0124 –datatype=BD})
-
Daylight:${alignr}${execi 5 conkyForecast –location=USAR0124 –datatype=SR}-${execi 5 conkyForecast –location=USAR0124 –datatype=SS}
-
Moon Phase:${alignr}${execi 5 conkyForecast –location=USAR0124 –datatype=MP}
I just call some plain text files here. Nothing fancy, unless you count fortune and cowsay/think
-
# *.txt files and such
-
-
background yes
-
use_xft yes
-
xftfont Sans:size=9
-
xftalpha 0.8
-
update_interval 1.0
-
total_run_times 0
-
own_window yes
-
own_window_type override
-
own_window_transparent yes
-
#own_window_colour black
-
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
-
double_buffer yes
-
minimum_size 280 670
-
maximum_width 280
-
draw_shades no
-
draw_outline no
-
draw_borders no
-
draw_graph_borders no
-
border_margin 2
-
border_width 1
-
default_color white
-
default_shade_color black
-
default_outline_color black
-
alignment top_right
-
gap_x 590
-
gap_y 75
-
no_buffers yes
-
uppercase no
-
cpu_avg_samples 2
-
net_avg_samples 2
-
override_utf8_locale yes
-
use_spacer none
-
show_graph_scale no
-
show_graph_range no
-
text_buffer_size 2048
-
-
color1 FFFFFF
-
color2 CCCCCC
-
-
lua_load ~/.conky/scripts/draw_bg.lua
-
lua_draw_hook_pre draw_bg
-
-
##
-
# stuff after ‘TEXT’ will be formatted on screen
-
##
-
-
TEXT
-
${font Sans:bold:size=10}${color2}MOO${hr 2}
-
${color1}${font mono:size=9}${execi 120 fortune -s | fold -w25 | cowthink -W 25 -b -n -f three-eyes.cow}
-
${font Sans:bold:size=10}${color2}LOVE${hr 2}
-
${color1}${font mono:size=9}${execi 30 cat $HOME/.conky/txt/.tux.txt}
-
${font Sans:bold:size=10}${color2}TO DO${hr 2}
-
${font}${color1}${execi 30 cat $HOME/.conky/txt/.TODO.txt}
-
${font Sans:bold:size=10}${color2}SHORTCUTS${hr 2}
-
${font}${color1}${execi 30 cat $HOME/.conky/txt/.shortcuts}
My own barcode message. I do not include what it really says, you’ll have to scan the screen with a barcode scanner to find out. I was inspired by Google.
-
# barcode
-
-
background yes
-
use_xft yes
-
xftfont Sans:size=9
-
xftalpha 0.8
-
update_interval 1.0
-
total_run_times 0
-
own_window yes
-
own_window_type override
-
own_window_transparent yes
-
#own_window_colour black
-
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
-
double_buffer yes
-
minimum_size 280 35
-
maximum_width 280
-
draw_shades no
-
draw_outline no
-
draw_borders no
-
draw_graph_borders no
-
border_margin 2
-
border_width 1
-
default_color white
-
default_shade_color black
-
default_outline_color black
-
alignment bottom_left
-
gap_x 10
-
gap_y 25
-
no_buffers yes
-
uppercase no
-
cpu_avg_samples 2
-
net_avg_samples 2
-
override_utf8_locale yes
-
use_spacer none
-
show_graph_scale no
-
show_graph_range no
-
text_buffer_size 2048
-
#imlib_cache_size 10
-
#color1 000000
-
color1 999999
-
-
lua_load ~/.conky/scripts/draw_bg.lua
-
lua_draw_hook_pre draw_bg
-
-
##
-
# stuff after ‘TEXT’ will be formatted on screen
-
##
-
-
TEXT
-
${color1}${font Free 3 of 9 Extended:size=30}*[scan it yourself if you really want to find out what it says]*
Standard conky Forecast config file. Make sure to fill in your own ID and Key
-
# config settings for conkyForecast.py
-
CACHE_FOLDERPATH = /tmp/
-
CONNECTION_TIMEOUT = 5
-
EXPIRY_MINUTES = 30
-
TIME_FORMAT = %H:%M
-
DATE_FORMAT = %Y-%m-%d
-
LOCALE = en
-
XOAP_PARTNER_ID = xxxxxxxxxx
-
XOAP_LICENCE_KEY = yyyyyyyyyyyyyyyy
SSC script orginally found here: http://conky.linux-hardcore.com/?page_id=503
-
#!/bin/sh
-
# click to start, click to stop
-
-
if pidof conky | grep [0-9] > /dev/null
-
then
-
exec killall conky
-
else
-
-
sleep 30 # sleep not required for xfce on startup – 30 or more for others
-
conky -c ~/.conky/configs/.conky_header &
-
conky -c ~/.conky/configs/.conky_txt &
-
conky -c ~/.conky/configs/.conky_weather &
-
conky -c ~/.conky/configs/.conky_system &
-
conky -c ~/.conky/configs/.conky_barcode &
-
-
-
exit
-
fi
External IP Script
-
#!/bin/sh
-
wget -q -O – checkip.dyndns.org|sed -e ’s/.*Current IP Address: //’ -e ’s/<.*$//’
Lua Script for background, found here: http://conky.linux-hardcore.com/?page_id=3002
-
–[[
-
Background by londonali1010 (2009)
-
-
This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
-
-
To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
-
lua_load ~/scripts/draw_bg.lua
-
lua_draw_hook_pre draw_bg
-
-
Changelog:
-
+ v1.0 -- Original release (07.10.2009)
-
]]
-
-
– Change these settings to affect your background.
-
– "corner_r" is the radius, in pixels, of the rounded corners. If you don’t want rounded corners, use 0.
-
-
corner_r=15
-
-
– Set the colour and transparency (alpha) of your background.
-
-
bg_colour=0×000000
-
bg_alpha=0.5
-
-
require ‘cairo’
-
function rgb_to_r_g_b(colour,alpha)
-
return ((colour / 0×10000) % 0×100) / 255., ((colour / 0×100) % 0×100) / 255., (colour % 0×100) / 255., alpha
-
end
-
-
function conky_draw_bg()
-
if conky_window==nil then return end
-
local w=conky_window.width
-
local h=conky_window.height
-
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
-
cr=cairo_create(cs)
-
-
cairo_move_to(cr,corner_r,0)
-
cairo_line_to(cr,w-corner_r,0)
-
cairo_curve_to(cr,w,0,w,0,w,corner_r)
-
cairo_line_to(cr,w,h-corner_r)
-
cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
-
cairo_line_to(cr,corner_r,h)
-
cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
-
cairo_line_to(cr,0,corner_r)
-
cairo_curve_to(cr,0,0,0,0,corner_r,0)
-
cairo_close_path(cr)
-
-
cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
-
cairo_fill(cr)
-
end
feel free to ask any questions. If I do not know the answer to it, I will try to point you in the right direction.
A Random Funny Geeky Thing
04th September 2009
originally found here: http://thedailywtf.com/Articles/Microsoft-Vissa,-Hey-Thats-Ours,–More-Support-Stories.aspx
A few years ago, a common free email provider who we’ll call “Yooha” had an outage on one of their load balanced email servers. Since it was only a problem on accounts tied to that server (and because I was in the middle of a fairly time sensitive transaction), I thought I’d send them a note about it in case they hadn’t heard about the problem yet. Here is the text of my email:
----- Original Message ----
From: Jonathan Cortis
To: customersupport@y----.com;
Sent: Saturday, July 22, 2006 7:01:20 PM
Subject: f606.mail.y----.com
Server f606.mail.y----.com is down and not responding to
pings or requests. My wife's email account is always
directed to that server, so she cannot check her mail.
For reference, her username is redacted.
You might want to take that server out of the rotation.
Thank you,
Jonathan
I was quite surprised by their grateful response:
Wow, Jonathan. Thanks for assessing a very complicated situation, and immediately coming up with a complete solution. In fact, we have so little idea of what's going on over here, perhaps you can come on over and single- handedly solve it for us. We'll get right on your commands, just as soon as we finish our donuts. Oh, and after our week off, too. And, then there's the matter of finding out which extension cord that is plugged into... customersupport@y----.com 818-555-1234
Adding Virtual Domains — The Easy Way (Ubuntu)
24th June 2009
I wrote this script out of my need for a quick method of adding virtual domains. I hope you find this to be of great use.
create a file named addomain
-
sudo vim /usr/bin/adddomain
Place this in your file:
-
#!/bin/bash
-
#Edit the following e-mail address:
-
email="your@email.address"
-
ipaddress=`ifconfig eth0 | grep inet | awk ‘{print $2}’ | sed ’s/addr://’ | grep .`
-
domain=$1
-
file="/etc/apache2/sites-available/$domain"
-
if [ -z $domain ]; then
-
echo "You did not specify a domain"
-
echo "Usage:"
-
echo " adddomain domain.tdl"
-
echo ""
-
else
-
ping=`ping -c 1 $domain|grep "$ipaddress"`
-
if [ -z $ping ]; then
-
echo "$domain is not hosted on this server, or you have not set up its A record"
-
else
-
touch /etc/apache2/sites-available/$domain;
-
echo "# Place any notes or comments you have here
-
# It will make any customisation easier to understand in the weeks to come
-
# domain: $domain
-
# public: /var/virtualwww/$domain
-
-
<VirtualHost *:80>
-
-
# Admin email, Server Name (domain name) and any aliases
-
ServerAdmin $email
-
ServerName $domain
-
ServerAlias www.$domain
-
-
-
# Index file and Document Root (where the public files are located)
-
DirectoryIndex index.php
-
DocumentRoot /var/virtualwww/$domain
-
-
-
# Custom log file locations
-
LogLevel warn
-
ErrorLog /var/log/apache2/$domain/error.log
-
CustomLog /var/log/apache2/$domain/access.log combined
-
-
</VirtualHost>" > $file;
-
mkdir /var/log/apache2/$domain;
-
mkdir /var/virtualwww/$domain;
-
ln -s /var/www/.htaccess /var/virtualwww/$domain/.htaccess;
-
mkdir /var/virtualwww/$domain/cgi-bin;
-
echo "created $domain";
-
echo "please restart apache2";
-
a2ensite $domain;
-
fi
-
fi
Next, change the permissions of adddomain:
-
sudo chmod 500 /bin/bash/adddomain
Once all that is done, create a new folder to house your virtual domains:
-
sudo mkdir /var/virtualwww
Next, change the adddomain file so it properly points to your .htaccess file (if you have one), and you’re done. To use this script:
-
adddomain domain.tdl
The server will do a lookup on that domain/subdomain, and if it shows that the server you are on does not have an IP on it that matches the (sub)domains IP, it won’t let you add that site.



















