-
-
Save gabrielmoreira/561ec9374e03567fa710 to your computer and use it in GitHub Desktop.
# 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 |
VirtualBox with DKMS (community)
mhwd-kernel -li
sudo pacman -S linux[CURRENT VERSION]-headers
sudo dkms install vboxhost/4.3.20
Plank Themer
http://rhoconlinux.github.io/plank-themer/
Sugestion: OSXYosemite
Python 2 as default python on arch
sudo ln -sf /usr/bin/python2 /usr/bin/python
ATENÇÃO!! ISSO PODE QUEBRAR VÁRIAS COISAS!!
Enable teamviewer
yaourt -S teamviewer
sudo systemctl enable teamviewerd
sudo systemctl start teamviewerd
Locale configuration
sudo vim /etc/locale.gen
sudo locale-gen
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"
]
}
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)
Disable gnome "Show mouse"
gsettings set org.gnome.settings-daemon.peripherals.mouse locate-pointer false
Gnome Shell Extensions Sugestion:
ls ~/.local/share/gnome-shell/extensions/
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
multi-monitors-add-on@spin83
[email protected]
pidgin@muffinmad
[email protected]
[email protected]
[email protected]
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
Install Oracle JDK
yaourt -S --noconfirm jdk jdk7 jdk6
sudo archlinux-java set java-8-jdk
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
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
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
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 ""
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
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
Better Gnome Terminal (fedora patches)
Installation
yaourt -S gnome-terminal-fedora
See it in action
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
Alias for system upgrade
sysupgrade='sudo pacman --noconfirm -Syyyyu && yaourt --noconfirm -Syua'
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
Workaround for error "gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed"
https://bbs.archlinux.org/viewtopic.php?id=190380
or