Category Archives: Linux

VMware Player on CentOS if vmmon failed to start

Recently I updated the kernel of CentOS, after this update, I was not able to start any Virtual Machines in VMware Player. The following steps solved my problem:

1. Stop the VMware service with:

service vmware stop

2. Remove the kernel Module:

rm /lib/modules/$(uname -r)/misc/vmmon.ko

3. Build a new kernel module for the running kernel:
The variable $(uname -r) gives you the running kernel version.
If you get an error, make sure you have the package “kernel-devel” installed (yum install kernel-devel).

vmware-modconfig --console --build-mod vmmon /usr/bin/gcc /lib/modules/$(uname -r)/build/include/

4. Load Kernel Module:

depmod -a

5. Start the Service again:

service vmware start

The vmmon service should now start and You’re able to start the VM’s again. Good luck 😉

MiniBar

Mein aktuelles Projekt: Eine Bar aus einem Classic Mini-Heck!

Folgendes soll die Bar mit Hilfe eines Raspberry Pi’s sowie ein paar Relais können:

  • Lichter mit einer WebApp schalten
  • Musik über AirPlay abspielen
  • Und natürlich unsere alkoholischen Getränke aufbewahren 😉

Angefangen hat das ganze damit, dass meine Frau mir einen Schweisskurs geschenkt hat.  Von einem Kollegen im Berner Mini Club habe ich das passende Mini-Heck bekommen, gleichzeitig habe ich mit dem Entwurf der Relaissteuerung angefangen. Das sah dann so aus:

MiniBar-3-klein MiniBar-7

Danach bin ich damit zum Schweisskurs und habe unter Anderem der MiniBar vier höhenverstellbare Füsse verpasst. Nun steht sie auf eigenen Füssen.

Continue reading MiniBar

Langsames dd mit Mac OSX

Kürzlich musste ich ein Image von einer SD-Karte erstellen und diese dann auf andere SD-Karten kopieren. Um dies zu bewerkstelligen, benutzte ich das Unix-Bordmittel “dd”.

Beim kopieren des Images auf eine leere SD-Karte ist mir aufgefallen, dass die Schreibgeschwindigkeit bei knapp 1MB/s lag, dies macht für die 8GB ca. 136min. Da dies viel zu langsam ist, habe ich mich mal mit dem Problem beschäftigt und mit der Blocksize von dd herumgespielt. Mit dem Parameter bs=4m (Linux: bs=4M) kann man die Default-Blocksize von 512kB auf 4MB setzen.

Continue reading Langsames dd mit Mac OSX

DNS forwarder on Qnap NAS

A few days ago I installed dnsmasq on my QNAP NAS. I use this DNS-forwarder to resolve my LAN-device’s names. Here is a little instruction:

First install ipkg, if you haven’t already (see http://wiki.qnap.com/wiki/Optware_IPKG).

Access your NAS with ssh as “admin”. If you haven’t already activated ssh, see http://wiki.qnap.com/wiki/How_to_SSH_into_your_QNAP_device.

Bring your ipkg installation up to date with this command: /opt/bin/ipkg update

Install the DNS-forwarder dnsmasq: /opt/bin/ipkg install dnsmasq

Edit with vi or your favorite text-editor the file /opt/etc/dnsmasq.conf and add the following line:

addn-hosts=/opt/etc/dnsmasq-hosts.conf

I added also a dedicated user for dnsmasq called “dnsmasq” and modified the following lines in dnsmasq.conf:

# If you want dnsmasq to change uid and gid to something other
# than the default, edit the following lines.
user=dnsmasq
group=everyone

Create and edit the file: /opt/etc/dnsmasq-hosts.conf

In this file, you define all your hosts with their names.

Example:

192.168.0.1     firewall.mydomain.int
192.168.0.2     switch1.mydomain.int
192.168.0.5     server1.mydomain.int

After modifying and saving this file, restart the dnsmasq service:

/opt/etc/init.d/S56dnsmasq restart

All done! Now you have to set the first DNS-Server address on your computer, to the IP-Address of your NAS.

The NAS will now answer all DNS-Queries. IP-Addresses which are not in the config file will be forwarded to the DNS-Servers configured on the NAS to resolve names outside your network.