Recently in Computing Category

Fix Your Permissions for Writing CDROMs

To burn optical media (CDs, CDROMs, DVDs, Blu‐ray disks) permissions need to be adjusted after installing the command-line programs.

As root, execute the following:

apt install  wodim cdrdao growisofs normalize-audio cdrskin
chown  --reference=/dev/cdrom  /usr/bin/cdrdao /usr/bin/wodim /usr/bin/growisofs
chmod  4711 /usr/bin/cdrdao /usr/bin/wodim
chmod  0750 /usr/bin/growisofs
ln  -fs  /usr/bin/wodim /usr/bin/cdrecord

After that, go on to install one of the swanky burners:

apt install brasero
apt install k3b

You should be a member of the cdrom group. You probably are.

Linux - Spluttering Audio? Glitches when Skipping?

Maybe your audio apps need some more CPU priority.

Try this:
sudo echo -e '@audio - rtprio 95\n@audio - memlock 1024' > \
/etc/security/limits.d/50-audio.conf

This gives anything running in the audio group realtime priority.

Create and add yourself to the audio group if needed. Debian has done this for you already.

Install Adobe Flashplayer in Chrome/Chromium

Adobe have rolled out new versions of Flash Player™ and these include one with support for PPAPI.

To install, download the Chrome version from the website, the type of plugin offered depends on your browser type — Firefox users, for example, will download different software.

Stripping Spaces in Bash

Here's how to strip leading and/or trailing spaces from a string with Bash:

Simple Method Using echo:

~$ T="    x y   "
~$ T="$(echo -n $T)"
~$ echo "1${T}2"
1x y2
~$ 

Use xargs, whose default command is /bin/echo, if your string is from standard input.

Why Do Suppliers Need to Retain Our Bank Data?

In this day and age there is no need for a TalkTalk to retain sensitive bank data. It's no great leap of technology for an ISP (for example) and my bank to exchange a cryptographic token in order to transfer money between two accounts. This can be used on all subsequent occasions for further financial transfer between the two parties. Once set up the bank details can then be forgotten. What's more the exchange token would not be particularly secret once created. Using it, a malicious operator might be able to exchange money between the two named accounts, and that's about it.