博文

Debian Jessie install megatools

apt-get install -y pkg-config libglib2.0-dev libssl-dev libcurl4-openssl-dev libfuse-dev glib-networking wget http://megatools.megous.com/builds/megatools- ${VERSION}.tar.gz tar xzf megatools-${VERSION}.tar.gz cd megatools-${VERSION} ./configure && make && make install && ldconfig [Login] Username = Your_Mega_Username Password = Your_Mega_Password chmod 640 /root/.megarc

Debian Jessie install google-drive-ocamlfuse

apt-get install opam ocaml make fuse camlp4-extra build-essential pkg-config groupadd fuse adduser shaobo fuse chown root.fuse /dev/fuse chmod 660 /dev/fuse opam init opam update opam install depext eval opam config env opam depext google-drive-ocamlfuse opam install google-drive-ocamlfuse . /home/shaobo/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true 安装成功后,进入Google Project建立一个Project https://console.developers.google.com/project 进入/shaobo/.opam/system/bin/目录绑定项目 cd /shaobo/.opam/system/bin/ ./google-drive-ocamlfuse -headless -label googledrive -id ##Client ID##.apps.googleusercontent.com -secret ##secret key## 执行完上述指令会返回一个https的网址在浏览器粘贴到浏览器后会进入google页面询问是否允许访问该项目,选accept然后记录下浏览器页面返回的密码,粘贴进去回车即可。 进入~/.gdfuse/googledrive cd ~/.gdfuse/googledrive nano config 编辑config修改内容例如 verification_code= [key returned from browser] client_id= [eg. 1231232ccc31.apps.googleusercontent.com] client_secret= [eg. AdddSDQWEWGSD!$@#@#ASD] 完成配置加载Google Drive远端存储到本地/googledrive ln -s /shaobo/....

linux语言设置

locale-gen dpkg-reconfigure locales

How To Install TeamViewer on Debian 8

In case you get the error “wrong architecture i386” you have to execute the following command lines as an administrator: dpkg –add-architecture i386 apt-get update apt-get upgrade dpkg -i teamviewer_12.0.xxxxx_i386.deb In case dpkg indicates missing dependencies, complete the installation by executing the following command: apt-get install -f

fix owncloud

Cron crontab -u www-data -e /15 * /usr/bin/php -f /path/to/your/owncloud/cron.php apt-get install memcached php5-memcached apt-get install redis-server php5-redis apt-get install php-apcu 配制config.php ‘memcache.local’ => ‘OCMemcacheAPCu’, ‘memcache.locking’ => ‘OCMemcacheRedis’, ‘redis’ => [ ‘host’ => ‘localhost’, ‘port’ => 6379, ],

debian显示内存占用前十的进程

ps aux | sort -k4,4nr | head -n 10 pmap $(pgrep php-cgi | head -1) //查看PHP-CGI占多大的内存

apache24 on debian

apt-get install apache2-mpm-prefork libapache2-mod-php5 apt-get install php5-cli php5-curl php5-gd php5-gmp php5-imap php5-json php5-ldap php5-mcrypt php5-mysql php5-tidy php5-xmlrpc php5-xsl a2enmod actions a2dismod mpm_event a2enmod mpm_prefork nano /etc/apache2/mods-available/mpm_prefork.conf StartServers 2 MinSpareServers 2 MaxSpareServers 4 MaxClients 75 MaxRequestWorkers 75 MaxConnectionsPerChild 2000 /etc/init.d/apache2 restart

cm13 android 6.0及cm14 android 7.12 wifi有感叹号而且无法自动连接wifi怎么 解决?

在终端模拟器下(要获取ROOT权限才可以)或进入adb shell cm13 android 6.0 settings put global captive_portal_detection_enabled 0 然后重启手机,然后可以再验证一下 settings get global captive_portal_detection_enabled android 7.1.2的解决方法 settings put global captive_portal_https_url http://www.google-analytics.com/generate_204

no acceptable c compiler found in $path

sudo apt-get install build-essential