Skip to content

Instantly share code, notes, and snippets.

@braian87b
Created November 22, 2017 04:03
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save braian87b/a7db0b0a9e79fbbec9a478def05f9161 to your computer and use it in GitHub Desktop.
Save braian87b/a7db0b0a9e79fbbec9a478def05f9161 to your computer and use it in GitHub Desktop.
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