"Open Source" 013 [ http://osa.samag.ru/ ]. Листинги. Системный монитор Conky: простота и мощь (Дмитрий Шурупов) alignment bottom_right gap_x 7 gap_y 40 ${color #3d2a8c}CPU:${color #3d2a8c} $cpu% ${cpugraph 000000 ffffff} ${color #711919}eth0 up: ${upspeedf eth0}k/s ${alignr}${totalup eth0} total ${upspeedgraph eth0} ${color #1b1b1b}${execi 1800 ~/.config/conky/weather.sh} // {BEGIN ".conkyrc"} alignment bottom_right gap_y 40 gap_x 7 update_interval 4 use_xft yes xftfont Courier:size=12 use_spacer yes background no own_window no double_buffer yes draw_shades yes draw_outline no draw_borders no stippled_borders 0 border_margin 9 border_width 1 no_buffers yes uppercase no default_color grey90 default_shade_color black default_outline_color DarkGrey TEXT ${color #6e4300}$nodename$color${alignr}${color #313131}$sysname $kernel${color #00387e} ${time %F}${alignr}${color #00387e}${time %k:%M:%S}${color} ${color #313131}Uptime:${alignr}${color #313131}$uptime${alignr} $color$stippled_hr ${color #1b1b1b}${execi 1800 ~/.config/conky/weather.sh} $color$stippled_hr ${color #3d2a8c}CPU:${color #3d2a8c} $cpu% ${cpugraph 000000 ffffff} ${color #3d2a8c}RAM:${color #3d2a8c} $memperc% ${memgraph 000000 ffffff} CPU:${color #3d2a8c} ${i2c 9191-0290 temp 1}C${color #3d2a8c} -- MB:${color #3d2a8c} ${i2c 9191-0290 temp 3}C $color$stippled_hr ${color #711919}eth0 up: ${upspeedf eth0}k/s ${alignr}${totalup eth0} total ${upspeedgraph eth0} $color$stippled_hr ${color #711919}eth1 down: ${downspeedf eth1}k/s ${alignr}${totaldown eth1} total ${downspeedgraph eth1} ${color #711919}eth1 up: ${upspeedf eth1}k/s ${alignr}${totalup eth1} total ${upspeedgraph eth1} $color$stippled_hr ${alignc}${color #313131}TCP In: ${tcp_portmon 1 32767 count} Out: ${tcp_portmon 32768 61000 count} $color$stippled_hr ${color #000000}root: ${color #3d2a8c}${fs_bar 5,100 /} ${alignr}${color #000000}${fs_free_perc /}% ${color #000000}audio: ${color #3d2a8c}${fs_bar 5,100 /mnt/mm/audio} ${alignr}${color #000000}${fs_free_perc /mnt/mm/audio}% ${color #000000}video: ${color #3d2a8c}${fs_bar 5,100 /mnt/video} ${alignr}${color #000000}${fs_free_perc /mnt/video}% $color$stippled_hr // {END ".conkyrc"} // {BEGIN "weather.sh"} #!/bin/sh # # Grab weather data from weather.com and format it according to the given XSLT # Script written by boojit # Modified by Hellf[i]re # The orignal script and xslt can be downloaded from http://pondol.com/weather.tar.gz # Usage: # ${execi 1800 /path/to/weather/weather.sh location} # Usage Example: # ${execi 1800 /home/user/weather/weather.sh 03833} # your Location ID: use http://xoap.weather.com/search/search?where=[yourcity] to find it # U.S. users can just use their zip code; doubt that works for anyone else though (YMMV) LOCID=RSXX0063 # s=standard units, m=metric units UNITS=m # where this script and the XSLT lives RUNDIR=/home/shurup/.config/conky/ # there's probably other stuff besides CURL that will work for this, but i haven't # tried any others. # you can get curl at http://curl.haxx.se/ CURLCMD=/usr/bin/curl # get it at http://xmlsoft.org/XSLT/ XSLTCMD=/usr/bin/xsltproc # you probably don't need to modify anything below this point.... # CURL url. Use cc=* for current forecast or dayf=10 to get a multi-day forecast CURLURL="http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS&dayf=2" # The XSLT to use when translating the response from weather.com # You can modify this xslt to your liking XSLT=$RUNDIR/weather.xslt #filter (if you want to convert stuff to lower-case or upper case or something) #FILTER="|gawk '{print(tolower(\$0));}'" eval "$CURLCMD \"$CURLURL\" 2>/dev/null| $XSLTCMD $XSLT - $FILTER" // {END "weather.sh"} // {BEGIN "weather.xslt"} Local Weather: () Feels Like: % Wind: 0 m/s ( ) Tomorrow: to , // {END "weather.xslt"} Policyd как средство борьбы со спамом (Алексей Коршунов) root:/usr/src/policyd-v1.80 /# make # make build # make install # mysql -p < DATABASE.mysql mysql grant all on policyd.* to postfix@localhost identified by ‘somepassword’; smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10031 0 * * * * /usr/local/policyd/cleanup -c /usr/local/policyd/policyd.conf cd /usr/local/policyd ./stats --c policyd.conf