diff options
Diffstat (limited to 'content')
| -rwxr-xr-x | content/pages/pastebin.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/content/pages/pastebin.md b/content/pages/pastebin.md index 1109724..0c5f474 100755 --- a/content/pages/pastebin.md +++ b/content/pages/pastebin.md | |||
| @@ -7,6 +7,28 @@ draft: false | |||
| 7 | 7 | ||
| 8 | *No additional explanation provided here. Use blog for more detailed stuff.* | 8 | *No additional explanation provided here. Use blog for more detailed stuff.* |
| 9 | 9 | ||
| 10 | **▒ Write ISO to USB Key** | ||
| 11 | |||
| 12 | ```sh | ||
| 13 | sudo dd if=iso_file.iso of=/dev/sdX bs=4M status=progress conv=fdatasync | ||
| 14 | ``` | ||
| 15 | |||
| 16 | **▒ Mount Plan9 over network** | ||
| 17 | |||
| 18 | - First install `libfuse` with `sudo apt install libfuse-dev`. | ||
| 19 | - Then clone https://github.com/ftrvxmtrx/9pfs and compile it with `make`. | ||
| 20 | - Copy `9pfs` to your path. | ||
| 21 | |||
| 22 | ```sh | ||
| 23 | # On Plan9 side | ||
| 24 | ip/ipconfig # enables network | ||
| 25 | aux/listen1 -tv tcp!*!9999 /bin/exportfs -r tmp # export tmp folder | ||
| 26 | |||
| 27 | # On Linux side | ||
| 28 | 9pfs 172.18.0.1 -p 9999 local_folder # mount | ||
| 29 | umount local_folder # unmount | ||
| 30 | ``` | ||
| 31 | |||
| 10 | **▒ Push to multiple origins at once in Git** | 32 | **▒ Push to multiple origins at once in Git** |
| 11 | 33 | ||
| 12 | ```sh | 34 | ```sh |
| @@ -15,6 +37,8 @@ git config --global alias.pushall '!sh -c "git remote | xargs -L1 git push --all | |||
| 15 | 37 | ||
| 16 | **▒ Run 9front in Qemu** | 38 | **▒ Run 9front in Qemu** |
| 17 | 39 | ||
| 40 | Download from here http://9front.org/iso/. | ||
| 41 | |||
| 18 | ```sh | 42 | ```sh |
| 19 | # Create a qcow2 image. | 43 | # Create a qcow2 image. |
| 20 | qemu-img create -f qcow2 $HOME/VM/9front.qcow2.img 30G | 44 | qemu-img create -f qcow2 $HOME/VM/9front.qcow2.img 30G |
