Posted by java in Technology, tags: Linux
Linux 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.
- Open up a CLI (terminal)
- tar -cjf /root/logs-`date +%d%m%y`.tar.bz2 /var/log
- 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
No Comments »
Many 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!
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:
- Install Adobe AIR if you don’t have it already, my guess is you don’t http://get.adobe.com/air/
- Install TweetDeck just click install now.
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
- 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
- Open a terminal(command line)
- Switch to root user
- sudo su – or su -
- Change the ssh port from 22 to 443
- sed -i ’s/Port 22/\nPort 443/i’ /etc/ssh/ssh_config
- Restart SSH
- /etc/init.d/sshd restart
- Record your IP
- wget -O – -o /dev/null http://whatismyip.org
- 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
- wget http://127.0.0.1:443
Configuring Portal Firefox & Putty
- Place putty and firefox on a thumbdrive
- Open Putty
- Under Hostname place your IP Address
- Under Port change 22 to 443
- On the left click on the [+] SSH
- Click on tunnels
- Source port put 443
- Destination put your IPAddress:443
- Click the add button.
- Click on Session on the left(you may have to scroll up)
- Under Saved Sessions type Tunnel and click Save
- 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)
- Open your portable firefox
- Navigate to the URL About:Config
- For Network.proxy.socks put 127.0.0.1
- For Networkproxy.socks_port put 443
- For network.proxy.socks_remote_dns change it to enabled
- Go to Tools > Options
- Select Advanced and ensure you are on the “Network” tab
- Click Settings
- Select the bubble “Manual Proxy Configuration” and click ok twice.
- Now if your tunnel is up this should be able to browse the web from this browser!
To use this tunnel anywhere!
- Place your thumb drive into the computer
- Open up putty
- in the Mid-right select Tunnel and click load
- 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)
- Open up the portable firefox and browse the web!
1 Comment »
Posted by ipp in Other, tags: Linux, Windows
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!
No Comments »
Posted by ipp in Other, tags: Linux, Ubuntu, Windows
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.
- Open a terminal and su to root
- Find the NTFS Partition
- Create a place to mount your NTFS Partition
- Mount the NTFS Partition, in my example the NTFS partition is on /dev/hda1.
mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
- Test that you can read it
1 Comment »