Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

Archive for the 'System' Category

How Tos on running a debian/ubuntu linux system from getting over troubles, configuring X, bash scripting… Anything related to your local system.

How-To: Set up a LAN gateway with DHCP, Dynamic DNS and iptables on Debian Etch — page 4 — IPtables

Posted by chantra on 29th June 2008

3. Forwarding Internet traffic with IPtables

IPtables is both used to act as a firewall, but it is also the one passing packets from one network to another.

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, System | 7 Comments »

How-To: Set up a LAN gateway with DHCP, Dynamic DNS and iptables on Debian Etch — page 3 — DHCP server

Posted by chantra on 29th June 2008

2. DHCP server

In order to provide an IP address to the other machines in the network, we need to use a DHCP server.
This DHCP server will provide the host with all the information needed to connect to any other accessible host. i.e, the IP, netmask, gateway, domain name server.
The DHCP server will also update bind with a nt set of hostname and IP when the client is requesting a specific hostname.

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: Set up a LAN gateway with DHCP, Dynamic DNS and iptables on Debian Etch — page 2 — DNS server

Posted by chantra on 29th June 2008

1. DNS server

As a DNS server we are going to use bind9, it will be configured to resolve the names of the host for our network lan.debuntu.local.

The DNS server will also accept dynamic DNS update from the local DHCP server.

In this tutorial, I will be using the Dynamic DNS feature of bind.

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: Set up a LAN gateway with DHCP, Dynamic DNS and iptables on Debian Etch

Posted by chantra on 29th June 2008

Linux is a perfect platform to act as a router/gateway.

In this tutorial, I will explain how to set up a Linux box to operate as a network router. The box will provide the following services:

  • DHCP server to provide the ip addresses to the machines in the LAN
  • DNS server to resolve domain names
  • Gateway with IP tables to give access to the Internet.
  • Firewall with IP tables.

The resulting machine will have quite a small footprint: about 600M, and except if your network is intensively used, a low spec computer can be recycled to do the job.

As the machine is going to operate as a router/firewall

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: copy files over the network and preserve file permissions and informations with ssh and rsync

Posted by chantra on 20th June 2008

When copying files over the network, the files informations can be modified.

When using cp, one can avoid this issue by using the -a which will do the copy in archive mode, meaning that it will keep the links, preserve mode, ownership and timestamps and the copy is recursive.

the solution to this over the network is rsync alongside with ssh.

Read the rest of this entry »

Tags: , , ,
Posted in Administration, HowTo, Networking, System | No Comments »

How-To: Intel Wireless 4965 AGN with Ad-Hoc network + WEP

Posted by chantra on 20th June 2008

The Intel wireless card 4965 AGN does not work properly on ad-hoc networks since hardy and kernel 2.6.24 or around, network-manager can't get it to use the mode ad-hoc and a standard configuration like:

$ sudo iwconfig wlan0 essid myessid mode ad-hoc channel X key s:mykey13charss
$ sudo dhclient wlan0

will fail to get an ip except a long battle at dhclient'ing around.

I managed to get a process to get things working faster.

Read the rest of this entry »

Tags: ,
Posted in HowTo, Networking, System | No Comments »

How-To set up a serial console client

Posted by chantra on 3rd May 2008

In the 2 previous articles, I explained how to set up a serial console on Ubuntu and Debian.

This tutorial will now show how to connect to those serial console using another machine using a software called minicom.

Read the rest of this entry »

Tags:
Posted in Administration, HowTo, System | No Comments »

How-To set up a serial console on Debian

Posted by chantra on 3rd May 2008

This tutorial will go over the steps to go through in order to set up a serial console on Debian Linux.

Debian uses sysvinit to handle the booting process, amongst the different task, and as such, there is a few differences between most of the tutorial that you might find on the internet regarding how to set up a serial console.

A Serial Console becomes handy when running a headless server (i.e no keyboard and screen) or if you cannot connect a a server because of a network issue.

Read the rest of this entry »

Tags:
Posted in Administration, HowTo, System | 1 Comment »

How-To set up a serial console on Ubuntu

Posted by chantra on 3rd May 2008

This tutorial will go over the steps to go through in order to set up a serial console on Ubuntu Linux.

Unlike most other distros, Ubuntu uses upstart instead of sysvinit and as such, there is a few differences between most of the tutorial that you might find on the internet regarding how to set up a serial console.

A Serial Console becomes handy when running a headless server (i.e no keyboard and screen) or if you cannot connect a a server because of a network issue.

Read the rest of this entry »

Tags:
Posted in Administration, HowTo, System | No Comments »

How-To: Import/Export GPG key pair

Posted by chantra on 15th April 2008

This tutorial will show how you can export and import a set of GPG keys from one computer to another.
This way, you can sign/encrypt the same way one different computer.

Read the rest of this entry »

Tags: ,
Posted in HowTo, Softwares, System | 4 Comments »