No space left on device

TAR failed! cat: write error: No space left on device. If you got this error while trying to backup your server using either webmin or virtualmin just follow the instructions below.

How to compile and run VMware Workstation on Debian

The information provided in this article is based on Debian testing (Squeeze). It is impossible to run VMware workstation out of the box due to errors on modules compilation.

JRE plugin on Debian Testing

There is a bug where JRE plugin is not been been able to display properly on any browser. This is happening only under Debian testing (Squeeze).

Your session has timed out Moodle

This is more than a tip than an article as I struggled with it for a long time. Suddenly on our Moodle installation over OpenLDAP users were not been able to login and always getting the error: Your session has timed out. Please login again, no matter the user level.

Performance Tuning for Zabbix

For those who have no clue about what Zabbix is here is a short description as stated on Zabbix web site.
Zabbix is an enterprise-class open source distributed monitoring solution. In this article we will discuss about how to optimize MySQL as load on Zabbix might lead to various problems.

Allow user access on /var/www

If you install the default Apache2 package on any Linux distribution usually the DocumentRoot path is set to /var/www thus not allow user access. That is not what most developers want as they need to develop their software using their user account. Follow the instructions outlined below to setup this to any path in your /home/username like /home/username/public_html.

Truncate Clear Linux logs

Large files on /var/log/messages can cause various problems to Linux Operating System and that's why it is advised to rotate your logs on a weekly basis or often if you have a busy server.

How to kill a user session

First find who is logged in:

stelios@amilo:~> w
 14:05:24 up  1:28,  2 users,  load average: 0.26, 0.37, 0.36
stelios  tty7      12:37     ?     1:40   0.35s /usr/bin/gnome-session
stelios  pts/0     14:01    0.00s  0.06s  0.02s w

Assume that you want to kill user stelios. Run: ps -fu stelios you will see something like:

stelios@amilo:~> ps -fu stelios
stelios   4757     1  0 12:37 ?        00:00:00 /usr/bin/gnome-keyring-daemon --
stelios   4789  3685  0 12:37 ?        00:00:00 /usr/bin/gnome-session

Just send a kill -hup pid and user will be disconnected. In our example that is kill -HUP 4757 and so on.

Avoid fsck on reboot

The system utility fsck is a tool for checking the consistency of a file system in Linux. All Linux distributions include a version of fsck.
Generally, fsck is run automatically at boot time when the operating system detects that a file system is in an inconsistent state, indicating a non-graceful shutdown, such as a crash or power loss. As the command must be tailored specifically to the design of the file system, the exact behavior of various fsck implementations will vary. Typically, fsck utilities provide options for either interactively repairing damaged file systems (the user must decide how to fix specific problems), automatically deciding how to fix specific problems (so the user doesn't have to answer any questions), or reviewing the problems that need to be resolved on a file system without actually fixing them.

How to clear mail queue

In order to clear mail queue on Directadmin servers issue the following command:

exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | sh

This works almost on any server using Exim.


prev [1] [2] [3] [4] [5] [6] next
Items 41 - 50 of 55 displayed.

Back to Home page