Ubuntu 安装后配置
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
7.安装pycharm
官网下载压缩文件:
pycharm-professional-2019.1.3.tar.gz
解压并放到与idea同一个目录下
:/usr/local$ ls bin games ideaIU-2019.1.3 include man share etc idea-IU-191.7479.19 ideaIU-2019.1.3.tar.gz lib sbin src :/usr/local$ sudo cp -a /home/name/Downloads/pycharm-professional-2019.1.3 /usr/local
:/usr/local$ ls bin idea-IU-191.7479.19 include pycharm-professional-2019.1.3 src etc ideaIU-2019.1.3 lib sbin games ideaIU-2019.1.3.tar.gz man share
:/usr/local$ cd pycharm-professional-2019.1.3/:/usr/local/pycharm-professional-2019.1.3$ ls pycharm-2019.1.3:/usr/local/pycharm-professional-2019.1.3$ cd pycharm-2019.1.3/dnoir@dnoir-Intel:/usr/local/pycharm-professional-2019.1.3/pycharm-2019.1.3$ ls bin help index lib product-info.json build.txt helpers Install-Linux-tar.txt license debug-eggs helpers-pro jre64 plugins :/usr/local/pycharm-professional-2019.1.3/pycharm-2019.1.3$ cd bin/:/usr/local/pycharm-professional-2019.1.3/pycharm-2019.1.3/bin$ ls format.sh inspect.sh printenv.py pycharm.vmoptions fsnotifier libdbm64.so pycharm64.vmoptions restart.py fsnotifier64 libyjpagent-linux64.so pycharm.png fsnotifier-arm libyjpagent-linux.so pycharm.sh idea.properties log.xml pycharm.svg :/usr/local/pycharm-professional-2019.1.3/pycharm-2019.1.3/bin$ sh ./pycharm.sh
为pycharm添加快捷方式
:/usr/share/applications$ sudo gedit pycharm.desktop
在该文件中新增如下内容
[Desktop Entry] Version=1.0 Type=Application Name=Pycharm Icon=/usr/local/pycharm-professional-2019.1.3/pycharm-2019.1.3/bin/pycharm.png Exec=sh /usr/local/pycharm-professional-2019.1.3/pycharm-2019.1.3/bin/pycharm.sh MimeType=application/x-py; Name[en_US]=pycharm
完成后,在所以程序中把快捷方式添加到左侧栏即可
8.微信不用了了重装一下
:/usr/local$ sudo cp /home/name/Downloads/deepin.com.wechat_2.6.2.31deepin0_i386.deb /usr/local
:/usr/local$ sudo dpkg -i deepin.com.wechat_2.6.2.31deepin0_i386.deb
9.安装google输入法
安装 fcitx
:/usr/local$ sudo apt install fcitx-bin fcitx-table Reading package lists... Done Building dependency tree Reading state information... Done fcitx-bin is already the newest version (1:4.2.9.6-1). fcitx-bin set to manually installed. You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: sogoupinyin : Depends: libfcitx-qt0 but it is not going to be installed or fcitx-libs-qt Depends: libopencc2 but it is not going to be installed or libopencc1 but it is not going to be installed Depends: fcitx-libs (>= 4.2.7) but it is not going to be installed Depends: libqtwebkit4 (>= 2.1.0~2011week13) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
:/usr/local$ sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: fcitx-libs libfcitx-qt0 libopencc2 libopencc2-data libqt4-opengl libqtwebkit4 The following NEW packages will be installed: fcitx-libs libfcitx-qt0 libopencc2 libopencc2-data libqt4-opengl libqtwebkit4 0 upgraded, 6 newly installed, 0 to remove and 6 not upgraded. 1 not fully installed or removed. Need to get 106 kB/10.7 MB of archives. After this operation, 45.5 MB of additional disk space will be used. Do you want to continue? [Y/n] y
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
换一下源
sudo vi /etc/apt/sources.list
vi清空源
:1,.d
:/etc/apt$ sudo vi sources.list :sudo apt-get update
完成
:/etc/apt$ cd /usr/local :/usr/local$ sudo apt install fcitx-bin fcitx-table [sudo] password for name: Reading package lists... Done Building dependency tree Reading state information... Done fcitx-bin is already the newest version (1:4.2.9.6-1). fcitx-bin set to manually installed. You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: sogoupinyin : Depends: libfcitx-qt0 but it is not installable or fcitx-libs-qt but it is not going to be installed Depends: libopencc2 but it is not installable or libopencc1 but it is not going to be installed Depends: fcitx-libs (>= 4.2.7) but it is not going to be installed Depends: libqtwebkit4 (>= 2.1.0~2011week13) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
:/usr/local$ sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages will be REMOVED: sogoupinyin 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 58.4 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 189110 files and directories currently installed.) Removing sogoupinyin (2.2.0.0108) ... Processing triggers for mime-support (3.60ubuntu1) ... Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ... Processing triggers for libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.2) ... Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for shared-mime-info (1.9-2) ... Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ... Processing triggers for hicolor-icon-theme (0.17-2) ...
设置语言:setting->Region & Language->Manage Installed Languages->Keyboard input method system切换为fcitx
重启电脑
10.安装Virtual box
sudo apt-get install virtualbox
报错未解决
ERROR (dkms apport): kernel package linux-headers-4.15.0-51-generic is not supported Error! Bad return status for module build on kernel: 4.15.0-51-generic (x86_64) Consult /var/lib/dkms/virtualbox/4.3.40/build/make.log for more information. 正在设置 libvncserver0:amd64 (0.9.9+dfsg-1ubuntu1.4) ... 正在设置 virtualbox (4.3.40-dfsg-0ubuntu14.04.1) ... Job for virtualbox.service failed because the control process exited with error code. See "systemctl status virtualbox.service" and "journalctl -xe" for details. invoke-rc.d: initscript virtualbox, action "restart" failed. ● virtualbox.service - LSB: VirtualBox Linux kernel module Loaded: loaded (/etc/init.d/virtualbox; generated) Active: failed (Result: exit-code) since Tue 2019-06-11 21:28:11 CST; 8ms ago Docs: man:systemd-sysv-generator(8) Process: 12400 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)
官网说明:
Debian-based Linux distributions Add the following line to your /etc/apt/sources.list. According to your distribution, replace '<mydist>' with 'artful', 'zesty', 'yakkety', 'xenial', 'trusty', 'stretch', 'jessie', or 'wheezy' (older versions of VirtualBox supported different distributions): deb https://download.virtualbox.org/virtualbox/debian <mydist> contrib
或直接官网下载
https://www.virtualbox.org/wiki/Downloads
https://download.virtualbox.org/virtualbox/6.0.8/virtualbox-6.0_6.0.8-130520~Ubuntu~bionic_amd64.deb
解决vi 上下作用退格不能正常使用问题:
:~$ sudo apt-get install vim 报错: 下列软件包有未满足的依赖关系: vim : 依赖: vim-common (= 2:7.4.052-1ubuntu3.1) 但是 2:8.0.1453-1ubuntu1 正要被安装 E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
:~$ sudo apt-get purge vim-common
sudo apt-get update&upgrade sudo apt-get install vim
1
posted on 2019-06-08 23:36 Ra7ing安全实验室 阅读(2712) 评论(0) 编辑 收藏 举报