Mac Samba Share Filenames Mangled / Obfuscated

To fix this you need at least Samba 4.3, they did some cool stuff in vfs_fruit.

Then you add this in your share in the samba config.

Now folders and filenames should look normal, and large folders should open up faster.

Getting output from SSH commands in Ruby

I usually do SSH in to servers to check if things are okay with raid and shit.

But now I’m going hardcore, with Ruby.

First add NOPASSWD to sudoers to get what commands you want working without password in sudo, with “sudo visudo”

You can probably skip passwords with ssh-copy-id.

This code SSH’s into the server, runs the command, get the ouput, formats it into markdown and writes it to a file, then copies everything to your clipboard so you can paste it into anything you want (say like trello?)


Bache Gabrielsen X.O. Fine Champagne Review

The Legendary Bache Gabrielsen X.O. Fine Champagne is up for review.
Simple flavours and easy drinking is the game for Bache Gabrielsen, It’s okay, but not great, plz just get a Braastad X.O instead.

It does not have that wonderfull oak’y sweet vanilla flavor that any the really good cognac needs.

But it’s easy to drink.

Butt simple Proxmox NFS setup for backups

In this butt simple tutorial you have 1 Proxmox server and 1 backup server.

Install NFS  and make backup folders on your backup server. Do not call the datastore folder “backup”, that name under /var is still reserved.


Add those new folders to exports and the IP adresse of the Proxmox server. But remember there is no auth in this setup, it’s the butt simple “Is it that IP address? auth”. So I assume you have full control of your network and have static IP’s on every server.

Spool up NFS with the new exports

Open Proxmox Web Interface and go to Datacenter->Storage->Add->NFS

I do something like this

Then you simply just add backup schedules for daily backups and weekly backups.

I recommend 2 schedules for each server, 1 for daily and 1 for weekly. Proxmox still have a banan up their “hum hum” and have not made it simpler to schedule monthly backups.

Linux terror: Raid 6 + LVM + GRUB

Oh noes, the hardware raid does not support Raid 6. Damn, what’s the price for a new card?.. 590$ you say?

mdadm engange

The plan was to get the entire system on Raid 6 spanning 6 drives and use LVM to create / and /var/datastore.

Did you know that when you use Ubuntu, it does not tell you that it formatted the drives with GTP?
That means 1 hour googling to figure out why the fuck grub won’t install.
What you need to do is make a Bios Boot Partion of 1 MB. But.. okay.. so every drive needs

  • Bios boot partition
  • RAID Partition

And that means before you swap out your failed drive you need to setup the partitions before plugging it into the raid.
Then you setup LVM over the raid partitions.

  • vgroot
    • lvroot, ext4 /
    • lvdatastore, ext4 /var/datastore

Then you install everything, grub will install and not boot.


Then you reboot to recovery and mount it, because yeah everything is perfectly setup so you can chroot into the abomination you created!
Then you try altering grub shit, even GRUB_PRELOAD_MODULES to include LVM and raid stuffs, create a new config and install grub on every fucking drive since it’s smart and then.. you  reboot.. and it will not boot.

There, I give up, fuck you Ubuntu Server and fuck you grub.

Purchase a good hardware raid controller you twat.