Archive for the ‘linux’ Category

I’ve been working on Group Policy deployment in Samba. Samba master (not released) currently now installs a samba-gpupdate script, which works similar to gpupdate on Windows (currently in master it defaults to –force, but that changes soon).
Group Policy can also apply automatically by setting the smb.conf option ‘apply group policies’ to yes.
Recently, I’ve written a client side extension (CSE) which applies samba smb.conf settings to client machines. I’ve also written a script which generates admx files for deploying those settings via the Group Policy Management Console.

You can view the source, and follow my progress here:

vSphere Client on openSUSE 42.2

Posted: April 10, 2017 in linux

I needed vSphere client on linux, but vmware only builds a Windows version. Here is my work-around:

First, install vSphere Client via wine. I personally used vSphere Client (and server) 5.1.

WINEARCH=win32 WINEPREFIX=$HOME/.vmware-client ./winetricks msxml3 dotnet35sp1 vcrun2005 vcrun2008 vcrun2010
WINEARCH=win32 WINEPREFIX=$HOME/.vmware-client wine VMware-viclient-all-5.1.0-2306356.exe
When you get the hcmon install failure, copy the entire contents of your wine bottle to a tmp directory, complete the installation (says it failed), then mv the contents back.
cp $HOME/.vmware-client $HOME/.vmware-client2

rm -rf $HOME/.vmware-client
mv $HOME/.vmware-client2 $HOME/.vmware-client

Now you can run the vSphere Client with:
WINEARCH=win32 WINEPREFIX=$HOME/.vmware-client wine ~/.vmware-client/drive_c/Program Files/VMware/Infrastructure/Virtual Infrastructure Client/Launcher/VpxClient.exe

The biggest drawback is that the console doesn’t work, so install VMware Remote Console.
The remote console can connect to a vSphere server and provide the console functionality that’s broken in the client. Just provide it the host url, username, etc on the command line:

> /usr/bin/vmrc –help
vmrc [OPTION…]

Help Options:
-h, –help Show help options

Application Options:
-v, –version Display the program version
-X, –fullscreen Start in fullscreen mode
-M, –moid=moid A managed object id indicating the VM to connect to
-U, –user=username Username used to authenticate to the remote host
-P, –password=password Password used to authenticate to the remote host
-D, –datacenter=datacenter Datacenter containing the VM to open
-H, –host=host:port Remote host containing VMs you wish to access

So, I just reinstalled openSUSE (because the new DEFAULT btrfs borked my system, wont go into that today), and my wifi isn’t working.

Sounds similar to issues described here:

Just thought I’d share how I got things up and running.

First off, here were the symptoms:
1. Gnome network manager indicated that the firmware was not installed (even though this is supposed to be included with the kernel now).
2. # dmesg | grep firmware
[ 19.764863] ieee80211 phy0: brcmsmac: fail to load firmware brcm/bcm43xx-0.fw
3. l /lib/firmware/ # (the brcm directory is completely MISSING)
total 28
drwxr-xr-x 6 root root 4096 Apr 7 09:54 ./
drwxr-xr-x 13 root root 4096 Apr 7 09:53 ../
drwxr-xr-x 31 root root 4096 Apr 6 16:52 3.16.6-2-desktop/
drwxr-xr-x 31 root root 4096 Apr 7 09:54 3.16.7-7-desktop/
-rw-r–r– 1 root root 53 Sep 25 2014 E-CARD.cis
drwxr-xr-x 2 root root 4096 Apr 7 09:52 amd-ucode/
drwxr-xr-x 2 root root 4096 Apr 7 09:53 intel-ucode/

To get it working…
1. Download the kernel-firmware package:
2. Extract the firmware (installing the package would probably work too).
3. cp -r /home/dmulder/Downloads/kernel-firmware-20141122git-5.1.noarch/lib/firmware/brcm /lib/firmware/
4. modprobe bcma

Now that I stop and think about it…
sudo zypper in kernel-firmware
probably would have fixed it.

Simple Browser Project

Posted: March 10, 2015 in linux, netflix
Tags: ,

I’ve been looking for a good way to access my corporate email on my linux (opensuse) laptop. Evolution is pretty good, but the evolution-ews plugin is REALLY buggy. The connection was dropping every few minutes for me. The user interface also feels too cluttered for what I’m trying to do. So, I decided to try a different approach.

I wrote a simple python based webkit browser to modify the look and feel of owa to make it more like a desktop app.

You can access the source code here:

Or you can install the opensuse package here:

I also plan to use it to play Netflix on my mythtv box. It seems like I should be able to modify the css styling to make the summaries bigger on the page, etc.

Screenshot from 2015-03-10 10:20:02

rgdb Remote debugging

Posted: July 8, 2014 in gdb, linux
Tags: ,

Check out the project I’ve been working on in github.
I frequently have to debug C/C++ code from the command line, but I have separate build machines because I build on multiple architectures and platforms. So, I wrote this python script for remote debugging.
All it does is open up an ssh connection (using python paramiko) and connects to gdb on the build machine. It then parses through the output using regular expressions and opens the source code on your local machine for debugging. As you step through the code, the line of code is underlined and centered in the code window.
I also added a useful (for my work) feature which allows you to get the tcpdump while executing a particular line of code. It then opens the tcpdump on your local machine in wireshark.


This Post has moved here

Yes people, this really does work (and very well).

1. Install the latest wine from the community repo.

sudo zypper ar wine
sudo zypper ref
sudo zypper dup -r wine
sudo zypper in wine samba-winbind

2. Install office
WINEARCH=win32 WINEPREFIX=~/.office wine /setup/directory/setup.exe

3. The office apps should now be in your menu, if not… (change OUTLOOK.EXE for whatever you’re opening)
WINEARCH=win32 WINEPREFIX=~/.office wine ~/.office/drive_c/Program Files/Microsoft Office/Office14/OUTLOOK.EXE &

4. Add a library override for riched20:
WINEARCH=win32 WINEPREFIX=~/.office winecfg
Go to the Libraries tab, type “riched20” in the “New override for library” box, then click Add, then Apply.

If you need to configure Outlook:
First open Outlook, and tell it to NOT configure mail at this time (configuring mail within Outlook appears to be broken).
WINEARCH=win32 WINEPREFIX=~/.office wine control
Click on Mail. The rest is the same as if you were configuring on Windows.

Here are some more specifics for actually installing Office:
Only the 32-bit installer works. I happen to be using MS Office 2010 Professional Plus.

Screenshot from 2013-02-07 09:54:49

This Post has moved here

EDIT: Just install Pipelight
Pipelight lets you run netflix in your native linux browser (it runs a wine application in the background and pipes info through it)!

With the big news that someone got netflix working using wine + firefox + silverlight, I decided to give it a shot on openSUSE 12.2.
There’s no rpm package available for this yet (though I’m thinking about making one, but don’t really have the time).

This is what I did to get it working:

1. Install the latest wine from the community repo:
sudo zypper ar wine
sudo zypper ref
sudo zypper dup -r wine
sudo zypper in wine

2. Install mstcore fonts (thanks Tyler):
sudo zypper in fetchmsttfonts

3. Install firefox version 14.0.1:
wget -O Firefox-14.0.1.exe
WINEARCH=win32 WINEPREFIX=~/.netflix wine Firefox-14.0.1.exe

4. Install Silverlight version 4:
wget -O Silverlight-4.exe
WINEARCH=win32 WINEPREFIX=~/.netflix wine Silverlight-4.exe /q

5. Watch Netflix!
WINEARCH=win32 WINEPREFIX=~/.netflix wine "C:\Program Files\Mozilla Firefox\firefox.exe"

DO NOT use the latest versions of Firefox and Silverlight! They are broken in wine!

This Post has moved here

Looks like we don’t have to pay for an account anymore! Too bad they don’t have an rpm built yet 😦 but it looks like a Fedora rpm is at least on the way.

1. Install dependencies
zypper in libcryptopp-5_6_1-0 rpm-build alien

2. Get the debian package from Spotify

3. Convert the debian to an rpm
sudo alien -r spotify-client_0.8.4.103.g9cb177b.260-1_amd64.deb

4. Install the rpm
sudo zypper in spotify-client-

5. Link dependencies
sudo ln -s /usr/lib64/ /usr/lib64/
sudo ln -s /usr/lib64/ /usr/lib64/
sudo ln -s /usr/lib64/ /usr/lib64/
sudo ln -s /usr/lib64/ /usr/lib64/
sudo ln -s /usr/lib64/ /usr/lib64/

6. Run Spotify!


Skype on 64-bit openSUSE 12.1

Posted: February 3, 2012 in linux
Tags: , , ,

In case anyone is looking and stumbles upon this, these are the dependencies you need to install in order to run Skype on 64-bit openSUSE 12.1:

The wireless firmware for my Intel Centrino Ultimate-N 6300 AGN Wireless card (Lenovo T410) kicks me off the internet about every 5 minutes. Here’s how I fixed it:

  1. Backup /lib/firmware/iwlwifi-6000-4.ucode  sudo mv /lib/firmware/iwlwifi-6000-4.ucode /lib/firmware/iwlwifi-6000-4.ucode.old
  2. Download the openSUSE 11.4 firmware here.
  3. Extract the rpm.
  4. Move iwlwifi-6000-4.ucode inside the rpm (in ./lib/firmware/iwlwifi-6000-4.ucode) to /lib/firmware/
  5. Reboot
  6. Enjoy!
Basically what you just did was download the old (working) firmware for the device, and replaced it with the new firmware (which doesn’t work).
P.S. As of this posting, downloading the latest firmware from Intel does not fix the problem (I tried). It’s the same version of firmware that ships with openSUSE 12.1.