Archive for July, 2013

How to add Samba accounts on openSUSE

Previously using Ubuntu, I never ran into this issue, but using openSUSE I couldn’t get logged into a Samba share using any user accounts. Turns out, the users have to be added to Samba seperately. Ubuntu probably did this through the adduser (useradd?) script. In openSUSE, you have to add the user manually.

You can either use pdbedit, or smbpasswd. Both work.

I won’t give examples here, as using –help for either program will spit out very useful and non-confusing examples. But, that’s how.



Leave a comment

Installing VMware Workstation serial on Workstation 9.0.2 in Linux

There appears to be a bug in the Linux version of VMware Workstation 9.0.2 in which it will not accept a serial number from the GUI. The solution is to open a terminal and install the serial manually.

Assuming your serial number is ABCDE-ABCDE-ABCDE (which it’s probably not, but you get the idea), do the following:

sudo /usr/lib/vmware/bin/vmware-vmx --new-sn ABCDE-ABCDE-ABCDE


Leave a comment

Sendmail error “…unable to qualify my own domain name () — using short name”

If you see an error like the following:

Apr 23 22:41:01 hostname sm-msp-queue[10210]: unable to qualify my own domain name (hostname) — using short name

edit your /etc/hosts file and make sure the displayed hostname is set to

Leave a comment

Problems printing in landscape with LibreOffice 3.6 on openSUSE 12.3

I noticed this problem while trying to print something today. Even though the page was formatted to landscape, the printer would still print it in portrait mode.

My printer is a Brother HL-2170W using the Foomatic/hpijs-pcl5w (recommended) driver.

The fix:

In LibreOffice, go to File > Printer Settings > (select printer) > Properties > Device.

Change ‘Printer Language Type‘ from ‘PDF’ to ‘PostScript (Level from driver)’

The page now prints in the correct orientation.

Futher reading:

, , , ,

Leave a comment

openSUSE Dolphin brower gives error “Unable to find any workgroups in your local network. This might be cause by an enabled firewall.”

To solve this:

Open up YaST > Network Services > Samba Server.  Go to the “Identity” tab, and make sure the Workgroup is set correctly, and set Domain Controller to “Not a DC.”


, ,

Leave a comment

Problems installing VMware Workstation on openSUSE 12.3

If you try to install VMware Workstation 9.0.2 on openSUSE 12.3 it will tell you in cannot find the kernel headers.

Here’s the fix(es)

First, make sure you are using VMware 9.0.2, as the kernel header locations have moved in recent Linux releases, and 9.0.2 has been updated to correctly locate them.

Next, make sure you have the required packages installed:

zypper install gcc make kernel-desktop-devel


sudo vmware-modconfig –install-all




Leave a comment

Amazon S3 s3cmd s3tools on Ubuntu Server

If you want tools for Ubuntu Server to automatically sync files to Amazon S3, here’s how to set it up using S3tools

First, add the Ubuntu repository and GPG key, as described here:

wget -O- -q | sudo apt-key add –

add the repository lines automatically to a sources.d list file:

sudo wget -O/etc/apt/sources.list.d/s3tools.list

get s3tools

sudo apt-get update && sudo apt-get install s3cmd

configure s3tools

s3cmd –configure

Supply your Access Key and Secret Key, and turn on optional encryption and HTTPS.

If you generated a new AWS Access Key just for s3tools (like I did), and the program reports the following…

ERROR: Test failed: 403 (InvalidAccessKeyId): The AWS Access Key Id you provided does not exist in our records.

… go here, login, and then try s3tools again.

the rest of the documentation is here.

, , ,

Leave a comment

PPTP Server on Ubuntu Server

Easy way to configure PPTP server on Ubuntu Server 12.04.

First, install PPTP server:

sudo apt-get install pptpd

Configuring the PPTPD server

Now, edit /etc/pptpd.conf

You need to edit localip= and remoteip= lines to match your network.

Ideally, you want to specify the local and remote IP address on your network but off your DHCP range.

Example: I’m using 10.0.1.x addresses on my lan, with subnet mask I could easily use the following:


(Any IP ranges over MAX_CONNECTIONS (100) are ignored. )

Note that although 10.0.2.x is technically off my subnet mask, I can use it.

Next, edit /etc/ppp/chap-secrets

Specify username / password combinations in the form

username * password *

Edit /etc/ppp/pptpd-options and uncomment the ms-dns lines and add valid nameservers. Use your ISP’s nameservers, Google’s nameservers, OpenDNS nameservers, or whichever.

If you are running your pptpd server on a hosted VPS, also comment out the proxyarp directive.

Configuring the firewall:

Now, enter the following at the command line to set firewall rules to allow connections

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT
iptables -A INPUT -i eth0 -p gre -j ACCEPT

If you are going to be routing all traffic through the VPN, also do the following few steps:

iptables -A FORWARD -i ppp+ -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o ppp+ -j ACCEPT

and edit the /etc/sysctl.conf file and uncomment (or add):


Refresh sysctl by doing:

sysctl -p

Finally, restart the pptpd server

service pptpd restart

, ,

Leave a comment