Digital Life

Portfolio and blog of digital media artist Otto Salminen

Archive for the ‘Linux’ Category

Server monitoring

Wednesday, March 5th, 2008

There are many alternatives to choose from when we are talking about *nix server monitoring. Just tested two, ntop and munin. Both comes with a nice browser user interface. Ntop is focused on network traffic monitoring. Munin draws nice graphs and it’s really easy to setup. I choosed munin for my file server because it gives a clear overview of used system resources.

Sharing a folder in local netwok

Thursday, February 7th, 2008

Mounting a remote folder in local network with nfs is quite simple and the topic is covered in many sources before but this formula worked for me. This example is for Debian server and clients. All steps are done as root.

Setting up the server

1. Install packages for nfs server:

# apt-get install nfs-kernel-server nfs-common portmap

2. Edit exports file:

# nano /etc/exports

3. Add wanted clients:

/path/to/shared/folder client1-ip(rw,sync)
/path/to/shared/folder client2-ip(rw,sync)

Note. No space between client-ip and (permissions).

3. Load new settings and restart related services:

# exportfs -a
# /etc/init.d/portmap restart
# /etc/init.d/nfs-kernel-server restart
# /etc/init.d/nfs-common restart

Setting up a client

1. Install nfs support for a client:

# apt-get install nfs-common portmap

2. Test mounting with:

# mount server-ip:/path/to/shared/folder /path/to/local/folder

3. If that worked you can add it to fstab. Open fstab for editing:

# nano /etc/fstab

4. Add the nfs mount :

server-ip:/path/to/shader/folder /path/to/local/folder nfs rsize=8192 0 0

That’s it. Now the remote folder is automatically mounted every time the client is booted.

GetDeb

Thursday, January 24th, 2008

Found a nice source of fresh deb packages. Just download and install no compiling required.

How to cd with sudo in Ubuntu

Saturday, September 15th, 2007

In Ubuntu you cannot directly sudo cd folder. But in sudo bash you can.
So enter to bash mode:

$ sudo bash

Now you can sudo etc.

# cd

Leave sudo bash with exit-command:

# exit

Ubuntu for MacBook

Thursday, July 5th, 2007

Official installation tutorial for dualboot, Ubuntu /OS X, system:

https://help.ubuntu.com/community/MacBook

My IP in *NIX

Thursday, July 5th, 2007

IP and gateway info can be found with ifconfig:

/sbin/ifconfig

Screen

Sunday, April 1st, 2007

From WiskiHow to use screen.

Installation

Debian: #apt-get install screen

Usage

After installation just launch the program by command screen. Next start some other program, like top or nano, inside the new session. Now you can safely detach from the screen session by pressing Ctrl + a and d. You are back in your original session. Logout and come back later. When you return just give screen -r command and you are back in your screen session.

Application logo for KeePassX

Sunday, September 10th, 2006

Helped KeePassX-team to polish the application logo.