2016年2月6日土曜日

DropBox for Linux Server

https://www.dropbox.com/install?os=lnx

$ cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
$ crontab -e
---
@reboot ~/.dropbox-dist/dropboxd

$ ./dropbox.py help
Dropbox command-line interface

commands:

Note: use dropbox help <command> to view usage for a specific command.

 status       get current status of the dropboxd
 throttle     set bandwidth limits for Dropbox
 help         provide help
 puburl       get public url of a file in your dropbox's public folder
 stop         stop dropboxd
 running      return whether dropbox is running
 start        start dropboxd
 filestatus   get current sync status of one or more files
 ls           list directory contents with current sync status
 autostart    automatically start dropbox at login
 exclude      ignores/excludes a directory from syncing
 lansync      enables or disables LAN sync
 sharelink    get a shared link for a file in your dropbox
 proxy        set proxy settings for Dropbox


2016年2月3日水曜日

HTTP/2: Install

$ sudo add-apt-repository ppa:ondrej/apache2
$ sudo apt-get update
$ sudo apt-get install apache2
$ sudo a2ensite default-ssl
$ sudo a2emod http2
$ vim /etc/apache2/site-enaled/default-ssl.conf
------add----
<VirtualHost _default_:443>

 70  Protocols h2 http/1.1
---------------
$ sudo service apache2 restart

2016年2月1日月曜日

blockchain: bitcoin install

$ sudo apt-add-repository ppa:bitcoin/bitcoin
$ sudo apt-get update

$ sudo apt-get install bitcoind bitcoin-qt
$ bitcoind

$ cd ~/.bitcoin
$ vim bitcoin.conf
-----
rpcuser=*********
rpcpassword=*********
server=1
daemon=1
-----
$ bitcoind -reindex
$ bitcoin-cli getblockcount

fd-find

 $ sudo apt install fd-find $ fdfind 石