正在筛选分类:菜鸟Linux笔记 下的文章 清除筛选 ✕
2018
05
19
07:01

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

2018
04
17
07:39

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.conf
sysctl -p
执行完上面的代码,就使用reboot重启VPS后才能关闭bbr,重启后再用下面的查看bbr状态代码,查看是否关闭了。
reboot
执行下面命令,看到有 tcp_bbr 模块,即说明bbr已启动
lsmod | grep bbr

2018
03
04
12:47

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

2018
02
02
13:45

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/.opam/system/bin/google-drive-ocamlfuse /usr/local/bin/
mkdir /googledrive
cd ~/.opam/system/bin
google-drive-ocamlfuse -label googledrive /googledrive

2017
11
19
03:20

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

2017
10
15
15:18

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,

],

2017
09
15
14:29

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