Last active
May 18, 2020 10:46
-
-
Save emepetres/4b83b4a652e7ad96b41c216995b27fe2 to your computer and use it in GitHub Desktop.
Manjaro initial set up
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 | |
# yay for aur | |
sudo sed -i 's/#Color/Color/g' /etc/pacman.conf | |
sudo pacman -Syyu --noconfirm | |
sudo pacman -S base-devel yay --noconfirm | |
# neovim | |
sudo pacman -S neovim --noconfirm | |
sudo ln -s /usr/bin/nvim /usr/bin/vim | |
# Bluetooth set up | |
yay -S pulseaudio-modules-bt-git --noconfirm # LDAC/aptX drivers | |
sudo pacman -S pulseaudio-bluetooth-a2dp-gdm-fix --noconfirm | |
sudo bash -c "echo -e \"\n# automatically switch to newly-connected devices\nload-module module-switch-on-connect\" >> /etc/pulse/default.pa" | |
sudo sed -i 's/load-module module-bluetooth-policy/load-module module-bluetooth-policy auto_switch=2/g' /etc/pulse/default.pa | |
# Desktop (murrine to remove gtk warning) | |
sudo pacman -S gtk-engine-murrine --noconfirm | |
sudo pacman -S gnome-shell-extension-dash-to-panel gnome-shell-extension-gsconnect caffeine-ng --noconfirm | |
#gnome-shell-extension-topicons-plus-huttli --noconfirm | |
# Chromium | |
sudo pacman -S chromium --noconfirm | |
# Spotify | |
yay -S spotify --noconfirm | |
# Skype | |
yay -S skypeforlinux-stable-bin --noconfirm # Skype | |
############### | |
# Programming # | |
############### | |
yay -S visual-studio-code-bin --noconfirm | |
sudo pacman -S git tk --noconfirm | |
curl -LO https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
chmod +x Miniconda3-latest-Linux-x86_64.sh | |
sudo ./Miniconda3-latest-Linux-x86_64.sh -b -p /opt/miniconda3 | |
source /opt/miniconda3/etc/profile.d/conda.sh | |
conda config --set auto_activate_base False | |
conda init bash | |
sudo pacman -S docker docker-compose --noconfirm | |
sudo systemctl enable docker | |
sudo systemctl start docker | |
sudo usermod -aG docker $USER | |
sudo pacman -S otf-fira-code ttf-fira-code --noconfirm | |
######## | |
# CUDA # | |
######## | |
yay -S nvidia-docker --noconfirm | |
## Only to use natively without docker: | |
# change opencl version according to nvidia driver version | |
sudo pacman -S opencl-nvidia-430xx cuda cudnn --noconfirm | |
# To install tensorrt, first download the lastest ubuntu tar from https://developer.nvidia.com/tensorrt/ (NVIDIA account needed). | |
# Then, edit the pkgbuild source entry: source=("file://${_srcname}.. -> source=("file:///home/jcarnero/Downloads/${_srcname}.. | |
yay -S tensorrt --editmenu | |
######## | |
# VAIO # | |
######## | |
sudo pacman -S iio-sensor-proxy --noconfirm | |
sudo pacman -S xorg-xinput --noconfirm | |
# TODO install palmreject | |
######### | |
# Other # | |
######### | |
# Messaggin applications | |
sudo pacman -S pidgin pidgin-sipe --noconfirm # Pidgin | |
# Owncloud | |
sudo pacman -S owncloud-client --noconfirm | |
# Onedrive | |
yay -S onedrive-abraunegg --noconfirm | |
mkdir -p ~/.config/onedrive | |
cat > ~/.config/onedrive/config <<- EOM | |
# Directory where the files will be synced | |
sync_dir = "~/Documents" | |
# Skip files and directories that match this pattern | |
skip_file = "~*|.~*|*.tmp" | |
EOM | |
sudo systemctl enable onedrive | |
sudo systemctl start onedrive | |
# Smart Card | |
sudo pacman -S ccid opensc --noconfirm | |
sudo sed -i '/app default {/a\ enable_pinpad = false;' /etc/opensc.conf | |
sudo systemctl enable pcscd | |
sudo systemctl start pcscd | |
# TODO Warning that is necessary to open the Firefox Security Devices page (reach it via Preferences, Privacy & Security, Certificates, Security devices), then click Load and set the Module Name to CAC Module and module filename to /usr/lib/opensc-pkcs11.so. | |
modutil -dbdir sql:.pki/nssdb/ -add "CAC Module" -libfile /usr/lib/opensc-pkcs11.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment