Category Archives: Linux

How to install same packages on another ubuntu 12.04 server

There is a lot of stuff out there about this, but none of them worked for me as well as this. The difference is that the deborphan command pretty much just lists the packages you actually installed, not the stuff … Continue reading

Posted in Linux, Ubuntu | Comments Off on How to install same packages on another ubuntu 12.04 server

How to restore a postgres database with a different owner

To restore a database and have the tables owned by a different user use the pg_dump command like this: as root user run: su postgres pg_dump -Fc database_name > database_name.dump exit Now you can restore using pg_restore. createuser -P -s … Continue reading

Posted in postgres | Comments Off on How to restore a postgres database with a different owner

mount error(13): Permission denied – Ubuntu 12.04

mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) This one can be really hard to track down.  There are many reasons you might get this error.  Basically it means you were denied access to the … Continue reading

Posted in Linux, Samba | Comments Off on mount error(13): Permission denied – Ubuntu 12.04

Easy Linux DRBD cluster

If you are looking for an easy way to set up a DRBD cluster with automatic failover, take a look at the LCMC tool. It really simplifies the setup of corosync and pacemaker to give you failover clustering. It is … Continue reading

Posted in DRBD, Linux | Comments Off on Easy Linux DRBD cluster

Remote command execution failed

When running check_by_ssh commands in nagios, one often receives this annoying  message, and no data.   To fix it, become the nagios user and ssh to the server you are checking by ssh.  It will add the server to the … Continue reading

Posted in Linux, nagios | Comments Off on Remote command execution failed