色碼擷取器 - Gpick安裝教學(失敗版)

官網:https://code.google.com/p/gpick/
可使用 yum 安裝,來源是EPEL,但是版本當然不是最新的。
以下是安裝最新版本的步驟。

下載gpick套件,但是格式為deb檔,因此要轉換成CentOS可以安裝的格式,轉換工具為alien

# mkdir -p /data/src
# wget https://gpick.googlecode.com/files/gpick_0.2.5-1_i386.deb
# wget http://ftp.de.debian.org/debian/pool/main/a/alien/alien_8.90.tar.gz
# tar zxf alien_8.90.tar.gz
# cd alien
# perl Makefile.PL
  Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5
  /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at Makefile.PL line 2.
  BEGIN failed--compilation aborted at Makefile.PL line 2. //缺少 ExtUtils::MakeMaker 模組,透過CPAN安裝即可。
# perl Makefile.PL
# make && make install
# yum install -y rpm-build
# cd ..

# alien -r gpick_0.2.5-1_i386.deb
  Warning: Skipping conversion of scripts in package gpick: postinst postrm
  Warning: Use the --scripts parameter to include the scripts.
  gpick-0.2.5-2.i386.rpm generated

# rpm -ivh gpick-0.2.5-2.i386.rpm
  error: Failed dependencies:
    liblua5.2.so.0 is needed by gpick-0.2.5-2.i386
    libstdc++.so.6(GLIBCXX_3.4.15) is needed by gpick-0.2.5-2.i386
註:deb轉換rpm參考文獻

安裝 liblua5.2.so.0

# wget http://mirrors.kernel.org/ubuntu/pool/main/l/lua5.2/liblua5.2-0_5.2.2-1_i386.deb
# alien -r liblua5.2-0_5.2.2-1_i386.deb
# rpm -ivh liblua5.2-0-5.2.2-2.i386.rpm

查詢 GLIBCXX 版本

# find / -name libstdc++.so.6
  /usr/lib/libstdc++.so.6
# strings /usr/lib/libstdc++.so.6 | grep GLIBCXX
  ...略
  GLIBCXX_3.4.11
  GLIBCXX_3.4.12
  GLIBCXX_3.4.13 <==很明顯沒有我們需要的版本GLIBCXX_3.4.15
  GLIBCXX_FORCE_NEW
  GLIBCXX_DEBUG_MESSAGE_LENGTH

# rpm -qf /usr/lib/libstdc++.so.6 //找尋libstdc++.so.6是哪一個套件提供的(方法2:yum whatprovides libstdc++.so.6)
  libstdc++-4.4.7-4.el6.i686

# rpm -q gcc
  gcc-4.4.7-4.el6.i686 //目前gcc版本

# rpm -q centos-release
  centos-release-6-5.el6.centos.11.1.i686 //目前作業系統版本


安裝 libstdc++.so.6(GLIBCXX_3.4.15)

# wget ftp://ftp.univie.ac.at/systems/linux/fedora/updates/20/x86_64/libstdc++-4.8.2-7.fc20.i686.rpm
# rpm -ivh libstdc++-4.8.2-7.fc20.i686.rpm
# rpm2cpio libstdc++-4.8.2-7.fc20.i686.rpm |cpio -idmv
# pwd
  /root/GLIBC/usr/lib
# ll
  lrwxrwxrwx. 1 root root 19 Mar 24 01:20 libstdc++.so.6 -> libstdc++.so.6.0.19
  -rwxr-xr-x. 1 root root 938796 Dec 12 11:26 libstdc++.so.6.0.19
# rm /usr/lib/libstdc++.so.6
# ln -s /usr/lib/libstdc++.so.6.0.19 /usr/lib/libstdc++.so.6
# strings /usr/lib/libstdc++.so.6 | grep GLIBCXX
  ...略
  GLIBCXX_3.4.14
  GLIBCXX_3.4.15
  GLIBCXX_3.4.16
  GLIBCXX_3.4.17
  GLIBCXX_3.4.18
  GLIBCXX_3.4.19
# rpm -ivh gpick-0.2.5-2.i386.rpm
  error: Failed dependencies: //還是失敗
    libstdc++.so.6(GLIBCXX_3.4.15) is needed by gpick-0.2.5-2.i386

升級GLIBC

# rpm -qi glibc | grep "Version"
  Version : 2.12   Vendor: CentOS
# wget ftp://195.220.108.108/linux/fedora/linux/development/rawhide/i386/os/Packages/g/glibc-common-2.19.90-7.fc21.i686.rpm
# wget ftp://195.220.108.108/linux/fedora/linux/development/rawhide/i386/os/Packages/g/glibc-headers-2.19.90-7.fc21.i686.rpm
# wget ftp://195.220.108.108/linux/fedora/linux/development/rawhide/i386/os/Packages/g/glibc-devel-2.19.90-7.fc21.i686.rpm
# wget ftp://195.220.108.108/linux/fedora/linux/development/rawhide/i386/os/Packages/g/glibc-2.19.90-7.fc21.
i686.rpm
# rpm -Uvh --aid --nodeps glibc-devel-2.19.90-7.fc21.i686.rpm
# rpm -Uvh --aid --nodeps glibc-headers-2.19.90-7.fc21.i686.rpm
# rpm -Uvh --aid --nodeps glibc-2.19.90-7.fc21.i686.rpm
# rpm -Uvh --aid --nodeps glibc-common-2.19.90-7.fc21.i686.rpm
# rpm -qi glibc | grep "Version"
  Version : 2.19.90   Vendor: Fedora Project
# rpm -ivh gpick-0.2.5-2.i386.rpm
  error: Failed dependencies: //還是失敗
    libstdc++.so.6(GLIBCXX_3.4.15) is needed by gpick-0.2.5-2.i386

我想是我目前的功力還不夠解決"libstdc++.so.6(GLIBCXX_3.4.15) is needed by gpick-0.2.5-2.i386"這個問題,以後有時間再來奮戰吧!


升級GCC之困難重重版

升級GCC步驟:gmp->mpfr->mpc->GCC
環境 VM:VMware Player 5.0
OS:CentOS(6.5 2.6.32-431.el6.i686)
GCC:4.4.7 --> 4.8.2

GCC載點:ftp://gnu.mirror.iweb.com/gcc/
gmp官網:http://gmplib.org/
mpfr官網:http://www.mpfr.org/
mpc載點:ftp://ftp.gnu.org/gnu/mpc/

安裝gmp、mpfr、mpc

# wget https://gmplib.org/download/gmp/gmp-5.1.3.tar.lz
# tar xf gmp-5.1.3.tar.lz
# yum install -y lzip
# cd /data/src/gmp-5.1.3
# ./configure --prefix=/data/src/gmp-5.1.3
# make -j && make check && make install

# wget http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.gz
# tar zxf mpfr-3.1.2.tar.gz
# cd /data/src/mpfr-3.1.2
# ./configure --prefix=/data/src/mpfr-3.1.2 --with-gmp=/data/src/gmp-5.1.3
# make -j && make check && make install

# wget ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.2.tar.gz
# tar zxf mpc-1.0.2.tar.gz
# cd mpc-1.0.2
# ./configure --prefix=/data/src/mpc-1.0.2 --with-mpfr=/data/src/mpfr-3.1.2 --with-gmp=/data/src/gmp-5.1.3
# make -j && make check && make install

# vim /etc/ld.so.conf
  /data/src/gmp-5.1.3/lib
  /data/src/mpfr-3.1.2/lib
  /data/src/mpc-1.0.2/lib
# ldconfig

//環境變數LD_LIBRARY_PATH及LD_RUN_PATH設定,避免GCC編譯時發生錯誤。
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/src/mpc-1.0.2/lib:/data/src/mpc-1.0.2/lib:/data/src/mpc-1.0.2/lib
# export LD_RUN_PATH=$LD_LIBRARY_PATH:/data/src/mpc-1.0.2/lib:/data/src/mpc-1.0.2/lib:/data/src/mpc-1.0.2/lib

安裝GCC # yum install -y gcc-c++
# curl -R -O ftp://gnu.mirror.iweb.com/gcc/gcc-4.8.2/gcc-4.8.2.tar.gz
# mkdir build_gcc482
# cd build_gcc482
# ../gcc-4.8.2/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib --with-gmp=/data/src/gmp-5.1.3 --with-mpfr=/data/src/mpfr-3.1.2 --with-mpc=/data/src/mpc-1.0.1
  ...略
  checking for the correct version of gmp.h... yes
  checking for the correct version of mpfr.h... yes
  checking for the correct version of mpc.h... no
  configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
  //找不到mpc.h的錯誤訊息,原來是我路徑打錯了。

  Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
  their locations. Source code for these libraries can be found at
  their respective hosting sites as well as at
  ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
  http://gcc.gnu.org/install/prerequisites.html for additional info. If
  you obtained GMP, MPFR and/or MPC from a vendor distribution package,
  make sure that you have installed both the libraries and the header
  files. They may be located in separate packages.
# ../gcc-4.8.2/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib --with-gmp=/data/src/gmp-5.1.3 --with-mpfr=/data/src/mpfr-3.1.2 --with-mpc=/data/src/mpc-1.0.2
# make && make install
# gcc --version   gcc (GCC) 4.8.2
  Copyright (C) 2013 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions. There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

測試

# vim helloworld.c
  #include
  int main(void){
  printf("hello world. \n");
  return 0;
  }
# gcc helloworld.c
# ls
  a.out helloworld.c
# ./a.out
  hello world.

升級GCC之一帆風順版

升級GCC步驟:gmp->mpfr->mpc->GCC
環境
VM:VMware Player 5.0
OS:CentOS(6.5 2.6.32-431.el6.i686)
GCC:4.4.7 --> 4.8.2

GCC來源:載點

安裝步驟

# gcc --version
  gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
  Copyright (C) 2010 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions. There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# yum install -y gcc-c++
# mkdir -p /data/src
# cd /data/src
# curl -R -O ftp://gnu.mirror.iweb.com/gcc/gcc-4.8.2/gcc-4.8.2.tar.gz
# tar zxf gcc-4.8.2.tar.gz
# cd gcc-4.8.2

# ./contrib/download_prerequisites //安裝gmp、mpfr、mpc
# cd ..

# mkdir build_gcc482
# cd build_gcc482
# ../gcc-4.8.2/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
# make
# make install

# gcc --version
  gcc (GCC) 4.8.2
  Copyright (C) 2013 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions. There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

測試

# vim helloworld.c
  #include
  int main(void){
  printf("hello world. \n");
  return 0;
  }
# gcc helloworld.c
# ls
  a.out helloworld.c
# ./a.out
  hello world.

重置MySQL管理者密碼

忘記root密碼怎麼辦?以下的方法幫你重新設定密碼。 # mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

# service mysqld stop //停止服務
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking& //在安全模式下執行
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('輸入新密碼')where USER='root';
      Query OK, 0 rows affected (0.01 sec)
      Rows matched: 3 Changed: 0 Warnings: 0

mysql> FLUSH PRIVILEGES;
      Query OK, 0 rows affected (0.00 sec)

mysql> quit
      Bye

# mysql -u root -p
Enter password:
mysql>

lua安裝錯誤訊息解決方法

錯誤訊息:
lua.c:67:31: error: readline/readline.h: No such file or directory
lua.c:68:30: error: readline/history.h: No such file or directory

#yum install -y readline-devel ncurses-devel

wget及curl指令下載檔案

wget用法

# wget -P /root/Desktop ftp://gnu.mirror.iweb.com/gcc/gcc-4.8.2/gcc-4.8.2.tar.gz //參數-p:儲存到指定的目錄
  --2014-03-20 22:30:11-- ftp://gnu.mirror.iweb.com/gcc/gcc-4.8.2/gcc-4.8.2.tar.gz
    => “/root/Desktop/gcc-4.8.2.tar.gz”
  Resolving gnu.mirror.iweb.com... 70.38.0.144, 2607:f748:10:12::6:1
  Connecting to gnu.mirror.iweb.com|70.38.0.144|:21... connected.
  Logging in as anonymous ... Logged in!
  ==> SYST ... done. ==> PWD ... done.
  ==> TYPE I ... done. ==> CWD (1) /gcc/gcc-4.8.2 ... done.
  ==> SIZE gcc-4.8.2.tar.gz ... 110513936
  ==> PASV ... done. ==> RETR gcc-4.8.2.tar.gz ... done.
  Length: 110513936 (105M) (unauthoritative)

28% [================>                ] 31,242,540 297K/s eta 4m 56s

curl用法

# curl -R -O ftp://gnu.mirror.iweb.com/gcc/gcc-4.8.2/gcc-4.8.2.tar.gz
 % Total % Received % Xferd Average Speed Time Time Time Current
                        Dload Upload Total Spent Left Speed
 3 105M 3 3310k   0   0  191k 0 0:09:23 0:00:17 0:09:06 312k
參數-O:使用伺服器上的檔案名,存在本地。
參數-R:在本地生成文件時,使用遠端的時間郵戳(timestamp)。

防制網頁主機目錄遊走(Directory Traversal)

這一篇內容為預防像是X通X收網站發生目錄遊走(Directory Traversal)之資安事件,對Linux熟的人就知道 /etc/passwd 及 /etc/shadow 是很重要的系統檔案,如果有心人士利用這個漏洞拿到這 2 個檔案,你的主機就會被別人完全控制。

利用檢測工具DotDotPwn檢查主機是否有目錄遊走之弱點,安裝此工具前,必須先確認有安裝Perl(5.8 或 5.10)、Perl modules(HTTP::Lite、Net::FTP、TFTP、Time::HiRes、Socket、IO::Socket、Getopt::Std、Switch)、Nmap。
# perl -v
  This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
  ....略
# rpm -qa nmap
  nmap-5.51-3.el6.i686

安裝 Perl Modules 之前,要先安裝 CPANPLUS,CPANPLUS 是一個能夠幫你輕鬆安裝 CPAN 模組的工具,CPANPLUS 的細部設定可以參考我的文章Perlbrew安裝教學

# yum install -y perl-CPANPLUS gcc-c++
# instmodsh
  Available commands are:
     l - List all installed modules
     m - Select a module
    q - Quit the program
cmd? l
  Installed modules are:
   Perl //很明顯並沒有我們要的模組
cmd?q
# cpanp
CPAN Terminal> i Net::FTP
Do you want to modify/update your configuration (y|n) ? [no] n
CPAN Terminal> i TFTP
CPAN Terminal> i Time::HiRes
CPAN Terminal> i Socket
CPAN Terminal> i IO::Socket
CPAN Terminal> i Switch
CPAN Terminal> i HTTP::Lite
Error installing 'HTTP::Lite'
註:為什麼不用安裝 Getopt::Std 模組?因為已經內建,若版本要升級則必須升級perl版本。

HTTP::Lite模組用 CPANPLUS 安裝失敗,改用 CPAN 安裝。

# yum install -y perl-CPAN
# cpan
cpan[1]> install HTTP::Lite
cpan[2]> q
# instmodsh
  Available commands are:
     l - List all installed modules
     m - Select a module
    q - Quit the program
cmd? l
  Installed modules are:
  Perl
  HTTP::Lite
  Net
  Switch
  TFTP
  Time::HiRes
cmd?q

安裝DotDotPwn

# mkdir -p /data/src/
# cd /data/src/
# wget http://www.brainoverflow.org/code/dotdotpwn-v3.0.tar.gz
# tar zxf dotdotpwn-v3.0.tar.gz

進行弱點掃瞄

# ./dotdotpwn.pl -m http -h localhost -d 1 //參數d:Deep of traversals (e.g. deepness 3 equals to ../../../; default: 6)

掃瞄結果:因為掃瞄深度我只設定 1 層(預設是 6),所以只花費 12 分鐘左右。


查看記錄檔

# pwd
  /data/src/dotdotpwn-v3.0/Reports
# ll
  total 4
  -rw-r--r--. 1 root root 341 Mar 19 23:25 localhost_03-19-2014_23-13.txt
# cat localhost_03-19-2014_23-13.txt

  [+] Date and Time: 03-19-2014 23:13:08

  [========== TARGET INFORMATION ==========]
  [+] Hostname: localhost
  [+] Protocol: http
  [+] Port: 80

  [=========== TRAVERSAL ENGINE ===========]
  [+] Traversal Engine DONE ! - Total traversal tests created: 2440

  [+] Fuzz testing finished after 12.33 minutes (740 seconds)
  [+] Total Traversals found: 0

使用 http-url 模組

# ./dotdotpwn.pl -m http-url -u http://(IP or Hostname)/TRAVERSAL -O -k "root:" -r webmin.txt

Prelbrew安裝教學

升級 perl 版本時,剛好瞄到這個Perlbrew官網,說不定以後會用到就順便來安裝看看,Perlbrew 可以幫你安裝及管理多種Perl版本。

環境:
VM:VMware Player 5.0
OS:CentOS 6.5(2.6.32-431.el6.i686)
gcc-4.4.7-4
perl-5.10.1

安裝必要套件:gcc-c++、perl-CPANPLUS

# yum install -y gcc-c++ perl-CPANPLUS

CPANPLUS 是一個能夠幫你輕鬆安裝 CPAN 模組的工具,請依下列順序安裝。

CPANPLUS::Dist::Build  //安裝完後要重啟 CPANPLUS 才會生效
YAML
MLDBM
version
Test::Pod
Package::Generator
File::ReadBackwards
PAR::Dist
Archive::Tar
IO::Zlib
Data::OptList
Test::Fatal
Test::Requires
Module::Implementation
Package::Stash
Test::Spec
Test::Deep
Test::Trap
Data::Dump
ExtUtils::Constant
:若模組安裝失敗可能與目前perl的版本有關,可至CPAN Testers Matrix查詢。

範例:除了CPANPLUS::Dist::Build安裝完後要重啟CPANPLUS以外,其餘模組可以用參數i一直安裝。 # cpanp
CPAN Terminal> i CPANPLUS::Dist::Build
  Installing CPANPLUS::Dist::Build (0.76)

  Module 'CPANPLUS::Dist::Build' requires 'ExtUtils::MakeMaker' to be installed

  If you don't wish to see this question anymore
  you can disable it by entering the following commands on the prompt:
   's conf prereqs 1; s save'

   1> Yes
   2> No
   3> Yes to all (for this module)
   4> No to all (for this module)

  Should I install this module? [1]: 3 //選3安裝所有相關的模組,如果不想每次都被問,可設定預設值,請參照設定1。
  ...安裝中
  Module 'CPANPLUS::Dist::Build' installed successfully
  No errors installing all modules
CPAN Terminal> q //離開CPANPLUS
#
# instmodsh //查詢已安裝模組
  Available commands are:
     l - List all installed modules
     m - Select a module
     q - Quit the program
cmd? l
   Archive::Tar
   CPAN::Perl::Releases
   CPANPLUS::Dist::Build
  ...略
cmd? q
#

透過CPANPLUS安裝及初始化Perlbrew

CPAN Terminal> i App::perlbrew
  ...安裝中
  Module 'App::perlbrew' installed successfully
  No errors installing all modules
CPAN Terminal> q

Exiting CPANPLUS shell
# perlbrew init
  perlbrew root (~/perl5/perlbrew) is initialized.

  Append the following piece of code to the end of your ~/.bash_profile and start a
  new shell, perlbrew should be up and fully functional from there:

     source ~/perl5/perlbrew/etc/bashrc

  Simply run `perlbrew` for usage details.

  Happy brewing!

# source ~/perl5/perlbrew/etc/bashrc

使用下列指令可以查看現有哪些版本的 Perl 可以供安裝,所以還不能直接使用。

# perlbrew available
  perl-5.19.9
  perl-5.18.2
  perl-5.16.3
  perl-5.14.4
  perl-5.12.5
  perl-5.10.1
  perl-5.8.9
  perl-5.6.2
  perl5.005_04
  perl5.004_05
  perl5.003_07

安裝 perl-5.14.4

# perlbrew install perl-5.14.4
  Fetching perl 5.14.4 as /root/perl5/perlbrew/dists/perl-5.14.4.tar.bz2
  Download http://www.cpan.org/src/5.0/perl-5.14.4.tar.bz2 to /root/perl5/perlbrew/dists/perl-5.14.4.tar.bz2
  Installing /root/perl5/perlbrew/build/perl-5.14.4 into ~/perl5/perlbrew/perls/perl-5.14.4

  This could take a while. You can run the following command on another shell to track the status:

    tail -f ~/perl5/perlbrew/build.perl-5.14.4.log  //觀察安裝過程

  perl-5.14.4 is successfully installed.

# perlbrew list  //查詢已安裝版本
  perl-5.14.4
# perl -v
  This is perl, v5.10.1 (*) built for i386-linux-thread-multi  //系統預設版本
# perlbrew switch perl-5.14.4
# perl -v
  This is perl 5, version 14, subversion 4 (v5.14.4) built for i686-linux  //切換後目前系統版本
# perlbrew off  //回到系統預設版本
注意!若直接從5.10.1升級至最新版本會失敗。



設定1

CPAN Terminal> s conf prereqs 3

  Key 'prereqs' was set to '3'
CPAN Terminal> s save

  Configuration successfully saved to CPANPLUS::Config::User      (/root/.cpanplus/lib/CPANPLUS/Config/User.pm)

模組來源設定

# cpanp
CPAN Terminal> s reconfigure

=================> MAIN MENU <=================

Welcome to the CPANPLUS configuration. Please select which
parts you wish to configure

Defaults are taken from your current configuration.
If you would save now, your settings would be written to:

  CPANPLUS::Config::User

  1> Select Configuration file
  2> Setup CLI Programs
  3> Setup CPANPLUS Home directory
  4> Setup FTP/Email settings
  5> Setup basic preferences
  6> Setup installer settings
  7> Select mirrors
  8> Edit configuration file
  9> Save & exit
  10> Quit without saving

Section to configure: [1]: 7

I see you already have some hosts selected:

ftp://ftp.cpan.org/pub/CPAN/
http://www.cpan.org/
ftp://ftp.nl.uu.net/pub/CPAN/
ftp://cpan.valueclick.com/pub/CPAN/
ftp://ftp.funet.fi/pub/languages/perl/CPAN/

If you'd like to stick with your current settings, just select 'Yes'.
Otherwise, select 'No' and you can reconfigure your hosts

Would you like to keep your current hosts? [Y/n]: n 是否保留原設定

Now we need to know where your favorite CPAN sites are located. Make a
list of a few sites (just in case the first on the array won't work).

If you are mirroring CPAN to your local workstation, specify a file:
URI by picking the CUSTOM option.

Otherwise, let us fetch the official CPAN mirror list and you can pick
the mirror that suits you best from a list by using the MIRROR option;
First, pick a nearby continent and country. Then, you will be presented
with a list of URLs of CPAN mirrors in the country you selected. Select
one or more of those URLs.

Note, the latter option requires a working net connection.

You can select VIEW to see your current selection and QUIT when you are done.

  1> Mirror
  2> Custom
  3> View
  4> Quit

Please choose an option [1]: 1
Now, we are going to fetch the mirror list for first-time configurations.
This may take a while...

  1> Africa
  2> Asia
  3> Europe
  4> North America
  5> Oceania
  6> South America
  7> Custom
  8> Up
  9> Quit

Pick a continent [4]: 2

  1> China
  2> India
  3> Indonesia
  4> Iran
  5> Israel
  6> Japan
  7> Kazakhstan
  8> Pakistan
  9> Republic of Korea
  10> Singapore
  11> Taiwan
  12> Thailand
  13> Turkey
  14> Viet Nam
  15> Custom
  16> Up
  17> Quit

Pick a country [1]: 11

You can enter multiple sites by seperating them by a space.
For example:
  1 4 2 5

  1> ftp://cpan.cdpa.nsysu.edu.tw
  2> ftp://cpan.nctu.edu.tw
  3> ftp://ftp.stu.edu.tw
  4> http://cpan.cdpa.nsysu.edu.tw
  5> http://cpan.nctu.edu.tw
  6> http://cpan.stu.edu.tw
  7> Custom
  8> View
  9> Up
  10> Quit

Please pick a site: 1 2 3
Host 'ftp://cpan.cdpa.nsysu.edu.tw' already selected

Selected ftp://cpan.cdpa.nsysu.edu.tw 1 host selected thus far.
Selected ftp://cpan.nctu.edu.tw 2 hosts selected thus far.
Selected ftp://ftp.stu.edu.tw 3 hosts selected thus far.

You can enter multiple sites by seperating them by a space.
For example:
  1 4 2 5

  1> ftp://cpan.cdpa.nsysu.edu.tw
  2> ftp://cpan.nctu.edu.tw
  3> ftp://ftp.stu.edu.tw
  4> http://cpan.cdpa.nsysu.edu.tw
  5> http://cpan.nctu.edu.tw
  6> http://cpan.stu.edu.tw
  7> Custom
  8> View
  9> Up
  10> Quit

Please pick a site:10

Your host configuration has been saved

=================> MAIN MENU <=================

Welcome to the CPANPLUS configuration. Please select which
parts you wish to configure

Defaults are taken from your current configuration.
If you would save now, your settings would be written to:

  CPANPLUS::Config::User

  1> Select Configuration file
  2> Setup CLI Programs
  3> Setup CPANPLUS Home directory
  4> Setup FTP/Email settings
  5> Setup basic preferences
  6> Setup installer settings
  7> Select mirrors
  8> Edit configuration file
  9> Save & exit
  10> Quit without saving

Section to configure: [1]: 9