Posts Tagged “Linux”

Tip TuesdayLinux is a great operating system for servers. Coincidentally, I run a local linux server and as everyone should know… disk space matters! That’s where today’s quick fix comes in! As a server owner, you will quickly realize how important every little kilobit is when it comes to keeping your server in order.

If you are curious how large your log space is you may run du -hs /var/log

Heres how to compress and backup all your logs to /root/logs-(date).tar.bz2 and wipe all the data out of all the files in /var/log.

  1. Open up a CLI (terminal)
  2. tar -cjf /root/logs-`date +%d%m%y`.tar.bz2 /var/log
  3. find /var/log -type f | xargs sed ‘/^/d’ -i
    • Red: This part of the command will send the path of all the files in /var/log to stdout(the screen)
    • Blue: The xargs command allows us to perform an operation on everything in stdout, as from the previous command displays all the file names, this will let us “merge” a command with the filenames.
    • Green: sed is a streamline editor, basically it will allow us to perform a regular expression. In this case we are deleting all the lines from a file

Comments No Comments »

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 »

One of the major down falls to twitter is when you get too engulfed in it and start following many people.  Its nice but the tweets from those special people can go unnoticed.  That is where tweet deck comes it, it will let you view pretty much anything on twitter by groups!  Check out the video.

To download it:

  1. Install Adobe AIR if you don’t have it already, my guess is you don’t http://get.adobe.com/air/
  2. Install TweetDeck just click install now.

Video:

http://www.vimeo.com/3438418

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 »

Do you dual boot and wish to grab files on your linux partition while you are on windows? Well the Disk Internals have a program to do just that and best of all it’s 100% free. Just install this program and when you open it, it will detect any ext2/ext3 partitions on your hard disk and give you full access to them!

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 »