In Ubuntu16.04 in VirtualBox installed FreeBSD

Get a mirror

FreeBSD's official website: https://www.freebsd.org , open to see "Download Freebsd" button, click on the go

Enter the page version selected. RELEASR can see the current version, the old version, as well as beat version has not been officially released

Each version is divided into several columns

Installer Images     Virtual Machine Images     SD Card Images     Documentation

To use the virtual machine, then the virtual machine image may be selected in the second column, decompression can be used, usually selected amd64 / i386 Available

Click go, there will be several specific format, where you can choose vmdk.xz format. After the download, unzip to a virtual machine can use

 

Create a virtual machine (this step is omitted part)

Select " Choose a virtual hard disk " and then find yourself just by xz -d extract from the vmdk virtual hard disk and open ===> OK ===> Power

Here I created a 1G memory, 100G hard disk card configuration, bridge

Note: Here I chose a multi-user, which is the first "Boot Multi user", press 1 to enter

The default user name is root, no password

 

Software Installation

pkg install sudo git vim

New User

useradd  <user_name>

Create a regular user for daily use as.

After installing sudo, you can create new users join sudoer, easy to use

Directly edit the / usr / local / etc / sudoers

in

root ALL=(ALL) ALL

Below , just add the user to, for example, a user called zqb, add

<user_name> ALL=(ALL) ALL

Save out

Configuring SSH

In /etc/defautls/rc.conf, add the line

sshd_enable="YES"

Edit /etc/inetd.conf, removed from the front of ssh #, i.e. the anti-line comment

You can restart the service

/etc/rc.d/sshd restart

Install Virtual Machine enhanced tools

There is a virtual machine virtualbox enhancement tools. The machine and the virtual machine will need to be installed, with the use. freebsd can be used

pkg install virtualbox-ose-additions

 

 

                      QQ group: 264,092,835   You are welcome to join
                     the article is original, please indicate the original source thank you

 

Guess you like

Origin www.cnblogs.com/smlile-you-me/p/11456261.html