COCO研究院

 找回密碼
 註冊
搜索
樓主: 超級美少女

[心得] Linode 初體驗

[複製鏈接]
發表於 14-8-14 12:05 | 顯示全部樓層
超級美少女 發表於 14-8-14 11:42
我那個 Linode 是英文 Centos.

怎樣裝中文?我要讓他出去 Curl 時,讓對方Server 辨識為中文系統。

試試 "Centos 安裝中文語言包安裝" ... 我沒測試過.
發表於 14-8-16 23:57 | 顯示全部樓層
超級美少女 發表於 14-8-14 10:54
现在直接接网路。帮我试一下

219.71.101.235 port:1080

底下是以 SSH Server 跟 SSH Client 搭配來做 ...

Windows 平台 :
安裝 Cygwin 軟體,並且將 Openssh Server 套件選起來安裝 ... :

Cygwin-Openssh-20140816-01.png

查看 cygwin 下有哪些 Server? :
  1. $ cygrunsrv.exe -L
  2. sshd
複製代碼


啟動 SSH Server :
  1. $ cygrunsrv.exe --start sshd
複製代碼


以 SSH Client 建立開啟一個 Port: 1080 :
  1. $ ssh -D 1080 -g 127.0.0.1
複製代碼


在 Firefox 中設定 Proxy 以 Socks5 方式來連接 :

Firefox-Socks5-20140816-01.png

==========
Linux 平台 :
安裝 openssh-server 軟體 ...
啟動 SSH Server ...
以 SSH Client 建立開啟一個 Port: 1080 :
  1. root@linode-001:~# ip addr
  2. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
  3.     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  4.     inet 127.0.0.1/8 scope host lo
  5.     inet6 ::1/128 scope host
  6.        valid_lft forever preferred_lft forever
  7. 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  8.     link/ether f2:3c:91:73:22:ba brd ff:ff:ff:ff:ff:ff
  9.     inet 106.187.88.29/24 brd 106.187.88.255 scope global eth0
  10.     inet6 2400:8900::f03c:91ff:fe73:22ba/64 scope global dynamic
  11.        valid_lft 2591975sec preferred_lft 604775sec
  12.     inet6 fe80::f03c:91ff:fe73:22ba/64 scope link
  13.        valid_lft forever preferred_lft forever

  14. root@linode-001:~# ssh -D 1080 -g tester-001@106.187.88.29
  15. tester-001@106.187.88.29's password:
  16. Linux linode-001 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u1 x86_64

  17. The programs included with the Debian GNU/Linux system are free software;
  18. the exact distribution terms for each program are described in the
  19. individual files in /usr/share/doc/*/copyright.

  20. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  21. permitted by applicable law.
  22. Last login: Sat Aug 16 15:25:05 2014 from li408-29.members.linode.com
複製代碼


在 Firefox 中設定 Proxy 以 Socks5 方式來連接 :

Firefox-Socks5-20140816-02.png


==========
參考:
Linux 透過 SSH SOCKS 連線 來 使用 Firefox / Pidgin(MSN, GTalk..)
How to Run Your Own SOCKS Proxy Server

發表於 14-8-24 03:26 | 顯示全部樓層
薛豹 發表於 14-6-6 21:23
可以在上面安裝Windows XP 或 Server 2003 嗎?
現在的交易 API 應該都是只有支援 Windows 系統
...

據我目前的了解, Linode VPS 是屬於 Xen Para-Virtualization 架構,待將來 Linode 有支援 Xen Hardware-assisted Virtualization(或稱 Xen Hardware Virtual Machine(即 Xen HVM)).或是有支援 Kernel-based Virtual Machine(即 KVM)時,應該就可以來安裝 Windows 平台的作業系統了. ^_^

參考:
主機虛擬化技術-Xen
Kernel-based Virtual Machine

評分

參與人數 1金錢 +2 收起 理由
薛豹 + 2 感謝分享

查看全部評分

發表於 14-8-27 18:42 | 顯示全部樓層
今天下午 17:29,又再度收到 Linode "physical hardware" 的來信 ... 所幸! 十幾分鐘後,狀況又解除了. ^_^
  1. Hello,

  2. Our administrators have detected an issue affecting the physical hardware your Linode resides on. We're working to resolve the issue as quickly as possible and will update this ticket as soon as we have more information.

  3. Your patience and understanding is greatly appreciated.

  4. Best Regards,

  5. Dave Russell Jr
複製代碼

  1. Hello,

  2. We have resolved the issue at this time, and your Linode will return to its last state shortly (running or powered off). There is no need to issue boot jobs for your Linode at this time.

  3. Thank you for your patience and understanding. Please feel free to update this ticket in the event that you have any additional questions or concerns about this matter.

  4. Best Regards,

  5. Dave Russell Jr
複製代碼


發表於 14-8-29 10:32 | 顯示全部樓層
RE: 2014-8-28 鴻海除權息 + 摩台結算 [修改]
超級美少女 發表於 14-8-29 09:10
暈~ Linode 只有 Centos 6

DigitalOcean 有 CentOS 7 64位元版可以安裝,不過,我是因為要測試 32 位元版的,只有 CentOS 6 可以安裝 ...

我在 Debian 系統中,可以下載 Opencc 原始碼回來,且自行編譯成功,但在 CentOS 6 中,我得先解決 cmake 版本如何由 2.6 版本升至 2.8 版本的問題 ...
發表於 14-8-29 13:09 | 顯示全部樓層
本帖最後由 tinyding 於 14-8-29 13:15 編輯
tinyding 發表於 14-8-29 10:32
DigitalOcean 有 CentOS 7 64位元版可以安裝,不過,我是因為要測試 32 位元版的,只有 CentOS 6 可以安裝 .. ...

O.K. 在 CentOS 7 當中,安裝 cmake、git、gcc-c++ 之後,下載 Opencc 原始碼回來,可以自行編譯成功了. ^_^
  1. [root@localhost build]# ls -la src/opencc
  2. -rwxr-xr-x 1 root root 231645 Aug 29 05:04 src/opencc
  3. [root@localhost build]# pwd
  4. /tmp/OpenCC/build
  5. [root@localhost build]# ./src/opencc --version

  6. Open Chinese Convert (OpenCC) Command Line Tool
  7. Version: 1.0.0
複製代碼


發表於 14-8-29 16:20 | 顯示全部樓層
tinyding 發表於 14-8-29 13:09
O.K. 在 CentOS 7 當中,安裝 cmake、git、gcc-c++ 之後,下載 Opencc 原始碼回來,可以自行編譯成功了. ^_^
...

O.K. 也完成了 CentOS 6.5 當中的 Opencc 自行編譯了. ^_^
我是下載 https://opencc.googlecode.com/files/opencc-0.4.3.tar.gz 先前下載太新的版本,好像在 CentOS 6.5 當中 compiler 會有一些問題產生 ... 因此,只使用了 0.4.3 版本.
  1. [root@test-study-002 build]# ls -la src/tools/opencc
  2. -rwxr-xr-x 1 root root 13424 Aug 29 03:52 src/tools/opencc
  3. [root@test-study-002 build]# ./src/tools/opencc --version

  4. Open Chinese Convert (OpenCC) Command Line Tool
  5. Version 0.4.3

  6. Author: BYVoid <byvoid@byvoid.com>
  7. Bug Report: http://github.com/BYVoid/OpenCC/issues

  8. [root@test-study-002 build]# pwd
  9. /tmp/opencc-0.4.3/build
複製代碼

cmake 2.6 版本提升至 2.8 版本,則是參照 How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x 網頁中所敘述地來做 ... 至於最先怎麼曉得 CentOS 各版本當中的某個套件(例如: cmake)是多少版本的資訊,則是透過 Search Results for cmake 網頁來查知的.
發表於 14-8-31 00:34 | 顯示全部樓層
RE: 2014-8-29 MSCI 權重調整 [[url=]修改[/url]]

tinyding 發表於 14-8-29 12:42
至少目前看起來沒有問題的樣子,只要 opencc 能夠執行的起來的話. ^_^

下午看到一篇 "簡繁轉換 - Linux Wiki",提及 cconv ... 才發覺那天所測試字的內碼是 "UTF8-CN",而轉換後的字內碼為 "UTF8-TW" ... 因此,使用 cconv 再重做一次,如下:
  1. root@linode-001:/tmp# cconv -f UTF8-CN -t UTF8-TW test-UTF8-CN_UTF8-TW-100M.txt -o TT-100M.txt
  2. root@linode-001:/tmp# tail test-UTF8-CN_UTF8-TW-100M.txt
  3. 意莱尔负离子卫生巾抑菌透气组合\\', NULL, NULL, \\'意莱尔居家日用旗舰店
  4. 意莱尔负离子卫生巾抑菌透气组合\\', NULL, NULL, \\'意莱尔居家日用旗舰店
  5. 意莱尔负离子卫生巾抑菌透气组合\\', NULL, NULL, \\'意莱尔居家日用旗舰店
  6. 意莱尔负离子卫生巾抑菌透气组合\\', NULL, NULL, \\'意莱尔居家日用旗舰店
  7. 意莱尔负离子卫生巾抑菌透气组合\\', NULL, NULL, \\'意莱尔居家日用旗舰店
  8. 意莱尔负离子卫生巾抑菌透气组合\\', NULL, NULL, \\'意莱尔居家日用旗舰店
  9. 意莱尔负离子卫生巾抑菌透气组合\\', NULL, NULL, \\'意莱尔居家日用旗舰店
  10. 意莱尔负离子卫生巾抑菌透气组合\\', NULL, NULL, \\'意莱尔居家日用旗舰店
  11. 意莱尔负离子卫生巾抑菌透气组合\\', NULL, NULL, \\'意莱尔居家日用旗舰店
  12. 意莱尔负离子卫生巾抑菌透气组合\\', NULL, NULL, \\'意莱尔居家日用旗舰店
  13. root@linode-001:/tmp# tail TT-100M.txt
  14. 意萊爾負離子衛生巾抑菌透氣組合\\', NULL, NULL, \\'意萊爾居家日用旗艦店
  15. 意萊爾負離子衛生巾抑菌透氣組合\\', NULL, NULL, \\'意萊爾居家日用旗艦店
  16. 意萊爾負離子衛生巾抑菌透氣組合\\', NULL, NULL, \\'意萊爾居家日用旗艦店
  17. 意萊爾負離子衛生巾抑菌透氣組合\\', NULL, NULL, \\'意萊爾居家日用旗艦店
  18. 意萊爾負離子衛生巾抑菌透氣組合\\', NULL, NULL, \\'意萊爾居家日用旗艦店
  19. 意萊爾負離子衛生巾抑菌透氣組合\\', NULL, NULL, \\'意萊爾居家日用旗艦店
  20. 意萊爾負離子衛生巾抑菌透氣組合\\', NULL, NULL, \\'意萊爾居家日用旗艦店
  21. 意萊爾負離子衛生巾抑菌透氣組合\\', NULL, NULL, \\'意萊爾居家日用旗艦店
  22. 意萊爾負離子衛生巾抑菌透氣組合\\', NULL, NULL, \\'意萊爾居家日用旗艦店
  23. 意萊爾負離子衛生巾抑菌透氣組合\\', NULL, NULL, \\'意萊爾居家日用旗艦店
  24. root@linode-001:/tmp# ls -la test-UTF8-CN_UTF8-TW-100M.txt TT-100M.txt
  25. -rw-r--r-- 1 root root 201326592 Aug 29 04:33 test-UTF8-CN_UTF8-TW-100M.txt
  26. -rw-r--r-- 1 root root 201326592 Aug 30 16:30 TT-100M.txt
複製代碼


 樓主| 發表於 14-8-31 14:07 | 顯示全部樓層
tinyding 發表於 14-8-29 16:20
O.K. 也完成了 CentOS 6.5 當中的 Opencc 自行編譯了. ^_^
我是下載 https://opencc.googlecode.com/file ...



所以這個要 cmake update 2.8

然後編譯 opencc? How? 我的是 centos 6.5 64bit
發表於 14-8-31 17:40 | 顯示全部樓層
超級美少女 發表於 14-8-31 14:07
所以這個要 cmake update 2.8

然後編譯 opencc? How? 我的是 centos 6.5 64bit

我是照 How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x 網頁中所述,安裝了 EPEL 當中的 cmake 2.8 版之後,再下載 https://opencc.googlecode.com/files/opencc-0.4.3.tar.gz 回來自行編譯 ... 所需的套件可能還有 "gcc-c++" 與 "gettext".
  1. ## RHEL/CentOS 6 64-Bit ##
  2. # wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  3. # rpm -ivh epel-release-6-8.noarch.rpm
複製代碼
  1. # yum --enablerepo=epel info cmake
複製代碼
  1. # yum --enablerepo=epel install cmake
複製代碼
  1. 查看 cmake 的版本 ...
  2. # cmake --version
  3. # cmake28 --version
複製代碼
  1. 將 opencc-0.4.3.tar.gz 解壓縮並進入目錄
  2. mkdir build
  3. cd build
  4. cmake28 -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -D ENABLE_GETTEXT:BOOL=ON ..
  5. make

  6. 如果編譯順利的話,再查查 src 目錄下,應該可以找到 opencc 可執行檔. ^_^
複製代碼


評分

參與人數 1金錢 +5 收起 理由
超級美少女 + 5 感謝分享

查看全部評分

 樓主| 發表於 14-8-31 22:13 | 顯示全部樓層
tinyding 發表於 14-8-31 17:40
我是照 How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x 網頁中所述,安裝了 EPEL 當中的 cma ...


感謝~ 已經安裝好 cmake~
# cmake --version
cmake version 2.8.11



評分

參與人數 1金錢 +1 收起 理由
tinyding + 1

查看全部評分

 樓主| 發表於 14-9-1 11:27 | 顯示全部樓層
tinyding 發表於 14-8-31 17:40
我是照 How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x 網頁中所述,安裝了 EPEL 當中的 cma ...

錯誤~~~~~~
  1. cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -D ENABLE_GETTEXT:BOOL=ON ..CMake Error at /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):  Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE  GETTEXT_MSGFMT_EXECUTABLE)Call Stack (most recent call first):  /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)  /usr/local/share/cmake-2.8/Modules/FindGettext.cmake:58 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)  CMakeLists.txt:54 (find_package)

  2. -- Configuring incomplete, errors occurred!
複製代碼



發表於 14-9-1 11:32 | 顯示全部樓層
超級美少女 發表於 14-9-1 11:27
錯誤~~~~~~

試試底下的命令,看看是否有 "gettext" 套件需要安裝? ...
  1. yum search gettext
複製代碼



 樓主| 發表於 14-9-1 11:35 | 顯示全部樓層
本帖最後由 超級美少女 於 14-9-1 11:40 編輯
tinyding 發表於 14-9-1 11:32
試試底下的命令,看看是否有 "gettext" 套件需要安裝? ...

yum search gettext
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                                           | 5.5 kB     00:00
* base: mirrors.linode.com
* epel: ftp.riken.jp
* extras: mirrors.linode.com
* updates: mirrors.linode.com
base                                                                                                                                                                                    | 3.7 kB     00:00
extras                                                                                                                                                                                  | 3.4 kB     00:00
updates                                                                                                                                                                                 | 3.4 kB     00:00
epel/pkgtags                                                                                                                                                                            | 926 kB     00:00
============================================================================================ N/S Matched: gettext =============================================================================================
perl-gettext.x86_64 : Interface to gettext family of functions
gettext-devel.i686 : Development files for gettext
gettext-devel.x86_64 : Development files for gettext
gettext-libs.i686 : Libraries for gettext
gettext-libs.x86_64 : Libraries for gettext
mingw32-gettext-static.noarch : Static version of the MinGW Windows Gettext library
ocaml-gettext-devel.x86_64 : Development files for ocaml-gettext
perl-Locale-Maketext-Gettext.noarch : Joins the gettext and Maketext frameworks
perl-libintl.x86_64 : Internationalization library for Perl, compatible with gettext
python-polib.noarch : A library to parse and manage gettext catalogs
rubygem-gettext-doc.noarch : Documentation for rubygem-gettext
erlang-gettext.x86_64 : Erlang internationalization library
gettext.i686 : GNU libraries and utilities for producing multi-lingual messages
gettext.x86_64 : GNU libraries and utilities for producing multi-lingual messages
mingw32-gettext.noarch : GNU libraries and utilities for producing multi-lingual messages
ocaml-gettext.x86_64 : OCaml library for i18n
perl-Locale-PO.noarch : Perl module for manipulating .po entries from GNU gettext
ruby-gettext-package.noarch : Localization Library and Tools for Ruby
rubygem-gettext.noarch : RubyGem of Localization Library and Tools for Ruby


  Name and summary matches only, use "search all" for everything.







--------------
怎辦??


發表於 14-9-1 11:41 | 顯示全部樓層
超級美少女 發表於 14-9-1 11:35
yum search gettext
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

先試試安裝底下兩者("gettext.i686" 以及 "gettext.x86_64") :
  1. gettext.i686 : GNU libraries and utilities for producing multi-lingual messages
  2. gettext.x86_64 : GNU libraries and utilities for producing multi-lingual messages
複製代碼


您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|站長信箱|廣告洽詢|COCO研究院

GMT+8, 24-4-20 07:49

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 | AI繪圖AI超擬真美女AI beauty AI Stable DiffusionAI正妹AI Lookbook