Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

Archive for the 'Administration' Category

How Tos on administration. How to make your system run smoothly, tips and tricks on getting over common troubles.

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 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: 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: email notification upon available package updates with cron-apt

Posted by chantra on 2nd February 2008

cron-apt is a tool run by a cron job at regular interval that will check for package updates and optionally do some actions.

cron-apt will by default download the packages without installing them.

This tutorial will explain how to set up cron-apt in order to have it send an email to a specified address when updates are ready to be installed.

Read the rest of this entry »

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

How-To: Customize your Ubuntu Live CD — page 2

Posted by chantra on 22nd December 2007

This entry is part 2 of 2 in the series How-To: Customize your Ubuntu Live CD

3. Customizing our future live CD

3.1. Removing packages

First of all, we are going to remove non-english language pack, and in order to free some more space, we are going to remove gnome-games packages.

# apt-get remove --purge gnome-games*
# apt-get remove --purge `dpkg-query -W --showformat='${Package}\n' | grep language-pack | egrep -v '\-en'`

Read the rest of this entry »

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

How-To: Customize your Ubuntu Live CD

Posted by chantra on 22nd December 2007

This entry is part 1 of 2 in the series How-To: Customize your Ubuntu Live CD

Live CD are great, they let you try out a distribution without installing it. They allow you to run your favorite distribution on any computer and on the top of this, they become handy to recover a system.

Ubuntu live CD is already packed up with some pretty nifty software that allow you to do pretty much everything with the Live CD, but still, they might be some software you don't need that are include with it or, some software you need might be missing.

Another Pro for this is that by customizing your image, you will be able to install

This tutorial will show the steps to follow in order to customize an Ubuntu Live CD to your need by removing some component and adding some others.

Read the rest of this entry »

Tags:
Posted in Administration, HowTo, Softwares | 2 Comments »

How-To: Find files on your computer with find

Posted by chantra on 17th November 2007

A standard Linux system has an incredible amount of files installed. Looking for a file location can be a painful task to do though a file browser.

Fortunately, there is a nifty command line available by default on any Linux distribution: find.

find can virtually find anything on your computer and comes with a lot of options. This tutorial will introduce a basic use of it and show how you can search your filesystem for file names matching a name pattern.

Read the rest of this entry »

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

How-to Create a Filesystem within another partition’s file

Posted by chantra on 23rd September 2007

Filesystems are usually created on a partition. When all your hard drive is already partitioned, creating a new partition can become a pain and creating a new filesystem within another filesystem file can save you a lot of hassles.

This tutorial will show the few steps required to have a new filesystem layout set within another filesystem.

Read the rest of this entry »

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