2016年5月12日星期四

Debian/Ubuntu KVM/Xen Auto Install L2TP/IPsec VPN server

Notice:
This installation can't apply for openvz.

Debian (Jessie or Wheezy) & Ubuntu 12.04-16.04
1.(sudo) apt-get update && apt-get upgrade
2.wget https://git.io/vpnsetup -O vpnsetup.sh
nano -w vpnsetup.sh [Replace with your own values: IPSEC_PSK, VPN_USER and VPN_PASSWORD]
sudo sh vpnsetup.sh
 3.Using your iphone/desktop/Android connect VPN.

2015年11月23日星期一

Free shadowsocks Dallas

Open shadowsocks application at Windows,Android or Mac,scan the barcodes below to add new server.
 Cautions:
1.Server ip:134.168.1.199  location:Dallas,Texas
2.If you can't open google or other censored sites,please check your network condition using ping and tracert.

Thanks to IBM Bluemix.

另有洛杉磯,香港等付費節點。

2015年9月7日星期一

rinetd共享本機proxy到LAN

        隨著shadowsocks代碼被迫刪除,目前為止最優秀的proxy不再維護,對於常用電腦上網的用戶,使用proxy不是難事,現在依然有很多可用的軟體,比如lantern,JAP proxy,賽風,甚至很久未更新的proxy還可用,對於更喜愛用手機上網的人可能不太方便,但可以使http proxy在電腦端共享給局域網其他的手機和電腦使用,需要用到的軟體就是rinetd,privoxy等。
        rinetd和privoxy使用端口轉發將本機http proxy共享給局域網其他電腦和手機使用。網上有不少privoxy的配置詳解,但對rinetd卻知之甚少,在這裡講述。以下操作系統為Debian 8.
1.安裝
打開terminal,然後su命令輸入root密碼切換到root賬戶,apt-get update && apt-get install rinetd.
2.配置
打開rinetd配置文件,已安裝gnome的可以用gedit代替nano,
nano /etc/rinetd.conf  
#
# this is the configuration file for rinetd, the internet redirection server
#
# you may specify global allow and deny rules here
# only ip addresses are matched, hostnames cannot be specified here
# the wildcards you may use are * and ?
#
# allow 192.168.2.*
# deny 192.168.2.1?


#
# forwarding rules come here
#
# you may specify allow and deny rules after a specific forwarding rule
# to apply to only that forwarding rule
#
# bindadress    bindport  connectaddress  connectport
0.0.0.0 1234 127.0.0.1 10000

# logging information
logfile /var/log/rinetd.log

# uncomment the following line if you want web-server style logfile format
# logcommon
 
藍色字體為字體內容,0.0.0.0:1234表示監聽本機1234端口,你也可以改成你電腦任意未使用的端口,127.0.0.1:10000意思是要轉發的端口也就是本機所使用的http proxy端口。
保存後重啟rinetd
/etc/init.d/rinetd restart
 
windows系統只需上官網下載安裝,配置與上面大同小異。
 
配置成功即可將其他電腦和手機中設置proxy server和端口即可。 

2015年7月29日星期三

Free shadowsocks server until August 1st 2015

Server location:Frankfurt,German
Server ip:5.231.34.154
Server port:8883
Password:whoisyourbitch
Method:AES-256-CFB
Valid date until August 1st 2015

2015年4月22日星期三

讓mediatomb支持中文及各國語言

mediatomb為linux中較為出色的uPnP/DLNA server,很可惜其中的中文文件名往往顯示為亂碼或空格,這裡有辦法讓mediatomb顯示中文。
以下命令行皆為root用戶。
1.修改config.xml文件:
nano /etc/mediatomb/config.xml
在<scripting script-charset="UTF-8">之前加入以下兩段代碼:
<filesystem-charset>UTF-8</filesystem-charset>
<metadata-charset>UTF-8</metadata-charset>
保存退出。

2.重建db
rm /var/lib/mediatomb/mediatomb.db
注:如mediatomb為初始安裝則無db,跳過此步驟即可。

3.重啟mediatomb
/etc/init.d/mediatomb restart

用局域網任一電腦中的firefox打開http://serverip:49152 (serverip替換為你自己的mediatomb server ip),現在添加中文名的mp3或者視頻則可正常顯示了

2015年3月29日星期日

Install xfce and vncserver on Debian

1.Using putty log in to Debian vps.
2.apt-get update
3.apt-get install xorg
4.apt-get install xfce4
5.apt-get install vnc4server
6.apt-get install iceweasel -y
7.start vncserver with commander:
  vncserver
Type password you're going to use twice.
8.kill vncserver with commander:
  vncserver -kill :1
9.nano /root/.vnc/xstartup
This file must be looked like this:
#!bin/sh
/usr/bin/startxfce4 &
10.restart vncserver with commander:
     vncserver
11.log in to vnc using tightvncviewer with serverip:5901 and type your password you've set in step 7.
Done.

2015年3月22日星期日

Free shadowsocks service from L.A.

8月21日,加密方式已變更為aes-256-cfb.(Method has changed to aes-256-cfb)
警告:如使用BT,Emule,迅雷等P2P下載軟件或者發送垃圾郵件造成VPS被封,本人絕對不會去與ISP協商取回,請各自珍惜。
Warning: P2P downloading and sending spam are forbidden.

Free shadowsocks details:

Server ip:167.160.165.189
Server port:8883
Password: whoisyourbitch
Method:table
Method:aes-256-cfb

注意:本VPS有效期直到2015年10月,如無法連接則是有人使用P2P造成VPS被封,也不要詢問本人如何使用客戶端連接,請自行Google.