X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=posts%2Flinux-note.org;h=f50aee3b3ac553be1f7fdcfb1556fae9a648fea4;hb=refs%2Fheads%2Fmaster;hp=ee82bb774829c9389553ea9464073367be113303;hpb=2313a178e9ee6c47000abcb095b5536f585bdfc7;p=blog.git diff --git a/posts/linux-note.org b/posts/linux-note.org index ee82bb7..f50aee3 100644 --- a/posts/linux-note.org +++ b/posts/linux-note.org @@ -1,7 +1,7 @@ #+TITLE: Note of Linux (Debian) #+AUTHOR: Peng Li #+EMAIL: seudut@gmail.com -#+DATE: 2016-12-23 +#+DATE: <2016-12-23> * Install and Environment ** Install ios in virtual box @@ -47,18 +47,51 @@ wget --no-check-certificate https://cyberciti.biz/foo/bar.tar.gz 3. =ls= in =zsh= has no color +4. issue +-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) + +#+BEGIN_SRC sh + dpkg-reconfigure locales +#+END_SRC + * VirtualBox 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 + +- install build-essentials, linux-headers-amd64 + + - Create folder to share in host machine - add user to virtualbox group +#+BEGIN_SRC sh :results output replace + adduser debian vboxsf +#+END_SRC + + + * Apache config ** Enabled Cgi mode