OpenWrt: Build OpenWrt compiling environment in Ubuntu 12.04
In fact, there are also a lot of posts on how to build the Openwrt compiling environment. If you think that I am not writing well, you can also look at others, because the original intention of this article is to help build the compiling environment ....
You can choose Ubuntu10.10 12.04 14.10 or later.
Only Ubuntu10.10 has stopped updating, so select version 12.04 32 .....
Virtual Machine Construction: GB memory 50 GB hard disk. Detailed installation steps of 3D acceleration... or Baidu, because this is not the focus of this article ..
It is best to update the system.
Sudo apt-get update // get the latest software list
Sudo apt-get upgrade // download installation updates
Set root permissions
Sudo passwd root // enter the password twice.
Su-// log on to the Administrator's root account. Usually, you only need to log on to common users. If necessary, switch to root... exit to exit root ....
In order to save system resources, I decided to log on remotely via ssh on the windows End... after all, the virtual machine graphical interface occupies a large amount of resources .....
Sudo apt-get install openssh-server
Sudo ps-e | grep ssh --> press enter --> If sshd exists, it indicates that the ssh service has been started. If not, enter "sudo service ssh start" --> press enter --> ssh service will start. use gedit to modify the configuration file "/etc/ssh/sshd_config" to open the "terminal window ", enter "sudo gedit/etc/ssh/sshd_config" --> press enter --> Add "PermitRootLoginwithout-password" in the configuration file, comment out --> Add "PermitRootLogin yes" --> Save and modify.
If You Want To Enable Automatic startup, you can set it like this ..
Modify the/etc/rc. local file. Add/etc/init. d/ssh start before exit 0.
We recommend that you install the Virtual Machine enhancement function. I use a VBox virtual machine. You can use a VM ....
Then restart...
Insert a network cable... set the Virtual Machine network card as a bridge... then enter ifconfig in the command to view the ip address for ssh connection.
Here we will not show you how to connect. Putty or xshell is recommended ..
We recommend that you install the software for compilation one by one ....
Sudo apt-get install g ++
Sudo apt-get install libncurses5-dev
Sudo apt-get install zlib1g-dev
Sudo apt-get install bison
Sudo apt-get install flex
Sudo apt-get install unzip
Sudo apt-get install autoconf
Sudo apt-get install gawk
Sudo apt-get install make
Sudo apt-get install gettext
Sudo apt-get install gcc
Sudo apt-get install binutils
Sudo apt-get install patch
Sudo apt-get install bzip2
Apt-get install libz-dev
Apt-get install asciidoc
Apt-get install subversion
The official WIKI uses a single command. I separated it because it is easier to check whether the installation of each component is successful. It is best to install the software and back up it. It is the snapshot... this is the key .....
Download the source code in two ways: the latest version, but not the most stable version, namely the trunk version, the relatively stable version, and the backfire version. The source code download commands are:
Create a folder first
Mkdir openwrt
Cd openwrt
Sudo apt-get install git
Download Openwrt source code
Sudo git clonegit: // git.openwrt.org/openwrt.git
Or
Download command for Trunk: svn co svn: // svn.openwrt.org.cn/openwrt/trunk/
Backfire download command: svn co svn: // svn.openwrt.org.cn/openwrt/branches/backfire/
Then update the software package:
Sudo chmod 777 openwrt/then:
./Scripts/feeds update-
./Scripts/feeds install-
Then make defconfig, and then make menuconfig to enter the custom interface.
After setting ....
Make v = 99
This article permanently updates the link address: