Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Instruction to have OpenWRT or LEDE on a X86 PC or Virtual Machine
# ----------------------------------------------------------------------
# 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 free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.