Ubuntu compiled OpenWrt front-end Web interface

Source: Internet
Author: User

The OpenWrt is an open no-line by Cisco emitting source code by the platform. Because it is based on the Linux kernel, so many Linux platforms under the software can be ported to this platform, and then let the non-line by a lot of unexpected features, such as to do BT Downloader, music player, small database processing and so on.

Environment:

Ubuntu 10.04,subversion,vmware Workstation 7.1.3

The first is to get OpenWrt source code.

Under Ubuntu, first install the SVN tool:

sudo apt-get install subversion

Then load the various dependency packages:

sudo apt-get install gcc g++ binutils patch bzip2 Flex bison make autoconf gettext texinfo unzip sharutils subversion libn Curses5-dev Ncurses-term Zlib1g-dev

sudo apt-get update

Then go to the home directory and create the folder:

mkdir OpenWrt

CD OpenWrt

Then use the SVN command line to checkout out the source code:

SVN checkout Svn://svn.openwrt.org/openwrt/trunk

Go to the Trunk folder:

CD Trunk

Update OpenWrt:

./scripts/feeds update-a

Install all packages:

./scripts/feeds Install-a

At this point, I felt the need to compile the Luci into the kernel, so that we can control the OpenWrt later through the web, rather than through the command line control. So add the following command:

./scripts/feeds Update Packages Luci

./scripts/feeds Install-a-P Luci

After that, the Luci option appears when the kernel is compiled.

Since I don't have a Linksys series router and just to experience OpenWrt, I've compiled openwrt into a VMware workstation disk image, using VMware Workstation to emulate a routed hardware environment.

The following configuration is true: (because the package continues to be downloaded from the network at compile time, do not disconnect once you start compiling.) But encountered a large package, but the next very slow, you can interrupt the process, using the download process to the appropriate site downloaded and then put in)

First enter make Menuconfig and start to enter the kernel configuration interface:

1. Target System (x86)---> (X) x86
2. target file system is EXT2
Target Images---> [*] ext2
Target Images---> [*] Build VMware image files (VMDK)
This creates a virtual hard disk that can be used directly on the VM at compile time.

With Web UI:
1) Base System---> <*> UCI ..... ..... Utility for the Unified Configuration Interfa
2) Luci are selected.

3) Network--->
<*> uhttpd ... uhttpd-tiny, single threaded HTTP Server--->-----------
<*> Uhttpd-mod-lua uhttpd-tiny, single threaded HTTP server (LUA plugin)
4) Make v=99 compile, time a bit long, after, in bin/x86/is the final compiled file.
5) Copy bin/x86/, my full path is/home/longjindong/openwrt/trunk/bin/x86/in the "OPENWRT-X86-GENERICCOMBINED-EXT2.VMDK" to XP computer;

XP VM installation Run OpenWRT:
1. Create a virtual machine
Turn on VMware----next--and next--Linux, other Linux 2.6.x kernel--
> Next--Here the VM name and path can be assigned yourself--and next--Network default "use bridged networking"--next--this
The hard disk size by default, the counter-proof will be deleted-and complete, so in the VMware workstatio "other Linux 2.6.x kernel" virtual
The machine has been prepared.
2. Load the OpenWRT virtual disk and start
1) Delete the virtual disk when creating the virtual machine
Right-click on "Other Linux 2.6.x kernel"-> Setting – Hard Disk--and Remoe;
2) Load OpenWRT virtual disk
"Other Linux 2.6.x kernel"--> Settin-------------------existing
> Browse, select the front "OPENWRT-X86-GENERIC-COMBINED-EXT2.VMDK"--Finish.
3) Click the Run button to start running OpenWRT.

Enter 192.168.1.1 and you can see it in the browser:

This is just the kernel part of the compilation, the relevant settings and software development in the future slowly write it out.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.