1

(11 replies, posted in WM/DE Talk)

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

(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

(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/state

you 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

(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.

in your conky you need to set imlib_cache_size to 0. it is caching the image, so it doesn't change.

6

(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

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.

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?

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

(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

(52 replies, posted in CrunchBang Talk)

anonymous wrote:
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 big_smile

or XBMC, vdpau is built into it

12

(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.

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 wink

14

(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

(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.

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.out

for 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.

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_iftest

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

(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.

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.

Glad to help big_smile. I'm surprised I couldn't find an application that did the same thing either though...

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.old

23

(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 big_smile I still go for long stretches without posting anything, but I'm still always reading stuff on here.

in the future if you want a nice gui for stuff like that, I usually use phatch. It's free in the repos.

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.