Archive

Author Archive

node fun

September 19th, 2015 No comments


$ node
> "5" + "1"
'51'
> "5" - "1"
4

Categories: Uncategorized Tags:

Leonard Nimoy 1931-2015

February 27th, 2015 No comments

A life is like a garden. Perfect moments can be had, but not preserved, except in memory. LLAP

Categories: cultural Tags:

News Server

February 24th, 2015 No comments

Hi,

i moved the blog (which is more of an archive of the good ol’ times these days) to a new server. Lets see if everyhting still works . . .

Categories: Uncategorized Tags:

emojis – an universal language

October 16th, 2014 1 comment

Why was this emoji rejected from being included in UTF? 😉

Sad Bone Saw

Here’s a list of seeminlgy rejected emojis: rejectedemojis.tumblr.com

Categories: fun, nerdcore Tags:

adding pci device to vm

August 27th, 2014 8 comments

If you want to use a pci device in a vm, you first have to detach it from the host. List the devices and look for the one you want to use in the vm:

virsh nodedev-list --tree

In my case (CentOS7) I needed to enable iommu in order for this to work. This involves adding a kernel parameter:

kpath=`grubby --default-kernel`
grubby --update-kernel=$kpath --args="intel_iommu=on”
cat /proc/cmdline

After the reboot, /proc/cmdline should now include the iommu flag. Also check whether all the needed modules are loaded, in my case these are:

  • vfio_pci
  • vfio_iommu_type1
  • vfio
  • kvm_intel
  • kvm

You can then detach the pci device:

virsh nodedev-dettach pci_0000_05_00_1

I then used virt-manager, powered off the vm, and added the “Physical Host Device”.

Categories: Uncategorized Tags:

virt-manager as non-root user

August 26th, 2014 No comments

trying to start virt-manager as a normal user will yield a “Unable to open a connection…” message. To fix this, we need to change access permissions for libvirtd.

Edit /etc/libvirt/libvirtd.conf:

echo "unix_sock_group = \"libvirt\"
unix_sock_rw_perms = \"0770\"
auth_unix_rw = \"none\"
">>/etc/libvirt/libvirtd.conf

We also jneed to create the group “libvirt” we just set:

groupadd -g $GID libvirt; usermod -a -G libvirt $USER

Be sure to set $GID and $USER correctly.

A restart of the daemon should then do the trick:

service libvirtd stop; service libvirtd start

if virt-manager the shows only squares instead of letters, install the necessary fonts:

yum -y groupinstall "Fonts"

Categories: Uncategorized Tags:

heartbleed

April 8th, 2014 1 comment

Enough word already on all channels, here’s a short one-liner to check which procs are still using the vulnerable old libs after the upgrade:
sudo lsof -n | grep ssl | grep DEL

Oh, and if you want to test wether a site is still vulnerable: https://gist.github.com/takeshixx/10107280

Time to revoke all those lingering server certs . . .

Categories: Uncategorized Tags:

pbpaste and pbcopy in tmux (and screen) on mac os x

March 27th, 2014 2 comments

the pasteboard tools do not work in tmux on a mac. But there is a tool to fix this (of course ^^):
brew install reattach-to-user-namespace

Then, in your .tmux.conf, add this:
set-option -g default-command "reattach-to-user-namespace -l zsh"
– more info on how to configure can be fiound here: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/blob/master/Usage.md

After restarting your tmux server, pbcopy and pbpaste should work again.

Categories: Uncategorized Tags:

reusing time machine backup disk for new (ly installed) mac

March 25th, 2014 4 comments

The migration assistant only offers the option to inherit an old time machine backup during the os installation. I had to wipe and reinstall my macbook 4 weeks ago (tinkered to much with os-dependent services ^^) and now wanted to incorporate my old time machine backups so that I have access to old file as i started with a clean mac not using the migration stuff (as this would most probably have recreated some of the issues i wanted to evade in the first place). Turns out the time machine has a command line interface tmutil that make this task very easy:

sudo tmutil inheritbackup /Volumes/BACKUPDISK/Backups.backupdb/OLDMACHINENAME

Categories: software Tags:

A second a day videos

March 6th, 2014 No comments

are nothing special anymore – but this one will (hopefully) hit you in the guts:

Categories: cultural, political Tags: