Category Archives: Linux Administration

Use ssh comfortably with command history and auto-complete

When using ssh on a daily basis you type a lot, given you are probably entering a lot of hostnames and command-line options. But on your local Linux or OS X powered computer you have a lot of powerful tools to make your life easier. I would like to show a couple of easy tricks to make your life easier while working with ssh. Continue reading

Posted in Linux Administration | Tagged , , | Comments Off on Use ssh comfortably with command history and auto-complete

Git repository cluster setup

When you have gitosis and a number of repositories installed on a server and need to move them to another server or you want to build a cluster to have more then one server having serving the repository. This will describe how I solved this with my gitosis repositories. Continue reading

Posted in Linux Administration, Version control system | Tagged , , , , | Comments Off on Git repository cluster setup

Access a service without direct internet connection

When two servers are connected to each other but only one server has access to the internet, services on the server that is not connected directly to the internet cannot be accessed directly. The server connected to the internet has to forward the ports to the services you want to reach on the second server. This will show you how to configure that. Continue reading

Posted in Linux Administration | Tagged , , | Comments Off on Access a service without direct internet connection

SSH-Key authentication is not working – SELinux

When configuring SSH passwordless login with ssh-key the ssh-key generated and transfered to the server seems to not work when I try to login. Whay is the ssh-key authentication failing? Continue reading

Posted in Linux Administration, Security | Tagged , , | 1 Comment

Show network routes on MacOSX

When working with Linux you get used to the way Linux is handling things. But when you switch from Linux to Mac OS X you notice that things are handled differently. One of these differences I came across recently. Its about the way you read out the routes you currently have currently active. Continue reading

Posted in Linux Administration, MacOSX | Tagged , | Comments Off on Show network routes on MacOSX

SELinux allow webserver to send email

When Wordpress tries to send email and you see “your host may have disabled the mail() function” it might be that SELinux is blocking it. Here is how to enable it. Continue reading

Posted in Linux Administration, Security | Tagged , , | Comments Off on SELinux allow webserver to send email

Remove a range of lines from a huge file

When you have to deal with a huge file containing gigabytes of data and need to delete a range of lines from it, opening it with a text editor can be a fatal mistake. As an example, in this post I will demonstrate how to delete a whole database out of a huge SQL dump without messing around with a text editor. Continue reading

Posted in Linux Administration | Tagged , | Comments Off on Remove a range of lines from a huge file

Create webupload user for SCP

With a website running on your server you might have come across the permission problems when uploading files to the document root. Files are owned by the upload user, apache can read them but upload and modification via the web front-end fails and much more. The reason is the permission and ownership structure in Linux. But how to solve that mess? Continue reading

Posted in Linux Administration | Tagged , , | Comments Off on Create webupload user for SCP

Access the internet from server without direct connection

When two servers are connected to each other but only one server has access to the internet, it is always complicate to connect to the server without internet connection as well as you need internet connectivity to update/install packages from the repositories. Here is how you get ride of all the restriction to work comfortable even with the server that has no direct internet access. Continue reading

Posted in Linux Administration | Tagged , | Comments Off on Access the internet from server without direct connection

Show installed yum packages by size

When you pay for every GB of disc space on your server as it is with an Amazon EC2 instance, you want to make sure that the installed packages are at a minimum. Besides the actual user data, you can as well try to remove packages you don’t need but have been installed for some reasons. Here is how to find the biggest installed packages. Continue reading

Posted in Linux Administration | Tagged , , , | Comments Off on Show installed yum packages by size