Author Archives: admin

Create superuser(root) in postgres database

I always forget the exact syntax for this so I am posting it here. It’s easy when you know how: CREATE USER root WITH PASSWORD ‘My.g00d.Pa55word’; ALTER USER root WITH SUPERUSER; Also make sure that your ip is allowed in … Continue reading

Posted in postgres | Comments Off on Create superuser(root) in postgres database

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

Connect mac osx to Cisco Switch using USB to Serial adapter

This worked for me using a prolific adapter Follow this: http://plugable.com/2011/07/12/installing-a-usb-serial-adapter-on-mac-os-x then screen -S cua -s serial /dev/tty.usbserial 115200,-cstop,-cs8,-parenbreset

Posted in Mac OS X | Comments Off on Connect mac osx to Cisco Switch using USB to Serial adapter

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