博文

Firefox中文语言包安装方法

首先安装火狐,我有洁癖,从不去www.firefox.com.cn去下载安装,直接上 http://releases.mozilla.org/pub/mozilla.org/firefox/releases/ ,依次选择版本和对应操作系统,语言包在xpi目录下,自己找,简体(zh-CN.xpi)。 全部下载完毕,先安装火狐,再安装语言包,然后在弹出的窗口依次点击“Allow”,“install”,最后就安装成功了。 然后在地址栏输入:about:config 点确认后,依照以前网上的教程然后在过滤器里输入general.useragent.locale,死活找不到这个值。愣住了,百度不行,找不到答案,全是之前版本。只能出墙google,花了我一个小时,终于让我找到了答案: 新版本在过滤器里输入是:intl.locale.requested 但最后还是傻了,竟然也没有这个,继续找答案…… 直接在about:config里新建一个字符串值(我就不上图了,麻烦。方法:鼠标右键新建String,然后intl.locale.requested,值zh_cn),保存退出,重启火狐,就OK了。

OpenWrt安装中文管理界面

opkg update opkg install luci-i18n-base-zh-cn

debian 8 jessie install shadowsocks-libev simple-obfs

sh -c ‘printf “deb http://deb.debian.org/debian jessie-backports mainn” > /etc/apt/sources.list.d/jessie-backports.list’ sh -c ‘printf “deb http://deb.debian.org/debian jessie-backports-sloppy main” >> /etc/apt/sources.list.d/jessie-backports.list’ apt update apt -t jessie-backports-sloppy install shadowsocks-libev apt-get install –no-install-recommends build-essential autoconf libtool libssl-dev libpcre3-dev libev-dev asciidoc xmlto automake git clone https://github.com/shadowsocks/simple-obfs.git cd simple-obfs git submodule update –init –recursive ./autogen.sh ./configure –disable-documentation && make make install

How to upgrade the Linux Kernel of debian 8 jessie

uname -a vi /etc/apt/sources.list.d/sources.list deb http://http.debian.net/debian jessie-backports main deb-src http://http.debian.net/debian jessie-backports main apt-get update apt-get dist-upgrade apt-cache search linux-image apt-get install -t jessie-backports linux-image-amd64 update-grub apt-get autoclean apt-get autoremove reboot dpkg -l|grep linux-image apt-get purge !!!!示例!!!! 比如我是有这两个内核,所以我把这两个删掉,不要照着我的这个步骤做,自己换成你VPS的内核名称!!! apt-get purge linux-image-3.16.0-4-amd64 apt-get purge linux-image-amd64 开启bbr modprobe tcp_bbr echo “tcp_bbr” >> /etc/modules-load.d/modules.conf echo “net.core.default_qdisc=fq” >> /etc/sysctl.conf echo “net.ipv4.tcp_congestion_control=bbr” >> /etc/sysctl.conf 执行这个保存生效更改。 sysctl -p VPS提示: net.core.default_qdisc = fq net.ipv4.tcp_congestion_control = bbr 关闭bbr sed -i ‘/net.core.default_qdisc=fq/d’ /etc/sysctl.conf sed -i ‘/net.ipv4.tcp_congestion_control=bbr/d’ /etc/sysctl.co...

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, ],