Quick Intro
Hello and welcome. Hopefully this helps you if you need to quickly setup an environment using some of this programming languages. This list will continue to grow as I encounter it. This is mostly just for myself.
Dotfiles
Golang Setup
Install curl
and run the following oneliner.
curl -L https://git.io/vQhTU | bash
Generate Pubkey Pair via OpenSSL
- Generate private key
openssl genrsa -out private_key.pem 2048
- Generate public key
openssl rsa -in private_key.pem -pubout -out public_key.pem
Convert Python2 to Python3
- Address tabs vs space issues
- In vim,
:set tabstop=8 # or 4 depending on file :set expandtab :retab
- In vim,
- Go to https://python2to3.com/
- Repeat step 1 until works
Configure Copy/Paste for ESXi VMs
- Shutdown VM
- Edit VM settings > VM Options > Advanced > Configuration Parameters > Edit Configuration
- Add the following configuration parameters:
Name | Value |
---|---|
isolation.tools.copy.disable | FALSE |
isolation.tools.paste.disable | FALSE |
isolation.tools.setGUIOptions.enable | TRUE |
- Click OK
- Power on VM
Set Static IP
After configuring static IP, make sure to restart networking service or interface.
Debian 10+
Edit /etc/networks/interfaces
:
auto ens192
iface ens192 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8
Ubuntu
Edit /etc/netplan/<config file>.yaml
:
network:
ethernets:
ens160:
dhcp4: no
addresses:
- 192.168.1.200/24
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8]
version: 2
RHEL-based
Edit /etc/sysconfig/network-scripts/ifcfg-ens192
and add:
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.1.200
GATEWAY=192.168.1.1
PREFIX=24
DNS=8.8.8.8