-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlinux.txt
More file actions
40 lines (27 loc) · 874 Bytes
/
linux.txt
File metadata and controls
40 lines (27 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--------------------------------------------------------------------------------
STORAGE
// dd a remote disk using SSH
ssh user@remote "dd if=/dev/sda | gzip -1 -" | dd of=image.gz
--------------------------------------------------------------------------------
NETWORK
// Configure static IP addresses with NetPlan (networkd)
# vi /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
ens33:
dhcp4: no
dhcp6: no
addresses: [192.168.200.201/24]
gateway4: 192.168.200.11
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
search: [relab.lan]
# netplan apply
// Check internet speed via cli
curl -s \
https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py \
| python -