ubuntu14.04 安装后的工作
1、换软件源
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
网易163更新服务器(广东广州电信/联通千兆双线接入),包含其他开源镜像
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
搜狐更新服务器(山东联通千兆接入,官方中国大陆地区镜像跳转至此) ,包含其他开源镜像
deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
阿里云更新服务器(北京万网/浙江杭州阿里云服务器双线接入),包含其他开源镜像
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
注意:末尾可能有空格
2、安装vim和openssh-server
sudo apt-get install vim openssh-server git
3、配置vim
文件 .vimrc在附件中
tar xvf vimrc.tar
4、安装java
官网下载jdk
安装jdk
sudo mkdir /usr/lib/jvm
sudo tar zxvf xxx.jdk.tar.gz -C /usr/lib/jvm
配置环境
所有用户的环境: vim /etc/profile
自己用户的环境:vim .bashrc
在末尾添加
#java
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_65
export JRE_HOME=JAVAHOME/jreexportCLASSPATH=.:JAVAHOME/jreexportCLASSPATH=.:{JAVA_HOME}/lib:JREHOME/libexportPATH=JREHOME/libexportPATH={JAVA_HOME}/bin:$PATH
测试java
java -version
5、安装sublime3
安装插件
import urllib.request,os; pf = ‘Package Control.sublime-package’; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), ‘wb’).write(urllib.request.urlopen( ‘http://sublime.wbond.net/’ + pf.replace(’ ‘,’%20’)).read())
ctrl+shif+p
sublime3 安装python环境(http://blog.csdn.net/cq361106306/article/details/43272529)插件(SideBarEnhancements和Anaconda)
6、安装flash和搜狗拼音、为之笔记
一、flash
1、去视频网站下在flash 下载地址为http://get.adobe.com/cn/flashplayer/?no_redirect
2、 將下载好的包拷到某个目录下并解压得到文件,得到如下libflashplayer.so文件与usr文件夹
3、将libflashplayer.so拷到firefox的插件目录/usr/lib/mozilla/plugin/下
sudo cp libflashplayer.so /usr/lib/mozilla/plugins
二、搜狗拼音
1、下载
2、在软件中心下载
安装 fcitx
三、为之笔记
sudo add-apt-repository ppa:wiznote-team
sudo apt-get update
sudo apt-get install wiznote
7、网络配置
vim /etc/network/inteface
auto eth2
iface eth2 inet static
address 192.168.1.141
gateway 192.168.1.1
network 255.255.255.0
配置永久dns
vim /etc/resolvconf/resolv.conf.d/base
nameserver 114.114.114.114
nameserver 8.8.8.8
8、安装vmware
8.1、 下载vmware
VMware Workstation 11 对于在隔离的安全虚拟化环境中评估新的操作系统、软件应用和补丁程序以及参考体系结构而言,是最轻松、快速和可靠的方法。没有任何其他桌面虚拟化软件能够提供与 Workstation 相媲美的性能、可靠性和领先的功能特性。
软件版本号:11.1.0 build-2496824
许可证密钥:CG5E2-4QD80-M812Q-L4W7E-PU096
VMware Workstation 11 for Windows(64 位)官方下载地址:
https://download3.vmware.com/software/wkst/file/VMware-workstation-full-11.1.0-2496824.exe
VMware Workstation 11 for Linux(64 位)官方下载地址:
https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-11.1.0-2496824.x86_64.bundle
8.2、安装
sudo apt-get install build-essential
chmod a+x ./VMware-Workstation-Full-11.1.0-2496824.x86_64.bundle
./VMware-Workstation-Full-11.1.0-2496824.x86_64.bundle
8.3、添加补丁(解决Ubuntu14.04中VMware workstaion无法打开)
参考网址:http://jingyan.baidu.com/article/da1091fb34fc84027849d61e.html
工具/原料
- 补丁文件vmnet-3.19.patch
方法/步骤
- 1
获取补丁文件
curl http://pastie.org/pastes/9934018/download -o /tmp/vmnet-3.19.patch
如果无法下载,我的云盘上有备份,网址为:http://pan.baidu.com/s/1sj4uWFF 提取码:a7wq
- 2
cd /usr/lib/vmware/modules/source
- 3
sudo tar -xf vmnet.tar
- 4
sudo patch -p0 -i /tmp/vmnet-3.19.patch
- 5
sudo tar -cf vmnet.tar vmnet-only
- 6
sudo rm -rf vmnet-only
- 7
sudo vmware-modconfig --console --install-all
4、重启
5、卸载vmware
sudo vmware-installer --uninstall-product vmware-workstation