Skip to content

Instantly share code, notes, and snippets.

@collinprice
Last active August 29, 2015 14:28
Show Gist options
  • Save collinprice/79f4ce6b56a82d5a2af9 to your computer and use it in GitHub Desktop.
Save collinprice/79f4ce6b56a82d5a2af9 to your computer and use it in GitHub Desktop.
centos 7
# /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
yum install epel-release
yum install ntfs-3g
grub2-mkconfig -o /boot/grub2/grub.cfg
yum install google-chrome-stable
# default
yum install -y zsh git
usermod -s /bin/zsh root
usermod -s /bin/zsh <username>
rm .bash* .zcomp*
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash
nvm install stable
nvm alias default stable
sudo yum -y install postgresql-server postgresql-contrib
sudo postgresql-setup initdb
sudo vim /var/lib/pgsql/data/pg_hba.conf
# host all all 127.0.0.1/32 md5
# host all all ::1/128 md5
sudo systemctl start postgresql
sudo systemctl enable postgresql
sudo -i -u postgres
createuser --interactive
# <username>
createdb <username>
# http://www.dedoimedo.com/computers/centos-7-nvidia.html
yum update
yum install kernel-devel kernel-headers gcc make
# edit /etc/default/grub
# add rdblacklist=nouveau
grub2-mkconfig -o /boot/grub2/grub.cfg
# edit /etc/modprobe.d/blacklist.conf
# append blacklist nouveau
# restart
# init 3
# run driver
# init 5
yum remove xorg-x11-drv-nouveau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment