oh that's what I was talking about... A kill-a-watt would help with the power monitoring to make sure the tweaks I was using were effective.
2 2011-12-17 12:49:16
Re: WattOS? (11 replies, posted in WM/DE Talk)
I'm still around. Just been using kubuntu lately and working on arduino stuff instead of scripting. Figured I'd stop back in since I miss the community. It was supposed to be more power efficient because it used less resources, taxing the computer less. I'm not really sure how effective that is. I was also working on a power management gui for it, but pretty much abandoned it, so they don't include it in the newer releases. A couple people have been asking about it lately though, maybe I'll pick it back up and see what type of energy savings I can get out of the newer distros. Would be nice to have a kill-a-watt though.
3 2011-05-21 15:06:15
Re: conky power usage script (39 replies, posted in Tips, Tricks & Scripts)
try something like:
awk '/present/ {rate = $3} /remaining/ {remaining = $3} END {print remaining / rate}' /proc/acpi/battery/BAT0/stateyou may need to change BAT0 to BAT1 or something else depending on your machine. I didn't test this much, just ran it on the laptop I had handy.
4 2011-05-07 15:55:25
Re: Dropbox referrals (25 replies, posted in Off Topic / General Chat)
I just throw everything that I don't care about people knowing in the regular dropbox folder, for everything else I use encfs. pretty easy to use, and it works well with dropbox because it uses per-file encryption so you don't have to re-upload the whole folder every time one file changes. Just make sure you have the decrypted mount point outside of your dropbox folder.
5 2011-04-02 19:07:44
Re: Images in Conky (specifically rhythmbox album art) (165 replies, posted in Tips, Tricks & Scripts)
in your conky you need to set imlib_cache_size to 0. it is caching the image, so it doesn't change.
6 2011-03-28 15:38:45
Re: mpd album art in conky (17 replies, posted in Tips, Tricks & Scripts)
here's the one I wrote a while ago http://crunchbanglinux.org/forums/post/31045/#p31045 those are the instructions...but grab the copy of the script from the end of that thread... It also does artist art and similar artists
7 2011-03-28 15:26:18
Re: Power management gui, testers wanted (26 replies, posted in Tips, Tricks & Scripts)
the only issues with it are I hard coded it to look for only ext3 or reiser partitions, if you go to line 48 in wattospm-daemon.py and change it from ext3 to ext4 everything should work correctly. I just haven't looked around if there are any more settings that may be beneficial now. If anybody wants to test it out and see if it's still working ok let me know. I had started a power usage graph for it as well so there would be a little easier way to track if it's working for you.
8 2011-03-24 18:00:00
Re: Power management gui, testers wanted (26 replies, posted in Tips, Tricks & Scripts)
you're lucky I randomly decided to check the forums today...I haven't been around for a while. Anyway I don't know how well this app will still work because I never updated it for ext4. The error you're getting is saying it can't find a section in the config file... did it start doing this on a stock install? or did you change some settings?
9 2010-11-20 08:35:21
Re: Christmas is coming .... SATA HD to SSD (12 replies, posted in Help & Support (Stable))
When I've done stuff like this before (close to the same situation but down to a 32gb ssd) I created the partitions then mount both partitions (this is from a livecd) then run a command like this:
tar cf - /media/drive1 | ( cd /media/drive2 ; tar xfp - )then install grub from the livecd. Not as easy as cloning the disk, but it still works pretty well.
10 2010-10-25 11:39:21
Re: UltraBundle (Games) (4 replies, posted in Off Topic / General Chat)
just picked up the bundle...for 5 dollars it's a pretty good deal. Most of his games are pretty challenging though. I read an article by him that he doesn't believe in having difficulty levels, he just ramps up the difficulty in the game until you die, then it backs off a little. (that was for revenge of the titans)
11 2010-09-21 04:24:40
Re: Why have an expensive computer? (52 replies, posted in CrunchBang Talk)
Awebb wrote:Scenario 1
1. Core2Duo 1800 MHz and a Gforce 9600GT
2. High profile Full HD h264@mkv video file.
3. Urge to get rid of the lags.Linux: Use mplayer with vdpau
Fixed
or XBMC, vdpau is built into it
12 2010-09-17 20:18:06
Re: Back-up Paranoia (7 replies, posted in Off Topic / General Chat)
for important documents I scan them and have them in dropbox encrypted with encfs. For music and movies and stuff I have too much so I just keep it on a raid 5 array (need to get a spare in case I lose a drive though). I wish I had the money for offsite backups, just dd my raid drives every quarter or so and give them to a friend or something, but I don't have the money for that.
13 2010-09-13 15:48:58
Re: xcompmgr and shadows around terminal windows (7 replies, posted in WM/DE Talk)
you could give cairo-compmgr a try...it's a little slower on some hardware, but seemed to work better for me when I was testing it. Not sure if it suffers from this particular bug though.
edit: too late on my response ![]()
14 2010-09-12 08:51:58
Re: Composite manager (9 replies, posted in Help & Support (Stable))
are you running conky? try turning off conky if you are before you start cairo-compmgr. If that's the problem you need to change the own_window_type setting in your conky config to something else.
15 2010-09-10 09:49:48
Re: File System Tweaks (18 replies, posted in Help & Support (Stable))
good advice for older machines. If you have the ram to spare and don't mind losing the logs on reboot you can mount /var/log and /tmp on a ramdisk, that'll help a little too.
16 2010-09-10 05:26:40
Re: Linux alternative to Network Magic - NMAP (9 replies, posted in Help & Support (Stable))
didn't realize you wanted the hosts in conky...you could just use:
nmap -sP -oG /tmp/nmap.out 192.168.0.1/24 >>/dev/null && grep Up /tmp/nmap.outfor a list of the hosts that are up, or:
echo "`nmap -sP -oG /tmp/nmap.out 192.168.0.1/24 >>/dev/null && grep -c Up /tmp/nmap.out` hosts are up"for the equivalent of the perl script you posted.
17 2010-09-09 18:39:10
Re: help with the console and executing a script (2 replies, posted in Help & Support (Stable))
are they one time commands? or does the process keep running? If it keeps running then you need to add an & after each command:
#!/bin/bash
/home/mcdowall/conkyset/adesk/adesktd &
/home/mcdowall/conkyset/adesk/adeskw &
/home/mcdowall/conkyset/adesk/adesksm &
/home/mcdowall/conkyset/adesk/adeskp &
conky -c ~/.conky/.conkyrc_iftest18 2010-09-09 17:20:56
Re: Need help on a cool little conky script (18 replies, posted in Help & Support (Stable))
Here you go, got sick of messing around in bash so here it is in python. Just change the path where it says base.
#!/usr/bin/env python
import os,time
base = "/home/eric/tmp/shows"
shows = os.listdir(base)
for show in shows:
if(os.path.isdir("%s/%s" % (base, show))):
seasons = os.listdir("%s/%s" % (base, show))
for season in seasons:
if(os.path.isdir("%s/%s/%s" % (base, show, season))):
episodes=os.listdir("%s/%s/%s" % (base, show, season))
count = 0
for episode in episodes:
ctime = os.path.getctime("%s/%s/%s/%s" % (base, show, season, episode))
if(((time.time() - ctime) / 86000) < 2):
count += 1
if(count > 0):
print("%s %s(%s)" % (show, season, count))If you want it formatted differently let me know, I had it print out seasons seperately but can change it if you want.
19 2010-09-09 09:13:14
Re: Online Music Stores (3 replies, posted in Off Topic / General Chat)
I've used the amazon store before...I know you used to be able to download without the client if it was a single track, not sure if that's still true though.
20 2010-09-09 09:10:35
Re: Linux alternative to Network Magic - NMAP (9 replies, posted in Help & Support (Stable))
Well I looked around some more and found cheops-ng...it's pretty old though and isn't in the repos anymore. If I have the spare time I may just try to build something new with python and nmap.
21 2010-09-09 05:22:23
Re: Linux alternative to Network Magic - NMAP (9 replies, posted in Help & Support (Stable))
Glad to help
. I'm surprised I couldn't find an application that did the same thing either though...
22 2010-09-08 20:02:51
Re: Linux alternative to Network Magic - NMAP (9 replies, posted in Help & Support (Stable))
I wrote this up real quick for you, not a ton of testing but it works. You will need to install libnotify-bin and run this script as a cron job as your user(or however you want to trigger it). Also you will need to manually change the 192.168.0.1 to your subnet that you want to monitor.
#!/bin/bash
nmap -oG /tmp/nmap.out 192.168.0.1/24 >> /dev/null
hosts=`grep Up /tmp/nmap.out | awk '{print $2}'`
results=""
if [ -f /tmp/nmap.old ]
then
for host in $hosts
do
grep -q "$host" /tmp/nmap.old
if [ $? -ne 0 ]
then
results="$results $host Online
"
fi
done
grep Up /tmp/nmap.out | awk '{print $2}' | while read host
do
echo "$hosts" | grep -q "$host"
if [ $? -ne 0 ]
then
results="$results $host Offline
"
fi
done
fi
if [ "$results" != "" ]
then
notify-send "$results"
fi
mv /tmp/nmap.out /tmp/nmap.old23 2010-09-08 18:27:36
Re: Great forums, cool people. (10 replies, posted in Off Topic / General Chat)
I was pretty quiet the first couple months I was on here too, nothing wrong with it
I still go for long stretches without posting anything, but I'm still always reading stuff on here.
24 2010-09-06 08:13:04
Re: Looking for batch-mode software for left and right trimming 100 images (7 replies, posted in Off Topic / General Chat)
in the future if you want a nice gui for stuff like that, I usually use phatch. It's free in the repos.
25 2010-09-04 07:29:31
Re: Need help on a cool little conky script (18 replies, posted in Help & Support (Stable))
I can fix the shows being separate based on capitalization, try changing it to:
"/media/TV/TV Episodes/" -ctime -2 -type f | nawk -F"/" '{split($NF,title,"[s,S][0-9]");gsub("\\."," ", title[1]);print tolower(title[1])}' | tee /tmp/file | uniq |sort | while read file; do echo $file "(`grep -c "$file" /tmp/file`)"but it expects the title to have the season then number like whatever_s01e02.avi it can be upper or lower case s but it expects an s then a number.