Add virtualbox config
[blog.git] / linux-note.org
1 #+TITLE: Note of Linux (Debian)
2 #+AUTHOR: Peng Li
3 #+EMAIL: seudut@gmail.com
4 #+DATE: 2016-12-23
5
6 * Install and Environment
7 ** Install ios in virtual box
8 ** install essential softwares
9 *** Change the sourece.list
10 163 mirrors
11 #+BEGIN_EXAMPLE
12   deb http://mirrors.163.com/debian stable main non-free contrib
13   deb-src http://mirrors.163.com/debian stable main non-free contrib
14 #+END_EXAMPLE
15 *** Install essential packages
16 - ~netselect-apt~
17   Find the fastest apt mirror server
18 - vim
19 - sudo
20   Add user to sudo group or change the =/etc/sudoers= to use =sudo= command
21   #+BEGIN_SRC sh :results output replace
22       sudo adduser <username> sudo
23   #+END_SRC
24 - git, openssh-server, emacs, build-essential, tmux, zsh
25
26 *** Build Emacs from source
27 1. gnutls error, to fix, install =gnutls-dev= and =pkg-config=
28 * Issue
29 1. See the router table on mac 
30 #+BEGIN_SRC sh :results output replace
31   netstat -nr
32 #+END_SRC
33
34 * VirtualBox
35 ** HostOnly and NAT
36 ** Port forward, web server