DropBox のインストール

Debian HS-DHGL

遅ればせながら、 DropBoxを使い始めた。
内向きサーバでハックキット化した HS-DHGL でも DropBox が 動かないかなと試してみる。

ソースの入手

arm の deb を探してみたが、なさそうなので、ソースからのコンパイルを試みる
sil:~# mkdir DropBox
sil:~# cd !$
cd DropBox
sil:~/DropBox# wget https://www.dropbox.com/download?dl=packages/nautilus-dropbox-0.6.9.tar.bz2
--2011-10-14 21:35:17--  https://www.dropbox.com/download?dl=packages/nautilus-dropbox-0.6.9.tar.bz2
Resolving www.dropbox.com... 199.47.217.170, 199.47.217.171, 199.47.216.170, ...
Connecting to www.dropbox.com|199.47.217.170|:443... connected.
ERROR: cannot verify www.dropbox.com's certificate, issued by `/C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification Services Division/CN=Thawte Premium Server CA/emailAddress=premium-server@thawte.com':
  Unable to locally verify the issuer's authority.
To connect to www.dropbox.com insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
sil:~/DropBox# 
--no-check-certificate をつけて再度実行
sil:~/DropBox# wget --no-check-certificate https://www.dropbox.com/download?dl=p
ackages/nautilus-dropbox-0.6.9.tar.bz2
--2011-10-14 21:35:49--  https://www.dropbox.com/download?dl=packages/nautilus-dropbox-0.6.9.tar.bz2
Resolving www.dropbox.com... 199.47.216.171, 199.47.217.170, 199.47.217.171, ...
Connecting to www.dropbox.com|199.47.216.171|:443... connected.
WARNING: cannot verify www.dropbox.com's certificate, issued by `/C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification Services Division/CN=Thawte Premium Server CA/emailAddress=premium-server@thawte.com':
  Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 302 FOUND
Location: http://linux.dropbox.com/packages/nautilus-dropbox-0.6.9.tar.bz2 [following]
--2011-10-14 21:35:50--  http://linux.dropbox.com/packages/nautilus-dropbox-0.6.9.tar.bz2
Resolving linux.dropbox.com... 174.36.30.74
Connecting to linux.dropbox.com|174.36.30.74|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 351131 (343K) [application/octet-stream]
Saving to: `download?dl=packages%2Fnautilus-dropbox-0.6.9.tar.bz2'

100%[======================================>] 351,131      227K/s   in 1.5s

2011-10-14 21:35:52 (227 KB/s) - `download?dl=packages%2Fnautilus-dropbox-0.6.9.tar.bz2' saved [351131/351131]

sil:~/DropBox# ls
download?dl=packages%2Fnautilus-dropbox-0.6.9.tar.bz2
sil:~/DropBox#
無事ダウンロードできた。

展開

sil:~/DropBox# tar jtvf download\?dl\=packages%2Fnautilus-dropbox-0.6.9.tar.bz2
drwxrwxrwx 1001/1001         0 2011-08-13 07:43 nautilus-dropbox-0.6.9/
drwxrwxrwx 1001/1001         0 2011-08-13 07:43 nautilus-dropbox-0.6.9/src/
	:
	:
sil:~/DropBox# tar jxvf download\?dl\=packages%2Fnautilus-dropbox-0.6.9.tar.bz2

nautilus-dropbox-0.6.9/
nautilus-dropbox-0.6.9/src/
	:
	:
nautilus-dropbox-0.6.9/Makefile.in
nautilus-dropbox-0.6.9/ltmain.sh
sil:~/DropBox#

どうやってコンパイル?

sil:~/DropBox/nautilus-dropbox-0.6.9# ls
AUTHORS      NEWS          config.sub    dropbox.in      serializeimages.py
COPYING      README        configure     dropbox.txt.in  src
ChangeLog    aclocal.m4    configure.in  install-sh
INSTALL      config.guess  data          ltmain.sh
Makefile.am  config.h.in   depcomp       missing
Makefile.in  config.log    docgen.py     rst2man.py
sil:~/DropBox/nautilus-dropbox-0.6.9# cat README
Hi Friend!

This is *the* Dropbox extension for Nautilus!!!

Now you can use your favorite sync, versioning, and backup software with GNU/Linux!
Yes!! Radical!!! Gnarly!!!!

Check us out at http://www.dropbox.com/

<3,
Rian Hunter and the rest of the Dropbox Team

Building Dropbox Nautilus Extension From Source Tarball
--------------------------------------------------

You will need the following packages (or equivalent):

libnautilus-extension-dev

In the nautilus-dropbox dir just do:
$ ./configure
$ make
$ sudo make install

After installing the package you must restart Nautilus. You can do that by issuing the following command (note: if you're running compiz, doing so may lock up your computer - log out and log back in instead):

$ killall nautilus
sil:~/DropBox/nautilus-dropbox-0.6.9#
普通に、
$ ./configure
$ make
$ sudo make install
で良いみたい。

configure の実行

sil:~/DropBox/nautilus-dropbox-0.6.9# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
	:
	:
checking whether to build static libraries... yes
checking for pkg-config... no
checking for pkg-config... no
configure: error: you need to have pkgconfig installed !
sil:~/DropBox/nautilus-dropbox-0.6.9#
pkgconfig をインストールする
sil:~/DropBox/nautilus-dropbox-0.6.9# apt-get install pkgconfig
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package pkgconfig
sil:~/DropBox/nautilus-dropbox-0.6.9# apt-get install pkg-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libdns45 libisccc40 liblwres40 libbind9-40 libisccfg40 libisc45
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libglib2.0-0 libglib2.0-data
The following NEW packages will be installed:
  libglib2.0-0 libglib2.0-data pkg-config
0 upgraded, 3 newly installed, 0 to remove and 6 not upgraded.
Need to get 1512kB of archives.
After this operation, 4598kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org lenny/main libglib2.0-0 2.16.6-3 [762kB]
Get:2 http://ftp.jp.debian.org lenny/main libglib2.0-data 2.16.6-3 [700kB]
Get:3 http://ftp.jp.debian.org lenny/main pkg-config 0.22-1 [50.0kB]
Fetched 1512kB in 1s (1175kB/s)
Selecting previously deselected package libglib2.0-0.
(Reading database ... 13421 files and directories currently installed.)
Unpacking libglib2.0-0 (from .../libglib2.0-0_2.16.6-3_armel.deb) ...
Selecting previously deselected package libglib2.0-data.
Unpacking libglib2.0-data (from .../libglib2.0-data_2.16.6-3_all.deb) ...
Selecting previously deselected package pkg-config.
Unpacking pkg-config (from .../pkg-config_0.22-1_armel.deb) ...
Processing triggers for man-db ...
Setting up libglib2.0-0 (2.16.6-3) ...
Setting up libglib2.0-data (2.16.6-3) ...
Setting up pkg-config (0.22-1) ...
sil:~/DropBox/nautilus-dropbox-0.6.9#
もう一回 configure
sil:~/DropBox/nautilus-dropbox-0.6.9# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
	:
	:
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for NAUTILUS... configure: error: Package requirements (libnautilus-extension >= 2.16.0) were not met:

No package 'libnautilus-extension' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables NAUTILUS_CFLAGS
and NAUTILUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

sil:~/DropBox/nautilus-dropbox-0.6.9#
libnautilus-extension をインストールする。
sil:~/DropBox/nautilus-dropbox-0.6.9# apt-get install libnautilus-extension
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libnautilus-extension
sil:~/DropBox/nautilus-dropbox-0.6.9#
ない。探す
sil:~/DropBox/nautilus-dropbox-0.6.9# apt-cache search libnautilus
libnautilusburn2.20-cil - CLI binding for Nautilus Burn 2.20
libnautilus-burn-dev - Nautilus Burn Library - development version
libnautilus-burn4 - Nautilus Burn Library - runtime version
libnautilus-extension-dev - libraries for nautilus components - development version
libnautilus-extension1 - libraries for nautilus components - runtime version
sil:~/DropBox/nautilus-dropbox-0.6.9#
どれをインストールすれば良いのやら。
libnautilus-extension1 をインストールしてみる
sil:~/DropBox/nautilus-dropbox-0.6.9# apt-get install libnautilus-extension1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libdns45 libisccc40 liblwres40 libbind9-40 libisccfg40 libisc45
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  defoma file fontconfig fontconfig-config hicolor-icon-theme libatk1.0-0
  libatk1.0-data libcairo2 libdatrie0 libdirectfb-1.0-0 libexpat1
  libfontconfig1 libfontenc1 libfreetype6 libgtk2.0-0 libgtk2.0-bin
  libgtk2.0-common libjpeg62 libmagic1 libpango1.0-0 libpango1.0-common
  libpixman-1-0 libpng12-0 libsysfs2 libthai-data libthai0 libtiff4
  libts-0.0-0 libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1
  libxdamage1 libxfixes3 libxfont1 libxft2 libxi6 libxinerama1 libxrandr2
  libxrender1 ttf-dejavu ttf-dejavu-core ttf-dejavu-extra x-ttcidfont-conf
  xfonts-encodings xfonts-utils
Suggested packages:
  defoma-doc dfontmgr psfontmgr libfreetype6-dev librsvg2-common
  ttf-kochi-gothic ttf-kochi-mincho ttf-thryomanes ttf-baekmuk
  ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp
  ttf-arphic-bkai00mp
Recommended packages:
  libft-perl
The following NEW packages will be installed:
  defoma file fontconfig fontconfig-config hicolor-icon-theme libatk1.0-0
  libatk1.0-data libcairo2 libdatrie0 libdirectfb-1.0-0 libexpat1
  libfontconfig1 libfontenc1 libfreetype6 libgtk2.0-0 libgtk2.0-bin
  libgtk2.0-common libjpeg62 libmagic1 libnautilus-extension1 libpango1.0-0
  libpango1.0-common libpixman-1-0 libpng12-0 libsysfs2 libthai-data libthai0
  libtiff4 libts-0.0-0 libxcb-render-util0 libxcb-render0 libxcomposite1
  libxcursor1 libxdamage1 libxfixes3 libxfont1 libxft2 libxi6 libxinerama1
  libxrandr2 libxrender1 ttf-dejavu ttf-dejavu-core ttf-dejavu-extra
  x-ttcidfont-conf xfonts-encodings xfonts-utils
0 upgraded, 47 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.9MB of archives.
After this operation, 47.0MB of additional disk space will be used.
Do you want to continue [Y/n]? 
なんか、GUI 関連がインストールされるが、、、
Do you want to continue [Y/n]? y
Updating category truetype..
Updating category cid..
Updating category cmap..
	:
	:
	:
sil:~/DropBox/nautilus-dropbox-0.6.9#

再度 configure

sil:~/DropBox/nautilus-dropbox-0.6.9# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
	:
	:
checking pkg-config is at least version 0.9.0... yes
checking for NAUTILUS... configure: error: Package requirements (libnautilus-extension >= 2.16.0) were not met:

No package 'libnautilus-extension' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables NAUTILUS_CFLAGS
and NAUTILUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

sil:~/DropBox/nautilus-dropbox-0.6.9#
おなじ。
libnautilus-extension-dev をインストールしてみる。
sil:~/DropBox/nautilus-dropbox-0.6.9# apt-get install libnautilus-extension-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libdns45 libisccc40 liblwres40 libbind9-40 libisccfg40 libisc45
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  aspell aspell-en build-essential console-common console-data dbus dbus-x11
  debhelper dictionaries-common dpkg-dev eject esound-clients esound-common
  fam g++ g++-4.3 gconf2 gconf2-common gettext gettext-base gnome-keyring
  gnome-mime-data gnome-mount hal hal-info html2text intltool-debian kbd
  liba52-0.7.4 libart-2.0-2 libaspell15 libatk1.0-dev libaudiofile0
  libavahi-client-dev libavahi-client3 libavahi-common-data
  libavahi-common-dev libavahi-common3 libavahi-glib-dev libavahi-glib1
  libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common
  libcairo2-dev libcompress-raw-zlib-perl libcompress-zlib-perl libdb4.5
  libdbus-1-3 libdbus-1-dev libdbus-glib-1-2 libdigest-hmac-perl
  libdigest-sha1-perl libdirectfb-dev libdirectfb-extra libeel2-2.20
  libeel2-data libenchant1c2a libesd0 libexpat1-dev libfam0
  libfile-remove-perl libfontconfig1-dev libfreetype6-dev libgail-common
  libgail18 libgconf2-4 libgconf2-dev libgcrypt11-dev libglade2-0
  libglib2.0-dev libgnome-keyring0 libgnome-menu2 libgnome2-0 libgnome2-common
  libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common
  libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-dev libgnomevfs2-extra
  libgnutls-dev libgpg-error-dev libgtk2.0-dev libhal-storage1 libhal1
  libhunspell-1.2-0 libice-dev libice6 libidl-dev libidl0
  libio-compress-base-perl libio-compress-zlib-perl libio-stringy-perl
  libjpeg62-dev libmail-box-perl libmail-sendmail-perl libmailtools-perl
  libmalaga7 libmime-types-perl libmpeg3-1 libmpeg3-dev libnotify1
  libobject-realize-later-perl liborbit2 liborbit2-dev libpam-gnome-keyring
  libpango1.0-dev libpci3 libpixman-1-dev libpng12-dev libpopt-dev
  libpthread-stubs0 libpthread-stubs0-dev libselinux1-dev libsepol1-dev
  libsexy2 libsm-dev libsm6 libsmbclient libsqlite3-0 libstartup-notification0
  libstdc++6-4.3-dev libsys-hostname-long-perl libsysfs-dev libtasn1-3-dev
  libtimedate-perl liburi-perl libuser-identity-perl libvoikko1 libvolume-id0
  libwnck-common libwnck22 libx11-dev libxau-dev libxcb-render-util0-dev
  libxcb-render0-dev libxcb-xlib0-dev libxcb1-dev libxcomposite-dev
  libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev
  libxft-dev libxi-dev libxinerama-dev libxml2-dev libxml2-utils libxrandr-dev
  libxrender-dev libxres1 mime-support myspell-en-us notification-daemon
  orbit2 patch pciutils pm-utils po-debconf portmap powermgmt-base python
  python-minimal python2.5 python2.5-minimal radeontool shared-mime-info udev
  usbutils x11proto-composite-dev x11proto-core-dev x11proto-damage-dev
  x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev
  x11proto-render-dev x11proto-xext-dev x11proto-xinerama-dev xtrans-dev
  zlib1g-dev
Suggested packages:
  aspell-doc spellutils unicode-data dh-make ispell emacsen-common jed-extra
  debian-keyring cdtool setcd gcc-4.3-doc libstdc++6-4.3-dbg cvs gettext-doc
  cryptsetup gnome-device-manager libbonobo2-bin libcairo2-doc synaptic
  app-install-data esound libgcrypt11-doc libglib2.0-doc desktop-base
  gnome-icon-theme libgnomevfs2-bin gnutls-doc gnutls-bin guile-gnutls
  libgtk2.0-doc libmime-tools-perl libhtml-tree-perl libhtml-format-perl
  spamassassin libmail-imapclient-perl libpango1.0-doc imagemagick
  libstdc++6-4.3-doc libwww-perl voikko-fi diff-doc cpufrequtils python-doc
  python-tk python-profiler python2.5-doc binfmt-support
Recommended packages:
  uswsusp vbetool
The following NEW packages will be installed:
  aspell aspell-en build-essential console-common console-data dbus dbus-x11
  debhelper dictionaries-common dpkg-dev eject esound-clients esound-common
  fam g++ g++-4.3 gconf2 gconf2-common gettext gettext-base gnome-keyring
  gnome-mime-data gnome-mount hal hal-info html2text intltool-debian kbd
  liba52-0.7.4 libart-2.0-2 libaspell15 libatk1.0-dev libaudiofile0
  libavahi-client-dev libavahi-client3 libavahi-common-data
  libavahi-common-dev libavahi-common3 libavahi-glib-dev libavahi-glib1
  libbonobo2-0 libbonobo2-common libbonoboui2-0 libbonoboui2-common
  libcairo2-dev libcompress-raw-zlib-perl libcompress-zlib-perl libdb4.5
  libdbus-1-3 libdbus-1-dev libdbus-glib-1-2 libdigest-hmac-perl
  libdigest-sha1-perl libdirectfb-dev libdirectfb-extra libeel2-2.20
  libeel2-data libenchant1c2a libesd0 libexpat1-dev libfam0
  libfile-remove-perl libfontconfig1-dev libfreetype6-dev libgail-common
  libgail18 libgconf2-4 libgconf2-dev libgcrypt11-dev libglade2-0
  libglib2.0-dev libgnome-keyring0 libgnome-menu2 libgnome2-0 libgnome2-common
  libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common
  libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-dev libgnomevfs2-extra
  libgnutls-dev libgpg-error-dev libgtk2.0-dev libhal-storage1 libhal1
  libhunspell-1.2-0 libice-dev libice6 libidl-dev libidl0
  libio-compress-base-perl libio-compress-zlib-perl libio-stringy-perl
  libjpeg62-dev libmail-box-perl libmail-sendmail-perl libmailtools-perl
  libmalaga7 libmime-types-perl libmpeg3-1 libmpeg3-dev
  libnautilus-extension-dev libnotify1 libobject-realize-later-perl liborbit2
  liborbit2-dev libpam-gnome-keyring libpango1.0-dev libpci3 libpixman-1-dev
  libpng12-dev libpopt-dev libpthread-stubs0 libpthread-stubs0-dev
  libselinux1-dev libsepol1-dev libsexy2 libsm-dev libsm6 libsmbclient
  libsqlite3-0 libstartup-notification0 libstdc++6-4.3-dev
  libsys-hostname-long-perl libsysfs-dev libtasn1-3-dev libtimedate-perl
  liburi-perl libuser-identity-perl libvoikko1 libvolume-id0 libwnck-common
  libwnck22 libx11-dev libxau-dev libxcb-render-util0-dev libxcb-render0-dev
  libxcb-xlib0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev
  libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev
  libxml2-dev libxml2-utils libxrandr-dev libxrender-dev libxres1 mime-support
  myspell-en-us notification-daemon orbit2 patch pciutils pm-utils po-debconf
  portmap powermgmt-base python python-minimal python2.5 python2.5-minimal
  radeontool shared-mime-info udev usbutils x11proto-composite-dev
  x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev
  x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
  x11proto-xinerama-dev xtrans-dev zlib1g-dev
0 upgraded, 186 newly installed, 0 to remove and 0 not upgraded.
Need to get 52.5MB of archives.
After this operation, 183MB of additional disk space will be used.
Do you want to continue [Y/n]?
もう無茶苦茶。
実使用しているマシンでやることじゃないな、、、


HS-DHGL
バッファローダイレクト
楽天市場
Yahoo!ショッピング
ValuMore!
ムラウチドットコム


死んだ LinkStation
ハックの記録
LinkStation/玄箱 をハックしよう

死んだ HS-DHGL

Copyright (C) 2003-2011 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市