PPTP一键安装脚本 for Ubuntu Xen VPS

最近avantehosting促销,推出了半年付6刀的Xen 128 VPS。
正好手头缺个VPS折腾点小东西,就入手了。

首先的需求是弄个VPN,于是根据别人的脚本改了个适合Xen VPS的一键安装脚本
使用方法:

wget https://gist.github.com/raw/3110375/70544548700d82e527fa716f28319940964c8a30/pptpinstall.sh -O pptpinstall.sh
chmod +x pptpinstall.sh
./pptpinstall.sh

多谈一下avantehosting的vps,如果图便宜,可以考虑买一个。
机房在佛罗里达,ping值在300左右。62G的月流量不算大,但也够用。
开通的时候,遇到些小问题。发ticket后大概12小时解决了。

附UnixBench跑分结果:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: GNU/Linux
OS: GNU/Linux -- 3.0.0-12-server -- #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: Intel(R) Xeon(R) CPU E31230 @ 3.20GHz (6385.5 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
05:02:08 up 1:13, 1 user, load average: 0.74, 0.39, 0.47; runlevel 2
------------------------------------------------------------------------
Benchmark Run: Sat Jul 14 2012 05:02:08 - 05:30:20
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 23631847.0 lps (10.0 s, 7 samples)
Double-Precision Whetstone 2683.8 MWIPS (9.9 s, 7 samples)
Execl Throughput 1202.5 lps (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 264524.8 KBps (30.1 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 53671.6 KBps (30.1 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 908392.9 KBps (30.1 s, 2 samples)
Pipe Throughput 455343.1 lps (10.0 s, 7 samples)
Pipe-based Context Switching 59319.0 lps (10.0 s, 7 samples)
Process Creation 2945.3 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 2367.5 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 333.9 lpm (60.1 s, 2 samples)
System Call Overhead 429520.5 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 23631847.0 2025.0
Double-Precision Whetstone 55.0 2683.8 488.0
Execl Throughput 43.0 1202.5 279.6
File Copy 1024 bufsize 2000 maxblocks 3960.0 264524.8 668.0
File Copy 256 bufsize 500 maxblocks 1655.0 53671.6 324.3
File Copy 4096 bufsize 8000 maxblocks 5800.0 908392.9 1566.2
Pipe Throughput 12440.0 455343.1 366.0
Pipe-based Context Switching 4000.0 59319.0 148.3
Process Creation 126.0 2945.3 233.8
Shell Scripts (1 concurrent) 42.4 2367.5 558.4
Shell Scripts (8 concurrent) 6.0 333.9 556.5
System Call Overhead 15000.0 429520.5 286.3
========
System Benchmarks Index Score 466.4

附小广告一则:唱吧iOS团队诚招iOS工程师,推荐成功即奖励6000元现金或iPhone 6一部,详见这篇blog