Ubuntu-16.04 Openwrt development and compilation environment to build

Linux development and compilation environment to build

1. Operation steps
Install linux system.
Install ssh
Install samba
Install the relevant toolchain, verify the compile operation

3. Install ssh
3.1 The installation command is:
sudo apt-get update
sudo apt-get install openssh-server

3.2 After installation, check if SSH is started
sudo ps -e |grep ssh
Check if sshd

3.3 is modified. Modify /etc/ssh/sshd_config
Comment out PermitRootLogin Without-password
Add PermitRootLogin yes

3.4 vi operation exception handling
Vi key can not be used during Vi operation, you can reinstall vim.
sudo apt-get remove vim-common
sudo apt-get install vim
Error handling
sudo apt-get update && sudo apt-get install vim

3.5 Using ssh command in Linux to test

$ ssh test@
Connecting to
Could not connect to '' (port 22): Connection failed.

This error is due to the fact that the firewall on the ubuntu host is not closed, you can turn off the firewall.
sudo ufw disable #Note that this command is only for ubuntu system

3.6. Using SecureCRT access error under windows

is the
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160
sudo /etc/init.d/ssh restart

4. Install samba

sudo apt-get install samba

4.1 Add user:
sudo useradd -s /bin/bash -g test -m test
sudo passwd test
sudo smbpasswd -a test

4.2 Modify /etc/samba/smb.conf

smb.conf Add share

        comment = Home Public Folder
        path = /home/test
        writable = yes
        valid users = test

After modifying, restart smb
sudo /etc/init.d/samba restart

4.3 mount samba directory (optional)
mount -t cifs // /media/tmp/ -o username=test
apt-get install smbfs or cifs-utils

4.4 Solve samba can't access soft connection Question:
At the end of the "[global]" section of the configuration file /etc/samba/smb.conf, add the following three settings:
follow symlinks = yes
wide links = yes
unix extensions = no

5. Install the build-related toolchain, verify Compile operation
openwrt Install the following patch to download
sudo apt-get install git subversion
sudo apt-get install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversion libncurses5-dev ncurses-term zlib1g-dev subversion git-core gawk asciidoc libz-dev zlib1g-dev libssl-dev

OpenWrt source code:
Download DLL to download OpenWrt bleeding edge
Download from official source: Git clone git://git.openwrt.org/openwrt.git
git clone git://git.openwrt.org/15.05/openwrt.git, the download time is quite long, please be patient.

Add software extension package:
cd openwrt/ into the /home/kevinfan/openwrt/openwrt directory, you can find the feeds.conf.default file and change feeds.conf.default to feeds.conf , use the following command:
cp feeds.conf.default feeds.conf
Get the feeds.conf file

update extension, install extension:
./scripts/feeds update -a
./scripts/feeds install -a