X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=posts%2Flinux-note.org;h=9b44850327c1c62a3647bf6321debb3950f2aa82;hb=51d918e66df2a1a1cf94f90c630ea045d51d4494;hp=ee82bb774829c9389553ea9464073367be113303;hpb=44e4071401fd97ddbf457d3a90ddba2884e8efe0;p=blog.git diff --git a/posts/linux-note.org b/posts/linux-note.org index ee82bb7..9b44850 100644 --- a/posts/linux-note.org +++ b/posts/linux-note.org @@ -51,12 +51,29 @@ wget --no-check-certificate https://cyberciti.biz/foo/bar.tar.gz Install virtualbox guest addition https://blog.paranoidpenguin.net/2016/12/installing-the-virtualbox-guest-additions-on-debian-8-jessie/ ** HostOnly and NAT +- Need install extensions, add a hostonly network, address start as 192.168.56.1, then You host (mac) will be added one more interface, named + vboxnet0, 192.168.56.1 +- ADd both hostonly and nat interface in the network setting +- start linux, and modify =/etc/network/interfaces/= + add configure for eth1 (hostonly ) interface, such as +#+BEGIN_SRC sh :results output replace + allow-hotplug eth1 + iface eth1 inet static + address 192.168.56.2 + netmask 255.255.255.0 +#+END_SRC ** Port forward, web server ** Shared folder - Install Guest Addition, https://forums.virtualbox.org/viewtopic.php?t=15679 + +Insert GuestAddition.ios, +#+BEGIN_SRC sh + mount /dev/sr0 /media/cdrom +#+END_SRC + - Create folder to share in host machine - add user to virtualbox group