Posts Tagged ‘ Linux

Convert High-Def MKV to play on xbox 360 using Linux

There are a million different tutorials out there on how to convert a MKV file into a format that an xbox360 will play. You may have found, like i did, that most of them use 50 different questionable pieces of software to manipulate individual tracks and separate the mkv, etc, etc… I think those are ridiculous.

Please read the FAQ regarding xbox360 file format compatibility.  It may help you pick better options for your particular files than the general ones i offer below.

The solution is simple: Use Avidemux.

  1. Install avidemux. To install it is simple. It’s in the Ubuntu repositories and I imagine you can also find it in other distros quite easily.
  2. Open avidemux and open the mkv you want to convert. If prompted some garbage about 264 and safemode, just use safe mode and dont worry about it.
  3. Select File -> Properties. This will tell you some info on the formats in use in your video file. Take this opportunity to identify what the xbox doesn’t like. When you are finished, click OK. If you want a second opinion, open up the folder with your mkv in it. Right click -> properties -> Audio/Video tab. This will also tell you the video and audio formats.
  4. We obviously know that it wont play a video in a MKV container, so first thing to do is change the “Format” dropdown to say “MP4″ (you can, of course use AVI, but the majority of files I run into are h.264 and aac audio. For this combo, you want mp4…)
  5. From the Properties menu, recall the video codec. H264 files show as “AVC1″ inside of avidemux. I’m sure theres a technical reason for this, but do you want to talk about it or watch your video?
    Most of the time, you can leave the video droptown in avidemux on “Copy” this is nice because it means that your processor wont be re-encoding the video. This saves you quality and time.
  6. From the properties menu, recall the audio codec. If you have a video with AAC stereo audio, leave the dropdown on “copy”.
    This is where most of my files need some love. Many MKV’s have 5.1 surround audio tracks. This is great, but not for an xbox360. To mix the audio down to stereo, select AAC on the audio dropdown, then click “filters”. In the mixer dropdown, select “stereo”.
  7. Click “save”. Avidemux will prompt you for a filename for the converted file. It does not default a file extension, so do yourself and your xbox a favor and add one yourself like “<videoname>.mp4″.

Once avidemux is finished with your file, it’s ready to go.

http://avidemux.sourceforge.net/

Linux command line bandwidth monitor

You can find out how much bandwidth your linux machine is using with a simple tool called “bwm-ng”. In Debian, install it with

aptitude install bwm-ng

Then, just type ‘bwm-ng’ in the command line. It will give you something like this:

bwm-ng v0.6 (probing every 5.000s), press 'h' for help
  input: /proc/net/dev type: rate
  -         iface                   Rx                   Tx                Total
  ==============================================================================
               lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
             eth0:        2221.47 KB/s           48.13 KB/s         2269.60 KB/s
  ------------------------------------------------------------------------------
            total:        2221.47 KB/s           48.13 KB/s         2269.60 KB/s

Pressing the “h” key while it is running wil actually pull up a nice menu to change some of the options you are looking at.

bwm-ng is very basic, “iptraf” is another tool that provides some more functionality if you want to drill further into what is moving in and out of your box.

Xbox Media Center on original XBox

I picked up a refurbished original XBox specifically so i could install XBMC on it. Turns out it is a GREAT project, and through some trickery, was able to get it installed and running thanks to this post: http://www.boards.ie/vbulletin/showthread.php?t=2055256404 by ‘SuperCell’ at boards.ie. I highly recommend using this ‘hotswap’ method if you don’t already have the gear necesarry to mod an xbox with a chip, or by using a savegame exploit. It’ll save you some cash, plus who doesn’t like yanking an IDE cable from a spinning hard drive?

Best of all, all of the tools used in the process run perfectly in WINE, or directly on my Linux desktop.

Install backupexec 12.5 agent on Debian Lenny

The path to it is

BEWS_12.5.2213_LINUX-UNIX-MAC-SAP_AGENTS.tar.gz\BEWS_12.5.2213_LINUX-UNIX-MAC-SAP_AGENTS.tar\pkgs\Linux\VRTSralus.tar.gz\VRTSralus.tar\VRTSralus-12.5.2213-0.i386.deb

Unfortunately, the Deb package doesn’t specify It’s dependencies. You need to manually install the libstdc++5 package.

aptitude install libstdc++5

You can follow the rest of the install here: http://insanelabs.com/debian/linux-symantec-backup-exec-12-and-debian-etch-3264/

Group share for a Active Directory domain group with Samba

Once you have joined your samba server to your domain and have set up user authentication, creating a share that will allow a group of users to access files is pretty simple.  We need to create a folder that is owned by the root user and the domain group. The samba share will inherit permissions from the parent folder.  Here is an example for creating a folder for a domain group called “corporate_HR”. The domain is called “acme”. There is administrative support group called “admins”. Setting the folder’s permissions to “2771″ means that the owner (root) and the group (corporate_HR) have full access.  The “2″ is a setgid bit. It will force all new files created under the HR folder to take the group parameter from it’s parent.  We use the “force group” parameter to ensure that permissions are set properly when a member of the “ACME\admins” group accesses the files.

login as root.

to set up the filesystem:

cd /home
mkdir HR
chgrp corporate_HR HR
chmod 2771 HR

set up the share:

[HR]
comment    =    share for corporate HR group
readonly    =   no
inherrit owner    =    yes
inherit permissions    =    yes
authorized users    =    @ACME\corporate_HR @ACME\admins
force group    =    ACME\corporate_HR
 

Switch to our mobile site