Archive for the ‘Linux’ Category

Setting up a static IP Address in debian

Saturday, November 28th, 2009

To setup a static IP in debian edit the file:

/etc/networking/interfaces

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

In this case the IP of the server is 192.168.1.100, defined by the setting “address”

To apply this configuration type /etc/init.d/networking restart

You’ll get a message that it’s restarting the network interface, If your connected remotely via shell, you might get disconnected sinc you changed the ip address.

also, make sure the necessary DNS settings are changed in the /etc/resolve.conf

Install CURL on Debian

Sunday, November 15th, 2009

for php 4:

apt-get install curl php4-curl libcurl3-dev

for php 5:

apt-get install curl php5-curl libcurl3-dev

root access required

Restart inetd on debian

Sunday, August 16th, 2009

Stop Service:

/etc/init.d/openbsd-inetd stop

Start Service:

/etc/init.d/openbsd-inetd stop

Re-Start Service:

/etc/init.d/openbsd-inetd restart

IF: File does not exist…

apt-get install telnetd

Then Re-start the service.