Skip to content

Instantly share code, notes, and snippets.

@psema4
Forked from tokuhirom/jslinux-disk.txt
Created June 17, 2011 20:21
Show Gist options
  • Save psema4/1032235 to your computer and use it in GitHub Desktop.
Save psema4/1032235 to your computer and use it in GitHub Desktop.
# wget --header='Accept-Encoding: gzip' -O root.bin.gz http://bellard.org/jslinux/root.bin
# gunzip root.bin.gz
# mkdir mnt
# mkdir files
# sudo mount -t ext2 -o loop root.bin mnt
# dd if=/dev/zero of=files/root.bin bs=1k count=4096
# sudo mke2fs -m 0 -i 2000 files/root.bin
# mkdir mnt2
# sudo mount -t ext2 -o loop files/root.bin mnt2
# sudo cp -dpR mnt/* mnt2/
# sudo umount mnt2/
and use CocProxy or Fiddler's AutoResponder for http://bellard.org/jslinux/root.bin
@psema4
Copy link
Author

psema4 commented Jun 17, 2011

[Copying comment over for reference]

wget http://svn.coderepos.org/share/lang/ruby/cocproxy/proxy.rb
ruby proxy.rb -n -p 5462 --disable-double-screen

Source: https://gist.github.com/978211#gistcomment-31346 (@tokuhirom)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment