Skip to content

Instantly share code, notes, and snippets.

@FrankDeGroot
Last active December 31, 2015 17:19
Show Gist options
  • Save FrankDeGroot/8019276 to your computer and use it in GitHub Desktop.
Save FrankDeGroot/8019276 to your computer and use it in GitHub Desktop.
## Disable sudo password.
sudo visudo
# Comment: %wheel ALL=(ALL) ALL
# Uncomment: %wheel ALL=(ALL) NOPASSWD: ALL
## Remove stuff of Fedora I'm not using.
sudo yum -y remove bijiben cheese devassistant empathy evolution gnome-boxes gnome-calculator gnome-clocks gnome-contacts gnome-documents gnome-photos gnome-software gnome-user-docs gnome-weather rhythmbox shotwell totem transmission vinagre
sudo yum group remove libreoffice
## Install if I'm feeling vaine.
# sudo yum -y install adobe-source-sans-pro-fonts adobe-source-code-pro-fonts
# dmz-cursor-themes
## Enable subpixel font rendering
su -c 'yum -y localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
sudo yum -y install freetype-freeworld
gsettings "set" "org.gnome.settings-daemon.plugins.xsettings" "hinting" "full"
gsettings "set" "org.gnome.settings-daemon.plugins.xsettings" "antialiasing" "rgba"
## Install what I am using.
sudo yum -y install git nodejs npm gnome-tweak-tool dconf-editor docker-io
# alacarte
## Remove unused dependencies.
sudo yum -y autoremove
sudo yum -y update
sudo npm update -g npm
npm config set prefix ~
## Set file notification limit for WebStorm.
echo fs.inotify.max_user_watches = 524288 | sudo tee -a /usr/lib/sysctl.d/50-default.conf
sudo sysctl -p
## Install pixel-saver extension.
pushd ~/Documents
git clone https://github.com/deadalnix/pixel-saver.git
cd pixel-saver
sudo cp -r [email protected] /usr/share/gnome-shell/extensions/
rm -rf pixel-saver
popd
## Install Chrome
wget https://dl-ssl.google.com/linux/linux_signing_key.pub
sudo rpm --import linux_signing_key.pub
rm linux_signing_key.pub
sudo sh -c 'echo "[google-chrome]
name=Google Chrome 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64" >> /etc/yum.repos.d/google-chrome.repo'
sudo yum -y install google-chrome-stable
## Extract apps.
sudo mount -t cifs //10.0.2.2/Users/Frank /home/frank/Public -o domain=frankg6430,username=frank
SOURCE=~/Public
DOWNLOADS=$SOURCE/Downloads/VMs
LINUX=$DOWNLOADS/Linux
ITEMS=$SOURCE/OneDrive/Frank/Linux
pushd /opt
for f in $LINUX/*.tar.gz; do sudo tar -zxvf $f; done
# Allow update by user.
sudo chmod -R 777 android-studio
# Log to user local folder.
sudo sed -i 's/\${activemq.base}\/data\/activemq.log/\${activemq.data}\/activemq.log/' apache-activemq-5.10.0/conf/log4j.properties
sudo yum install -y $JAVA/JDKs/*.rpm
sudo cp $ITEMS/apps/*.desktop /usr/local/share/applications
mkdir ~/bin
cp $ITEMS/bin/* /usr/bin
#chown -R frank:frank ~/bin
sudo chmod -R u+x ~/bin/*
popd
sudo umount ~/Public'
# /run/user/$(id -u frank)/gvfs/smb-share:server=192.168.239.1,share=users/Frank
## Install MongoDB from mongodb.org.
sudo sh -c 'echo "[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1" >> /etc/yum.repos.d/mongodb.repo'
sudo yum -y install mongodb-org
sudo semanage port -a -t mongod_port_t -p tcp 27017
sudo sed -i 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux.conf
sudo sed -i 's/# pidfile: .*/\0\npidfile: \/var\/lib\/mongo\/mongod.lock/' /etc/init.d/mongod
sudo systemctl --system daemon-reload
sudo mkdir /data
sudo mkdir /data/db
sudo genhomedircon
sudo touch /.autorelabel
sudo reboot
## Install MariaDB
sudo sh -c 'echo "[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1" >> /etc/yum.repos.d/MariaDB.repo'
sudo yum -y install MariaDB-server MariaDB-client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment