Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Manjaro Install script
# Prepare pacman
sudo mkdir -p /root/.gnupg
sudo pacman-key --init && sudo pacman-key --populate archlinux manjaro && sudo pacman-key --refresh-keys
# Remove packages
sudo pacman -R empathy accerciser gnome-chess gnome-sudoku gnome-tetravex polari five-or-more four-in-a-row steam-native ipython hitori gnome-klotski steam quadrapassel gnome-nibbles aisleriot lightsoff gnome-mahjongg gnome-mines iagno gnome-robots tali swell-foop
# Upgrade all
sudo pacman -Syyu
# Install zsh & oh-my-zsh
sudo pacman -S --noconfirm git zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
chsh -s $(which zsh)
# Do logout & login
# Install official packages
sudo pacman -S --noconfirm mysql pidgin plank openssh playonlinux wine tk libreoffice-still-pt-BR nethogs python2 python2-pip docker vim synapse samba
# Install community packages
yaourt -S --noconfirm google-chrome sublime-text-dev ngrok elementary-icon-theme fasd
# Install custom softwares
curl https://raw.githubusercontent.com/creationix/nvm/v0.23.3/install.sh | bash
# yaourt -S --noconfirm teamviewer insync dropbox
# yaourt -S --noconfirm crashplan
# yaourt -S --noconfirm nautilus-dropbox insync-nautilus
# Enable docker without sudo
sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo systemctl enable docker
sudo systemctl start docker
newgrp docker
# Install virtualbox
sudo pacman -S linux316-headers
sudo pacman -S virtualbox
# Gnome settings
gsettings set org.gnome.desktop.interface clock-show-date true
gsettings set org.gnome.shell enabled-extensions 'elementary'
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
gsettings set org.gnome.Terminal.Legacy.Settings dark-theme true
gsettings set org.gnome.Terminal.Legacy.Settings new-terminal-mode 'tab'
gsettings set org.gnome.Terminal.Legacy.Settings default-show-menubar false
# gsettings set org.gnome.Terminal.Legacy.Keybindings prev-tab '<Alt>Left'
# gsettings set org.gnome.Terminal.Legacy.Keybindings next-tab '<Alt>Right'
# gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/gnome/Mirror.jpg'
# gsettings set org.gnome.desktop.datetime automatic-timezone true
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 6, 2015

Workaround for error "gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed"

https://bbs.archlinux.org/viewtopic.php?id=190380

sudo mkdir -p /root/.gnupg

or

dirmngr </dev/null
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 6, 2015

VirtualBox with DKMS (community)

mhwd-kernel -li
sudo pacman -S linux[CURRENT VERSION]-headers
sudo dkms install vboxhost/4.3.20
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 6, 2015

Plank Themer

http://rhoconlinux.github.io/plank-themer/

Sugestion: OSXYosemite

@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 6, 2015

Python 2 as default python on arch

http://stackoverflow.com/questions/15400985/how-to-completely-replace-python-3-with-python-2-in-arch-linux

sudo ln -sf /usr/bin/python2 /usr/bin/python

ATENÇÃO!! ISSO PODE QUEBRAR VÁRIAS COISAS!!

@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 6, 2015

Enable teamviewer

yaourt -S teamviewer
sudo systemctl enable teamviewerd
sudo systemctl start teamviewerd
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 6, 2015

Locale configuration

sudo vim /etc/locale.gen
sudo locale-gen        
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 6, 2015

SublimeText3 Suggestion:

Preferences - User Settings:

{
    "color_scheme": "Packages/User/SublimeLinter/Tomorrow (SL).tmTheme",
    "theme": "Piatto Light 3.sublime-theme"
}

Package Control - User Settings:

{
    "in_process_packages":
    [
    ],
    "installed_packages":
    [
        "AutoFileName",
        "Color Highlighter",
        "DocBlockr",
        "EclipseJavaFormatter",
        "EditorConfig",
        "Focus File on Sidebar",
        "Gradle_Language",
        "HTMLBeautify",
        "Javascript Beautify",
        "JavaScriptFunctionDefinition",
        "JsFormat",
        "Keymaps",
        "Package Control",
        "PHP-Twig",
        "SideBarEnhancements",
        "SublimeCodeIntel",
        "SublimeLinter",
        "SublimeLinter-jshint",
        "Theme - amCoder",
        "Theme - Piatto",
        "Theme - Spacegray",
        "Themr",
        "Tomorrow Color Schemes",
        "TrailingSpaces"
    ]
}
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 6, 2015

Zshrc Suggestion

plugins=(git common-aliases extract fasd)

or

plugins=(archlinux gitfast git-extras sublime sudo catimg command-not-found common-aliases dirhistory fasd last-working-dir)

or

plugins=(archlinux systemd gitfast git-extras git-flow-avh jsontools per-directory-history sublime sudo web-search aws catimg command-not-found common-aliases dircycle dirhistory encode64 fasd last-working-dir)
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 6, 2015

Disable gnome "Show mouse"

gsettings set org.gnome.settings-daemon.peripherals.mouse locate-pointer false
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 6, 2015

Gnome Shell Extensions Sugestion:

ls ~/.local/share/gnome-shell/extensions/ 

TopIcons@phocean.net
caffeine@patapon.info
extensions@abteil.org
gnomenu@panacier.gmail.com
impatience@gfxmonk.net
multi-monitors-add-on@spin83
panel-osd@berend.de.schouwer.gmail.com
pidgin@muffinmad
simple-dock@nothing.org
shell-volume-mixer@derhofbauer.at
transparenttopbar@julienpecqueur.net
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 7, 2015

Install HP Printer

Install HP
pacman -S hplip
sudo hp-plugin
sudo hp-setup
After HP printer configured:

add IgnorePkg=hplip-plugin hplip to /etc/pacman.conf

@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 7, 2015

Install Oracle JDK

yaourt -S --noconfirm jdk jdk7 jdk6
sudo archlinux-java set java-8-jdk
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 8, 2015

Install Infinality Font Patches

Beautiful fonts on linux
Discussion: https://bbs.archlinux.org/viewtopic.php?id=162098

1. Add to /etc/pacman.conf
[infinality-bundle]
Server = http://bohoomil.com/repo/$arch

[infinality-bundle-multilib]
Server = http://bohoomil.com/repo/multilib/$arch

[infinality-bundle-fonts]
Server = http://bohoomil.com/repo/fonts
2. Next import and sign keys:
sudo pacman-key -r 962DDE58 && sudo pacman-key --lsign-key 962DDE58
3. Install Infinality:
sudo pacman -Syyu && sudo pacman -S infinality-bundle
sudo ln -fs /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d/70-no-bitmaps.conf
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 8, 2015

HD performance

https://wiki.archlinux.org/index.php/fstab#atime_options

SAMPLE /etc/fstab
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>   <dump>  <pass>
UUID=409ba361-0f80-408d-8590-6110d28a0811 swap swap defaults 0 0
UUID=7aa602f0-68b4-415e-ab26-815eb7b0c5e0 /home ext4 defaults,noatime 0 1
UUID=cb2999c9-3b29-4b09-b8bd-b54c5dcea030 / ext4 defaults,noatime 0 1
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 8, 2015

Preload

Preload is an “adaptive readahead daemon” that runs in the background of your system, and observes what programs you use most often, caching them in order to speed up application load time. By using Preload, you can put unused RAM to good work, and improve the overall performance of your desktop system.

yaourt -S preload

Discussion: http://askubuntu.com/questions/110335/drawbacks-of-using-preload-why-isnt-it-included-by-default

@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 8, 2015

Synapse - Space hot-key

sudo pacman -S synapse
Release <Win>Space hotkey
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['']"
De-bind Windows key

https://wiki.archlinux.org/index.php/GNOME

gsettings set org.gnome.mutter overlay-key "Super_R"

or

gsettings set org.gnome.mutter overlay-key ""
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 8, 2015

Gnome settings

https://wiki.archlinux.org/index.php/GNOME
http://alice.saske.sk/wiki/GNOME

Configure gnome, and export settings using:
gsettings list-recursively > gsettings.txt

Compare exported settings with a new user default settings using meld

@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Feb 25, 2015

PlayOnLinux - Microsoft Office 2010

Install samba
sudo pacman --noconfirm -S samba
Install Office 2010

http://www.playonlinux.com/en/app-801-Microsoft_Office_2010.html

@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Apr 22, 2015

Better Gnome Terminal (fedora patches)

Installation

yaourt -S gnome-terminal-fedora

See it in action

https://www.youtube.com/watch?v=zFtUtgKmQlU

@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Apr 24, 2015

Vim (SPF13-VIM) http://vim.spf13.com/

Installation

curl http://j.mp/spf13-vim3 -L -o - | sh
Disable automatic visual mode on right-click
echo "set mouse-=a"  >> ~/.vimrc.local 
Disable spell
echo "set nospell"  >> ~/.vimrc.local 
@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented May 31, 2016

Alias for system upgrade

sysupgrade='sudo pacman --noconfirm -Syyyyu && yaourt --noconfirm -Syua'

@gabrielmoreira

This comment has been minimized.

Copy link
Owner Author

@gabrielmoreira gabrielmoreira commented Jun 11, 2016

If yaourt asks too much...

If you fed up with these questions asked all the time by yaourt:
Edit PKGBUILD ? [Y/n] ("A" to abort)
Edit <pkg_name>.install ? [Y/n] ("A" to abort)
Continue building <pkg_name> ? [Y/n]

The simple solution is to create a .yaourtrc under your home directory and configure yaourt to your taste. You can use the global /etc/yaourtrc file as a sample:

cp /etc/yaourtrc ~/.yaourtrc

Edit .yaourtrc to your liking according to http://archlinux.fr/man/yaourtrc.5.html

I simply edited two lines:

BUILD_NOCONFIRM=1
EDITFILES=0

These two will prevent yaourt to ask for editing anything and for continuing the build, it will skip these steps and will build the packages for you automatically. Still it will leave you some manual controls not to install anything unintentionally:
When you do system upgrade ( yaourt -Syua ), it will tell you what packages are to be installed and will ask "Continue upgrade ? [Y/n]".
It will always ask the last question for installing a package after building it: "Proceed with installation? [Y/n]". 

from http://kissmyarch.blogspot.com.br/2012/05/two-simple-yaourt-tips.html

@leodutra

This comment has been minimized.

Copy link

@leodutra leodutra commented Jan 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.