はてなブログのサイドバーカスタマイズ

はてなダイアリーからはてなブログに引っ越してサイドバーを修正していたが、twitterを表示させる方法が以下のブログにあったので参考にして設置した。

http://nohack-nolife.hatenablog.com/entry/2014/11/15/170730

基本的には以下の流れ。

  1. twitterウィジェットを作成
  2. 作成してできたタグをサイドバーの「モジュールを追加」からHTMLを選択してHTMLモードでタグをpaste

はてなダイアリーでは、はてなのその他のサービスを○○モジュールという独自タグで設置できて意外に便利だったけどHTMLで出力してくれるし他サービスもHTMLで出力するわけなので、まぁ仕方ないかなっと。

はてなブログに引っ越します

2006年4月からはてなダイアリーを使用しているので今月で丸10年になります。これを一区切りとして、

http://hatenablog.com/guide/compare

から手続きして、以下のはてなブログに引っ越します。

http://kohchi.hatenablog.com/

毎月一回は更新するようにしてきて、最近は忙しくて本当に月一でしたがなんとか続けて来れました。はてなブログでも同様に続けていきたいと思っています。

Windows8からWindows10にアップグレードしたらWSDプリンタが見えなくなって困った件

MacOS XのVMware上のWindows8からホスト側ネットワーク接続されたプリンタへの設定(WSD)で設定したプリンタがWindows10にしてから見えなくなっていた。原因不明。

とりあえず、上記URL通りにWSDでプリンタ追加をしようとしたら、

とエラーとなり追加できない。何度もやってみたけど同じ。
ググってみてもいい解決方法が見つからず、またCanonのサイトからドライバをダウンロードしてインストールをしようとしてみたけど、こちらはネットワーク(同じセグメントでないとダメ)もしくはUSB接続していないとインストールできない流れ。
諦めかけてたところでWindows Updateになったのでダウンロード、インストールして後、再度プリンタドライバを確認したところ、

なんと復活していた。

うーん、印刷できるけど、原因不明、気持ち良くない。

MacOSのfirefoxでgooglemapを見ると画面が乱れる件

OS MacOS 10.7.5(Lion)
Software firefox 44.0.2(現在最新)

でgooglemapやPDF、javascriptで画像を入れ替えてたりすると画像が乱れるという現象に遭遇。firefoxがここ最近バージョンアップしてから(確証ないけど44になった辺りかと思うが)この現象に遭遇し、まったくもってgooglemapが見えないし気持ちも悪い。

いろいろ試してみて解決したのでログを残す。

OS

好きでMacOS 10.7.5(Lion)を使っているわけでなく、Late2008のポリカーボネートMacBookなのでもうアップグレードができない。

肝心のGoogleMap

以下のように超キモい。GoogleMapにアクセスした最初は表示されるんだけど、きっとすべて読み込み完了後(jqueryでいえば$(document).ready()後のようなタイミング)にこんな感じになる。

firefoxの設定

「環境設定」の「詳細」の「一般」にある、「ハードウェアアクセラレーション機能を使用する (可能な場合)」をオフにし、firefoxを再起動。

これで無事にgooglemapが表示された。

それにしても、firefoxもこんな状態だし、google chromeももうアップグレードできないって言ってきているんで、もうLionは捨てなのか。メモリ増設&SSDにしているのでそこそこ使えるんだけどなぁ。

Mapの値(value)の中身でソート

自身で作成したクラスのインスタンスの中身でソートさせたい場合おおよそ以下のようにする。

  1. Map.EntryセットをListに突っ込む。
  2. ListをCollectionを使ってソート。ここで自身で作成したクラスのインスタンスの値を使って比較する。

MyClass.java

$ cat MyClass.java
public class MyClass {
	private String name;
	private String value;

	public MyClass(String n, String v) {
		this.name = n;
		this.value = v;
	}

	public void setName(String n) {
		this.name = n;
	}
	public String getName() {
		return name;
	}

	public void setValue(String v) {
		this.value = v;
	}
	public String getValue() {
		return value;
	}
}

MySort.java

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

public class MySort {
    public static void main(String[] args) {
        // LinkedHashMap 生成
        Map<String, MyClass> map = new LinkedHashMap<String, MyClass>();
        map.put("a", new MyClass("aa", "0004"));
        map.put("b", new MyClass("bb", "0003"));
        map.put("c", new MyClass("cc", "0002"));
        map.put("d", new MyClass("dd", "0001"));

        // generate ArrayList for sorting
        List<Map.Entry<String,MyClass>> entries = 
              new ArrayList<Map.Entry<String,MyClass>>(map.entrySet());
	// find it out later
	Entry target = entries.get(2);
	// sort by value of MyClass using Collection
        Collections.sort(entries, new Comparator<Map.Entry<String,MyClass>>() {
 
            @Override
            public int compare(
                  Entry<String,MyClass> entry1, Entry<String,MyClass> entry2) {
                return entry1.getValue().getValue().compareTo(entry2.getValue().getValue());
            }
        });
         
        // result
        for (Entry<String,MyClass> s : entries) {
            System.out.println("Key = " + s.getKey() +
                    " [MyClassName = " + s.getValue().getName() +
                    " MyClassValue = " + .getValue().getValue() + "]");
        }
        System.out.println("index = " + entries.indexOf(target));
    }
}

確認

$ ls
MyClass.java   MySort.java
$ javac MySort.java
$ java MySort
Key = d [MyClassName = dd MyClassValue = 0001]
Key = c [MyClassName = cc MyClassValue = 0002]
Key = b [MyClassName = bb MyClassValue = 0003]
Key = a [MyClassName = aa MyClassValue = 0004]
index = 1

参考にしたのは以下のサイト。

http://papiroidsensei.com/memo/java_map_sort.html

VMware FusionのUbuntu14.04にVMwareToolsをインストールしてみた件の続き

VMware FusionのUbuntu14.04にVMwareToolsをインストールしてみた件id:ytooyamaさんからコメントをいただいた。

open-vm-toolsをいれたのであればVMware Toolsは入れる必要はありません。
open-vm-toolsはそれぞれのOSでパッケージ管理されており、アップデートが容易なためです。
混じっていると面倒なので一度入れ直したほうがいいかもしれません。
https://www.climb.co.jp/blog_vmware/vmware-6346

なるほど、そんなことになっていたんだ。
このご指摘にあったURLにアクセスして内容を確認。さらにそこに書いてあったURL

http://partnerweb.vmware.com/GOSIG/Ubuntu_14_04.html#Tools

を見ると、

ドラッグ&ドロップしたければvmhgfsドライバをいれろ。
このドライバはOSになく、ドライバインストールは他のVMwareドライバやOpen VMware Toolsを邪魔しないから、
ドライバインストールは、
1. Open VMware Toolsを入れろ。
2. VMware(WorkstationまたはFution)についてくるTARボールを入れろ。
だ。

と書いている。

そうなら手順的には正しいのかもしれない(lsmodでみたらちゃんとvmhgfsがあったし)。でもせっかくなんで実験もかねてWVware Toolsを入れ直してみた。

TARでインストールしたVMware Toolsの削除

TARボールに含まれているbin/vm-uninstall-tools.plを実行。

kohchi@ubuntu13:~/$ zcat VMwareTools-10.0.1-3160059.tar.gz | tar xf -
kohchi@ubuntu13:~/$ cd vmware-tools-distrib/bin
kohchi@ubuntu13:~/vmware-tools-distrib/bin$ sudo ./vmware-uninstall-tools.pl 
[sudo] password for kohchi: 
Uninstalling the tar installation of VMware Tools.

Stopping services for vmware-tools

vmware-tools stop/waiting
Stopping services for vmware-tools-thinprint

vmware-tools-thinprint stop/waiting
The removal of VMware Tools 10.0.1 build-3160059 for Linux completed 
successfully.  Thank you for having tried this software.

kohchi@ubuntu13:~/vmware-tools-distrib/bin$ 

open-vm-tools-desktopの削除

apt-getのremove(設定ファイルを削除したければpurge)を実行。

kohchi@ubuntu13:~/vmware-tools-distrib/bin$ sudo apt-get remove open-vm-tools-desktop
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libmpdec2 libpostproc52 libupstart1 linux-headers-3.13.0-24
  linux-headers-3.13.0-24-generic linux-image-3.13.0-24-generic
  linux-image-3.8.0-31-generic linux-image-extra-3.13.0-24-generic
  linux-image-extra-3.8.0-31-generic
これを削除するには 'apt-get autoremove' を利用してください。
以下のパッケージは「削除」されます:
  open-vm-tools-desktop
アップグレード: 0 個、新規インストール: 0 個、削除: 1 個、保留: 14 個。
この操作後に 447 kB のディスク容量が解放されます。
続行しますか? [Y/n] y
(データベースを読み込んでいます ... 現在 290572 個のファイルとディレクトリがインストールされています。)
open-vm-tools-desktop (2:9.4.0-1280544-5ubuntu6.2) を削除しています ...
kohchi@ubuntu13:~/vmware-tools-distrib/bin$ 

open-vm-toolsの削除

open-vm-tools-desktopと同様。

kohchi@ubuntu13:~/vmware-tools-distrib/bin$ sudo apt-get remove open-vm-tools
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libdumbnet1 libmpdec2 libpostproc52 libupstart1 linux-headers-3.13.0-24
  linux-headers-3.13.0-24-generic linux-image-3.13.0-24-generic
  linux-image-3.8.0-31-generic linux-image-extra-3.13.0-24-generic
  linux-image-extra-3.8.0-31-generic zerofree
これを削除するには 'apt-get autoremove' を利用してください。
以下のパッケージは「削除」されます:
  open-vm-tools
アップグレード: 0 個、新規インストール: 0 個、削除: 1 個、保留: 14 個。
この操作後に 2,344 kB のディスク容量が解放されます。
続行しますか? [Y/n] y
(データベースを読み込んでいます ... 現在 290564 個のファイルとディレクトリがインストールされています。)
open-vm-tools (2:9.4.0-1280544-5ubuntu6.2) を削除しています ...
 * Stopping open-vm guest daemon vmtoolsd                                [ OK ] 
man-db (2.6.7.1-1ubuntu1) のトリガを処理しています ...
libc-bin (2.19-0ubuntu6.6) のトリガを処理しています ...
kohchi@ubuntu13:~/vmware-tools-distrib/bin$

open-vm-tools/open-vm-tools-desktopのインストール

apt-getのinstallを実行。

kohchi@ubuntu13:~$ sudo apt-get install open-vm-tools
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libmpdec2 libpostproc52 libupstart1 linux-headers-3.13.0-24
  linux-headers-3.13.0-24-generic linux-image-3.13.0-24-generic
  linux-image-3.8.0-31-generic linux-image-extra-3.13.0-24-generic
  linux-image-extra-3.8.0-31-generic
これを削除するには 'apt-get autoremove' を利用してください。
提案パッケージ:
  open-vm-tools-desktop
以下のパッケージが新たにインストールされます:
  open-vm-tools
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 14 個。
456 kB のアーカイブを取得する必要があります。
この操作後に追加で 2,344 kB のディスク容量が消費されます。
取得:1 http://jp.archive.ubuntu.com/ubuntu/ trusty-updates/main open-vm-tools i386 2:9.4.0-1280544-5ubuntu6.2 [456 kB]
456 kB を 0秒 で取得しました (972 kB/s)
以前に未選択のパッケージ open-vm-tools を選択しています。
(データベースを読み込んでいます ... 現在 290499 個のファイルとディレクトリがインストールされています。)
.../open-vm-tools_2%3a9.4.0-1280544-5ubuntu6.2_i386.deb を展開する準備をしています ...
open-vm-tools (2:9.4.0-1280544-5ubuntu6.2) を展開しています...
man-db (2.6.7.1-1ubuntu1) のトリガを処理しています ...
ureadahead (0.100.0-16) のトリガを処理しています ...
ureadahead will be reprofiled on next reboot
open-vm-tools (2:9.4.0-1280544-5ubuntu6.2) を設定しています ...
 * Starting open-vm daemon vmtoolsd                                      [ OK ] 
libc-bin (2.19-0ubuntu6.6) のトリガを処理しています ...
kohchi@ubuntu13:~$ 
kohchi@ubuntu13:~$ sudo apt-get install open-vm-tools-desktop
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libmpdec2 libpostproc52 libupstart1 linux-headers-3.13.0-24
  linux-headers-3.13.0-24-generic linux-image-3.13.0-24-generic
  linux-image-3.8.0-31-generic linux-image-extra-3.13.0-24-generic
  linux-image-extra-3.8.0-31-generic
これを削除するには 'apt-get autoremove' を利用してください。
以下のパッケージが新たにインストールされます:
  open-vm-tools-desktop
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 14 個。
120 kB のアーカイブを取得する必要があります。
この操作後に追加で 447 kB のディスク容量が消費されます。
取得:1 http://jp.archive.ubuntu.com/ubuntu/ trusty-updates/main open-vm-tools-desktop i386 2:9.4.0-1280544-5ubuntu6.2 [120 kB]
120 kB を 0秒 で取得しました (431 kB/s)   
以前に未選択のパッケージ open-vm-tools-desktop を選択しています。
(データベースを読み込んでいます ... 現在 290565 個のファイルとディレクトリがインストールされています。)
.../open-vm-tools-desktop_2%3a9.4.0-1280544-5ubuntu6.2_i386.deb を展開する準備をしています ...
open-vm-tools-desktop (2:9.4.0-1280544-5ubuntu6.2) を展開しています...
open-vm-tools-desktop (2:9.4.0-1280544-5ubuntu6.2) を設定しています ...
kohchi@ubuntu13:~$ lsmod | grep vm
vmw_balloon            13191  0 
vmwgfx                149294  3 
ttm                    85079  1 vmwgfx
drm                   244037  4 ttm,vmwgfx
vmw_vmci               60731  0 
kohchi@ubuntu13:~$ 

結果

open-vm-tools/open-vm-tools-desktopで文字列のコピペはなんら問題がなかった。
ファイルのドラッグ&ドロップはvmhgfsがなくても最初失敗するが「再試行」するとできるという状態なんだけど、VMware-Toolsを入れていたときも同じ状態だったので入れ直しによって起きた問題でない。この調査は後回しとする。

VMware FusionのUbuntu14.04にVMwareToolsをインストールしてみた件

MacOS XVMware FusionのゲストOSとしてUbuntu14.04をインストールしていたけどVMwareToolsをインストールしていなかったのでインストールしてみた。
参照先は以下。

http://tukaikta.blog135.fc2.com/blog-entry-129.html
http://partnerweb.vmware.com/GOSIG/Ubuntu_14_04_LTS.html#Tools
http://d.hatena.ne.jp/ytooyama/20130615/1371308333
http://kledgeb.blogspot.jp/2015/09/ubuntu-vmware-workstation-player-2.html

マウント

VMware Fusionの「仮装マシン」メニューの「VMware Toolsのインストール」を選択することでマウントされる。

マウント前
kohchi@ubuntu13:~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda1       19478204 8918296   9547428  49% /
none                   4       0         4   0% /sys/fs/cgroup
udev             1022272       4   1022268   1% /dev
tmpfs             206380    1080    205300   1% /run
none                5120       0      5120   0% /run/lock
none             1031880     152   1031728   1% /run/shm
none              102400      32    102368   1% /run/user
マウント後
kohchi@ubuntu13:~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda1       19478204 8918332   9547392  49% /
none                   4       0         4   0% /sys/fs/cgroup
udev             1022272       4   1022268   1% /dev
tmpfs             206380    1084    205296   1% /run
none                5120       0      5120   0% /run/lock
none             1031880     152   1031728   1% /run/shm
none              102400      32    102368   1% /run/user
/dev/sr0           71704   71704         0 100% /media/kohchi/VMware Tools

実行エラー

マウントされたものはDVDとして認識し、フォルダ画面が表示される。

フォルダ画面にあるtarボールをホームへドラッグ&ドロップしてその後DVDを取り出す(取り出しボタンを押すとアンマウントされる)。


で実行してみたけど、open-vm-toolsをインストールする必要があるらしい。

kohchi@ubuntu13:~$ pwd
/home/kohchi
kohchi@ubuntu13:~$ zcat VMwareTools-10.0.1-3160059.tar.gz | tar xf -
kohchi@ubuntu13:~$ cd vmware-tools-distrib/
kohchi@ubuntu13:~/vmware-tools-distrib$ sudo ./vmware-install.pl
[sudo] password for kohchi: 
open-vm-tools are available from the OS vendor and VMware recommends using 
open-vm-tools. See http://kb.vmware.com/kb/2073803 for more information.
Do you still want to proceed with this legacy installer? [no] 

kohchi@ubuntu13:~/vmware-tools-distrib$

open-vm-toolsインストール

http://kb.vmware.com/kb/2073803 から http://partnerweb.vmware.com/GOSIG/Ubuntu_14_04_LTS.html#Tools に辿りつきapt-getでopen-vm-toolsをインストール。

kohchi@ubuntu13:~/vmware-tools-distrib$ sudo apt-get install open-vm-tools
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libpostproc52 libupstart1 linux-headers-3.13.0-24
  linux-headers-3.13.0-24-generic linux-image-3.13.0-24-generic
  linux-image-3.8.0-31-generic linux-image-extra-3.13.0-24-generic
  linux-image-extra-3.8.0-31-generic
これを削除するには 'apt-get autoremove' を利用してください。
以下の特別パッケージがインストールされます:
  libdumbnet1 zerofree
提案パッケージ:
  open-vm-tools-desktop
以下のパッケージが新たにインストールされます:
  libdumbnet1 open-vm-tools zerofree
アップグレード: 0 個、新規インストール: 3 個、削除: 0 個、保留: 131 個。
490 kB のアーカイブを取得する必要があります。
この操作後に追加で 2,493 kB のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://jp.archive.ubuntu.com/ubuntu/ trusty/main libdumbnet1 i386 1.12-4build1 [25.3 kB]
取得:2 http://jp.archive.ubuntu.com/ubuntu/ trusty-updates/main open-vm-tools i386 2:9.4.0-1280544-5ubuntu6.2 [456 kB]
取得:3 http://jp.archive.ubuntu.com/ubuntu/ trusty/main zerofree i386 1.0.2-1ubuntu1 [8,574 B]
490 kB を 0秒 で取得しました (1,042 kB/s)
以前に未選択のパッケージ libdumbnet1 を選択しています。
(データベースを読み込んでいます ... 現在 261017 個のファイルとディレクトリがインストールされています。)
Preparing to unpack .../libdumbnet1_1.12-4build1_i386.deb ...
Unpacking libdumbnet1 (1.12-4build1) ...
以前に未選択のパッケージ open-vm-tools を選択しています。
Preparing to unpack .../open-vm-tools_2%3a9.4.0-1280544-5ubuntu6.2_i386.deb ...
Unpacking open-vm-tools (2:9.4.0-1280544-5ubuntu6.2) ...
以前に未選択のパッケージ zerofree を選択しています。
Preparing to unpack .../zerofree_1.0.2-1ubuntu1_i386.deb ...
Unpacking zerofree (1.0.2-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
libdumbnet1 (1.12-4build1) を設定しています ...
open-vm-tools (2:9.4.0-1280544-5ubuntu6.2) を設定しています ...
 * Starting open-vm daemon vmtoolsd                                      [ OK ] 
zerofree (1.0.2-1ubuntu1) を設定しています ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for ureadahead (0.100.0-16) ...
kohchi@ubuntu13:~/vmware-tools-distrib$

VMwareToolsのインストール

もう一回インストーラを起動してインストール。質問はすべてデフォルト(この場合インストーラに"-d"オプションをつけるといいらしい)で、インストール完了後リブート。

kohchi@ubuntu13:~/vmware-tools-distrib$ sudo ./vmware-install.pl
The installer has detected an existing installation of open-vm-tools on this 
system and will not attempt to remove and replace these user-space 
applications. It is recommended to use the open-vm-tools packages provided by 
the operating system. If you do not want to use the existing installation of 
open-vm-tools and attempt to install VMware Tools, you must uninstall the 
open-vm-tools packages and re-run this installer.
The packages that need to be removed are:
open-vm-tools
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [yes] 

Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

In which directory do you want to install the binary files? 
[/usr/bin] 

What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 
[/etc] 

What is the directory that contains the init scripts? 
[/etc/init.d] 

In which directory do you want to install the daemon files? 
[/usr/sbin] 

In which directory do you want to install the library files? 
[/usr/lib/vmware-tools] 

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] 

The path "/usr/share/doc/vmware-tools" does not exist currently. This program 
is going to create it, including needed parent directories. Is this what you 
want? [yes] 

The installation of VMware Tools 10.0.1 build-3160059 for Linux completed 
successfully. You can decide to remove this software from your system at any 
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by 
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want 
this program to invoke the command for you now? [yes] 

The file /usr/bin/vmware-hgfsclient that this program was about to install 
already exists.  Overwrite? [no] 

The file /sbin/mount.vmhgfs that this program was about to install already 
exists.  Overwrite? [no] 

Initializing...


Making sure services for VMware Tools are stopped.



The module vmci has already been installed on this system by another installer 
or package and will not be modified by this installer.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vmxnet3 has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.

The VMware Host-Guest Filesystem allows for shared folders between the host OS 
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish 
to enable this feature? [yes] 


Before you can compile modules, you need to have the following installed... 

make
gcc
kernel headers of the running kernel


Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] 

Searching for a valid kernel header path...
Detected the kernel headers at "/lib/modules/3.13.0-63-generic/build/include".
The path "/lib/modules/3.13.0-63-generic/build/include" appears to be a valid 
path to the 3.13.0-63-generic kernel headers.
Would you like to change it? [no] 

Using kernel build system.
make: ディレクトリ `/tmp/modconfig-egp2TO/vmhgfs-only' に入ります
/usr/bin/make -C /lib/modules/3.13.0-63-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= modules
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' に入ります
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/fsutil.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/inode.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/module.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/page.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/stubs.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/super.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/transport.o
  CC [M]  /tmp/modconfig-egp2TO/vmhgfs-only/kernelStubsLinux.o
  LD [M]  /tmp/modconfig-egp2TO/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-egp2TO/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/modconfig-egp2TO/vmhgfs-only/vmhgfs.ko
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' から出ます
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= postbuild
make[1]: ディレクトリ `/tmp/modconfig-egp2TO/vmhgfs-only' に入ります
make[1]: `postbuild' は更新済みです
make[1]: ディレクトリ `/tmp/modconfig-egp2TO/vmhgfs-only' から出ます
cp -f vmhgfs.ko ./../vmhgfs.o
make: ディレクトリ `/tmp/modconfig-egp2TO/vmhgfs-only' から出ます

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please 
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no] 

Thinprint provides driver-free printing. Do you wish to enable this feature? 
[yes] 

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-63-generic
vmware-tools start/running
vmware-tools-thinprint start/running
The configuration of VMware Tools 10.0.1 build-3160059 for Linux for this 
running kernel completed successfully.

Enjoy,

--the VMware team

kohchi@ubuntu13:~/vmware-tools-distrib$ sync;sync;sync
kohchi@ubuntu13:~/vmware-tools-distrib$ sudo reboot

VMwareToolsの再インストールしてkernel-modulesだけインストール

リブート後ログインしてUbuntuでコピーしてMacOS Xでペーストしてみたけどうまくいかず。
http://kledgeb.blogspot.jp/2015/09/ubuntu-vmware-workstation-player-2.html を見ると以下の質問でデフォルト[no]として答えていたのでカーネルモジュールを自動的にインストールしていないみたいなので再度インストール。

Would you like to enable VMware automatic kernel modules?
[no] yes

kohchi@ubuntu13:~/vmware-tools-distrib$ sudo ./vmware-install.pl
The installer has detected an existing installation of open-vm-tools on this 
system and will not attempt to remove and replace these user-space 
applications. It is recommended to use the open-vm-tools packages provided by 
the operating system. If you do not want to use the existing installation of 
open-vm-tools and attempt to install VMware Tools, you must uninstall the 
open-vm-tools packages and re-run this installer.
The packages that need to be removed are:
open-vm-tools
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [yes] 

A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will 
first uninstall the currently installed version.  Do you wish to continue? 
(yes/no) [yes] 

Uninstalling the tar installation of VMware Tools.

Stopping services for vmware-tools

vmware-tools stop/waiting
Stopping services for vmware-tools-thinprint

vmware-tools-thinprint stop/waiting
The removal of VMware Tools 10.0.1 build-3160059 for Linux completed 
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files? 
[/usr/bin] 

What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 
[/etc] 

What is the directory that contains the init scripts? 
[/etc/init.d] 

In which directory do you want to install the daemon files? 
[/usr/sbin] 

In which directory do you want to install the library files? 
[/usr/lib/vmware-tools] 

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] 

The path "/usr/share/doc/vmware-tools" does not exist currently. This program 
is going to create it, including needed parent directories. Is this what you 
want? [yes] 

The installation of VMware Tools 10.0.1 build-3160059 for Linux completed 
successfully. You can decide to remove this software from your system at any 
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by 
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want 
this program to invoke the command for you now? [yes] 

The file /usr/bin/vmware-hgfsclient that this program was about to install 
already exists.  Overwrite? [no] 

The file /sbin/mount.vmhgfs that this program was about to install already 
exists.  Overwrite? [yes] 

Initializing...


Making sure services for VMware Tools are stopped.



The module vmci has already been installed on this system by another installer 
or package and will not be modified by this installer.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vmxnet3 has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.

The VMware Host-Guest Filesystem allows for shared folders between the host OS 
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish 
to enable this feature? [yes] 


Before you can compile modules, you need to have the following installed... 

make
gcc
kernel headers of the running kernel


Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] 

Searching for a valid kernel header path...
Detected the kernel headers at "/lib/modules/3.13.0-63-generic/build/include".
The path "/lib/modules/3.13.0-63-generic/build/include" appears to be a valid 
path to the 3.13.0-63-generic kernel headers.
Would you like to change it? [no] 

Using kernel build system.
make: ディレクトリ `/tmp/modconfig-OknHE6/vmhgfs-only' に入ります
/usr/bin/make -C /lib/modules/3.13.0-63-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= modules
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' に入ります
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/fsutil.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/inode.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/module.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/page.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/stubs.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/super.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/transport.o
  CC [M]  /tmp/modconfig-OknHE6/vmhgfs-only/kernelStubsLinux.o
  LD [M]  /tmp/modconfig-OknHE6/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-OknHE6/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/modconfig-OknHE6/vmhgfs-only/vmhgfs.ko
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' から出ます
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= postbuild
make[1]: ディレクトリ `/tmp/modconfig-OknHE6/vmhgfs-only' に入ります
make[1]: `postbuild' は更新済みです
make[1]: ディレクトリ `/tmp/modconfig-OknHE6/vmhgfs-only' から出ます
cp -f vmhgfs.ko ./../vmhgfs.o
make: ディレクトリ `/tmp/modconfig-OknHE6/vmhgfs-only' から出ます

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please 
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[no] yes

Thinprint provides driver-free printing. Do you wish to enable this feature? 
[yes] 

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-63-generic
vmware-tools start/running
vmware-tools-thinprint start/running
The configuration of VMware Tools 10.0.1 build-3160059 for Linux for this 
running kernel completed successfully.

Enjoy,

--the VMware team

kohchi@ubuntu13:~/vmware-tools-distrib$ sync;sync;sync
kohchi@ubuntu13:~/vmware-tools-distrib$ sudo reboot

open-vm-tools-desktopをインストール

リブート後同じように試してみたけどコピペできない。open-vm-tools-desktopをインストールしてからVMwareToolsを再度インストール。
なお、今回のVMwareToolsインストールでの自動的にカーネルモジュールをインストールするかどうかの質問は先ほど[yes]と答えてのでデフォルト[yes]となっていた。

Would you like to enable VMware automatic kernel modules?
[yes]

kohchi@ubuntu13:~$ sudo apt-get install open-vm-tools-desktop
[sudo] password for kohchi: 
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libpostproc52 libupstart1 linux-headers-3.13.0-24
  linux-headers-3.13.0-24-generic linux-image-3.13.0-24-generic
  linux-image-3.8.0-31-generic linux-image-extra-3.13.0-24-generic
  linux-image-extra-3.8.0-31-generic
これを削除するには 'apt-get autoremove' を利用してください。
以下のパッケージが新たにインストールされます:
  open-vm-tools-desktop
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 131 個。
120 kB のアーカイブを取得する必要があります。
この操作後に追加で 447 kB のディスク容量が消費されます。
取得:1 http://jp.archive.ubuntu.com/ubuntu/ trusty-updates/main open-vm-tools-desktop i386 2:9.4.0-1280544-5ubuntu6.2 [120 kB]
120 kB を 0秒 で取得しました (424 kB/s)   
以前に未選択のパッケージ open-vm-tools-desktop を選択しています。
(データベースを読み込んでいます ... 現在 261111 個のファイルとディレクトリがインストールされています。)
Preparing to unpack .../open-vm-tools-desktop_2%3a9.4.0-1280544-5ubuntu6.2_i386.deb ...
Unpacking open-vm-tools-desktop (2:9.4.0-1280544-5ubuntu6.2) ...
open-vm-tools-desktop (2:9.4.0-1280544-5ubuntu6.2) を設定しています ...
kohchi@ubuntu13:~$ 

kohchi@ubuntu13:~$ cd vmware-tools-distrib/
kohchi@ubuntu13:~/vmware-tools-distrib$ sudo ./vmware-install.pl
The installer has detected an existing installation of open-vm-tools on this 
system and will not attempt to remove and replace these user-space 
applications. It is recommended to use the open-vm-tools packages provided by 
the operating system. If you do not want to use the existing installation of 
open-vm-tools and attempt to install VMware Tools, you must uninstall the 
open-vm-tools packages and re-run this installer.
The packages that need to be removed are:
open-vm-tools
The installer will next check if there are any missing kernel drivers. Type yes
if you want to do this, otherwise type no [yes] 

A previous installation of VMware Tools has been detected.

The previous installation was made by the tar installer (version 4).

Keeping the tar4 installer database format.

You have a version of VMware Tools installed.  Continuing this install will 
first uninstall the currently installed version.  Do you wish to continue? 
(yes/no) [yes] 

Uninstalling the tar installation of VMware Tools.

Stopping services for vmware-tools

vmware-tools stop/waiting
Stopping services for vmware-tools-thinprint

vmware-tools-thinprint stop/waiting
The removal of VMware Tools 10.0.1 build-3160059 for Linux completed 
successfully.

Installing VMware Tools.

In which directory do you want to install the binary files? 
[/usr/bin] 

What is the directory that contains the init directories (rc0.d/ to rc6.d/)? 
[/etc] 

What is the directory that contains the init scripts? 
[/etc/init.d] 

In which directory do you want to install the daemon files? 
[/usr/sbin] 

In which directory do you want to install the library files? 
[/usr/lib/vmware-tools] 

In which directory do you want to install the documentation files? 
[/usr/share/doc/vmware-tools] 

The path "/usr/share/doc/vmware-tools" does not exist currently. This program 
is going to create it, including needed parent directories. Is this what you 
want? [yes] 

The installation of VMware Tools 10.0.1 build-3160059 for Linux completed 
successfully. You can decide to remove this software from your system at any 
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by 
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want 
this program to invoke the command for you now? [yes] 

The file /usr/bin/vmware-hgfsclient that this program was about to install 
already exists.  Overwrite? [no] 

Initializing...


Making sure services for VMware Tools are stopped.



The module vmci has already been installed on this system by another installer 
or package and will not be modified by this installer.

The module vsock has already been installed on this system by another installer
or package and will not be modified by this installer.

The module vmxnet3 has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module pvscsi has already been installed on this system by another 
installer or package and will not be modified by this installer.

The module vmmemctl has already been installed on this system by another 
installer or package and will not be modified by this installer.

The VMware Host-Guest Filesystem allows for shared folders between the host OS 
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish 
to enable this feature? [yes] 


Before you can compile modules, you need to have the following installed... 

make
gcc
kernel headers of the running kernel


Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no] 

Searching for a valid kernel header path...
Detected the kernel headers at "/lib/modules/3.13.0-63-generic/build/include".
The path "/lib/modules/3.13.0-63-generic/build/include" appears to be a valid 
path to the 3.13.0-63-generic kernel headers.
Would you like to change it? [no] 

Using kernel build system.
make: ディレクトリ `/tmp/modconfig-dzVYo5/vmhgfs-only' に入ります
/usr/bin/make -C /lib/modules/3.13.0-63-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= modules
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' に入ります
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/backdoor.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/bdhandler.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/cpName.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/cpNameLinux.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/cpNameLite.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/dentry.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/dir.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/file.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/filesystem.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/fsutil.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/hgfsEscape.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/inode.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/link.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/message.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/module.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/page.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/request.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/rpcout.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/stubs.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/super.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/transport.o
  CC [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/kernelStubsLinux.o
  LD [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/vmhgfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/modconfig-dzVYo5/vmhgfs-only/vmhgfs.mod.o
  LD [M]  /tmp/modconfig-dzVYo5/vmhgfs-only/vmhgfs.ko
make[1]: ディレクトリ `/usr/src/linux-headers-3.13.0-63-generic' から出ます
/usr/bin/make -C $PWD SRCROOT=$PWD/. \
	  MODULEBUILDDIR= postbuild
make[1]: ディレクトリ `/tmp/modconfig-dzVYo5/vmhgfs-only' に入ります
make[1]: `postbuild' は更新済みです
make[1]: ディレクトリ `/tmp/modconfig-dzVYo5/vmhgfs-only' から出ます
cp -f vmhgfs.ko ./../vmhgfs.o
make: ディレクトリ `/tmp/modconfig-dzVYo5/vmhgfs-only' から出ます

The vmxnet driver is no longer supported on kernels 3.3 and greater. Please 
upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)

VMware automatic kernel modules enables automatic building and installation of
VMware kernel modules at boot that are not already present. This feature can
be enabled/disabled by re-running vmware-config-tools.pl.

Would you like to enable VMware automatic kernel modules?
[yes] 

Thinprint provides driver-free printing. Do you wish to enable this feature? 
[yes] 

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-63-generic
vmware-tools start/running
vmware-tools-thinprint start/running
The configuration of VMware Tools 10.0.1 build-3160059 for Linux for this 
running kernel completed successfully.

Enjoy,

--the VMware team

kohchi@ubuntu13:~/vmware-tools-distrib$ sync;sync;sync
kohchi@ubuntu13:~/vmware-tools-distrib$ sudo reboot

リブート後、Ubuntu上でコピーしたものをMacOS Xでペーストしてみたところうまくいった。
最初からopen-vm-tools-desktopを入れとけって話か。