Automated SCP Copy Script (with Wake-On-LAN)

As some of you may know currently I have a file server and a download server. The file server has a script that checks if anyone is connected if not , it goes to sleep. It can be waken via Wake-on-Lan. This is to reduce power consumption , as due to electricity tariffs which are going up in 2014 (that is in Malaysia). My File Server consumes about 60-70W of energy when it is idling. When it is asleep it only consumes about 2W 
server-to-server
My Torrent Server on the other hand consumes about 20W (It’s a little machine that runs on Intel Atom 330) and has a 80GB of Storage. Basically I use it to download things from Deluge.
The problem is that once the file has been downloaded , I would have to move the files manually from my torrent server to my file server . It’s painful – I’ve to ssh over , scp and rm the files once it is done. It is becoming more and more troublesome when you have a large files to copy over – especially downloading movies
[code language=”bash”]
ssh [email protected]
cd /downloads/
scp -r file [email protected]:/largeHD/media/
rm file
[/code]
This is what i generally do . What’s worst is that if my file server is sleeping , I would have to issue a wake on lan command to activate it. Also I’ll have to change the destination every time based on the type of file , as i’ve my file server organised !
Read More

EDID Override for HDTV to Solve Passthrough

Recently I bought a new SAMSUNG 5-Series LED TV. It’s great in sense that it has a SPDIF/Out (compared to my old Panasonic HDTV) , it’s mcuh more lighter and it’s a SmartTV.
images
 
As you do know that I use HTPC to play back videos from the internet and all and currently the configuration is setup as Video to HDMI and Audio via SPDIF/out to my Amplifier. The reason for this setup is being that my previous HDTV did not have any Digital Out. But this current Television does support it.
So I’ve decided to connect the Toslink cable from my HTPC to my TV instead so that my HDTV can make use of the amplifier , thus making it easier for any devices to output 5.1 surroundsound. Unforutantely , this setup did not work very well with my PC.
The reason being is that moment I plugged in my HDMI Cable , Windows did detect it’s a HDTV and only offered 2.1 Audio. It did not offer Dolby Digital/DTS pass-through which means that if I play back a Dolby Digital 5.1 , it would not output correctly to my Surround. Of course other systems like xbox , STB are able to do this correctly moment you set the correct output
However in Windows (and with NVIDIA) it was not possible to bypass this. It would read EDID information from the TV. Thankfully there is a method which allows you to bypass that. This person has written a guide on how to do that , step-by-step instructions on how to do it
It works great with NVIDIA Cards a well , it’s just that after you have done the configuration you may have to re-install NVIDIA Drivers to correctly detect your Audio output 🙂
 
Let me know if it works for you

World of Warcraft -IPV6

Comparison Between IPV4 & IPV6 [UniFi]

Recently , TM decided to roll out native IPV6 for its users. Currently UniFi and Streamyx users are able to get IPV6 Addresses if their ‘port’ supports it. In this article , basically we would take a look if there are any advantages of using IPV6 over IPV4 currently.
 
globe_http_290x230_thinkstock
I’ll be taking a look at everyday usage to see if there is an improvement in our Internet Usage. Keep in mind that this is not a full technical test , I’ll be just doing simple tests and observations on TM’s IPV6 . I will be also giving you a brief explanation of IPV6 and the advantages .
More after the jump
Read More

[Guide] Backing up your WordPress to Dropbox

Recently my site was down and it appears that my old hosting provider – XenServ , decided to bid farewell to their business and poof there goes my site along with it. I thought I had lost it all , this is because the only cPanel backup , I had was dated somewhere in December 2012. But little did I know that I’ve had installed an addon called WordPress Backup to Dropbox.
banner-772x250
 
It’s a nifty addon that actually backups your wordpress (your whole site including pictures , posts , addons and what-not) along with the database to dropbox and best of all ,I don’t have to worry about running it manually , it runs automatically at a configured. The problem with backup is that you need to take the pro-active step of doing it weekly/monthly or daily but with this – I do not have to worry at all , it just does by itself. The nice thing about this addon is that it uses Dropbox oauth – which means that you authenticate the application and it does not store your username/password – much like how Twitter/Facebook oauth works.
Read More

prasys.info is up

Finally got my site together and this time transfered to a better hosting provider – HostGator that is. So far i’ve managed to get my site up and running.
In the coming article , I will share on how easily you could backup and restore your WordPress . This is what i exactly did , I quickly managed to move host without any hiccups or so !
 
Happy Holidays by the way