页面“Chrome firefox配置SwitchyOmega翻墙”与“Eclipse”之间的差异

来自linux中国网wiki
(页面间的差异)
跳到导航 跳到搜索
 
 
第1行: 第1行:
=pre=
+
=下载=
搭建shadowsocks服务器端 详见[[Shadowsocks安装与配置]]
+
[https://www.eclipse.org/downloads/packages/release/Oxygen/2  eclipse c 下载地址]
 
+
最新版的漂亮还快哦
=client=
+
<pre>
 +
pkg install openjdk8
 +
sudo pkg install eclipse-cdt
 +
  pkg install eclipse-cdt # freebsd
 +
</pre>
  
==linux(debian pc) or freebsd12 ==
+
=usage=
 
<pre>
 
<pre>
 +
Eclipse中添加多行注释的快捷键 
  
#个人电脑 kali201930用这个加crontab 就可以了 sudo apt  install shadowsocks-libev 要看官网
+
第一种 //注释
sudo apt  install shadowsocks-libev
+
选择你要注释的那一行或多行代码,按 Ctrl+/ 即可,取消注释也是选中之后按 Ctrl+/ 即可。此快捷键是 //注释 而不是 /**/注释。
ss-local -s linuxsa.org  -p 443  -k "pass" -l 7070 -t 600 -m aes-256-cfb
 
 
 
 
 
apt install shadowsocks
 
sslocal -s linuxsa.org  -p 443  -k "pass" -l 7070 -t 600 -m aes-256-cfb #新的用这个
 
 
 
 
 
 
 
 
 
#本地apt shadowsock and then  ok 20190728 因为我本地的端口是7070
 
chromium --proxy-server="http=socks5://127.0.0.1:7070"
 
/opt/google/chrome/chrome --proxy-server="https=socks5://127.0.0.1:7070"
 
 
 
pip 安装 2019后尽量不用这种了
 
sudo apt-get install python-pip
 
安装shadowsocks:
 
sudo pip install shadowsocks
 
新建shadowsocks配置文件shadowsocks.json:
 
{
 
"server": "xxx.xxx.xxx.xxx",
 
"server_port": xxxx,
 
"local_port": 1080,
 
"password": "xxxxxxx",
 
"timeout": 600,
 
"method": "aes-256-cfb"
 
}
 
  
eg
+
第二种 /**/注释
{
 
    "server":"linuxsa.org",
 
    "server_port":443,
 
    "local_port":1080,
 
    "password":"laipass",
 
    "timeout":600,
 
    "method":"aes-256-cfb"
 
}
 
  
#启动
+
Ctrl+Shift+/
sslocal -c /home/evan/shadowsocks.json -d start
+
说明:添加/* */注释
  
 +
Ctrl+Shift+\
 +
说明:消除/* */注释
  
 +
要修改在eclispe中的命令的快捷键方式我们只需进入windows -> preference -> General -> key设置就行了
  
apt install shadowsocks
 
evan@elite:/etc/shadowsocks$ cat config.json
 
{
 
    "server":"ss.linuxsa.org",
 
    "server_port":8388,
 
    "local_port":1080,
 
    "password":"lai2240",
 
    "timeout":600,
 
    "method":"aes-256-cfb",
 
    "local_address":"127.0.0.1",
 
    "fast_open":false,
 
    "tunnel_remote":"8.8.8.8",
 
    "dns_server":["8.8.8.8", "8.8.4.4"],
 
    "tunnel_remote_port":53,
 
    "tunnel_port":53,
 
    "libopenssl":"C:\\Program Files\\Git\\mingw64\\bin\\libeay32.dll",
 
    "libsodium":"/usr/local/lib/libsodium.so",
 
    "libmbedtls":"/usr/local/lib/libmbedcrypto.2.4.0.dylib"
 
}
 
 
sudo systemctl enable shadowsocks
 
 
</pre>
 
</pre>
 +
==[https://stackoverflow.com/questions/43623643/how-to-open-terminal-inside-eclipse How to open Terminal inside Eclipse]==
 +
<pre>
  
== linux 服务器 ==
+
不用安装 用自带的就行了 
[[ Ubuntu利用shadowsocks终端翻墙 ]]
 
  
==windows==
 
===下载shadowsocks客户端===
 
[https://github.com/shadowsocks/shadowsocks-windows/releases/download/4.0.8/Shadowsocks-4.0.8.zip  下载shadowsocks客户端软件]
 
===配置shadowsocks客户端===
 
<gallery>
 
ss.png
 
</gallery>
 
  
==浏览器==
+
右下角 open cons  --  command shell-- 填写自己的IP
===chrome2019===
 
<pre>1.安装chrome浏览器翻墙插件 要先翻墙 再play.google
 
  
#本地apt shadowsock and then  ok 20190728 freebsd12上也是 因为我本地的端口是7070
 
  
/opt/google/chrome/chrome --proxy-server="https=socks5://127.0.0.1:7070"
+
这个也可以用ssh 感觉界面更加友好
  
chromium --proxy-server="http=socks5://127.0.0.1:1080"
+
linux tools --> TM Terminal 4.3.0.201706140544
 
 
然后直接 同步帐号 就什么都有了啦 不用再安装什么插件 哈哈  换新电脑这样就行了
 
 
</pre>
 
</pre>
  
chrome 同步
+
=trouble shooting=
 +
<pre>
 +
launch failed Binary not found  每个项目都是改一下 不然不行
  
https://chrome.google.com/sync?otzr=1
+
select "Run". -> Run Configurations. ->Choose "C++ Application".  ->  build  configuration  --> select debug    auto build#is me
  
https://www.google.com/sync/index.html
+
Click on the "New Launch Configuration" icon on the top left of the open window.
 +
Select "Browse" under the C/C++ Application.
 +
Browse to the folder where you made your project initially.
 +
Enter the Debug folder.
 +
Click on the binary file with the same name as the project.
 +
Select "OK".
 +
Click "Apply" to confirm the link you just set.
 +
Close that window.</pre>
  
===firefox===
+
=参考=
[https://github.com/FelisCatus/SwitchyOmega/releases 打开页面直接双击proxy_switchyomega-2.5.10-an.fx.xpi]
+
[http://blog.linuxchina.net/?p=1019 eclipse 简单使用]
 
 
===配置SwitchyOmeg===
 
<gallery>
 
sw.png
 
</gallery>
 
  
=使用问题=
+
[http://blog.linuxchina.net/?p=2911 eclipse使用]
一开始不能自动翻墙 我用几个 proxy,然后添加对URL的规则就行了
 
  
要有个 规则列表规则 (按照规则列表匹配请求)  proxy  on auto switch 不然老是要手工才会FQ
 
  
 +
[https://blog.csdn.net/faihung/article/details/60780646 用Eclipse完成C语言编程的几个简单步骤]
  
  
  
 
+
[[category:c]]  [[category:ops]]
 
 
== chrome 突然帐号同步不成功 登录不了gmail ==
 
 
 
SwitchyOmega 自动切换模式下 Chrome 无法登陆谷歌账户
 
 
 
添加规则 之后便可正常登陆
 
*.googleapis.com +proxy
 
 
 
https://github.com/gfwlist/gfwlist/issues/1056
 
 
 
=参考=
 
[http://blog.linuxchina.net/?p=845 ssh+chrome翻墙 from blog]
 
[[category:生活与情感]]  [[category:linux]]  [[category:ops]]
 

2019年10月30日 (三) 07:40的版本

下载

eclipse c 下载地址 最新版的漂亮还快哦

pkg install openjdk8
 sudo pkg install eclipse-cdt
  pkg install eclipse-cdt # freebsd

usage

Eclipse中添加多行注释的快捷键  

第一种 //注释
选择你要注释的那一行或多行代码,按 Ctrl+/ 即可,取消注释也是选中之后按 Ctrl+/ 即可。此快捷键是 //注释 而不是 /**/注释。

第二种 /**/注释

Ctrl+Shift+/ 
说明:添加/* */注释 

Ctrl+Shift+\ 
说明:消除/* */注释 

要修改在eclispe中的命令的快捷键方式我们只需进入windows -> preference -> General -> key设置就行了

How to open Terminal inside Eclipse


不用安装 用自带的就行了  


右下角  open cons  --  command shell-- 填写自己的IP 


这个也可以用ssh 感觉界面更加友好 

linux tools --> TM Terminal	4.3.0.201706140544

trouble shooting

launch failed Binary not found  每个项目都是改一下 不然不行 

select "Run". -> Run Configurations. ->Choose "C++ Application".  ->   build  configuration  --> select debug     auto build#is me 

Click on the "New Launch Configuration" icon on the top left of the open window.
Select "Browse" under the C/C++ Application.
Browse to the folder where you made your project initially.
Enter the Debug folder.
Click on the binary file with the same name as the project.
Select "OK".
Click "Apply" to confirm the link you just set.
Close that window.

参考

eclipse 简单使用

eclipse使用


用Eclipse完成C语言编程的几个简单步骤