Install Openwrt On X86 Pc 3,5/5 3363 reviews
Openwrt x86 iso

This is a very brief tutorial on getting OpenWRT installed on a regular computer, it assumes you know your way around Linux. If you find this and need additional details, please like, subscribe, and comm.. oh wait this isn't youtube, just comment.

Unfortunately OpenWRT/LEDE doesn't have a traditional installer. They provide a disk image that you put on to your x86 machine's bootdisk (SATA drive, etc) using dd. After that you have to install drivers for your NICs/USB (this is the hard part). Nov 22, 2017  # Instruction to have OpenWRT or LEDE on a X86 PC or Virtual Machine: #-# boot using DamnSmallLinux or similar: sudo /etc/init.d/ssh start # see IP to connect using ssh: ifconfig # set a password for root: su: passwd # connect using SSH # download gzipped image and decompress: root@ttyp1root # cd /ramdisk/.

Ax2002 led driver for macbook pro Input VLedsLed currentMax. Index of led driver tests Led driversThis is a index to all tested led drivers.The table can be copied into a spreadsheet (Excel) and sorted.Driver nameTypeMin. Input VStabilized VMax.

This is how I got OpenWRT going on a Mini ITX Intel DH67CF with an Intel G870 CPU with 4GB of RAM.

What You'll Need

  • 2 USB Sticks
  • Linux Live ISO
  • Latest OpenWRT combined-ext4 Image
    • As of this writing this version is 18.6.2

Use dd and create your live Linux ISO.

Format the second USB stick ext4, then gunzip the combined-ext4 image, then copy it to the USB stick.

Installation

Boot off your live Linux USB.

Insert your second USB once linux fully loads.

Use dd to write your combined-ext4 image to your hard drive.

Once dd completes, open gparted and resize the second partition to around 4GB.

Reboot removing the USB sticks.

First Boot

Grub should automatically boot to OpenWRT.

You may have to hit enter a couple of times if the boot seems to hang, it'll drop you to the command prompt and complain that there's no password.

Edit your /etc/config/network file with vi.

You'll want to modify your lan interface giving it a static IP within your network.

Here's mine for example:

Then do service network reload and you should be able to ping your gateway and outside the network.

You should now be able to get into the gui from any computer in the same subnet.

Configuration

Update Packages

opkg update

Packages I Use

opkg install vim-full nano usbutils pciutils

Use bash

opkg install bash

X86

Edit /etc/passwd and change your shell to /bin/bash.

bash completion

Mounting

I like to have a larger /root partition and a swap.

opkg install fdisk kmod-fs-ext4 e2fsprogs swap-utils block-mount

Use fdisk -l to list your partitions.

Should show something like this:

From here use fdisk /dev/sda. Create a new primary partition about the size of your RAM for your swap. Then create a secondary primary partition for your /root partition. Write the changes and do fdisk -l again. Should display something like this:

Format your sda4 as ext4 with mkfs.ext4 /dev/sda4, then make your sda3 swap space with mkswap /dev/sda3 then swapon /dev/sda3.

View your memory and swap space with free -k.

Mount your sda4 to /root, mount /dev/sda4 /root.

Enable fstab with:

Create your fstab with

Edit your fstab with vi, make it look like this your UUIDs will not be all zeros.

Now reboot and your mount and swap should be good to go.

Adblocking

opkg install adblock luci-app-adblock

Reload luci and you should find Adblock under Services.

Setting Up Git

opkg install git git-http ca-bundle libustream-openssl wget

Generate your ssh keys.

Add your ssh key to github.

Add to: https://github.com/settings/keys

Git will not work correctly with ssh from the server, this is the workaround.

Edit your .profile and add:

Then source your .profile.

Now you should be able to connect to github.

Instruction to have OpenWRT or LEDE on a X86 PC or Virtual Machine
openwrt-lede-on-pc-vm.sh
# ----------------------------------------------------------------------
# Instruction to have OpenWRT or LEDE on a X86 PC or Virtual Machine:
# ----------------------------------------------------------------------
# boot using DamnSmallLinux or similar:
sudo /etc/init.d/ssh start
# see IP to connect using ssh
ifconfig
# set a password for root
su
passwd
# connect using SSH
# download gzipped image and decompress:
root@ttyp1[root]# cd /ramdisk/
root@ttyp1[ramdisk]# wget -q -O- http://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/openwrt-15.05-x86-generic-combined-ext4.img.gz gunzip > disk-image.img
root@ttyp1[ramdisk]# wget -q -O- http://downloads.lede-project.org/releases/17.01.4/targets/x86/generic/lede-17.01.4-x86-generic-combined-ext4.img.gz gunzip > disk-image.img
# now you will have the .img file
# Watch volumes
root@ttyp1[ramdisk]# fdisk -l
# Write image to disk
root@ttyp1[ramdisk]# dd if=disk-image.img of=/dev/hda bs=1M count=100
52+1 records in
52+1 records out
# Watch volumes again (note that now will have partitions)
root@ttyp1[ramdisk]# fdisk -l
# remove DamnSmallLinux and reboot
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment