Last active
July 24, 2018 07:24
-
-
Save deleugpn/ab9a09497e08f42b938051705dc4ee9c to your computer and use it in GitHub Desktop.
Basic Centos + Gnome installation
This file contains hidden or 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
*.swp |
This file contains hidden or 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
[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 |
This file contains hidden or 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
systemctl disable firewalld | |
yum install -y net-tools git ctags | |
# Disable UseDNS for SSH | |
while read a ; do echo ${a//UseDNS yes/UseDNS no} ; done < /etc/ssh/sshd_config > /etc/ssh/sshd_config.t ; mv /etc/ssh/sshd_config{.t,} | |
# Install VirtualBox Additional Guest | |
mkdir /media/vbox | |
mount -r /dev/cdrom /media/vbox | |
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
yum install -y gcc kernel-devel kernel-headers dkms make bzip2 perl | |
KERN_DIR=/usr/src/kernels/3.10.0-514.26.2.el7.x86_64/ | |
export KERN_DIR | |
cd /media/vbox | |
./VBoxLinuxAdditions.run | |
useradd deleu -m | |
gpasswd -a deleu wheel | |
echo "12345678" | passwd --stdin deleu | |
passwd --expire deleu | |
# Add home directory | |
mkdir /home/deleu/composer-cache | |
mkdir /home/deleu/bin | |
mkdir /home/deleu/docker | |
mkdir /home/deleu/docker/php-cli | |
mkdir /home/deleu/.vim | |
mkdir /home/deleu/.vim/colors | |
mkdir /home/deleu/workspace | |
# Install Docker | |
yum install -y yum-utils \ | |
device-mapper-persistent-data \ | |
lvm2 | |
yum-config-manager \ | |
--add-repo \ | |
https://download.docker.com/linux/centos/docker-ce.repo | |
yum install -y docker-ce | |
systemctl enable docker | |
# Setup Docker for non-root users | |
sudo groupadd docker | |
sudo usermod -aG docker deleu | |
# Install Docker Compose | |
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# User permission | |
chown deleu:deleu /home/deleu -R | |
chown deleu:deleu /home/deleu/.* -R | |
# Install Graphical Interface | |
yum groupinstall -y "GNOME Desktop" "Graphical Administration Tools" | |
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target | |
# Provide easy script to download and execute Post Installation | |
echo "bash <(curl -L https://gist.github.com/deleugpn/ab9a09497e08f42b938051705dc4ee9c/raw/post-install.sh)" > /tmp/post-install.sh && chmod +x /tmp/post-install.sh | |
yum install -y gvim | |
# Google Chrome | |
curl https://gist.githubusercontent.com/deleugpn/ab9a09497e08f42b938051705dc4ee9c/raw/google-chrome.repo > /etc/yum.repos.d/google-chrome.repo | |
yum install -y google-chrome-stable | |
reboot |
This file contains hidden or 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 bashrc | |
curl https://gist.githubusercontent.com/deleugpn/b38c6b7b8ffb25d9a506e02f7dab81ce/raw/ > /home/deleu/.bashrc | |
# Install Git Auto Completion | |
curl https://gist.githubusercontent.com/deleugpn/0795bcf44a1431b90c3c0c639dd5f1eb/raw/ > /home/deleu/.git-completion.bash | |
curl https://gist.githubusercontent.com/deleugpn/930ef8cb2313a4318cbfa6c9f99bb372/raw/ > /home/deleu/.git-prompt.sh | |
git config --global color.ui auto | |
$(echo "Z2l0IGNvbmZpZyAtLWdsb2JhbCB1c2VyLmVtYWlsIGRlbGV1Z3luQGdtYWlsLmNvbQo=" | base64 --decode) | |
git config --global user.name "Marco Deleu" | |
git config --global core.excludesfile /home/deleu/.gitignore | |
git config core.fileMode false | |
curl https://gist.githubusercontent.com/deleugpn/ab9a09497e08f42b938051705dc4ee9c/raw/.gitignore > /home/deleu/.gitignore | |
# Default PHP CLI Installation | |
curl https://gist.githubusercontent.com/deleugpn/07d1bdf837855626b2787645a39da472/raw/ > /home/deleu/docker/php-cli/Dockerfile | |
git clone https://github.com/deleugpn/phpunit-container.git /home/deleu/docker/phpunit/ | |
# Vim Settings | |
curl https://gist.githubusercontent.com/deleugpn/64519cb7d08fc32147f8bfb58480ab70/raw/.vimrc > /home/deleu/.vimrc | |
curl https://gist.githubusercontent.com/deleugpn/64519cb7d08fc32147f8bfb58480ab70/raw/plugins.vim > /home/deleu/.vim/plugins.vim | |
curl https://raw.githubusercontent.com/gosukiwi/vim-atom-dark/master/colors/atom-dark.vim > /home/deleu/.vim/colors/atom-dark.vim | |
curl https://gist.githubusercontent.com/deleugpn/64519cb7d08fc32147f8bfb58480ab70/raw/fire-coda.sh > /tmp/fire-coda-install.sh | |
chmod +x /tmp/fire-coda-install.sh && /tmp/fire-coda-install.sh | |
git clone https://github.com/VundleVim/Vundle.vim.git /home/deleu/.vim/bundle/Vundle.vim | |
gvim -c ":PluginInstall" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment