Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

Archive for the 'HowTo' Category

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 | No Comments »

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 | 1 Comment »

How-To: Customizing SSH client

Posted by chantra on 12th April 2008

SSH is great. There is so many thing you can do with it other than just a remote secure shell like X forwarding, port forwarding, authenticate using a private/public key, compress the transmitted stream….

If you have different account that you use on an every day basis, it becomes quickly cumbersome to type those lengthly command lines.

One could work around this by using aliases, the right way would be to use ~/.ssh/config

This tutorial will show some customization examples that should cover most ssh use cases.

Read the rest of this entry »

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

How To: fixing Evolution after home directory changed (Failed to append to mbox)

Posted by chantra on 16th March 2008

Lately, I change my main user’s username and homedir location. As a result, some application like evolution were kindda broken.

This tutorial will explain how to change some of evolution settings manually in order to fix any issues left from the name change.

Read the rest of this entry »

Posted in HowTo, Softwares | No Comments »