2010 February
February 12, 2010
Adding a startup script on Ubuntu server
This is a useful tip for my reference. I’ve been creating some startup scripts on my Ubuntu server lately and her are a couple of steps required to get this working.
Write your startup script and place it in /etc/init.d/ directory. Let’s say you called your startup script – myScript. You then install your script by using update-rc.d debian utility:
update-rc.d myScript defaults
Have a look at man update-rc.d for more info.
And finally, you have to make your file executable:
Topchmod +x myScriptFebruary 6, 2010
HOWTO convert and shrink your DVD into a web-playable format
HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder, available for MacOS X, Linux and Windows.
It is my tool of choice when it comes to backing up my DVDs. It allows me to shrink DVDs to a relatively small size and convert them to a web-playable format, such as mp4.
I use the Command Line version of HandBrake simply because it is more efficient and I love typing geeky commands in my terminal window. So here it is, the simplest command to convert your DVD into an .mp4 file is this:
HandBrakeCLI -i VIDEO_TS -o myVideo.mp4 -e x264 -b2000 -B 192
That will encode a source video located at the path VIDEO_TS to an output file called myVideo.mp4. It will use x264 with a bitrate of 2000 to encode the video, and encode the audio as 128kb/s AAC.
Top