【Linux】VM virtual machine to install Ubuntu 14.04

Windows system

VMware-workstation-full-12.1.0-3272444

ubuntu-14.04.4-desktop-amd64

installation steps:

http://jingyan.baidu.com/article/1612d500a7008fe20e1eee21.html

 

Ubuntu installation must 

 

When installing the software, there is a problem that Package has no installation candidate, such as:

#  apt-get install <packagename>
Reading package lists... Done
Building dependency tree... Done
Package aptitude 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 <packagename> has no installation candidate

The solution is as follows:
# apt-get update
# apt-get upgrade
# apt-get install <packagename>

 

Reference: http://blog.csdn.net/wxqee/article/details/28666297

 

install ssh tool

sudo apt-get install openssh-server

Start: sudo /etc/init.d/ssh

 

Change download source

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo vim /etc/apt/sources.list

 

deb http://mirrors.aliyun.com/ubuntu trusty main restricted
deb-src http://mirrors.aliyun.com/ubuntu trusty main restricted
 
deb http://mirrors.aliyun.com/ubuntu trusty-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu trusty-updates main restricted
 
deb http://mirrors.aliyun.com/ubuntu trusty universe
deb-src http://mirrors.aliyun.com/ubuntu trusty universe
deb http://mirrors.aliyun.com/ubuntu trusty-updates universe
deb-src http://mirrors.aliyun.com/ubuntu trusty-updates universe
 
deb http://mirrors.aliyun.com/ubuntu trusty multiverse
deb-src http://mirrors.aliyun.com/ubuntu trusty multiverse
deb http://mirrors.aliyun.com/ubuntu trusty-updates multiverse
deb-src http://mirrors.aliyun.com/ubuntu trusty-updates multiverse
 
deb http://mirrors.aliyun.com/ubuntu trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu trusty-backports main restricted universe multiverse
 
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse

 

root is not activated by default, you can use the sudo passwd root command to change the root password

 

Configure java environment variables

decompress

tar zxvf jdk-7u80-linux-x64.tar.gz

gedit ~/.bashrc
insert at the end
export JAVA_HOME=/usr/local/java/jdk1.8.0_25  
export JRE_HOME=${JAVA_HOME}/jre  
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib  
export PATH=${JAVA_HOME}/bin:$PATH

source ~/.bashrc

 

 安装nexus,maven私服

 http://www.cnblogs.com/candle806/p/4076325.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326398182&siteId=291194637