pkg: PACKAGESITE in pkg.conf is deprecated
Newer versions of pkg require different configuration settings. If you upgrade from an old version of pkg you might get the following error every time you use pkg: pkg: PACKAGESITE…
lsof
lsof is a command that shows information about files opened by processes in unix systems. As in unix a lot of things are considered a file, you can list very…
share multimedia files with Smart TVs
You can easily share your videos, music and pictures stored in your linux box with your Smart TV, all you have to do is configure a DLNA server in linux.…
Samba 4 Active Directory cheatsheet
Transfer FSMO roles Execute from the Samba 4 server you want the roles to be transferred to: samba-tool fsmo seize --role=<role> where <role> can be any of: rid, schema, pdc,…
Salt cheatsheet
List minions List all minions that are up salt-run List all unresponsive or down minions salt-run Note: if (the optional) removekeys is used, it removes the minion from the master's…
Disable CD-ROM and SD storage in Huawei E173 USB modem
The Huawei USB modem also emulates a CD-ROM and have a SD card reader. In particular, the CD-Rom feature can be quite annoying when you only want to use the…
apache: show loaded modules
There are many ways to list the modules currently loaded in an Apache server, here are 2 of them: Method 1: use apachectl Execute from the command line: apachectl -t…
Migrate OpenLDAP to another server and/or version
If you need to migrate the contents of an OpenLDAP server into another server, then do the following: Copy database contents to a file: # / stop # slapcat >…
CPU
Check if a CPU is 64 bits From linux, type: cat /proc/cpuinfo Look for the flag 'lm'; if present, the processor is 64 bits ('lm' stands for 'Long mode') Check…
Working with ISO images
Convert CUE/BIN images to ISO Use bchunk (Homepage: ; Debian, Ubuntu, etc already have it as a package). bchunk Convert NRG (Nero) images to ISO Use nrg2iso (Homepage: ; already…