翻墙的方法是通过ssh socks代理,首先需要的是一个ssh account。
到网站fastssh.com可以免费注册一个ssh account。
网站fastssh.com有时候会出现被封国内IP的情况,需要找到其国外IP然后才能访问。
于是可以到http://just-ping.com找到fastssh.com在国际上的IP为199.231.84.38.
将该IP和对应域名添加一条记录到本机hosts配置文件中。
# vim /etc/hosts
# #for windows: notepad c:/windows/system32/drivers/etc/hosts
# #添加199.231.84.38 fastssh.com
# #添加199.231.84.38 www.fastssh.com
访问fastssh.com网站并注册账号,成功的话如下图。
如果可以ping通jp-2.serverip.co,就可以使用ssh工具进行socks代理了。
$ ssh -N -D 7070 fastss
...首先寻找grub的相关程序
~ su
# find / -name "*grub*"
找到grub修改启动引导默认值的程序为/usr/sbin/grub2-set-default
查看grub2-set-default的帮助
# grub2-set-default --help
返回如下的帮助信息
Usage: grub2-set-default [OPTION] MENU_ENTRY
Set the default boot menu entry for GRUB.
This requires setting GRUB_DEFAULT=saved in /etc/default/grub.
-h, --help print this message and exit
-v, --version print the version information and exit
--boot-directory=DIR expect GRUB images under the directory DIR/g
...Windows的开始菜单文件夹的路径为:
C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
而变量%APPDATA%即
C:\Users\%USERNAME%\AppData
所以直接在文件浏览器里转到以下路径即可打开开始菜单
%APPDATA%\Microsoft\Windows\Start Menu\Programs
Win10中好像不太支持将快捷方式拖拽至开始菜单,所以可以直接打开开始菜单的文件夹将之放入开始菜单。
...到http://download1.rpmfusion.org/free/fedora/下载rpmfusion第三方库。
$ wget http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-23.noarch.rpm
安装rpmfusion第三方库,rpmfusion有fedora官方库中所没有的一些软件,例如vlc。
# dnf install -y rpmfusion-free-release-23.noarch.rpm
到https://lug.ustc.edu.cn/wiki/mirrors/help/fedora下载
$ wget https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/fedora?codeblock=0 -O /etc/yum.repos.d/fedora-ustc.repo
$ wget https://lug.ustc.edu.cn/wiki/_expo
...