Sunday, June 24, 2012

Read / Write Samba mount using fstab in Ubuntu 12.04


Tried to configure /etc/fstab to mount to the samba share but it always does it in read only mode.

/etc/fstab entry:
//192.x.x.x/public /media/backup cifs rw,user=guest 0 0
The local mount /media/backup remains a readonly. There are couple of issues.
1. It does not tell fstab to use rw
2. when the mount happens it does get mapped to local user that you want rw access as

Remedy:
Provide local user name, uid, gid for proper rw access. 

//192.x.x.x/public    /media/backup    cifs rw,_netdev,user=guest,uid=1000,gid=1000    0    0

The _netdev delays the mount till the network is up during startup.

Just installed the newest Ubuntu 13.04. It is cool, it is fast and I love it. Except, for usual hiccups. My last 10.04 was so stable I forgot how I got it to that configuration :)

Best reference on this so far:
https://wiki.ubuntu.com/MountWindowsSharesPermanently

Sunday, June 10, 2012

Android SDK installation on 64-bit Ubuntu needs ia32-libs

Android SDK still uses 32-bit based toolchain. The installation of the packages would fail if the 64-bit linux / 12.04 is not configured for 32-bit system.

You may hit error during Eclipse Installation as "platform-tools/adb libstdc++.so.6 not found"

Here are the steps

1. A good package to install before doing any development in linux as https://help.ubuntu.com/community/CompilingEasyHowTo

sudo apt-get install build-essential

If you already have figured out need for gcc and g++ then ignore this.

2. Install 32-bit standard libraries

sudo apt-get install ia32-libs

Since, it is a 64-bit system so you cannot run any 32-bit programs as standard libraries are not found. However, you can still cross-compile a 32-bit toolchain which uses 32-bit version of standard libraries that can work with 64-bit base kernel. These standard libraries are provided as ia32-libs package.

This package would also allow one to use any other 32-bit programs on this system.