Sunday, November 25, 2012

AeroFS and symlinks

Start an Administrator Command shell CMD.EXE. Use mklink to create a directory symbolic link of your Pictures folder inside the AeroFS folder. This way your Pictures Folder will peer2peer sync between your computers.

Change directory to your AeroFS document folder:
C:\> cd C:\Users\username\Documents\AeroFS
C:\Users\username\Documents\AeroFS> mklink /D Pictures C:\User\username\Pictures\

//Christian

Wednesday, November 21, 2012

How to template eth0 ip address with Saltstack Jinja


You can test the output of salt network interfaces with
# salt 'some-machine' network.interfaces

Here is the Salt state file, we will write /etc/haproxy/haproxy.cfg with the context of the eth0 ip address
Below is the content of haproxy.sls
#
# Write /etc/haproxy/haproxy.cfg
#
/etc/haproxy/haproxy.cfg:
  file.managed:
    - source: salt://files/etc/haproxy/haproxy.cfg
    - user: root
    - group: root
    - mode: 640
    - template: jinja
    - context:
        ip: {{ salt['network.interfaces']()['eth0']['inet'][0]['address'] }}

file referenced in source: salt:// above content of files/etc/haproxy/haproxy.cfg
the important part is to write the variable in thise case ip as {{ variable }}

listen stats {{ ip }}:10000

Saturday, October 20, 2012

Getting the sound to work on Alienware M17xR4 laptop with Ubuntu 12.10

Getting the sound to work on Alienware M17xR4 laptop with Ubuntu 12.10 and kernel 3.6.0-030600-generic.

I've installed kernel 3.6 from the kernel PPA
#  wget -nd http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6-quantal/linux-image-3.6.0-030600-generic_3.6.0-030600.201209302035_amd64.deb
 #  dpkg -i linux-image-3.6.0-030600-generic_3.6.0-030600.201209302035_amd64.deb


Edit the file /etc/modprobe.d/alsa-base.conf and add a snd-hda intel line at the end.
snd-hda-intel index=0 model=dell-m6-amic

Reboot

Enjoy both speakers, headphones and sound input works.

Sunday, February 26, 2012

How to convert from Oracle Virtualbox virtual machines to VmwWare Fusion on Mac OS X

How to convert virtual machines from Oracle Virtualbox to VmwWare Fusion on Mac. I have tested succesful virtual machine export from Virtualbox to VmWare fusion with Centos 6 & Windows 7. Here are the instructions In Virtualbox first export your virtual machines as a ova files using the Export tool. The .ova files Virtualbox exports are standard UNIX tar balls. Open a Mac terminal windows. type $ tar xvf virtualmachine.ova you will now get a virtualmachine-disk1.vmdk Go ahead an uninstall Virtualbox and then install VmWare Fusion In VmWare Fusion, Choose New * Use an existing harddisk Point to virtualmachine-disk1.vmdk Pick the choice * Make a separate copy of the harddisk VmWare Fusion will prompt you that the harddisk was created with an earlier version of VmWare/Virtualbox and ask if you would like to convert the harddisk to the new film format? Choose Yes. You should now be at Use an existing virtual disk. Click Continue. Choose the operating system that the viretalbox virtual machine used. Click Finish! That is it.