Exclude Packages from apt-get upgrade

If you need to prevent a package from upgrading during ‘apt-get upgrade’, you need to put that package on hold: $ sudo apt-mark hold package_name When you run ‘apt-get upgrade’ with a package on hold, the output will look like this: $ sudo apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… […]

How To Find The Largest Top 10 Files and Directories On a Linux System

The du (i.e., disk usage) command reports the sizes of directory trees inclusive of all of their contents and the sizes of individual files: -h, –human-readable print sizes in human readable format (e.g., 1K 234M 2G) -s, –summarize display only a total for each argument -x, –one-file-system skip directories on different file systems The sort […]

Error Mounting NFS Share on Raspbian

$ sudo mount 192.168.1.4:/some-nfs-share /media/some-local-path mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use ‘-o nolock’ to keep locks local, or start statd. mount.nfs: an incorrect mount option was specified Solution: Enable the rpcbind and nfs services: $ sudo update-rc.d rpcbind enable $ sudo update-rc.d nfs-common enable Restart the rpcbind […]

VirtualBox Web Service Configuration for phpVirtualBox

The vboxweb-service is required for connecting to a VBox Host from phpVirtualBox. On Debian Stretch, the service is installed and started whenever VBox is started (i.e. boot or after an upgrade) however it immediately exits if its configuration file is not present. The configuration file is not created by default. You need to create it: […]