Protect your server with fail2ban

Protect your server with fail2ban Fail2ban is a must-have for every SSH-enabled server that is connected to the internet. It protects services such as SSH from illegitimate access.

Find large directories and files on Debian or Ubuntu with ncdu

Find large directories and files on Debian or Ubuntu with ncdu Time to stop using the find command to search for large directories or files on your servers. There’s a neat disk usage analyser tool called ncdu that you should definitely give a try!

Instant terminal sharing

https://tmate.io/

TigerVNC is a high-performance, platform-neutral implementation of VNC (Virtual Network Computing), a client/server application that allows users to launch and interact with graphical applications on remote machines

http://tigervnc.org/

UNetbootin allows you to create bootable Live USB drives for Ubuntu and other Linux distributions without burning a CD

http://unetbootin.github.io/

LibreOffice missing certain Microsoft fonts

sudo apt-get purge ttf-mscorefonts-installer sudo apt-get install ttf-mscorefonts-installer

Can’t purge libapache2-mod-php5, corrupt registry

http://askubuntu.com/questions/406092/cant-purge-libapache2-mod-php5-corrupt-registry I can’t purge libapache2-mod-php5. Give me this error. ucfr: Corrupt registry: Duplicate entries for /etc/php5/apache2/php.ini libapache2-mod-php5 /etc/php5/apache2/php.ini libapache2-mod-php5 /etc/php5/apache2/php.ini sudo nano /var/lib/ucf/registry and remove duplicated php.ini lines from that file

Machine hangs on shutdown/reboot with NFS shared folders for Vagrant?

Add this simple init.d script to save all running virtualboxes on host shutdown or reboot https://gist.github.com/ymc-geha/8416723

Vagrant hangs at ‘vagrant up’ when mounting NFS shared folders

Vagrant hangs, because it needs open ports for NFS. See here how to open this ports:

Allow user to use RAW devices in VirtualBox

To allow user to use RAW disks /f.e. vmdk/ in VirtualBox, you must run: VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk -rawdisk /dev/sda -partitions 1,5 -relative usermod -a -G disk 'user_name' See more at https://www.virtualbox.org/manual/ch09.html#rawdisk