logo

Pages


Erick’s Games

Faith

Older Games

Other Blogs

Posts

Categories

 

March 2009
S M T W T F S
« Feb   Apr »
1234567
891011121314
15161718192021
22232425262728
293031  



Comments

Administration

How to install VMware Workstation 6.5.1 in Gentoo

March 11, 2009

VMware Workstation installs fine in Gentoo, for the most part. There are a few steps that must be taken first, luckily they’re pretty much self-explanatory.

# create init.d symlinks
cd /etc
ln -s init.d rc0.d
ln -s init.d rc1.d
ln -s init.d rc2.d
ln -s init.d rc3.d
ln -s init.d rc4.d
ln -s init.d rc5.d
ln -s init.d rc6.d
ln -s init.d rcS.d

# now, install vmware
sh VMware-Workstation-6.5.1-126130.x86_64.bundle

# and then copy gentoo's init scripts over vmware's
mkdir -p /etc/vmware/init.d
mv /etc/init.d/vmware /etc/vmware/init.d/
cp /usr/portage/app-emulation/vmware-workstation/files/vmware-workstation.rc \
/etc/init.d/vmware
chmod +x /etc/init.d/vmware
rc-update add vmware default

How to install VMware Workstation 6.5.1 in Fedora 10

Short version:

sh VMware-Workstation-6.5.1-126130*.bundle
yum install gcc kernel-devel-`uname -r`
mv /usr/lib/vmware/modules/binary /usr/lib/vmware/modules/binary.old
vmware-modconfig –console –install-all

Slightly-less-short version:

1. The .bundles available on VMware’s site are just huge shell scripts. Thus, we execute them like one:

sh VMware-Workstation-6.5.1-126130*.bundle

2. The install should finish successfully, but it won’t run because the modules will not fit into Fedora’s running kernel. To fix that, we first need to install gcc and the kernel-devel package for your running kernel:

yum install gcc kernel-devel-`uname -r`

3. Move the directory where the module object files were installed, then run vmware-modconfig. Because you moved the object files directory, it will try to recompile them.

mv /usr/lib/vmware/modules/binary /usr/lib/vmware/modules/binary.old
vmware-modconfig --console --install-all

VMware should now run.

Quick and dirty guide to rsync

rsync is a software application for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate. (Thanks, Wikipedia.) Since this is supposed to be a quick tutorial, we’ll skip the formal lecture and get on with some usage examples.

1) sync a whole directory from one location on the local filesystem to another, while keeping all metadata such as ownership and permissions in tact:

rsync -azvrP /media/disk/source /home/user/destination

Important note: if source does not have a trailing slash, it will create the directory source/ inside destination/ — if it does have a trailing slash, it will copy only the contents of source but not source/ itself. This is similar to `cp /source` vs. `cp /source/*`

2) sync from a local machine over ssh to a remote server

rsync -zvrP /home/user/source user@10.10.10.100:

rsync uses ssh for remote connections by default, so there is nothing special you have to do besides the remote destination syntax which is identical to scp. (Obviously, sshd must be running on the server.) In this example there is nothing after the colon, meaning it defaults to the user’s home directory.

3) sync from a local machine over ssh to a remote server on a non-standard ssh port to a non-home directory

rsync -e ’ssh -p 12345′ -zvrP /home/user/source root@10.10.10.100:/usr/local/

The -e flag takes a string identical to what you would use if you were using ssh manually. In this example, ’ssh -p 12345′ connects using port 12345 on the server. The other difference is the destination directory on the end of the remote IP. To copy from a server to yourself, simply reverse source and destination.

4) sync one directory to another, except for files ending in .iso and .img

rsync zvrP –exclude ‘*.iso’ –exclude ‘*.img’ /home/user/source /media/destination/

Nothing new here except for the –exclude option. (Those are TWO dashes, not one! Wordpress likes to change things without my permission.) This is useful for when you’re backing up a directory but don’t care to transfer huge files that you can easily re-download. For more details about fine-grained exclusion, see the rsync man page.

Command line options
Personally, about 95% of my rsync usage is accomplished with -zvrP. Below is a quick table of all the options seen in the previous examples.

-a: archive (implies -rlptoD)
  -r: recursive
  -l: copy symlinks as symlinks
  -p: preserve permissions
  -t: preserve modification times
  -g: preserve group
  -o: preserve owner (root only)
  -D: (implies --devices --specials)
    --devices: recreates character/block devices
        (receiving end must be root)
    --specials: transfer special files like named sockets

-z: compress during transfer
-v: verbose
-r: recursive
-P:
  --partial: keep partially transferred files
  --progress: show progress during transfer

-e: specify the remote shell to use
--exclude: excludes files matching PATTERN

Adding DVD and Video Files to Your iPod

Adding DVDs and video files to your iPod that aren’t in iTunes.  I don’t have an iPhone, but I imagine this process could work for that too.

Want to add your favorite DVDs to your iPod, but don’t want to pay to download content from iTunes that you already own? The process is surprisingly simple. I’ve done this with both videos on my computer, and commercial DVDs. You need a program that can convert video files to the iPod format, and I use Xiisoft Video Converter 3 and Xiisoft DVD Ripper Platinum 4 to accomplish this.

Converting a DVD.

  1. Insert the disk into the disk drive.

  2. Open Xiisoft DVD Ripper.

  3. Goto File->Add DVD Folder. Select the drive you put the disk in.

  4. All the videos are loaded onto the screen. Make sure you check only the ones that you want. You can tell by the duration of the file. The others are title screens and special features, which you can preview and check if you so choose. (If you’re ripping television shows, there will often be a ‘play all’ track thats a couple hours long)

  5. At the bottom of the window, choose a destination, and select ‘iPod Video2(640×480) MPEG-4 Movie (*.mp4)’

  6. Click the button with the red circle, or select ‘rip all checked’ from the file dropdown.

  7. Add to iTunes and your iPod the usual way. If you sync, ripping these files to the proper folders should be enough. If you don’t, you need to goto File->Add Folder to Library in iTunes, and then move those added videos onto your iPod.

Converting an existing video. Perhaps something you’ve downloaded.

  1. Open Xiisoft Video Converter

  2. Click Add and select the files you want to convert.

  3. Select a destination. (Perhaps your iTunes folder) Make sure profile reads ‘iPod Video2(640×480) MPEG-4 Movie (*.mp4)’. Make sure all videos are checked.

  4. Click Encode. Or File->Encode.

  5. Add to iTunes and your iPod the usual way. If you sync, ripping these files to the proper folders should be enough. If you don’t, you need to goto File->Add Folder to Library in iTunes, and then move those added videos onto your iPod.

Listen/Watch and enjoy.

Google