This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /tmp || exit | |
echo "Downloading latest Postman..." | |
wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz | |
tar -xzf postman.tar.gz | |
rm postman.tar.gz | |
if [ -d "/opt/Postman" ];then | |
echo "Removing previous installation in /opt/Postman..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a public/private rsa key pair | |
ssh-keygen -t rsa -C "[email protected]" -b 4096 | |
# Associate the key pair to the server you are attempting to authenicate | |
ssh-copy-id -i ~/.ssh/id_rsa.pub eaflanigan@watson-dev | |
# Run ssh-add on the client machine, that will add the SSH key to the agent | |
ssh-add | |
# List SSH keys to verify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Install CentOS 7 - Minimal | |
### Install GUI | |
yum -y groupinstall "X Window System" "Fonts" | |
yum -y install gnome-classic-session gnome-terminal nautilus-open-terminal control-center | |
yum -y install fontconfig dejavu*fonts gnu*fonts liberation*fonts xorg-x11-font-utils open-sans-fonts libreoffice-opensymbol-fonts abattis-cantarell-fonts cjkuni-uming-fonts ghostscript-fonts google-crosextra-caladea-fonts google-crosextra-carlito-fonts jomolhari-fonts khmeros-base-fonts lklug-fonts lohit*fonts madan-fonts nhn-nanum-gothic-fonts overpass-fonts paktype-naskh-basic-fonts paratype-pt-sans-fonts sil*fonts smc-meera-fonts stix-fonts thai-scalable-waree-fonts ucs-miscfixed-fonts urw-fonts vlgothic-fonts wqy-microhei-fonts wqy-zenhei-fonts | |
yum -y install policycoreutils-python | |
unlink /etc/systemd/system/default.target | |
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target | |
reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add custom boomarks to the file below: | |
vim \home\$user\.config\gtk-3.0\bookmarks | |
file:///srv/ Local | |
smb://eaflanigan@dc05/share Share | |
sftp://eaflanigan@server/srv/apps/ Server Apps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit the file below and comment out what you don't want | |
# REBOOT aftr edit to see changes | |
vim \home\$user\.config\user-dirs.dirs | |
# This file is written by xdg-user-dirs-update | |
# If you want to change or add directories, just edit the line you're | |
# interested in. All local changes will be retained on the next run | |
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped | |
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Yum install needed packages | |
yum install epel-release | |
yum install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd | |
# Update virus definitions | |
freshclam | |
# Scan single file | |
clamscan /path/to/file.ext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > ~/Desktop/postman.desktop <<EOL | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Postman | |
Exec=postman | |
Icon=/opt/Postman/resources/app/assets/icon.png | |
Terminal=false | |
Type=Application | |
Categories=Development; | |
EOL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove all DRM tags | |
eyeD3 --remove-frame PRIV ./ | |
# Rename according to tags | |
eyeD3 --rename '$artist - $album - $track:num - $title' *.mp3 |