mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-09 10:40:34 -05:00
New blog posts on dd, mirrors wget, and temporary static ip
This commit is contained in:
parent
2c56b6992a
commit
0cb37f3df0
3 changed files with 81 additions and 0 deletions
13
content/blog/ddforiso.md
Normal file
13
content/blog/ddforiso.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: "Burning ISOs with dd"
|
||||
date: 2020-01-20T10:23:20-05:00
|
||||
draft: false
|
||||
images: []
|
||||
---
|
||||
|
||||
While there are nice graphical tools like [Etcher](https://www.balena.io/etcher/), what is almost always a constant is the tool `dd`. Therefore, for future reference I'll just paste the `dd` command I use to make ISO images.
|
||||
|
||||
```bash
|
||||
sudo dd bs=4M if=image.iso of=/dev/sdX status=progress oflag=sync
|
||||
```
|
||||
|
29
content/blog/mirrordownload.md
Normal file
29
content/blog/mirrordownload.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: "Mirror Download with wget"
|
||||
date: 2020-01-20T21:18:12-05:00
|
||||
draft: false
|
||||
images: []
|
||||
---
|
||||
|
||||
This post will describe downloading a `centos` repo using `wget`. Though the ideas in this blog post can apply to any mirror with packages exposed via http.
|
||||
|
||||
```bash
|
||||
wget \
|
||||
--accept rpm,bz2,gz,xml,asc \
|
||||
--recursive \
|
||||
--no-parent \
|
||||
--no-host-directories \
|
||||
--cut-dirs=4 \
|
||||
http://mirror.centos.org/centos/8/BaseOS/x86_64/os/
|
||||
```
|
||||
|
||||
Here are what the options mean...
|
||||
|
||||
| Option | Meaning |
|
||||
| ----------------------- | ------------------------------------------------------------ |
|
||||
| `--accept` | Comma separated by which extensions to allow downloading |
|
||||
| `--recursive` | Follow links |
|
||||
| `--no-parent` | Only follow links that are sub-directories of the current one |
|
||||
| `--no-host-directories` | Exclude creating a folder indicating the hostname |
|
||||
| `--cut-dirs=N` | Don't make folders for a depth of `N` subdirectories. Notice in the example `centos`, `8`, `BaseOS`, `x86_64`, `os` is a list of 5 subdirectories so `N`=5 |
|
||||
|
39
content/blog/tempstaticip.md
Normal file
39
content/blog/tempstaticip.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
title: "Temporary Static IP"
|
||||
date: 2020-01-20T21:36:37-05:00
|
||||
draft: false
|
||||
images: []
|
||||
---
|
||||
|
||||
I've learned that the fastest way to transfer files is via Ethernet. Now the easiest way to transfer via Ethernet is for both computers to be on the same local area network. However, if needed, an Ethernet cable can used between two computers.
|
||||
|
||||
In order for both the computers to recognize each other, they need to be on the same subnet.
|
||||
|
||||
First on both computers, find out which network device is your Ethernet.
|
||||
|
||||
```bash
|
||||
ip addr show
|
||||
```
|
||||
|
||||
Then on both computers assign an unique static ip address,
|
||||
|
||||
```bash
|
||||
sudo ip addr add 10.1.1.2/24 dev en0
|
||||
```
|
||||
|
||||
In this example,
|
||||
|
||||
- `10.1.1` is the subnet that the computer is assigned to.
|
||||
- `2` will denote the unique ip address
|
||||
- `/24` defines the first three digits as the subnet
|
||||
- `en0` is the example network device that's the Ethernet.
|
||||
|
||||
Once that's in place you should be able to `ping` and `rsync` between the two computers!
|
||||
|
||||
*If you run into issues, it might be a firewall problem...*
|
||||
|
||||
To remove the static ip assignment, replace `add` with `del`
|
||||
```bash
|
||||
sudo ip addr del 10.1.1.2/24 dev en0
|
||||
```
|
||||
|
Loading…
Reference in a new issue