Synology上架設 SS以及 SSR 方法


j650825 wrote:
網上查到的方法删除...(恕刪)




謝謝j650825大,幫忙查了刪除方式 :)

我執行了刪除,有些似乎找不到,然後再重做了一遍還是一樣,如下( ...苦惱)

-------------------------------------------------------------------------
rm: cannot remove ‘/usr/bin/ss-local’: No such file or directory
root@cckwee_asd:~# rm /usr/bin/ss-redir
rm: cannot remove ‘/usr/bin/ss-redir’: No such file or directory
root@cckwee_asd:~# rm /usr/bin/ss-tunnel
rm: cannot remove ‘/usr/bin/ss-tunnel’: No such file or directory
root@cckwee_asd:~# wget https://bootstrap.pypa.io/get-pip.py
--2019-01-29 11:54:36-- https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io... 151.101.0.175, 151.101.64.175, 151.101.128.175, ...
Connecting to bootstrap.pypa.io|151.101.0.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1700321 (1.6M) [text/x-python]
Saving to: 'get-pip.py.6'

get-pip.py.6 100%[===================>] 1.62M 2.72MB/s in 0.6s

2019-01-29 11:54:37 (2.72 MB/s) - 'get-pip.py.6' saved [1700321/1700321]

root@cckwee_asd:~# python get-pip.py
/usr/local/lib/python2.7/site-packages/cffi/model.py:526: UserWarning: 'point_conversion_form_t' has no values explicitly defined; next version will refuse to guess which integer type it is meant to be (unsigned/signed, int/long)
% self._get_c_name())
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Pyth on as Python 2.7 won't be maintained after that date. A future version of pip will drop support for P ython 2.7.
Collecting pip
Using cached https://files.pythonhosted.org/packages/46/dc/7fd5df840efb3e56c8b4f768793a237ec4ee59891959d6a215d63f727023/pip-19.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 19.0.1
Uninstalling pip-19.0.1:
Successfully uninstalled pip-19.0.1
Successfully installed pip-19.0.1
root@cckwee_asd:~# pip install shadowsocks
/usr/local/lib/python2.7/site-packages/cffi/model.py:526: UserWarning: 'point_conversion_form_t' has no values explicitly defined; next version will refuse to guess which integer type it is meant to be (unsigned/signed, int/long)
% self._get_c_name())
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: shadowsocks in /usr/lib/python2.7/site-packages (2.8.2)
root@cckwee_asd:~# vi /etc/shadowsocks.json
root@cckwee_asd:~# vi /usr/lib/python2.7/site-packages/shadowsocks/crypto/util.py
root@cckwee_asd:~# ssserver -c /etc/shadowsocks.json -d start
Traceback (most recent call last):
File "/bin/ssserver", line 6, in <module>
from shadowsocks.server import main
File "/usr/lib/python2.7/site-packages/shadowsocks/server.py", line 27, in <module>
from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, \
File "/usr/lib/python2.7/site-packages/shadowsocks/shell.py", line 27, in <module>
from shadowsocks import encrypt
File "/usr/lib/python2.7/site-packages/shadowsocks/encrypt.py", line 26, in <module>
from shadowsocks.crypto import rc4_md5, openssl, sodium, table
File "/usr/lib/python2.7/site-packages/shadowsocks/crypto/rc4_md5.py", line 22, in <module>
from shadowsocks.crypto import openssl
File "/usr/lib/python2.7/site-packages/shadowsocks/crypto/openssl.py", line 24, in <module>
from shadowsocks.crypto import util
File "/usr/lib/python2.7/site-packages/shadowsocks/crypto/util.py", line 71
patterns = [
^
IndentationError: unindent does not match any outer indentation level


-------------------------------------------------------------------------

各位大大,可以的話再麻煩給我些建議 謝謝。 : (
Luknos wrote:
謝謝j650825...(恕刪)


你有沒有到群暉的套件中心去安裝 Python 3 & Python Module
~ShadowCity~

j650825 wrote:
你有沒有到群暉的套...(恕刪)


有的


Luknos wrote:
有的...(恕刪)


今天我自己試了
你少了以下的步驟

h. 接著修改一個小地方即可
vi /usr/lib/python2.7/site-packages/shadowsocks/crypto/util.py

找到59到62行,mark起來存檔(就是在前面加上 # 字號)
# else:
# path = ctypes.util.find_library(name)
# if path:
# paths.append(path)
~ShadowCity~

j650825 wrote:
今天我自己試了你少...(恕刪)



我有做這個動作,只是可能我不知道動到甚麼程式碼了... 可以複製一份你這個頁面的程式碼給我直接覆蓋上去嗎? (不知道這樣是不是行的通)




~ShadowCity~

j650825 wrote:
我把檔案COPY下...(恕刪)


非常感謝!!

j650825 wrote:
整理一下並記錄自己如...(恕刪)


請問使用SSH安裝的方式,有辦法檢查server狀態嗎?!
因為最近常常使用到一半,自己shutdown,我想寫一支程式檢查,如果shutdown,就自動重啟服務!
予我半兩銀, 報還十斗金, 殘我一口人, 滅其滿家門
j650825 wrote:
整理一下並記錄自己...(恕刪)



做紀錄一下,感謝!!

楓舞月痕 wrote:
請問使用SSH安裝...(恕刪)


說實在的, 我對 linux 的語法是完全不懂的, 所以真的幫不了你
~ShadowCity~
關閉廣告
文章分享
評分
評分
複製連結
請輸入您要前往的頁數(1 ~ 19)

今日熱門文章 網友點擊推薦!