Created
March 24, 2012 03:08
-
-
Save corpix/2177807 to your computer and use it in GitHub Desktop.
Fedora env
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
# Fedora 17 x86_64 | |
cd /tmp | |
yum install -y gnome-tweak-tool light-theme-gnome gconf-editor && \ | |
su corpix -c 'dconf write /org/gnome/shell/overrides/button-layout \'"close,minimize,maximize:"\'' && \ | |
wget http://font.ubuntu.com/download/ubuntu-font-family-0.80.zip | |
CHROME_REPO="/etc/yum.repos.d/google-chrome.repo" | |
echo '[google-chrome]' > $CHROME_REPO | |
echo 'name=google-chrome - 64-bit' >> $CHROME_REPO | |
echo 'baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64' >> $CHROME_REPO | |
echo 'enabled=1' >> $CHROME_REPO | |
echo 'gpgcheck=1' >> $CHROME_REPO | |
echo 'gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub' >> $CHROME_REPO | |
yum install -y google-chrome-beta | |
# Добавим rpmfusion | |
yum localinstall -y --nogpgcheck 'http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm' 'http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm' && \ | |
yum install -y mplayer ffmpeg lame parcellite htop iotop mtr iftop traceroute telnet mc bash-completion smartmontools sysstat hddtemp screen make gcc-c++ openssl-devel git mongodb mongodb-server vim-X11 xclip pwgen | |
# Избавляемся от глупостей с F10 | |
### | |
# GTK3 | |
### | |
# Блядь. Где глобальный gtk.css!? | |
GTK3DIR="$HOME/.config/gtk-3.0" | |
mkdir -p $GTK3DIR | |
GTK3CSS="$GTK3DIR/gtk.css" | |
echo '@binding-set NoKeyboardNavigation {' > $GTK3CSS | |
echo ' unbind "F10"' >> $GTK3CSS | |
echo '}' >> $GTK3CSS | |
echo '* {' >> $GTK3CSS | |
echo ' gtk-key-bindings: NoKeyboardNavigation' >> $GTK3CSS | |
echo '}' >> $GTK3CSS | |
### | |
# GTK2 | |
### | |
GTK2RC="/etc/gtk-2.0/gtkrc" | |
echo 'binding "NoKeyboardNavigation" {' > $GTK2RC | |
echo ' unbind "F10"' >> $GTK2RC | |
echo '}' >> $GTK2RC | |
echo 'class "*" binding "NoKeyboardNavigation"' >> $GTK2RC | |
# Virtualbox repo | |
curl http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo > /etc/yum.repos.d/virtualbox.repo | |
yum install -y VirtualBox | |
# YUM autoremove | |
echo 'clean_requirements_on_remove=1' >> /etc/yum.conf | |
wget http://nodejs.org/dist/node-latest.tar.gz | |
tar xfz node-latest.tar.gz | |
cd node-v* | |
./configure && make && make install | |
npm install -g n node-dev | |
# Запустим n от рута, чтобы потом не ругался, что не может создать директорию | |
n | |
cd $HOME && \ | |
mkdir Configs && \ | |
cd Configs && \ | |
git clone https://github.com/corpix/cfgs.git && \ | |
rm $HOME/.vimrc && \ | |
rm -rf $HOME/.vim && \ | |
cd cfgs && \ | |
ln -s `pwd`/.vimrc $HOME/.vimrc && \ | |
ln -s `pwd`/.vim $HOME/.vim && \ | |
ln -s `pwd`/.gitconfig $HOME/.gitconfig && \ | |
ln -s `pwd`/.gitignore_global $HOME/.gitignore_global && \ | |
cd .. && \ | |
git clone https://github.com/corpix/.sh.git && \ | |
cd .sh && \ | |
rm $HOME/.bashrc $HOME/.bash_profile $HOME/.bash_aliases && \ | |
ln -s `pwd`/.profile.d $HOME/.profile.d && \ | |
ln -s `pwd`/.bashrc $HOME/.bashrc && \ | |
ln -s `pwd`/.bash_aliases $HOME/.bash_aliases && \ | |
ln -s `pwd`/.bash_profile $HOME/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment