Category: How-To
-
Debian Wheezy: /etc/sudoers missing
If you’re looking to add something to the /etc/sudoers file in a Debian Wheezy install, you may find that the file isn’t there! To create the file while logged in as the root user you need to install the sudo package: apt-get install sudo Once that install completes the file will appear:…
-
Awk: Remove everything after the first word in each line
Another awk question. How to remove everything after the first word in each line? E.g., if we wanted to remove everything but the names in this input (FILENAME.txt): Anna 123 09123 Main Street Bob 109 09800 Smith Street Joe 0981 123123 King Street We can use awk like so: awk ‘{…
-
Debian 7 (Wheezy) – no smbpasswd command
If you have installed samba/cifs-utils/etc. and are trying to set your users up on a Debian 7 system, you might be surprised to find that the smbpasswd command seems to be missing. It’s actually part of the samba-common-bin package, which you can install via: sudo apt-get install samba-common-bin …and you should have…
-
Proxmox 3.2: Finding the container CTID from the command line
If you are in a terminal and want to find the container IDs (CTID) quickly without opening up a browser, run the following: vzlist It should return a list of the container IDs, the VM state, their IP addresses and hostnames like so: CTID NPROC STATUS IP_ADDR HOSTNAME 100 25…
-
Proxmox 3.2: Enabling NFS on a container (CT) VM
If you’re trying to figure out why you are getting NFS errors despite having NFS set up properly on the host machine and client VM, this may be the answer. With the VM powered off, run at the Proxmox terminal: vzctl set [VM ID] –features “nfs:on” –save The next time the VM…
-
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.
-
Rsync error when connecting to CentOS: rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
We helped rebuild a backup VM which receives data over rsync today; the first rsync attempt failed with the vague error message: rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6] The problem ended up being that the rsync package was not installed. A simple: yum install…
-
Krita: Where are the curves?
One of the most common things photographers use when it comes to editing images in Photoshop is the curves function. If you’re trying out Krita for the first time you may be looking for it – it’s in the following menu: Filter -> Adjust -> Brightness/Contrast curve The pop-up box should look…
-
How to install the NFS client packages on Fedora 20 and automatically mount NFS shares
We were asked how to set up a Fedora 20 virtual machine to access folders on an already-set-up Ubuntu Server machine using NFS. A folder has been created on the Fedora VM to mount the NFS share to (/opt/documents in this case). First we install the relevant packages on Fedora: sudo yum install…
-
How to check the shutter count or actuations of a Canon 5D Mark III (and other DSLRs) using Ubuntu Server
First, we install the required packages: sudo apt-get install gphoto2 libgphoto2-6 Once that’s done installing, plug in your camera via it’s USB port and check that it is visible to the system: lsusb You should see an output along the lines of: Bus 002 Device 002: ID 8087:8000 Intel Corp.…