Notes on computer programming, server administration, using databases and ideas completely unrelated to Automation.

Archive for the ‘Command Syntax Notes’ Category

How to Copy Rip Encrypted DvD Movies Remove CSS & Convert to AVI DIVx

Saturday, February 5th, 2011

Most movie DVDs are encrypted. Therefore, you need more than just a DVD copier program. On Windows systems I use software called DVFfab 8 (www.dvdfab.com) to copy or rip CSS (”Content Scramble System”) encrypted movies and videos to the hard drive.  You’ll need at least 8gb of hard disc space.  You can download DVFfab 8 here.

Rip DvD using DVDfab8 software program from www.dvdfab.com.

Rip DvD using DVDfab8 software program from www.dvdfab.com.

It isn’t free but it let me use it for a few days before requiring a code key to work. I ran it inside a VMware virtual machine running Windows Ultimate 7 on a system running Linux Ubuntu Lucid 10.04.   Is there Linux software to “descramble CSS “enhanced”  DVDs? The man page for the program vobcopy (runs on Linux) states,
‘CSS  is  sold  by  the DVD industry as a “copy protection”, though it’s more of a “view protection” as it makes DVDs unviewable with unlicensed players.  Some people have hacked CSS decryption routines, and one of those  is
available  as  a  libdvdread counterpart.’ On Linux I use vobcopy and libdvdread. The library libdvdcss must also be installed. I downloaded it from http://archive.debian-maintainers.org/unofficial/packages/libdvdcss/current_i386/. The Debian package version 1.2 libdvdcss2 may be  installed using the Package Installer.

install-libdvdcss2

Once you have the DVD movie ripped to your hard drive, if you are using Windows, you may use Flask MPEG to convert it to the AVI Divx format, which is much smaller than the vob files on the original DVD. You can download Flask MPEG here.

Download Flask MPEG for Windows systems.

Download Flask MPEG for Windows systems.

Before running Flask MPEG you must install the Divx video and MP3 sound drivers. Download the Divx driver here. You can control the size of the final file by setting the frame rate, resolution, and sound quality.

Should you want to convert DVD vob files to AVI Divx on Linux you may use various programs, however, I stick to using ffmpeg when I can.  According to ffmpeg’s documentation, “You can transcode decrypted VOBs:

ffmpeg -i snatch_1.vob -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec libmp3lame -ab 128k snatch.avi.”

If you are using Ubuntu like me then you can install ffmpeg by typing “sudo apt-get install ffmpeg” in the terminal.

Enjoy your movies!

Concerned About Too Much Swap Memory Use on Linux Ubuntu?

Sunday, January 16th, 2011

As I was staring at the solidly lit hard disk LED indicator, I realized that the system, a Dell Latitude D620 running Linux Ubuntu 10.04 Lucid Lynx, was spending to too much time accessing the slow hard disk rather than keeping the data in RAM memory. As taught in any Introduction to Computer Science 101 class, the magnetic hard disk reads and writes data at the speed range of a few megabytes (mb) per second, while electronic random access memory (RAM) does reads and writes in the hundreds of mb per second range. Therefore, I lowered the amount of data or programs stored on my hard drive by executing the following command at the system prompt:

~$sudo sysctl -w vm.swappiness=10

The default swappiness value is 60.

You check your swapiness value using:

~$cat /proc/sys/vm/swappiness

I put the code at the end my /etc/sysctl.conf file so that it will boot up with the lower swapiness value. If you have a computer  with low memory, like less than 1gb, then you should probably leave it at 60. If your system is freezing or crashing because of insufficient memory then you could set it to 100, however, your machine will run at a snail’s pace.

To take advantage of the new setting I flushed the swap data from the hard drive to memory by executing the flowing program at the command prompt. You could put these statements in to BASH script to automate this process.

~$sudo swapoff -a

I turned on the swap process back with:

~$sudo swapon -a

Although it is not necessary to flush un-used data and programs from volatile memory, because the system keeps track of available space anyways, you can do it by running the following program at a terminal’s system prompt:

~$sudo echo 3 > /proc/sys/vm/drop_caches

The above command really is not required as the system keeps the most recently used data or software in RAM in case you or it needs to use it again and it will be available to use almost instantly, speeding up your tasks or the system’s tasks most efficiently. Tools like free:

~$free -t -m
total used free shared buffers cached
Mem: 1498 833 664 0 50 318
-/+ buffers/cache: 464 1033
Swap: 0 0 0
Total: 1498 833 664

or, top or system monitor the will show a high “used” amount of RAM, that includes data and programs no longer in use but that might be used in the future.

top – 15:12:47 up 23:31, 2 users, load average: 0.94, 0.81, 0.77
Tasks: 182 total, 1 running, 181 sleeping, 0 stopped, 0 zombie
Cpu(s): 8.7%us, 8.7%sy, 0.0%ni, 80.4%id, 0.0%wa, 2.2%hi, 0.0%si, 0.0%st
Mem: 1534556k total, 866732k used, 667824k free, 51820k buffers
Swap: 0k total, 0k used, 0k free, 338300k cached

Hadoop Commands

Friday, September 4th, 2009

# Start hadoop with a clean data storage area

bin/hadoop namenode -format

bin/hadoop fs -mkdir /hypertable
bin/hadoop fs -chmod 777 /hypertable
bin/start-dfs.sh

bin/start-mapred.sh
# check if any new java processes have started
netstat -plten | grep java

bin/hadoop-daemon.sh start datanode

Hypertable Table Commands

Friday, September 4th, 2009

netstat -plten | grep java

bin/hadoop-daemon.sh start datanode

cd HYPERTABLE_SRC_DIR

How I Compile Hypertable with Thrift

Friday, September 4th, 2009

This is incomplete.

cd HYPERTABLE_SRC_DIR

cmake -DBUILD_SHARED_LIBS=ON -DJAVA_INCLUDE_PATH=$JAVA_HOME/include -DJAVA_INCLUDE_PATH2=$JAVA_HOME/include/linux  -DPHPTHRIFT_ROOT=/usr/local/thrift/thrift/lib/php/src  -DCMAKE_INSTALL_PREFIX=/usr/local/hypertable/build2

$ ant jar # do not forget this step !!!
(more…)



R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone 101clean - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - R. Ryan Avery Stone - Law Office of Marcus Gomez | Marcus Gomez Attorney | Marcus Gomez Attorney | Attorney Marcus Gomez | Marcus Gomez Attorney | Marcus Gomez Attorney | Marcus Gomez Attorney | Marcus Gomez Attorney | Marcus Gomez Attorney | Marcus Gomez Attorney | Marcus Gomez Attorney | Marcus Gomez Attorney | Marcus Gomez Attorney | Marcus Gomez Attorney | Marcus Gomez Attorney | Marcus Gomez Attorney | Marcus Gomez Law Offices | Marcus Gomez Law Offices | Marcus Gomez Law Offices | Marcus Gomez Law Offices | Marcus Gomez Law Offices | Marcus Gomez Law Offices | Marcus Gomez Law Offices | Law Office Marcus Gomez | Law Office Marcus Gomez | Law Office Marcus Gomez | Law Office Marcus Gomez | Law Office Marcus Gomez |