Skip to main content

Posts

Showing posts with the label linux

Moving to a New Linux Web Based Torrent Client

For years, I have been using TorrentFlux (url here) as my primary torrent client situated in my Ubuntu download server. But as time went on, the developers completely abandoned the development of TorrentFlux which led to several forks which I think is still insufficient for my needs. Main GUI of TorrentFlux Ive checked several options which runs on a GUI-less environment. Since my Ubuntu server is just running on command line to save precious memory, I needed something bare, simple and is packed with features. Installing uTorrent Server is pretty straight forward. Download. Uncompress. Run. This is better than the approach of TorrentFlux which you need to setup LAMP server and create a database. More often than not, it happens to me that some of the data in the DB gets corrupted. I normally just reinstall the whole thing again. Main GUI of uTorrent Server To further elaborate on the setup process, I've gotten an excerpt from this thread which, quite simply discusses ho...

Ive Messed Up My Master Boot Record

I got too overly excited in refreshing my OS installation in my old Inspiron 640m that I just cleaned off the Linux partition through the Drive Management Snap-in of Microsoft while I was still booted in XP. I completely forgot that the GRUB was the bootloader managing my OS selection in the Master Boot Record of my drive. In plain English, I wanted to clear out my old Linux installation and merge the partition with the old XP partition when I run the Windows 7 install. It was a mistake to use the Drive Management Snap-in rather than having the Windows 7 installation take care of the partition clearing. This caused problems because the bootloader (GRUB) or the one which asks which OS are you going to boot is in the partition I wiped out. Therefore, I cannot go into the Linux partition (obviously, since it has already been wiped out) nor the Windows XP partition. There is a quick fix with this by using the XP install CD and fixing the MBR by going to the command prompt and typing fi...

Manually Setting Up a Static IP in Ubuntu

For some reason, Webmin doesnt work well with Ubuntu 10.04. Everytime I configure a static IP using Webmin, it throws an error at boot. Ive reinstalled several times hoping that it was just a glitch. Maybe for some reason, there was a misconfiguration in the network modules in the source code perhaps. Anyway, getting around this, I decided to be a command line ninja once more. Logging in as root, edit the /etc/network/interfaces file an tweak as needed (I removed the last octet for security reasons, replaced with x and y). # The primary network interface auto eth0 iface eth0 inet static
 address 192.168.1.x gateway 192.168.1.y
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255 You could actually just copy some of the values when you're on DHCP by entering ifconfig -a as a sample, heres the data I got (I removed some values and replaced the last octet of the IP with x). eth0      Link encap:Ethernet  HWaddr -- removed --  ...

Desktop GUI on Ubuntu Server

If you're one of those people who'd prefer to install Ubuntu Server for your server needs but is pretty much stumped on all the command line witchcraft. Heres a quick tip on getting your fix on the GUI life. Login to your account and just type sudo apt-get update sudo apt-get install ubuntu-desktop It will check for the packages which needs to be installed and as you answer yes, it will download it from the net and you'd have to manually invoke to get to the desktop. startx

PHP Upload Limit

Sometimes, you write a code which has upload features or backing up a database then only to find out that your PHP installation limits your upload to 2mb. Ive encountered this problem while I was backing up databases using phpMyAdmin and realized that the file ive downloaded is too huge for an upload without tweaking the necessary files. So with this I resulted to editing the php.ini file to accommodate a larger file upload size. The php.ini file varies from one location to another depending on your install (may it be Windows, Mac or Linux).. In my Linux server (Ubuntu) its found in /etc/php5/apache2/ Here are the variables you need to watch file_uploads upload_max_filesize max_input_time memory_limit max_execution_time post_max_size You may change the values as you like but take note that setting some things higher (ie. memory_limit) would consume your resources a bit more. So be careful in editing. After tampering the settings, you may need to restart your Apache servi...

Creating Symlinks

Symbolic links are useful when 'caging' users to their respective home directory but giving them access to directories outside their domain. For example. A user john is jailed in his home directory /home/john But we've created his web folder located in /var/www/html/john .. so how do we do this. Go to the location where the link you want should appear.. In our example, we go to /home/john Then type ln -s /var/www/html/john You will see that in the directory, a john folder has been created and when you browse into that, you will see the contents in the directory /var/www/html/john .. I personally used this for an ftp account for uploading web content. If you are a web host you could run scripts in automating this for your users.

The Art of Compiling in Linux

Most of the people complain about compiling programs in Linux. Particularly those applications which require getting your hands dirty by using shell commands. I have been compiling eggdrops and emechs from my IRC days back then and PVPGN and running a game server. Im currently compiling an otserv in Fedora 9 and thankfully, the instructions are in Debian and Ubuntu: http://otfans.net/wiki/index.php/Compiling_OTServ_under_Ubuntu .. hey how bad can it be? You could still yum your way through the needed libraries. Important thought before you start is to know the important libraries needed. Most of the time they are the -devel or -dev libraries since you are compiling a program right? But the problem is most of the -devel libraries are dependent to their parent application. Say for example mysql-devel is dependent to mysql.i368.. So nonetheless you have to install the pair. An important thing in compiling.. remember to: 1.) Check the libraries needed by the program you are compiling 2.) a...