mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-21 15:56:29 -05:00
New Posts
This commit is contained in:
parent
21d2ce3ff6
commit
a1eb572cd4
6 changed files with 85 additions and 0 deletions
17
content/blog/netbootxyz.md
Normal file
17
content/blog/netbootxyz.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: "Netboot.xyz Bootloader"
|
||||
date: 2021-06-18T15:43:29-04:00
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
|
||||
Instead of manually loading ISOs onto a USB stick for [Ventoy](/blog/ventoy) to display, we can use Netboot.xyz to present us a list of options and download them during boot. This requires an internet connection in order to work.
|
||||
|
||||
Netboot.xyz is commonly used for PXE booting, but in this post I'll describe using it as an ISO.
|
||||
|
||||
Download the [Netboot ISO](https://boot.netboot.xyz/ipxe/netboot.xyz.iso) and [load it onto a flash drive](/blog/ddforiso/). Then boot a computer from the flash drive and you should see something similar to this animation from their website:
|
||||
|
||||
![](/img/netboot.xyz.gif)
|
||||
|
||||
Another benefit of this approach over Ventoy is that we don't have to manually update the flash drive. It always comes fresh with the ISOs available on their website.
|
||||
|
20
content/blog/socatforward.md
Normal file
20
content/blog/socatforward.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
title: "Forward Packets with Socat"
|
||||
date: 2021-06-18T19:38:43-04:00
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
|
||||
I've written about relaying TCP traffic using [SSH port forwarding](https://brandonrozek.com/blog/sshlocalportforwarding/). Though sometimes you don't require the authenticity and encryption of SSH or want to use another protocol such as UDP. That's where `socat` comes in.
|
||||
|
||||
The following will listen to TCP traffic on port 8001 and redirect it to TCP localhost:8000
|
||||
|
||||
```bash
|
||||
socat tcp-listen:8001,reuseaddr,fork tcp:localhost:8000
|
||||
```
|
||||
|
||||
This will listen UDP on port 4009 and forward it to UDP localhost:4010
|
||||
|
||||
```bash
|
||||
socat udp-listen:4009,reuseaddr,fork udp:localhost:4010
|
||||
```
|
25
content/blog/terminaloutputvim.md
Normal file
25
content/blog/terminaloutputvim.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
title: "Terminal Output in Vim"
|
||||
date: 2021-06-18T16:22:30-04:00
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
|
||||
In Vim you can output the result of a command below your cursor by using `:r!`.
|
||||
|
||||
Examples:
|
||||
|
||||
Hello World
|
||||
|
||||
```
|
||||
:r! echo Hello World
|
||||
```
|
||||
|
||||
The current timestamp
|
||||
|
||||
```
|
||||
:r! echo "[$(date '+\%Y-\%m-\%d \%H:\%M:\%S')]"
|
||||
```
|
||||
|
||||
Outputs: `[2021-06-18 16:13:19]`
|
||||
|
23
content/blog/ventoy.md
Normal file
23
content/blog/ventoy.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
title: "Ventoy for managing ISOs on one USB"
|
||||
date: 2021-06-18T15:32:38-04:00
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
|
||||
Traditionally I would hold one linux distribution per USB drive. Though with 32 GB USB Flash drives only costing $12, why hold only one per drive? That's where Ventoy comes in. With Ventoy, we can store multiple ISOs which it then presents as a boot screen.
|
||||
|
||||
To install Ventoy onto a flash drive, follow the [Get Started](https://www.ventoy.net/en/doc_start.html) guide on their website. Then once it's installed you should see a mountpoint labeled "Ventoy". There you can drop off any ISOs you want to appear on the boot screen. Here are some examples of what I keep in mine:
|
||||
|
||||
|
||||
|
||||
- Clonezilla
|
||||
- Kali Linux
|
||||
- Kubuntu
|
||||
- Tails
|
||||
- UBCD
|
||||
|
||||
![](/img/ventoy.png)
|
||||
|
||||
Example screenshot from their website.
|
||||
|
BIN
static/img/netboot.xyz.gif
Normal file
BIN
static/img/netboot.xyz.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 131 KiB |
BIN
static/img/ventoy.png
Normal file
BIN
static/img/ventoy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 184 KiB |
Loading…
Reference in a new issue