linux

Linux audio fedility

Submitted by isntall on Sun, 09/10/2017 - 20:59

Of the many hobbies I've jumped to lately, listening to high quality music has been near the top of the list. Choosing the correct source aside, tuning my Linux installs to have the highest Fidelity for the DAC is important. Here are the settings i use to allow for better sound.

Tags

fish cli gnome-keyring-daemon

Submitted by isntall on Sun, 10/23/2016 - 11:39

Recently something has seemed to change in the way fish cli a gnome-keyring-daemon worked together, or didn't work. Here is a quick function, not pretty, that seems to get these to work again.

function gnome-keyring-daemon
  if test -n "$DESKTOP_SESSION"
    set -x SSH_AUTH_SOCK (gnome-keyring-daemon --start | awk -F= '{print  $2}')
  end
end

 

Tags

debian package pinning

Submitted by isntall on Tue, 08/16/2016 - 14:41

Debian has really solid software, but sometimes newer feature are needed.

/etc/apt/preferences.d/testing

Package: *
Pin: release a=testing
Pin-Priority: 900

 

/etc/apt/sources.list.d/testing.list

deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi

example command

# apt-get -t testing install open-vm-tools-dkms

 

swap what is it good for...

Submitted by isntall on Thu, 07/07/2016 - 14:01

Traditional

dd if=/dev/zero of=/mnt/swap16G bs=1G count=16

fast

fallocate -l 16G mnt/swap16G

enabling

mkswap /mnt/swap16G
chmod 600 /mnt/swap16G
swapon /mnt/swap16G

add to the /etc/fstab if you want to keep the settings

/mnt/swapfile16g   none    swap    sw    0   0

If using things like AWS instance-store-volume adding the file to the /etc/fstab is not appropriate.
You could create the swapfile on the fly or you could create one swapfile, compress it, and decompress on each boot.
In Ubuntu and other probably others using the /etc/rc.local file can be a decent choice (there are others).

gunzip -c /swapfile16g.gz > /mnt/swapfile16g
chmod 600 /mnt/swapfile16g
swapon /mnt/swapfile16G

Tags

salt stack starting at zero, it begins

Submitted by isntall on Sun, 04/10/2016 - 22:15

One thing I've wanted to do for a while now is utilize SaltStack, so over this weekend I've done that.

Understanding how it works together is still hard, but it is very versitile and will make for a great tool.

Custom Print Screen Share

Submitted by isntall on Sun, 02/07/2016 - 16:17

Another one of those super useful keys is the PRTSC. It has a job and it does it well that is until you want extended functionality.
One such functionality was allowing others to see pic. There are things that do this like Dropbox, but those require you to give your data to a third-party.

So back to the bash scripts. First I needed to get a working script...eventually I came up with these
remote-screenshot.sh:
 

Text-to-Speech

Submitted by isntall on Sun, 02/07/2016 - 16:03

One of the things I've greatly missed, since switching my home machines to Linux, was the program NaturalReader. It sounded fairly realistic and had decent integration with the OS. And it was the program that got me thru college.

Needing to do more reading than normal, I started to see what sorts of options there are for ArchLinux. I've dabbled with things like Orca before, but it was too heavy and didn't do the one thing I wanted, which was the ability to highlight the text and have the computer read it to me. So I decided to roll my own.

UPDATE: I've switched to Mimic, https://github.com/MycroftAI/mimic, and a voice provided by http://www.festvox.org/flite/packed/flite-2.0/voices/cmu_us_slt.flitevox.

Tags

No more Gummiboot

Submitted by isntall on Fri, 02/05/2016 - 22:03

With the advent of EFI, the Grub bootloader has become something that seems more trouble than it was worth.
So I chose to use Gummiboot as my bootloader and all was well....until recently.

I decided to switch my AUR package maintaining software from yaourt to pacaur, main for a change of pace.
This tipped me off on a couple things that I was unaware of, mainly that several of my AUR packages were orphaned and not being maintained.
As I looked thru the list, I noticed that Gummiboot was among them. Dismayed I did some research to figure what had happened, turns out over the summer systemd had absorbed Gummiboot. Ouch, I've been running almost 6 months without updates to my bootloader.