A collection of configs and scripts to setup everything I need
- Run
sudo dotfiles [options]
docker build -t arch -f ./docker/arch.dockerfile .
docker run -ti -v ${PWD}:/app arch
cargo build
su -- archuser
sudo target/debug/dotfiles [options]
docker run -ti arch
cargo build
su -- archuser
sudo target/debug/dotfiles [options]
docker build -t ubuntu -f ./docker/ubuntu.dockerfile .
docker run -ti -v ${PWD}:/app ubuntu
cargo build
sudo su -- ubuntuuser
sudo target/debug/dotfiles [options]
docker run -ti ubuntu
cargo build
sudo su -- ubuntuuser
sudo target/debug/dotfiles [options]
- If there is a PowerShell profile file under
$HOME\OneDrive\Documents\WindowsPowerShell
, then make sure it doesn't error PowerShell on startup.
- Visit the website with the required root certificate
- Firefox:
Advanced > Add Exception > View Certificate > Details > Select intermediate root CA > Export
save as~/Downloads/${CERT_NAME}.pem
- Chrome:
Toolbar > View Certificate > Details > Select intermediate root CA > Export
save as~/Downloads/${CERT_NAME}.pem
sudo openssl x509 -in ~/Downloads/${CERT_NAME}.pem -inform PEM -out ~/Downloads/${CERT_NAME}.crt
sudo trust anchor --store ~/Downloads/${CERT_NAME}.crt
sudo cp ~/Downloads/${CERT_NAME}.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
sudo keytool -keystore ${JAVA_HOME}/lib/security/cacerts -importcert -alias ${CERT_NAME} -file /usr/local/share/ca-certificates/${CERT_NAME}.crt
sudo keytool -list -keystore ${JAVA_HOME}/lib/security/cacerts | grep ${CERT_NAME}
certutil -d "$HOME/.mozilla/firefox/*.default" -A -i ~/Downloads/${CERT_NAME}.crt -n "${NICKNAME}" -t C,,
- Go to
Preferences/Options > Privacy & Security > View Certificates > Authorities
- Click on
Import
- Navigate to
~/Downloads
- Select
${CERT_NAME}.crt
- Check
Trust this CA to identify websites
- Click
OK
- Click
OK
certutil -d "sql:$HOME/.pki/nssdb" -A -i ~/Downloads/${CERT_NAME}.crt -n "${NICKNAME}" -t C,,
- Go to
Settings > Advanced > Manage certificates > Authorities
- Click on
Import
- Navigate to
~/Downloads
- Select
${CERT_NAME}.crt
- Check
Trust this certificate for identifying websites
- Click
OK
- Go to
File > Settings > Tools > Server Certificates > Accpeted Certificates
- Click on the
+
- Navigate to
~/Downloads
- Select
${CERT_NAME}.crt
- Click
OK
export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
export AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1