Windows7+virtualbox+ubuntu Local Development environment construction

Source: Internet
Author: User
Tags syslog

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.