Posts Tagged “Ubuntu”

http://old.wwcsd.net/fctc/Pages/IVD/images/vlc.jpgMany of you TPB addicts know that formats can be annoying. It may be even more annoying to those who are not as tech savvy as the rest of us. Really, when you first started using a computer, didn’t you ever wonder what a divX was? Luckily, VLC has you covered.

VLC can play virtually any audio and video files. From the older formats (ogg, Mpeg 1-3, Rmpeg…) to the newer ones like MPEG4, AVI, WMP, MP3 and many more. It also works as a DVD player with a ton of custom video filters and skins.

Get VLC Media Player HERE

Any problems? Visit the Forums and ask our great users!

Comments No Comments »

This guide is a work in progress, due to its complexity made simple it may not work. If run into issue ask us in our Forums, I will update this guide when i see what people are having problems with.

Ever use a public computer and wonder if places are monitoring your browsing habits? Well with a little elbow grease you can create a secure encrypted tunnel back into your home network and eliminate the possibility of them watching you over the network, a bonus this can also bypass web-filters/firewalls. This will not protect you against software on the local machine to view your browsing habits/log your keystrokes.

If you have a Dynamic DNS Set up, you may substitute your DNS name with IP
What You Need:

  • A program called Putty on the computer you are using, you can run it off a thumb drive.
  • Firefox, any browser will do but our guide uses this.
  • A linux box on your home network, we are using ubuntu.
  • Knowledge to forward ports on your home network.

Note: I linked you to portable apps, as I recommend using the portable versions to ensure you don’t leave anything behind you don’t need to.

What We Will Do:

We are going to first change your default SSH port to port 443 as some networks block the default port(22). Also port 443 is the standard port for HTTPS which almost all networks will allow outbound access allowing us to get into our box. As a bonus HTTPS traffic is also encrypted so this makes the unlikely event of setting off an alarm even more unlikely, encrypted traffic is going through a port that is normally encrypted… Nothing too unusual.

However if for some reason you don’t want to use port 443 feel free to substitute that with any other port.

Setting everything up(one time thing):

On Your Router

  1. Forward port 443 to your linux box, for help please refer to this guide. If need additional help please ask us in our forums.

On Your Linux Box

  1. Open a terminal(command line)
  2. Switch to root user
    1. sudo su - or su -
  3. Change the ssh port from 22 to 443
    1. sed -i ’s/Port 22/\nPort 443/i’ /etc/ssh/ssh_config
  4. Restart SSH
    1. /etc/init.d/sshd restart
  5. Record your IP
    1. wget -O - -o /dev/null http://whatismyip.org
  6. Verify your box is accessable from the internet over port 443. If the following command returns a “connection refused” it is not. Please redo the steps or consult our forums for help
    1. wget http://127.0.0.1:443

Configuring Portal Firefox & Putty

  1. Place putty and firefox on a thumbdrive
  2. Open Putty
    1. Under Hostname place your IP Address
    2. Under Port change 22 to 443
    3. On the left click on the [+] SSH
    4. Click on tunnels
    5. Source port put 443
    6. Destination put your IPAddress:443
    7. Click the add button.
    8. Click on Session on the left(you may have to scroll up)
    9. Under Saved Sessions type Tunnel and click Save
    10. Click open and input your username and password(if it does not connect you have a problem with your server or your IP Address changed)
  3. Open your portable firefox
  4. Navigate to the URL About:Config
    1. For Network.proxy.socks put 127.0.0.1
    2. For Networkproxy.socks_port put 443
    3. For network.proxy.socks_remote_dns change it to enabled
  5. Go to Tools > Options
    1. Select Advanced and ensure you are on the “Network” tab
    2. Click Settings
    3. Select the bubble “Manual Proxy Configuration” and click ok twice.
  6. Now if your tunnel is up this should be able to browse the web from this browser!

To use this tunnel anywhere!

  1. Place your thumb drive into the computer
  2. Open up putty
  3. in the Mid-right select Tunnel and click load
  4. Click open, enter your username and password (if it doesn’t connect the most likely cause is an error in your home setup such as your IP Changing)
  5. Open up the portable firefox and browse the web!

Comments 1 Comment »

When running local services off your home computer, your IP address becomes an issue. This is due to the fact it can be hard to memorize and it may change- without letting you know. However, there is a work around for this! Setting up “Dynamic DNS” will allow you to access your computer through a domain name, even when your IP changes.

To do this you will need:

  • A computer running Linux (We used Ubuntu)
  • No-ip.com account (Free!)

On No-Ip.com

  1. Sign into your account on no-ip.com
  2. Click Add which is located under Hosts / Redirects.
  3. Next to hostname put whatever you want, this will be your domain name.
  4. Click Create Host , located at the bottom of the page.

On Your Linux Computer

  1. Open up a terminal
  2. Switch to root user
  3. sudo su

  4. Install the package no-ip
  5. apt-get install no-ip

  6. Configure no-ip
  7. no-ip -C

  • Select your internet interface
  • Enter the login information
  • If you only have one host it will use that, if not it will now ask which one you which to use
  • Now it will ask for the update time (in minutes), i just used 30.
  • Now it will ask if you want to run something at a successful update, I selected no.

Within the next 30 minutes your domain name should now point to your IP! Test it by sending a ping to it, or navigating to it in a web browser.

Comments No Comments »

Making the move from Windows to Linux can be a tough one, especially if you have a hard time moving your data. Here is a way to access your NTFS Windows partition from a standard distro of linux, such as ubuntu.

  1. Open a terminal and su to root
  2. sudo su

  3. Find the NTFS Partition
  4. fdisk -l

  5. Create a place to mount your NTFS Partition
  6. mkdir /mnt/windows

  7. Mount the NTFS Partition, in my example the NTFS partition is on /dev/hda1.
  8. mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222

  9. Test that you can read it
  10. ls /mnt/windows

Comments 1 Comment »

VirtualBox, YEAH MAN!VirtualBox is a popular open-source application (a great alternative to VirtualMachine) that allows you to emulate another operating system install. It is compatible with many operating systems, however today we are focusing on it from the Linux point-of-view.

Have you installed a newer version of VirtualBox (for instance, a newer non-OSE version), and later realized you wanted to go back to VirtualBox-OSE?

Ive been reading on many forums, and from the looks of it many of us dont know how to get back to our old version, were seeing some kind of message that says (or something similar to):

Could not load the settings file ‘/home/USER/.VirtualBox/VirtualBox.xml’ (VERR_OPEN_FAILED).
FATAL ERROR: Attribute ‘version’ has a value, ‘1.3-linux’, that does not match its #FIXED value, ‘1.2-linux’
Location: ‘/home/USER/.VirtualBox/VirtualBox.xml’, line 5, column 83.

Wait, dont panic… please dont panic! Everything should be alright!

As long as you were sure to make a backup of your previous Virtualbox Machines.. this is all you need to do!

  1. Remove all of your currently installed Virtualbox packages.
    Open a terminal and type: sudo apt-get remove virtualbox*
  2. Hit the Y for yes and it will then remove all of your Virtualbox packages currently installed, dont panic! Then just to play it safe, type: sudo apt-get autoremove
  3. Hit Y for yes again, and it will remove all of the unneeded packages (keep your computer clean of junk files).
  4. Now, were going to install the OSE of Virtualbox, which is what we had before.
    Type: sudo apt-get install virtualbox-ose virtualbox-ose-modules-generic
  5. Next…
    Type: sudo apt-get install build-essential linux-headers-`uname -r`
  6. After that, restart your computer and your computer should recompile the headers. Once restarted, try launching Virtualbox by navigation to VirtualBox OSE in your Applications > System Tools menu, or ALT+F2 and type ‘virtualbox’.
  7. Most likely, your going to get the error we quoted above. This error is your friend! Take note of the value it lists. For example, my error mentioned: “FATAL ERROR: Attribute ‘version’ has a value, ‘1.3-linux’, that does not match its #FIXED value, ‘1.2-linux’” We want to note the #FIXED value, so im going to remember “1.2-linux”. Also, note the location: “/home/USER/.VirtualBox/VirtualBox.xml” (Replace USER with your account username). (Hit OK to close the dialog box)
  8. Now, open a terminal and…
    Type: gedit /home/USER/.VirtualBox/VirtualBox.xml
  9. Gedit will open up with VirtualBox.xml. In this file, find where it says:
    “<VirtualBox xmlns=”http://www.innotek.de/VirtualBox-settings” version=”1.3-linux”>”
  10. Replace the version with the #FIXED value we noted in Step #7. My new line looks like this:
    “<VirtualBox xmlns=”http://www.innotek.de/VirtualBox-settings” version=”1.2-linux”>”
  11. Save the file! Almost done… exit Gedit and the terminal window. Open up Nautilus (the File Manager on GNOME) and navigate to: “/home/USER/.VirtualBox/Machines”.
  12. Navigate to the folder of your choice. For example, my folder is titled: “Windows XP” (that is one of the Virtual OS’es I have installed). You will notice two files in this folder (maybe more). One ending in .xml, the other ending in .bak.xml-Virtualbox-Version-Etc-Nonsense (not exactly, but you get the point!). Rename the .xml one to .xmlOLDNEW and rename the super long named one to end in .xml.
  13. Your done! No longer face the error, your back where you wanted to be- using an openSource version of VirtualBox.

This should have done it all, if not, post your questions in the comments below (or ask on the Forums)!

Comments 3 Comments »

This might turn into a rant, but in all honesty the only thing I am not too pleased about Linux is that not everyone else in the world is using it. Ok, that was enough venting. Lets get to the steak and potatoes of this tutorial!

So, you want your Linux to perform ultimately better than your previous (probably Windows) environment, and at the same time you want to sacrifice as little as possible. Linux seems to have a few “legal” problems with fonts in that aspect, so today were going to go beyond the “legal limits” and get Linux looking how it should. (With that said, most people design websites on Windows XP (or another OS), forget that most of the Linux-world doesn’t have the same fonts as them.

The specific fonts were talking about are: Franklin Gothic, Gautami, Kartika, Lucida Sans Unicode, Latha, Lucida Sans, Mangal, Marlett, Microsoft Sans Serif, MV Boli, Palatino Linotype, Raavi, Shruti, Sylfaen, Symbol, Tahoma, Tunga, and last but not least Wingdings.

Thats a whole lot of fonts us Tux-fans cant get access to.
Well, your wish is my command. I present to you the solution! (Brace yourselves… Its a tutorial!)

What You Will Need

  • A Linux PC
    I am running Ubuntu 8.04 here. Just some Linux knowledge to apply the commands to your distribution if your not using the same one as me.
  • Fonts Packedwithapunch Pack
    Thats the fonts pack I created with all of these wonderful fonts. Heck, I even gave it a fancy name!

The Steps

Hey, that was easy! Wheres that easy button again? Oh.. here it is!

  1. First, go download my Fonts Packedwithapunch Pack. Open up a terminal (ALT+F2) and type “gnome-terminal” or what ever terminal app you use. Xterm? Hey thats a nice one!
  2. Type in: “wget http://img.tutorialninjas.net/java-fontspwapp.tar.bz”. (Without quotes) Then hit Enter.
  3. Next, type: “tar -xjf java-fontspwapp.tar.bz” Then hit enter.
    PS. I hope your catching on. Don’t type the quotes, only whats inside of them! ;)
  4. Make a directory to copy those fonts.
    Type: “sudo mkdir /usr/share/fonts/truetype/pwap”
  5. Now copy the fonts to your usr/share!
    Type: “sudo cp -v java-fontspwapp/* /usr/share/fonts/truetype/pwap/”
  6. Now that the fonts are copied, lets refresh the font caches!
    Type: “sudo fc-cache -f -v”
  7. Once it finishes, your all done! I would reccomend for your own good to do a quick X restart. Do this by holding CTRL + ALT + BACKSPACE. Now your good to go!

Other Information

Ok ok ok, I know that smart-guy is going to come here and post: “Hey, there is a total easier way to install Windows fonts on Linux. Ok, before you say that– read the fonts I listed above and then think about saying that again. Raavi was not a font distributed under GPL- OK?!”

By the way, this tutorial is for Educational purposes only.

Comments? Questions? Anything else you want to say about this post? Let us know in the comments below.
…Hey that rhymed! Pretty flippin sweet for a ninja if you ask me!

Comments 6 Comments »