linux

How to: Static IP from command line in Ubuntu-Server

n Ubuntu-Server everything is from the command line, and most likely your going to need to set a static ip to your server. All network interface settings are in the /etc/network/interfaces file. Here is what to do:

1. Backup /etc/network/interfaces 2. edit the file with vi. Here you can set the static setting as below. In my case I set the static router ip to be 192.168.1.100

Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# More >

Using XML to store/send emails

This has been a rough week, 4 assignments, an MIS, etc. I made that phpPostFix script, its very simple, but I won’t be able to use it. My main server with GoDaddy is so terrible. Its running an old version of PHP (4.2). This version did not have file_get_contents as a function, so to make up for it, a while ago, I set up the PEAR Compat replacements. To make a long story short, there are limitations in PHP 4.2 that for some reason, file_get_contents (the PEAR version used in PHP 4.2) can not accept URLs with more than 1 More >

How-To: Set up SVN with Apache2 in Linux (Ubuntu)

nitially I didn’t plan on writing anything up about this, since its pretty basic to setup. But I ran into a slight problem, which I imagine others might run into also. I guess most would have Apache running already, so all that is needed is SVN:

Code:
> apt-get install subversion libapache2-svn

Say you have a domain already set up, call it abc.com. You want to be able to checkout a repository from abc.com/svn.

Open the following file (/etc/apache2/mods-available/dav_svn.conf) in an editor and follow the instructions. In the most basic form (with no authentication) you’ll have something like this when your done:

Code:
< More >
Get Adobe Flash playerPlugin by wpburn.com wordpress themes