Download the corresponding VirtualBox and Ubuntu image files first
Installing the Ubuntu operating system
A network setting
Set the network connection mode of the virtual machine to bridge mode, noting that the wireless network card should match the name of the wireless network card of the computer.
Applicable in Windows Ipconfig/all View the following information subnet mask for local wireless networks
Default Gateway
DNS Server List
Edit file/etc/network/interfaces in Ubuntu system, join
Auto ENP0S3
Iface enp0s3 inet Static
Address 10.234.50.0 #ip地址
Netmask 255.255.254.0
Network 10.234.50.0
Gateway 10.234.50.1
Dns-nameservers xx.xx.xx.xx
Dns-nameservers xx.xx.xx.xx
Dns-nameservers xx.xx.xx.xx
Proxy settings
Select System Settings->network->network Proxy in the Ubuntu graphical interface and fill in the proxy server information
Install Telnet
sudo apt-get install telnetd
sudo apt-get install xinetd
sudo vi/etc/inetd.conf and add the following line
Telnet Stream TCP nowait telnetd/usr/sbin/tcpd/usr/sbin/in.telnetd
Enter sudo vi/etc/xinetd.conf and add content:
# Simple configuration file for xinetd
#
# Some defaults, and include/etc/xinetd.d/
Defaults
{
# Please note the need a log_type line to be able to use log_on_success
# and Log_on_failure. The default is the following:
# log_type = SYSLOG Daemon Info
instances = 60
Log_type = SYSLOG Authpriv
log_on_success = HOST PID
Log_on_failure = HOST
CPS = 25 30
}
Includedir/etc/xinetd.d
sudo vi/etc/xinetd.d/telnet (file may not exist) and add the following:
# Default:on
# description:the Telnet Server serves Telnet sessions; It uses \
# unencrypted Username/password pairs for authentication.
Service Telnet
{
Disable = no
Flags = Reuse
Socket_type = Stream
wait = no
user = root
Server =/usr/sbin/in.telnetd
Log_on_failure + = USERID
}
Restart Network Service sudo/etc/init.d/xinetd restart
Set APT Proxy server
Edit/etc/apt/apt.conf, and add
Acquire::http::p Roxy "Http://username:[email protected]:p roxyport/"
Installing the JRE
sudo apt-get install Default-jre
Install FTP server
sudo apt-get install vsftpd
Modify/etc/vsftpd.conf Add Write permission
Write_enable=yes
Edit the/etc/hosts file to add the corresponding IP and domain name Mapping
Windows7+virtualbox+ubuntu Local Development environment construction