分类: VPS

  • Install lighttpd on ubuntu

    sudo apt-get update

    sudo apt-get upgrade

    sudo apt-get install lighttpd

    modify lighttpd configuration ==> sudo nano /etc/lighttpd/lighttpd.conf

    • Disable global dir listing :  server.dir-listing          = “enable”  ==> server.dir-listing          = “disable”
    • Add alias of url:   alias.url = (
                    “/img/”         => “/www/image/”,
                    “/fp/”          => “/www/flowplayer/”,
                    “/Google_I_O/”  => “/usr/share/red5/dist/webapps/root/Google_I_O/”,
                    “/assets/”      => “/usr/share/red5/dist/webapps/root/assets/”,
                    “/download/”    => “/data/download/”,
                    “/dl/”          => “/data/download/”
                    )
    • Enable dir listing for the specified url:  $HTTP[“url”] =~ “^/dl/|^/download/|^/Google_I_O/” {
          dir-listing.activate = “enable”
       }
    • Enable module of mod_flv_streaming

    sudo /usr/sbin/lighty-enable-mod cgi

    sudo /etc/init.d/lighttpd  force-reload

     

  • UnixBench 5.1.2 of CheapVPS Basic by Cripperz Prodigy

    20$/year VPS from Cripperz Prodigy:

     

    The result of UnixBench 5.1.2:    1238.1

    ========================================================================
       BYTE UNIX Benchmarks (Version 5.1.2)

       System: Localhost: GNU/Linux
       OS: GNU/Linux — 2.6.18-238.12.1.el5.028stab091.1 — #1 SMP Wed Jun 1 13:20:2
    5 MSD 2011
       Machine: i686 (unknown)
       Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
       CPU 0: AMD Phenom(tm) II X4 965 Processor (6209.4 bogomips)
              Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT,
    SYSCALL/SYSRET
       CPU 1: AMD Phenom(tm) II X4 965 Processor (6401.2 bogomips)
              Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT,
    SYSCALL/SYSRET
       09:49:14 up  1:37,  1 user,  load average: 0.06, 0.04, 0.01; runlevel 2

    ————————————————————————
    Benchmark Run: Sun Jun 19 2011 09:49:14 – 10:17:15
    2 CPUs in system; running 1 parallel copy of tests

    Dhrystone 2 using register variables       14247935.3 lps   (10.0 s, 7 samples)
    Double-Precision Whetstone                     2522.3 MWIPS (9.9 s, 7 samples)
    Execl Throughput                               2891.6 lps   (30.0 s, 2 samples)
    File Copy 1024 bufsize 2000 maxblocks        666914.8 KBps  (30.0 s, 2 samples)
    File Copy 256 bufsize 500 maxblocks          212719.0 KBps  (30.1 s, 2 samples)
    File Copy 4096 bufsize 8000 maxblocks        935761.0 KBps  (30.0 s, 2 samples)
    Pipe Throughput                             1546190.6 lps   (10.0 s, 7 samples)
    Pipe-based Context Switching                 291698.3 lps   (10.0 s, 7 samples)
    Process Creation                               7359.3 lps   (30.0 s, 2 samples)
    Shell Scripts (1 concurrent)                   4071.1 lpm   (60.0 s, 2 samples)
    Shell Scripts (8 concurrent)                    591.7 lpm   (60.0 s, 2 samples)
    System Call Overhead                        1473204.0 lps   (10.0 s, 7 samples)

    System Benchmarks Index Values               BASELINE       RESULT    INDEX
    Dhrystone 2 using register variables         116700.0   14247935.3   1220.9
    Double-Precision Whetstone                       55.0       2522.3    458.6
    Execl Throughput                                 43.0       2891.6    672.5
    File Copy 1024 bufsize 2000 maxblocks          3960.0     666914.8   1684.1
    File Copy 256 bufsize 500 maxblocks            1655.0     212719.0   1285.3
    File Copy 4096 bufsize 8000 maxblocks          5800.0     935761.0   1613.4
    Pipe Throughput                               12440.0    1546190.6   1242.9
    Pipe-based Context Switching                   4000.0     291698.3    729.2
    Process Creation                                126.0       7359.3    584.1
    Shell Scripts (1 concurrent)                     42.4       4071.1    960.2
    Shell Scripts (8 concurrent)                      6.0        591.7    986.2
    System Call Overhead                          15000.0    1473204.0    982.1
                                                                       ========
    System Benchmarks Index Score                                         964.4

    ————————————————————————
    Benchmark Run: Sun Jun 19 2011 10:17:15 – 10:45:29
    2 CPUs in system; running 2 parallel copies of tests

    Dhrystone 2 using register variables       28325265.0 lps   (10.0 s, 7 samples)
    Double-Precision Whetstone                     5068.7 MWIPS (9.7 s, 7 samples)
    Execl Throughput                               4946.4 lps   (30.0 s, 2 samples)
    File Copy 1024 bufsize 2000 maxblocks        277714.0 KBps  (30.0 s, 2 samples)
    File Copy 256 bufsize 500 maxblocks          103640.2 KBps  (30.0 s, 2 samples)
    File Copy 4096 bufsize 8000 maxblocks        409976.7 KBps  (30.0 s, 2 samples)
    Pipe Throughput                             2998921.2 lps   (10.0 s, 7 samples)
    Pipe-based Context Switching                 574050.8 lps   (10.0 s, 7 samples)
    Process Creation                              13024.9 lps   (30.0 s, 2 samples)
    Shell Scripts (1 concurrent)                   7667.9 lpm   (60.0 s, 2 samples)
    Shell Scripts (8 concurrent)                   1012.3 lpm   (60.1 s, 2 samples)
    System Call Overhead                        2233174.8 lps   (10.0 s, 7 samples)

    System Benchmarks Index Values               BASELINE       RESULT    INDEX
    Dhrystone 2 using register variables         116700.0   28325265.0   2427.2
    Double-Precision Whetstone                       55.0       5068.7    921.6
    Execl Throughput                                 43.0       4946.4   1150.3
    File Copy 1024 bufsize 2000 maxblocks          3960.0     277714.0    701.3
    File Copy 256 bufsize 500 maxblocks            1655.0     103640.2    626.2
    File Copy 4096 bufsize 8000 maxblocks          5800.0     409976.7    706.9
    Pipe Throughput                               12440.0    2998921.2   2410.7
    Pipe-based Context Switching                   4000.0     574050.8   1435.1
    Process Creation                                126.0      13024.9   1033.7
    Shell Scripts (1 concurrent)                     42.4       7667.9   1808.5
    Shell Scripts (8 concurrent)                      6.0       1012.3   1687.2
    System Call Overhead                          15000.0    2233174.8   1488.8
                                                                       ========
    System Benchmarks Index Score                                        1238.1

    lzheng@Localhost:~/unixbench-5.1.2$

     

     

     

  • Cripper Prodigy Cheap VPS 20$/year

    http://client.cripperz.sg/clientarea.php?action=invoices

    http://vps.cripperz.sg:5353/

     

     

     

  • VPS ubuntu 10.10 config (9) *** PPTP VPN***

    # Install

    sudo apt-get update

    sudo apt-get upgrade

    sudo apt-get install pptpd

     

    #Config DNS

    sudo nano /etc/ppp/pptpd-options,  and enter the following:

      ms-dns 8.8.8.8

      ms-dsn 8.8.4.4

     

    #Config Password:

    sudo nano /etc/ppp/chap-secrets

        acount [TAB] pptpd [TAB] password [TAB] IP addresses

     

    # Config IP

    sudo nano /etc/pptpd.conf,   and enter the following:

    localip 10.168.10.1  
    remoteip 10.168.10.10-20



    # Config IP forward and IP Nat

    net.ipv4.ip_forward=1
    sudo iptables -t nat -A POSTROUTING -s 10.168.10.0/24 -o eth0 -j MASQUERADE

  • VPS ubuntu 10.10 config (8) *** OpenVPN***

    sudo apt-get update

    sudo apt-get upgrade

    sudo apt-get install openvpn

     

    #Generage certification and key

    cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0   ~/

    cd ~/2.0

    source vars
    ./clean-all
    ./build-ca
    ./build-key-server <servername>
    ./build-key <clientname>
    ./build-dh

     

    # add extra key

    source vars
    ./build-key-server <servername>
    or
    ./build-key <clientname>

     

    # Config OpenVPN listen on port 443, and share port 443 with SSH

     

    Example of config file:

    example_vps_etc.7z

     

    Reference:

    http://forum.ubuntu.org.cn/viewtopic.php?p=532825

     

     

     

  • YardVPS Tree1 UnixBench Result, (Atlanta,GA)

    XEN 512M RAM/15GB Disk/1.5T bandwidth,   $6.36/month

    Unixbench 5.1.2 with Disk IO, on Ubuntu 10.10

    Result:   605.9

     

     

     

    ******************************************************************************

     #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
       #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
       #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
       #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
       #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
        ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

       Version 5.1.2                      Based on the Byte Magazine Unix Benchmark

       Multi-CPU version                  Version 5 revisions by Ian Smith,
                                          Sunnyvale, CA, USA
       December 22, 2007                  johantheghost at yahoo period com

    1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

    1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

    1 x Execl Throughput  1 2 3

    1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

    1 x File Copy 256 bufsize 500 maxblocks  1 2 3

    1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

    1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

    1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

    1 x Process Creation  1 2 3

    1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

    1 x Shell Scripts (1 concurrent)  1 2 3

    1 x Shell Scripts (8 concurrent)  1 2 3

    ========================================================================
       BYTE UNIX Benchmarks (Version 5.1.2)

       System: vps2.zhenglei.net: GNU/Linux
       OS: GNU/Linux — 2.6.32-305-ec2 — #9-Ubuntu SMP Thu Apr 15 04:14:01 UTC 2010
       Machine: i686 (unknown)
       Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
       CPU 0: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz (4809.1 bogomips)
              Hyper-Threading, MMX, Physical Address Ext, SYSENTER/SYSEXIT
       20:00:12 up 2 days, 14:12,  1 user,  load average: 0.00, 0.03, 0.00; runlevel
     2

    ————————————————————————
    Benchmark Run: Sun May 29 2011 20:00:12 – 20:28:13
    1 CPU in system; running 1 parallel copy of tests

    Dhrystone 2 using register variables       14547890.3 lps   (10.0 s, 7 samples)
    Double-Precision Whetstone                     2362.0 MWIPS (10.3 s, 7 samples)
    Execl Throughput                               1812.2 lps   (29.5 s, 2 samples)
    File Copy 1024 bufsize 2000 maxblocks        402375.7 KBps  (30.0 s, 2 samples)
    File Copy 256 bufsize 500 maxblocks          119871.9 KBps  (30.0 s, 2 samples)
    File Copy 4096 bufsize 8000 maxblocks       1021490.7 KBps  (30.0 s, 2 samples)
    Pipe Throughput                              695109.2 lps   (10.0 s, 7 samples)
    Pipe-based Context Switching                  88264.4 lps   (10.0 s, 7 samples)
    Process Creation                               3806.3 lps   (30.0 s, 2 samples)
    Shell Scripts (1 concurrent)                   3238.6 lpm   (60.0 s, 2 samples)
    Shell Scripts (8 concurrent)                    436.8 lpm   (60.0 s, 2 samples)
    System Call Overhead                         606037.9 lps   (10.0 s, 7 samples)

    System Benchmarks Index Values               BASELINE       RESULT    INDEX
    Dhrystone 2 using register variables         116700.0   14547890.3   1246.6
    Double-Precision Whetstone                       55.0       2362.0    429.4
    Execl Throughput                                 43.0       1812.2    421.4
    File Copy 1024 bufsize 2000 maxblocks          3960.0     402375.7   1016.1
    File Copy 256 bufsize 500 maxblocks            1655.0     119871.9    724.3
    File Copy 4096 bufsize 8000 maxblocks          5800.0    1021490.7   1761.2
    Pipe Throughput                               12440.0     695109.2    558.8
    Pipe-based Context Switching                   4000.0      88264.4    220.7
    Process Creation                                126.0       3806.3    302.1
    Shell Scripts (1 concurrent)                     42.4       3238.6    763.8
    Shell Scripts (8 concurrent)                      6.0        436.8    728.0
    System Call Overhead                          15000.0     606037.9    404.0
                                                                       ========
    System Benchmarks Index Score                                         605.9

    ******************************************************************************

     

     

     

    Plans
    TREE 1
           
    TREE 6
    Dedicated RAM
    512 MB
           
    4 GB
    SWAP
    1 GB
           
    2 GB
    CPU Cores
    1
           
    2
    Disk Space
    15 GB
           
    125 GB
    RAID10 w/ BBU
    Yes
             
    Setup Fee
    FREE
           
    FREE
    Bandwidth
    1500 GB
           
    5000 GB
    Port Speed
    100 Mbit
           
    100 Mbit
    IPv4
    1
           
    1
    Native IPv6
    Enabled
           
    Enabled
    Uptime
    99.9%
           
    99.9%
    Instant Setup
    Yes
           
    Yes
    FREE
           
    FREE
    Guard Dog
    FREE
           
    FREE
    PPTP
    Yes
           
    Yes
    Price
    $7.95/Month
           
    $51.95/Month

     

     

  • YardVPS Tree1 UnixBench Result, Walnut,CA

    XEN, 512M RAM,1G SWAP,15G Disk, 7.95$/month

    UnixBench 5.1.2  with DISK IO:
    Rssult: 591.4

    ========================================================================
    BYTE UNIX Benchmarks (Version 5.1.2)

    System: vps.xxxxxx.net: GNU/Linux
    OS: GNU/Linux — 2.6.32-305-ec2 — #9-Ubuntu SMP Thu Apr 15 04:14:01 UTC 2010
    Machine: i686 (unknown)
    Language: en_US.utf8 (charmap=”UTF-8″, collate=”UTF-8″)
    CPU 0: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz (4802.0 bogomips)
    Hyper-Threading, MMX, Physical Address Ext, SYSENTER/SYSEXIT
    23:51:42 up 4 days, 17:52, 1 user, load average: 0.07, 0.45, 0.55; runlevel
    2

    ————————————————————————
    Benchmark Run: Fri May 27 2011 23:51:42 – 00:19:41
    1 CPU in system; running 1 parallel copy of tests

    Dhrystone 2 using register variables 13070648.6 lps (10.0 s, 7 samples)
    Double-Precision Whetstone 2337.0 MWIPS (10.2 s, 7 samples)
    Execl Throughput 1895.9 lps (29.9 s, 2 samples)
    File Copy 1024 bufsize 2000 maxblocks 455993.4 KBps (30.0 s, 2 samples)
    File Copy 256 bufsize 500 maxblocks 116549.9 KBps (30.0 s, 2 samples)
    File Copy 4096 bufsize 8000 maxblocks 1091535.5 KBps (30.0 s, 2 samples)
    Pipe Throughput 671284.9 lps (10.0 s, 7 samples)
    Pipe-based Context Switching 86750.3 lps (10.0 s, 7 samples)
    Process Creation 3755.8 lps (30.0 s, 2 samples)
    Shell Scripts (1 concurrent) 3035.7 lpm (60.0 s, 2 samples)
    Shell Scripts (8 concurrent) 353.7 lpm (60.1 s, 2 samples)
    System Call Overhead 581924.7 lps (10.0 s, 7 samples)

    System Benchmarks Index Values BASELINE RESULT INDEX
    Dhrystone 2 using register variables 116700.0 13070648.6 1120.0
    Double-Precision Whetstone 55.0 2337.0 424.9
    Execl Throughput 43.0 1895.9 440.9
    File Copy 1024 bufsize 2000 maxblocks 3960.0 455993.4 1151.5
    File Copy 256 bufsize 500 maxblocks 1655.0 116549.9 704.2
    File Copy 4096 bufsize 8000 maxblocks 5800.0 1091535.5 1882.0
    Pipe Throughput 12440.0 671284.9 539.6
    Pipe-based Context Switching 4000.0 86750.3 216.9
    Process Creation 126.0 3755.8 298.1
    Shell Scripts (1 concurrent) 42.4 3035.7 716.0
    Shell Scripts (8 concurrent) 6.0 353.7 589.6
    System Call Overhead 15000.0 581924.7 387.9
    ========
    System Benchmarks Index Score 591.4

  • VPS ubuntu 10.10 config (7) *** UnixBench***

    # PRE-INSTALL

    sudo apt-get install libx11-dev

    sudo apt-get install libxext-dev

    sudo apt-get install libgl1-mesa-dev

     

    # INSTALL

    wget http://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gz

    tar xvfz unixbench-5.1.2.tar.gz

    cd unixbench-5.1.2

     

    # TEST

    ./Run

     

  • VPS ubuntu 10.10 config (5) *** ftp server ***

    # install

    sudo apt-get install vsftpd

    # Enable ftp write by change the directiv from #write_enable=YES  To write_enable=YES

    sudo nano /etc/vsftpd.conf

    # Launch

    service vsftpd restart

  • youtube video download via VPS

    # In VPS/ubuntu:

    sudo apt-get install youtube-dl

    sudo youtube-dl -U

    #repeat until it end with “Updated to 20xx/yy/zz”

    sudo youtube-dl -U 

    #Download youtube video:

    youtube-dl -t VIDEO_URL

    # Get Help

    youtube-dl -h

     

    Link:

      http://rg3.github.com/youtube-dl/

     

    youtube format:

      http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs