Last active
March 5, 2017 20:53
-
-
Save albertmatyi/ccc1f67fa20d139fce742671147715ff to your computer and use it in GitHub Desktop.
Set up a manjaro / arch dev box
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
#!/bin/bash -x | |
# remove sudo require password | |
sudo vim /etc/sudoers | |
#manjaro-only sudo vim /etc/sudoers.d/10-installer | |
# adjust mirrorlist & update system | |
#manjaro-only sudo pacman-mirrors -i | |
sudo pacman -Syu --noconfirm | |
# install yaourt (optional on manjaro) | |
sudo cat >> /etc/pacman.conf <<EOL | |
[archlinuxfr] | |
SigLevel = Never | |
Server = http://repo.archlinux.fr/\$arch | |
EOL | |
sudo pacman -Sy yaourt --noconfirm | |
# install all packages (from repos & from aur) | |
yaourt -S \ | |
apache-ant autoconf automake baobab bash bash-completion chromium dmenu docker docker-compose eog feh file-roller firefox gimp git glibc go gparted gradle groovy groovy-docs gst-plugins-bad gst-plugins-good gst-plugins-ugly gvfs gvfs-mtp gvfs-smb htop imagemagick inkscape iotop iproute2 iputils jdk8-openjdk jre8-openjdk jre8-openjdk-headless leafpad less libreoffice-fresh libvirt make maven mc meld midori mongodb mongodb-tools mysql-workbench nano ncdu nginx nmap nodejs npm ntfs-3g openjdk8-doc openjdk8-src openssh openvpn p7zip powertop sshpass sudo thunar thunar-archive-plugin thunar-volman tilda tlp traceroute transmission-gtk ttf-dejavu ttf-liberation tumbler unrar usbutils vagrant vi vim virtualbox virtualbox-guest-iso virtualbox-host-dkms visualvm vlc wget which whois wine xclip xdotool xorg-xkill \ | |
android-studio android-sdk android-sdk-build-tools android-tools atom-editor-bin bash-git-prompt downgrade dpkg google-chrome gstreamer0.10-base-plugins heroku-toolbelt intellij-idea-ultimate-edition numix-circle-icon-theme-git phatch robomongo-bin teamviewer ttf-ms-fonts xflux xzoom yaourt webstorm \ | |
--noconfirm | |
# buggy installations | |
yaourt -S octopi skype | |
# add gitaware prompt | |
mkdir ~/.bash | |
( | |
cd ~/.bash | |
git clone git://github.com/jimeh/git-aware-prompt.git | |
) | |
# generate ssh keys | |
printf "\n\n\n" | ssh-keygen | |
# set bashrc file | |
cat >> ~/.bashrc <<EOL | |
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion | |
alias ls='ls --color=auto' | |
alias grep='grep --color=auto' | |
alias rename='perl-rename' | |
alias ll='ls -l' | |
alias la='ll -a' | |
alias xclip='xclip -selection c -i' | |
export ANDROID_SDK_HOME=/opt/android-sdk | |
export ANDROID_HOME=/opt/android-sdk | |
export PATH=~/bin:$PATH | |
export JAVA_HOME=/usr/lib/jvm/default | |
export EDITOR=vim | |
export EDITOR_VISUAL=atom | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source "${GITAWAREPROMPT}/main.sh" | |
HOMECHAR=$'\u2302' | |
PS1="\t|\[\e[0;32m\]\u@$HOMECHAR\[\e[m\] \[\e[1;34m\]\w\[\e[m\]\[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\[\e[1;32m\]\\$ \[\e[m\]\[\e[1;37m\]" | |
if [ -f %{/usr/lib/bash-git-prompt/gitprompt.sh ]; then | |
# To only show the git prompt in or under a repository directory | |
# GIT_PROMPT_ONLY_IN_REPO=1 | |
# To use upstream's default theme | |
# GIT_PROMPT_THEME=Default | |
# To use upstream's default theme, modified by arch maintainer | |
GIT_PROMPT_THEME=Default_Arch | |
source /usr/lib/bash-git-prompt/gitprompt.sh | |
fi | |
export PATH=~/.gem/ruby/2.4.0/bin:$PATH | |
export PATH=./node_modules/.bin/:$PATH | |
export PATH=$PATH:/opt/android-sdk/tools | |
export GOPATH=~/.go/ | |
export PATH=$PATH:~/.go/bin | |
export GRADLE_USER_HOME=~/.gradle | |
export PATH=$PATH:./scripts/ | |
# export IP=$(curl -s bot.whatismyipaddress.com) | |
source /usr/share/nvm/init-nvm.sh | |
EOL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment