sakana

very short memo

vmplayer on ubuntu 13.10

I have recently upgrade ubuntu machine from 13.04 to 13.10. (As has been anticipated,) vmplayer would not start up stating that it requires to build.

Ok, let us build as we have been doing for a while upon upgrade of Kernel.

$ uname -r
3.11.0-13-generic
$ sudo ln -s /usr/src/linux-headers-`uname -r`/include/generated/uapi/linux/version.h /usr/src/linux-headers-`uname -r`/include/linux/version.h
$ sudo vmware-modconfig --console --install-all

Mmmmm, something strange. Build would not succeed and abort in the middle.

Googling with this symptom and found similar report.

Ok, I need to patch some code change before building vmplayer module. Here is what I followed.

Download following files at first.

  • procfs.patch
  • vmblock.3.10.patch
  • vmblock.3.11.patch

And then,

$ cd /usr/lib/vmware/modules/source
$ sudo tar -xf vmnet.tar
$ sudo tar -xf vmblock.tar
$ cd vmnet-only
$ sudo patch -p1 < ~/Downloads/procfs.patch
$ cd ../vmblock-only
$ sudo patch -p1 < ~/Downloads/vmblock.3.10.patch
$ sudo patch -p1 < ~/Downloads/vmblock.3.11.patch
$ cd ..
$ sudo tar -cf vmblock.tar vmblock-only
$ tar -cf vmnet.tar vmnet-only
$ vmware-modconfig --console --install-all

Ok, now my vmplayer comes up without any problem. And original issue has been reported in vm communities.

cifs continued

In addition to previous post as to CIFS.

You may encounter “permission denied” error upon adding or modifying files.

You can avoid this error by adding following options in /etc/fstab.

uid=<user>,gid=<group>

Replace each value respectively by your own user and default group.

//<MS_HOST>/<ShareName>  /windows/server1  cifs credentials=<HOME>/cifs/passwd,uid=<user>,gid=<group>,iocharset=utf8,sec=ntlm  0  0

root your android

Sometimes you would like to obtain root privilege on android device. For example, in case that you install applications, which requires root privilege (e.g. bash).

I hereby share with you a quick procedure to do so.

Please be note that unlocking boot loader will lose warrant of your device. I remind you that this procedure shall be done totally under your own risk :-)

backup

You have to backup your precious data of device before you start. Take your time so that you will not lose your treasure.

unlock boot loader

Shutdown your device and boot into boot loader mode by pressing “-” button upon start-up. And then connect android device to your ubuntu and execute following command.

$ sudo fastboot oem unlock

This command execution will unlock boot loader. And lock state will change from “locked” to “unlocked”.

install root application

Download CFA-Auto-Root package, which matches your device and install it.

For example,

$ fastboot boot image/CF-Auto-Root-<device_name>-nakasi-nexus<*>.img

install application

Now your android device is capable of allowing applications to have root privilege.

For example I have installed following applications (some do not require root) to manipulate android.

  • terminal emulator
  • BusyBox
  • hacker keyboard
  • bash
  • vim_touch

Fine. Now I can play with my android any time I want!