Shell
Cheap SAN and secure backup solution for small-sized platform
Shell Case Study
November 26, 2007 | COMMENTS

Here is a quick post about a cheap SAN and secure backup architecture solution for small-sized platform (5/10 servers). In this study case we will see how to use Network Block Devices (nbd) and soft-raid with mdadm. I design it for my personal web platform which is a small one. Last day, I was missing of free space on my backup server and I was angry by the idea to rent a most expensive server to store my backup while I had lot of unused space on my other servers.

1. Initial platform
2. New platform
3. How to do it ?

Continue Reading
Working with Bash Aliases (Alias/Unalias)
Shell Tips
August 25, 2007 | COMMENTS

Aliases allow a string to be substituted for a word when it is used as the first word of a simple command. The shell maintains a list of aliases that may be set and unset with the alias and unalias builtin commands.

Continue Reading
Bash Help Sheet
Shell Tips
April 15, 2007 | COMMENTS

Forgot a command or a shortcut in your favorite shell ? Here is a small help sheet with most used commands !

I read it some times for remember me some useful shortcuts that can help you to work faster with bash shell. I does this help sheet sometimes ago and never take time to finish it correctly. May be I’ll do a better version when I’ll have more time 😃
Bash help sheet thema : wildcards, escape keys bounds, tabs keys bounds, controls keys bounds, alt keys bounds...

bash help sheet ** Download it **:

Common errors while starting Apache server on linux
Shell Tips
February 14, 2007 | COMMENTS

The correct way to start the apache server is to use the apachectl command.

apachectl stop

apachectl start

apachectl graceful

You can also check your configuration files.

apachectl configtest

A common error is probably this one :

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443

no listening sockets available, shutting down

This is caused by one or more processes running on the 443 (secure socket) port. You can get all the process ID’s that are running on this port with the command fuser or a more classical "ps auxww" with a less readable format.

nicolas@grimm:~$ fuser 443/tcp
443/tcp: 7977 6815 9819 35217
# Now you just have to do a **kill** on those process.
nicolas@grimm:~$ kill -9 7977 6815 9819 35217
# Or in a single line:
nicolas@grimm:~$ kill -9 $(fuse 443/tcp 2>/dev/null)

Other typical error would be those following :

(28)No space left on device: Couldn’t create accept lock

or

(28)No space left on device: mod\_rewrite: could not create rewrite\_log_lock Configuration Failed

Continue Reading
Files and directories user permissions on Windows XP
Shell Tips
January 18, 2007 | COMMENTS

You may have some troubles while using a network share on windows because of access restriction errors. Don’t panic, just use CACLS on windows XP.

Continue Reading