-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotes.txt
48 lines (29 loc) · 1 KB
/
Notes.txt
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
41
42
43
44
45
46
47
This is a document that I am using to store notes and oddities that I might want to know but can't remember.
When working with Vagrant VM's and the code isn't syncing:
exit the VM and run "vagrant rsync" and it will sync it up.
To create the password to put in vars:
mkpasswd --method=sha-512
For Debian:
Look for PasswordAuthentication, uncomment it and make sure it is "yes"
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
PasswordAuthentication yes
You can go back and change it once the ssh is copied over.
For Ubuntu Server:
To change to static IP address:
sudo vim /etc/netplan/50-cloud-init.yaml
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
addresses: [192.168.0.130/24]
gateway4: 192.168.0.1
nameservers:
addresses: [192.168.0.250, 8.8.8.8]
To change the hostname:
sudo vim /etc/hostname
sudo vim /etc/cloud/cloud.cfg
Change preserve_hostname: no to preserve_hostname: yes