tag:blogger.com,1999:blog-4372471714060702862.comments2023-10-30T13:56:48.162+05:30Bot CyborgSambithttp://www.blogger.com/profile/10315454465933047223noreply@blogger.comBlogger63125tag:blogger.com,1999:blog-4372471714060702862.post-55738448641810646592015-10-17T23:53:25.460+05:302015-10-17T23:53:25.460+05:30I had some problems with the script you proposed, ...I had some problems with the script you proposed, so I adapted it to check every 5 min if the status of the disk is idle and in case it remains idle for 10min it is spinned down.<br />The script can be added to rc.local with the command <br />bash /etc/init.d/spindown.sh >> /var/log/spin.log &<br /><br />I hope it helps.<br /><br />Francesco<br /><br />spindown.sh<br />###########################################################################################<br />#!/bin/bash<br />DISKNAME=`ls -l /dev/disk/by-uuid/ | grep "B4A02C87A02C5262" | mawk '{ print $(NF) }' | sed s_\.\.\/\.\.\/__`<br />#echo $DISKNAME<br />echo -e `date` SPINDOWN START FOR $DISKNAME<br />let a=0<br />let active=1<br />ameno1=$a<br />#and go on adding<br />while true; do<br />ameno2=$ameno1<br />ameno1=$a<br />let a=`cat /proc/diskstats | grep $DISKNAME | mawk '{ print $4 }'`<br />#echo -e -n `date` $a "\t" $ameno1 "\t" $ameno2 "\t"<br />let read=$a-$ameno1+$ameno1-$ameno2<br />if [ $read == 0 ] <br />then<br /> if [ $active == 1 ]<br /> then<br /> echo -e `date` $a "\t" $ameno1 "\t" $ameno2 "\t" "Disk Spin Down"<br /> sdparm -q -C stop /dev/$DISKNAME<br /> active=0<br /> fi<br />else<br /> echo -e `date` $a "\t" $ameno1 "\t" $ameno2 "\t" "Disk Active"<br /> active=1<br />fi<br />sleep 300s<br />done<br />exit 0<br />##########################################################################################Anonymoushttps://www.blogger.com/profile/08213188711440301922noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-78155725599397003552014-06-23T14:48:16.733+05:302014-06-23T14:48:16.733+05:30This comment has been removed by a blog administrator.Chrishttps://www.blogger.com/profile/08428848050157836681noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-70002699658195903882014-06-23T14:47:50.079+05:302014-06-23T14:47:50.079+05:30Hi,
when adding both rules to my system I get no ...Hi,<br /><br />when adding both rules to my system I get no connection anymore. I have forwarded one Port from my VPN-ISP (AirVPN) and set the same port to my transmission. Transmission says that the port is "closed". Also it seems not to be able to connect to the tracker. It just gets the message "Announce Error - Could not connect to tracker." <br />Any suggestions whats going wrong here?<br /><br />I am using Ubuntu 12.04.4 LTS. Chrishttps://www.blogger.com/profile/08428848050157836681noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-86420454908946160702014-02-13T04:17:44.356+05:302014-02-13T04:17:44.356+05:30Great! Already deployed to my Pi! :)Great! Already deployed to my Pi! :)Lethohttps://www.blogger.com/profile/07319182528756627823noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-39003692667710661142014-02-13T04:17:00.391+05:302014-02-13T04:17:00.391+05:30Great! Already deployed on my Pi! :)Great! Already deployed on my Pi! :)Lethohttps://www.blogger.com/profile/07319182528756627823noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-53417379991122897672014-01-11T21:24:39.732+05:302014-01-11T21:24:39.732+05:30Thanks for the reply Sambit! When I look at the /...Thanks for the reply Sambit! When I look at the /etc/passwd file it contains no mention of "trans", but I can post the file in its entirety if that will help. Using the following command, would it be --uid-owner 1000?<br /><br />root@debian:/home/jwhitakermcrae# ps aux | grep trans<br />1000 26718 2.4 0.1 437028 21376 ? Sl 10:48 0:00 transmission-gtk<br />root 26727 0.0 0.0 7828 880 pts/1 S+ 10:49 0:00 grep trans<br /><br />Thanks for the help!!Whitakerhttps://www.blogger.com/profile/16051157407008835283noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-45624243527413120422014-01-10T20:49:51.326+05:302014-01-10T20:49:51.326+05:30Hi McRae,
Seems like for some reason, iptables is...Hi McRae,<br /><br />Seems like for some reason, iptables is failing to perform a username lookup.<br />Manually find out the numeric uid of debian-transmission from the /etc/passwd file (should be the third field in the row).<br />Then try the iptables command, replacing "debian-transmission" with its equivalent numeric userid.<br />Hope it helps.Sambithttps://www.blogger.com/profile/10315454465933047223noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-11665006904301502582014-01-10T20:20:45.753+05:302014-01-10T20:20:45.753+05:30Hey all, I'm trying to force Transmission to u...Hey all, I'm trying to force Transmission to use VPN only on Debian Wheezy but something seems to be different. Here is what I get when trying the following:<br /><br />root@debian:/etc# iptables -A OUTPUT -m owner --uid-owner debian-transmission \! -o tun0 -j REJECT<br />iptables v1.4.14: owner: Bad value for "--uid-owner" option: "debian-transmission"<br />Try `iptables -h' or 'iptables --help' for more information.<br /><br />Any ideas?<br /><br />Thanks!!Whitakerhttps://www.blogger.com/profile/16051157407008835283noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-87832408566834793342014-01-10T20:20:31.801+05:302014-01-10T20:20:31.801+05:30Hey all, I'm trying to force Transmission to u...Hey all, I'm trying to force Transmission to use VPN only on Debian Wheezy but something seems to be different. Here is what I get when trying the following:<br /><br />root@debian:/etc# iptables -A OUTPUT -m owner --uid-owner debian-transmission \! -o tun0 -j REJECT<br />iptables v1.4.14: owner: Bad value for "--uid-owner" option: "debian-transmission"<br />Try `iptables -h' or 'iptables --help' for more information.<br /><br />Any ideas?<br /><br />Thanks!!Whitakerhttps://www.blogger.com/profile/16051157407008835283noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-5137078431143884532013-06-04T18:24:54.438+05:302013-06-04T18:24:54.438+05:30Thank you, that was very helpful.
Also I unblocked...Thank you, that was very helpful.<br />Also I unblocked my whole local network with<br />iptables -A OUTPUT -m owner --uid-owner torrent -d 192.168.178.0/24 -j ACCEPTAnonymoushttps://www.blogger.com/profile/11384083305426725530noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-2684794935197347712013-03-04T23:15:36.348+05:302013-03-04T23:15:36.348+05:30That's a bit strange.
The rule should only ap...That's a bit strange.<br /><br />The rule should only apply to processes with owner "debian-transmission".<br /><br />You can list the iptables rules using<br /><br />sudo iptables -L<br /><br />and check whether the rule was created successfully.Sambithttps://www.blogger.com/profile/10315454465933047223noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-20553394843964692952013-02-27T10:42:23.780+05:302013-02-27T10:42:23.780+05:30I am trying to accomplish the very same thing in U...I am trying to accomplish the very same thing in Ubuntu 12.04 and this seems like a very simple solution.<br /><br />Unfortunately, issuing this command closes Transmission's listening TCP port and also prevents Chromium from connecting.<br /><br />I'd appreciate any advice you might have! <br /><br />AndyUnknownhttps://www.blogger.com/profile/06757186822565395184noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-92205359476480078852012-11-21T18:06:23.168+05:302012-11-21T18:06:23.168+05:30Another attempt (Perl): http://www.nslu2-linux.org...Another attempt (Perl): http://www.nslu2-linux.org/wiki/FAQ/SpinDownUSBHarddisks#method3natmakahttps://www.blogger.com/profile/06154263646334162335noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-16992440341695599992012-09-28T00:56:59.786+05:302012-09-28T00:56:59.786+05:30Are all your USB drives desktop-class, or are they...Are all your USB drives desktop-class, or are they low-power laptop-class drives?<br /><br />I've just rescued a laptop-class drive connected to a SheevaPlug (also ARM), which was apparently half-way towards killing itself after half a year. I'd be interested to know what smartctl says about Load_Cycle_Count on your drive(s). http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=18626&p=183526sourcejedihttps://www.blogger.com/profile/11597478293075004448noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-16709819342028288592012-06-23T05:54:20.640+05:302012-06-23T05:54:20.640+05:30So you finally gave up on the green-on-black termi...So you finally gave up on the green-on-black terminal colour scheme :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-85128215375537178952012-03-14T07:12:01.485+05:302012-03-14T07:12:01.485+05:30This happened to me once. It had come to worst suc...This happened to me once. It had come to worst such as access.error.sx and I had to change hard disks to Samsung for <a href="http://www.compu-stor.com.au/" rel="nofollow">document storage</a>.Daniel Rooneyhttps://www.blogger.com/profile/03322107907096710168noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-25887225620751592122012-03-07T13:31:45.913+05:302012-03-07T13:31:45.913+05:30Thanks for this command script. I may need to use ...Thanks for this command script. I may need to use a Vsim in order not to mess up my memory allocation.<br /><a href="http://www.compu-stor.com.au/" rel="nofollow">document storage</a>Daniel Rooneyhttps://www.blogger.com/profile/03322107907096710168noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-68231553123275277462012-01-31T23:11:49.128+05:302012-01-31T23:11:49.128+05:30Just resize the window to something like 2" x...Just resize the window to something like 2" x 2".<br />It should let you type in your username and password now. After that, resize it back to it's normal size.<br />Now you can press "TAB" and "Shift"+"TAB" to navigate around and select links by hitting "Enter". Very tiring, but atleast usable!Sambithttps://www.blogger.com/profile/10315454465933047223noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-20052761647172815162012-01-31T23:00:16.013+05:302012-01-31T23:00:16.013+05:30went through the thread.Can you please explain wha...went through the thread.Can you please explain what is the final solution?They still didnt solve that crapAnonymoushttps://www.blogger.com/profile/14417242383996658370noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-58751529136903880692012-01-02T12:20:47.127+05:302012-01-02T12:20:47.127+05:30Weird!Weird!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-85363651069823989022012-01-02T05:35:46.036+05:302012-01-02T05:35:46.036+05:30Seems to work with Chrome on Mac.Seems to work with Chrome on Mac.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-85405997360553441572011-11-19T13:52:16.876+05:302011-11-19T13:52:16.876+05:30Wow!! Seems wonderful to hear about your research ...Wow!! Seems wonderful to hear about your research topic. All the best!! Keep writing!!rnoytthttps://www.blogger.com/profile/08634542080308232156noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-72216921685766374032011-10-10T14:09:56.545+05:302011-10-10T14:09:56.545+05:30One thing that bothers me with music phones is the...One thing that bothers me with music phones is their incompatibility with high-def audio formats, although that shouldn't matter much considering the space provided on each device isn't enough to hold these.<br /><br /><a href="http://www.livingsound.com.au/" rel="nofollow">audio brisbane</a>Joannehttps://www.blogger.com/profile/02355925244285036355noreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-53591895321195906152010-12-02T19:57:28.023+05:302010-12-02T19:57:28.023+05:30It's not getting rendered (at least not in chr...It's not getting rendered (at least not in chrome 6.0.472.62 and firefox 4.0. Is the script still there at http://tex.yourequations.com?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4372471714060702862.post-77427213619208311242010-11-30T01:39:31.831+05:302010-11-30T01:39:31.831+05:30I m also not being open to wikileaks website, its ...I m also not being open to wikileaks website, its shame on govt as govt had lobbied hard to even the private companies to block internet. i m using a private company broadband connection..I m very very annoyed by the govt and the company who had bloked the wikileaks with out any citing and reasonAnonymousnoreply@blogger.com