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.

Power Rangers on Sesame Street (Reupload)

You need a subtle pattern?

If you need a subtle pattern fear not, for has the lot under CC BY-SA 3.0

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.



What We Do in the Shadows – International Trailer

A good laugh.

Ivan’s Lollipop rom for Mi 3 is getting good

Just tired out Ivan’s Android 5.0.2 Lollipop rom for the Mi 3. It’s actually good enough for daily use because he fixed the deep sleep issue which caused the phone to suddenly reboot.

The only bug left seems to be that the NFC still does not work. Had some problems with the Play Store that it could not download several apps at the same time, but the bug went away when I tried to look at the problem (wtf).

You need to install ClockworkMod Recovery to be able to install the rom.

Lollipop (5.0.2) AOSP for Mi3w By Ivan




Favorited on YouTube: Surströmming – smells like spring (funny)

© 2016 Viktor Basso

Theme by Anders NorenUp ↑