- Create user
- Add online accounts as needed
- Ubuntu One
#!/bin/bash | |
# Update AWS tokens in all profiles | |
# Credentials File | |
creds="/home/${USER}/.aws/credentials" | |
# AWS username | |
fed=${FED_USERNAME} | |
# Convert UTC to local time | |
tz=$(timedatectl | grep "Time zone" | awk '{ print $4 " " $5 }') | |
# Get a list of profiles |
sudo ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N '' -t ed25519 |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBF2Cr7UBEADJZHcgusOJl7ENSyumXh85z0TRV0xJorM2B/JL0kHOyigQluUG | |
ZMLhENaG0bYatdrKP+3H91lvK050pXwnO/R7fB/FSTouki4ciIx5OuLlnJZIxSzx | |
PqGl0mkxImLNbGWoi6Lto0LYxqHN2iQtzlwTVmq9733zd3XfcXrZ3+LblHAgEt5G | |
TfNxEKJ8soPLyWmwDH6HWCnjZ/aIQRBTIQ05uVeEoYxSh6wOai7ss/KveoSNBbYz | |
gbdzoqI2Y8cgH2nbfgp3DSasaLZEdCSsIsK1u05CinE7k2qZ7KgKAUIcT/cR/grk | |
C6VwsnDU0OUCideXcQ8WeHutqvgZH1JgKDbznoIzeQHJD238GEu+eKhRHcz8/jeG | |
94zkcgJOz3KbZGYMiTh277Fvj9zzvZsbMBCedV1BTg3TqgvdX4bdkhf5cH+7NtWO | |
lrFj6UwAsGukBTAOxC0l/dnSmZhJ7Z1KmEWilro/gOrjtOxqRQutlIqG22TaqoPG |
#!/bin/bash | |
STTY=$(stty -g) | |
stty -echo | |
echo -e "connect <vpn server>/<path>\n<vpn user>" | |
/usr/bin/security find-generic-password -wl vpnpass.extadmin | |
oathtool --totp -b "$(/usr/bin/security find-generic-password -wl oathkey.extadmin)" | |
echo -e "y\n" | |
#stty "${STTY}" |
-- Create a new generic password entry in Keychain Access called {vpnKeychainEntry} (the name in Keychain access must match that in line 10 below) with your password for the Cisco AnyConnect VPN server. | |
-- e.g., /usr/bin/security add-generic-password -a joey -s vpnpass -l 'vpnpass.extadmin' -w` | |
-- Create another one for the oath token (use the same label as found on line 13); enter the OATH tool token identifier twice | |
-- e.g., /usr/bin/security add-generic-password -a joey -s vpnpass -l 'oathkey.extadmin' -w` | |
-- Open this script in Script Editor (both this and the above are in the Applications->Utilities folder) and "Save as.." an Application (.app) with desired name. | |
-- Open Security & Privacy System Preferences, go to Privacy, Accessibility. | |
-- Enable the above .app so it can access Accessibility | |
-- Copy and paste a nice icon on the generic Applescript icon (I used a copy of the default AnyConnect one) | |
-- Add the new .app to ${HOME}/Applications with a shortcut to your Dock | |
-- Enjoy the fast conn |
open | |
get State:/Network/Service/com.cisco.anyconnect/DNS | |
d.remove ServerAddresses | |
d.add ServerAddresses * 172.30.1.2 | |
set State:/Network/Service/com.cisco.anyconnect/DNS | |
quit |
I avoid Windows at all cost however someone in need asked for help on this topic. Changing to Natural Scroll in Windows for a mouse is a royal pain in the ass. It is trivial to fix for a track pad but not for a the scroll wheel of a mouse. You must do things the Mircosoft way. If you have a Linux VM on top of Windows fixing this can ve confusing.
Hardware
Details
Hardware IDs
FIPS stands for “Federal Information Processing Standards.” It’s a set of government standards that define how certain things are used in the government–for example, encryption algorithms. FIPS defines certain specific encryption methods that can be used, as well as methods for generating encryption keys. It’s published by the National Institute of Standards and Technology, or NIST. FIPS mode is stupid.
yum install dracut-fips
For CPUs with the AES New Instructions (AES-NI) support, install the dracut-fips-aesni package as well:
yum install dracut-fips-aesni
logformat squid %tl %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt | |
``` | |
Time related format codes: | |
ts Seconds since epoch | |
tu subsecond time (milliseconds) | |
tl Local time. Optional strftime format argument | |
default %d/%b/%Y:%H:%M:%S %z | |
tg GMT time. Optional strftime format argument |