1.安装jdk
使用ppa/源(oracl收费)
sudo add-apt-repository ppa:openjdk-r/ppa
2.安装chrome浏览器
sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -1
sudo apt update
sudo apt install google-chrome-stable
报错:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package google-chrome-stable is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'google-chrome-stable' has no installation candidate
2.换deb方式安装
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
安装依赖
sudo apt install libappindicator1 libdbusmenu-glib4 libdbusmenu-gtk4 libindicator7 libpango1.0-0 libpangox-1.0-0
安装
sudo dpkg -i google-chrome-stable_current_amd64.deb
3.安装 adobe flash player
sudo apt-get install flashplugin-installer
4.安装idea
官网下载包然后放到想要存放文件夹
:~/Downloads$ sudo cp ideaIU-2019.1.3 /usr/local [sudo] password for dnoir: cp: -r not specified; omitting directory 'ideaIU-2019.1.3'
复制时文件夹用cp -a 压缩包不用 -a
sudo cp -a ideaIU-2019.1.3 /usr/local
$ cd /usr/local
sudo tar -zxvf ideaIU-2019.1.3.tar.gz
:/usr/local$ ll total 689336 drwxr-xr-x 12 root root 4096 6月 8 21:16 ./ drwxr-xr-x 11 root root 4096 6月 8 14:17 ../ drwxr-xr-x 2 root root 4096 7月 25 2018 bin/ drwxr-xr-x 2 root root 4096 7月 25 2018 etc/ drwxr-xr-x 2 root root 4096 7月 25 2018 games/ drwxr-xr-x 9 root root 4096 6月 8 21:16 idea-IU-191.7479.19/ drwxr-xr-x 3 dnoir dnoir 4096 6月 8 21:08 ideaIU-2019.1.3/ -rw-r--r-- 1 root root 705826359 6月 8 21:13 ideaIU-2019.1.3.tar.gz
若没读写权限则赋权
sudo chmod 755 -R idea-IU-191.7479.19/
启动idea
:/usr/local/ideaIU-2019.1.3$ ls idea-IU-191.7479.19 :/usr/local/ideaIU-2019.1.3$ cd idea-IU-191.7479.19/ :/usr/local/ideaIU-2019.1.3/idea-IU-191.7479.19$ ls bin help jre64 license product-info.json build.txt Install-Linux-tar.txt lib plugins redist :/usr/local/ideaIU-2019.1.3/idea-IU-191.7479.19$ cd bin/ :/usr/local/ideaIU-2019.1.3/idea-IU-191.7479.19/bin$ ls appletviewer.policy idea64.vmoptions idea.vmoptions log.xml format.sh idea.png inspect.sh printenv.py fsnotifier idea.properties libdbm64.so restart.py fsnotifier64 idea.sh libyjpagent-linux64.so fsnotifier-arm idea.svg libyjpagent-linux.so :/usr/local/ideaIU-2019.1.3/idea-IU-191.7479.19/bin$ ./idea.sh Gtk-Message: 21:50:37.204: Failed to load module "canberra-gtk-module" Jun 08, 2019 9:50:37 PM java.util.prefs.FileSystemPreferences$1 run INFO: Created user preferences directory. Jun 08, 2019 9:50:37 PM java.util.prefs.FileSystemPreferences$6 run WARNING: Prefs file removed in background /home/dnoir/.java/.userPrefs/prefs.xml
5.安装s~
:~$ sudo apt-get install shadowsocks
客户端设置:右上角电源键->wired connected->wired settings->network proxy->manual
socks host :127.0.0.1 1080
终端启动s~:sslocal -s serviceIP -p serviceport -k "Password" -l 1080 -t 300 -m aes-256-cfb
6.安装ssh服务
:~$ ps -e |grep ssh 1730 ? 00:00:00 ssh-agent
安装ssh客户端程序
sudo apt-get install openssh-client
安装ssh服务端程序
:~$ sudo apt-get install openssh-server
开启ssh服务
service ssh start 或者 /etc/init.d/ssh start
:~$ ps -e |grep ssh 1730 ? 00:00:00 ssh-agent 31768 ? 00:00:00 sshd
连接s~服务端
ssh root@ip
配置服务端s~
yum install python-setuptools && easy_install pip pip install shadowsocks vi /etc/shadowsocks.json { "server":"0.0.0.0", "port_password":{ "8380":"xxxxxxxx" }, "timeout":300, "method":"aes-256-cfb", "fast_open": false } more /etc/shadowsocks.json 后台启动: ssserver -c /etc/shadowsocks.json -d start
开启防火墙端口
# firewall-cmd --zone=public --add-port=8380/tcp --permanent
FirewallD is not running
# service firewalld start
# firewall-cmd --zone=public --add-port=8380/tcp --permanent success
重新载入 firewall-cmd --reload 查看 firewall-cmd --zone=public --query-port=8080/tcp
1