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?)


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.


Plex Web Interface Stopped Responding

Plex Server on my Ubuntu 14.04 went totally apeshit one day and would not load the web interface. Why?, I did not update the VM, it was silently just hammering along day by day.

Debian fucking stable here we go

Spooling up a new VM and installing Plex and mounting samba took 10 minutes, my copy pasta keyboard skills were so epic that a full size orchestra could not keep up.

Phew, Plex does want to show me the web interface. Brilliant, now let’s just log into my account..


And then it exploded, some strange update in Plex got the webinterface to hang when connecting the Plex server to a Plex user account. Fuck it I’ll let it be in “non-botnet-mode” for a while, can still watch my stuffs anyways.

On a positive note the ffmpeg package in deb-multimedia is more stable than Ubuntu’s.