Tag: ubuntu
-
apt-add-repository: command not found on Ubuntu
Following a tutorial where you’re supposed to add a repository with apt-add-repository but the command isn’t found? You can install it by doing the following: sudo apt-get install software-properties-common python-software-properties Then re-run the apt-add-repository command and it should work!
-
Installing Aegir 3 on Debian 8 Jessie/Ubuntu with Nginx
So, after a few failed attempts at installing the Aegir 3 Drupal control system we hit upon this “recipe” as what works for us currently on a fresh install of Debian 8 Jessie or Ubuntu 14.04. This assumes you are logged in as root. First, update and upgrade your system. apt-get update && apt-get upgrade…
-
How to protect Ubuntu against the Shellshock exploit
Shellshock is quite a serious security hole found a couple of days ago in Bash; to check whether your Ubuntu server is vulnerable run the following in a terminal: env VAR='() { :;}; echo Shellshock vulnerable!‘ bash -c “echo Bash Testing” If your system is vulnerable, you will see: Shellshock vulnerable! Bash…
-
How to cache yum repositories on CentOS using apt-cacher-ng on Debian or Ubuntu
If you have a lot of virtual (or real) machines running Debian or Ubuntu and a limited internet connection, it can make a lot of sense to use apt-cacher-ng to create a local cache of the packages you use so that they are only downloaded once. The current version of apt-cacher-ng can also help…
-
How to find the user id – uid – for a user in Linux
This one is straight-forward for CentOS, Ubuntu and others distros: id -u [username] e.g. id -u bob That will give a numeric result like 500 or 1001.
-
free christian dating websites usa
To find out information about the CPU used in the system, we can use the following command: lscpu This gives us useful information about the CPU, such as the number of physical cores, virtual threads, virtualization support and more. An example output from a Haswell Xeon system looks like: Architecture: x86_64…
-
Ubuntu: Viewing all available block devices or hard drives, their mount point and their filesystems
To list the available hard drives (to be specific, available block devices) we use the following command: lsblk This will provide output in the following format: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 8G 0 disk ├─xvda1 202:1 0 7G 0 part / ├─xvda2 202:2 0 1K 0 part…
-
Ubuntu: Viewing past dmesg outputs from previous sessions
Sometimes you may want to check the output of dmesg from a previous session. This can provide some useful information – for example, whether an error has only just started appearing or whether it was present during previous sessions. Ubuntu archives old dmesg outputs in the following location: /var/log We can see…
-
Ubuntu: How to use multiple cores with tar gzip compression
One thing you may have noticed when using the z switch with tar is that the compression can take some time! If you look at your CPU usage, though, you’ll notice that only one core is being utilised to compress the files. In a modern system 4 or 8 cores are common, meaning that…
-
Ubuntu: How to add or append a file to an existing tape backup
Sometimes you may with to add files to an existing backup; if you issue a command like: tar -cvf /dev/st0 backupfiles …and the tape is not already set to the end of the previous archive you will over-write any data from the position on the tape. Use the “eom” command to move…