In the virtual machine, follow the official documentation step by step installation, there is no major problem. No package is installed, and X11 is not installed. The purpose of FreeBSD installation is to install the Oracle database (of course, I have learned that Oracle only has the for linux version, just have a try), so I plan to install linux_base, but an error has occurred, no, please do it one step at a time.
If no X is installed, the system will soon be installed, reboot, and then log on. I tried several commands and entered a wrong password when using su root. It was strange that I almost decided to delete the Virtual Machine and try again after trying it many times. I did not expect to press enter to succeed -_-.
1. logout command
Logout does not work. You can use exit on the Internet.
2. the restart command is shutdown-R now.
This command is also used in Linux before. Reboot can also be used. The root permission is required for restart.
For common commands, refer to this blog:Http://www.cnblogs.com/GuominQiu/articles/1958459.html
3. Permission denied will be prompted when you use a general account Su. After checking the information, you must add the accountWheelGroup (Khan, this is because I did not read this manual When configuring the network under sysinstall)
Refer to this http://www.geekvenue.net/chucktips/jason/chuck/992154392/index_html
Login as root and change to the /etc directory. Using your favorite editor, such as vi or ee edit the group file.Login: rootPassword: *******# cd /etc# ee group Change this: wheel:*:0:root To this: wheel:*:0:root,someuserSave the file and exit.
4. I was going to install an xfce. I found that the Network was disconnected,Configure the network:
In/etc/rc. edit the conf file, or re-configure it in sysinstall (if you forget the format, you can configure it in sysinstall to make it automatically generated). For example, configure the file in virtualbox:
Ifconfig_em0 = "Inet 10.0.2.11 netmask 255.255.255.0" defaultrouter = "10.0.2.2" # default route gateway = "10.0.2.2" # gateway hostname = "hostname"
The/etc/hosts file stores domain name resolution, and/etc/resolv. the conf file stores the DNS resolution server address. If it does not exist, you can create a new one. The file is in the format of "nameserver [IP]" (the IP address is a DNS address, and there is no [] symbol)
Then run the netstat-Rn command to view the route information.
Add a default route under virtualbox (10.0.2.2 is the NAT Default Gateway under virtualbox)
route add default 10.0.2.2
After modification, use netstart to restart the network. Test the connection,
Test local connection (local address): Ping-C 4 10.0.2.11
Test gateway connection: Ping-C 4 10.0.2.2
Test Internet IP connection: 8.8.8.8
Test domain name resolution: Ping-C 4 www.baidu.com
"No route to host"Error
Network Configuration reference: http://www.freebsd.org/doc/zh_CN/books/handbook/config-network-setup.html
The IP address is configured to be automatically allocated (virtualbox is Nat), but DHCP is invalid in the RC. conf file. It is only now that it is possible that the dhcpclient has not been started. Why?
Specific reference documents: http://www.cnblogs.com/kungfupanda/archive/2010/12/13/1904170.html