Last active
December 25, 2015 22:39
-
-
Save ericodc/7051554 to your computer and use it in GitHub Desktop.
configs para Ubuntu 13.10 x64
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
configs para Ubuntu 13.10 x64 | |
================================= | |
Seção Básica | |
--------------------------------- | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install openssh-server aptitude synaptic synergy git-core leafpad zsh guake lynx -y | |
habilitando root | |
-------------------------- | |
$ sudo passwd root | |
$ su root | |
$ sudo passwd -l root //desativa | |
===================================== | |
CONFIGURAR LAMP | |
---------------------------------------- | |
sudo apt-get install unity-tweak-tool samba system-config-samba cifs-utils winbind // gufw | |
cat /etc/group | grep `whoami` //mostra grupos do usuario, conferir participação no sambausers | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
** L*A*M*P ** | |
sudo apt-get install apache2 apache2-mpm-prefork apache2-utils apache2-dev apache2-bin libapache2-mod-php5 libapr1 libaprutil1 libdbi-perl libnet-daemon-perl libplrpc-perl libpq5 curl apache2-prefork-dev libapr1-dev php5-common libdbd-mysql-perl mysql-client mysql-common mysql-server mysql-server php5-common php5-mysql libmysqlclient-dev mysql-workbench phpmyadmin sqlite3 sqlite3-doc libsqlite3-dev -y | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
//grupos | |
qwer adm cdrom sudo dip plugdev lpadmin sambashare | |
$sudo usermod -a -G www-data [grupo] [usuario] | |
========================================= | |
CONFIGURAÇÕES PARA DESENVOLVIMENTO | |
----------------------------------------- | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
**** DEVCS ****** | |
sudo apt-get install git-core git-svn git-stuff git-flow git-ftp gitg gitk subversion subversion-tools nautilus-script-collection-svn subcommander meld colordiff bsdiff bspatch mercurial fldiff -y | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
**** Compilação ****** | |
sudo apt-get install build-essential curl zlib1g zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev python-software-properties checkinstall cdbs devscripts dh-make fakeroot libxml-parser-perl check avahi-daemon libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev openssl libreadline6 libreadline6-dev libxml2-dev libxslt1-dev autoconf libc6-dev libncursesw5-dev automake libtool bison libncurses5-dev libffi-dev -y | |
//apt-build | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
**** DEV gnome ****** | |
sudo apt-get install libgtk-3-dev libgstreamer0.10-dev libclutter-1.0-dev libwebkitgtk-3.0-dev libgda-5.0-dev | |
sudo apt-get install libgtk-3-doc gstreamer0.10-doc libclutter-1.0-doc libgda-5.0-doc | |
sudo apt-get install libgtkmm-3.0-dev libgstreamermm-0.10-dev libgdamm5.0-dev -y | |
sudo apt-get install -y libgtkmm-3.0-doc libgstreamermm-0.10-doc libgdamm5.0-doc | |
sudo apt-get install -y python-gobject valac valac vala-0.16-doc gjs libgjs-dev anjuta devhelp glade geany | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
**** Ubuntu ****** | |
sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper && sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt-get update && sudo apt-get install ubuntu-sdk | |
sudo apt-add-repository ppa:ubuntu-sdk-team/ppa | |
sudo apt-get update && sudo apt-get install ubuntu-sdk | |
sudo add-apt-repository ppa:webapps/preview | |
sudo apt-get update | |
sudo apt-get install unity-webapps-preview | |
Restart your session (logout and back in) | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
**** PHP ****** | |
sudo apt-get install php5 php-pear php5-cli drush php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl libpcre3 libpcre3-dev php5-mcrypt php5-curl php5-mysql | |
sudo pear channel-update pear.php.net | |
sudo pear upgrade pear | |
curl -sS https://getcomposer.org/installer | php | |
*** PCRE (http://php.net/pcre) must be compiled with –enable-utf8 and –enable-unicode-properties for UTF-8 functions to work properly. | |
sudo apt-get install | |
*** iconv (http://php.net/iconv) is required for UTF-8 transliteration. | |
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz | |
tar -xvzf libiconv-1.14.tar.gz | |
cd libiconv-1.14 | |
./configure --prefix=/usr/local/libiconv | |
make | |
sudo make install [|| ou] | |
(Without sudo,)make install | |
*** mcrypt (http://php.net/mcrypt) is required for encryption. | |
sudo apt-get install | |
*** SPL (http://php.net/spl) is required for several core libraries | |
instalado por padrão a partir da versão 5.3 | |
*** mbstring (http://php.net/mbstring) which speeds up Kohana's UTF-8 functions. | |
parece que só compilando, não há binário para ubuntu/debian só fedora/redhat | |
*** cURL (http://php.net/curl) which is used to access remote sites. | |
sudo apt-get install | |
*** MySQL (http://php.net/mysql) is required for database access. | |
***sudo apt-get install | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
**** navegadores internet ****** | |
sudo apt-get install midori epiphany-browser epiphany-browser-data opera -y | |
sudo add-apt-repository ppa:ubuntu-mozilla-daily/firefox-aurora | |
sudo apt-get install firefox-dev | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
sudo apt-get update | |
sudo apt-get install google-chrome-stable | |
sudo add-apt-repository ppa:a-v-shkop/chromium-dev | |
sudo apt-get update | |
sudo apt-get install chromium-browser | |
wget -O - http://deb.opera.com/archive.key | sudo apt-key add - | |
sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list' | |
sudo aptitude update | |
sudo aptitude install opera | |
tar xzf eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz | |
Or just be lazy and Right Click > Extract Here | |
//Move to /opt/ folder | |
mv eclipse /opt/ | |
sudo chown -R root:root eclipse | |
sudo chmod -R +r eclipse | |
//Create an eclipse executable in your path | |
sudo touch /usr/bin/eclipse | |
sudo chmod 755 /usr/bin/eclipse | |
sudo nano /usr/bin/eclipse | |
copy this into nano | |
#!/bin/sh | |
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/" | |
export ECLIPSE_HOME="/opt/eclipse" | |
$ECLIPSE_HOME/eclipse $* | |
save the file (^O = Ctrl+o) and exit nano (^X = Ctrl+x) | |
5) Create a gnome menu item | |
sudo nano /usr/share/applications/eclipse.desktop | |
copy this into nano | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Eclipse | |
Comment=Eclipse IDE | |
Exec=eclipse | |
Icon=/opt/eclipse/icon.xpm | |
Terminal=false | |
Type=Application | |
Categories=GNOME;Application;Development; | |
StartupNotify=true | |
save and exit nano | |
6) Launch Eclipse for the first time | |
/opt/eclipse/eclipse -clean & | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
**** design gráfico ****** | |
sudo apt-get install inkscape scribus xsane agave | |
wget http://evoluspencil.googlecode.com/files/evoluspencil_2.0.3_all.deb | |
sudo dpkg -i evoluspencil_2.0.3_all.deb | |
wget http://www.w3.org/Amaya/Distribution/amaya_11.4.4-1-ubuntu_i386.deb | |
sudo dpkg -i amaya_11.4.4-1-ubuntu_i386.deb | |
sudo apt-get install ubuntu-restricted-extras | |
sudo apt-get install libavformat-extra-53 libavcodec-extra-53 | |
sudo apt-get install icedtea-7-plugin openjdk-7-jre openjdk-7-jdk | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
**** acessorios para o sistema ****** | |
sudo apt-get install unace rar unrar p7zip-rar p7zip zip unzip sharutils uudeview mpack arj cabextract file-roller -y | |
sudo apt-get install vlc deluge synaptic bleachbit xchat trimage filezilla -y | |
sudo apt-get install meld nautilus-compare nautilus-pastebin gnome-sushi dia-common nautilus-open-terminal | |
sudo apt-get install chromium-browser chromium-browser-inspector chromium-browser-l10n | |
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-jdk7-installer -y | |
sudo apt-get install gedit gedit-plugins gedit-developer-plugins geany geany-plugins | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
**** python 3 ****** | |
wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tar.bz2 | |
tar -xjf Python-3.3.0.tar.bz2 && cd Python-3.3.0 | |
./configure --prefix=/opt/python3 | |
make | |
sudo make install | |
linha para o interpretador nos scripts #!/opt/python3/bin/python3 | |
sudo apt-get install idle3 python3-pycurl libapache2-mod-python python-mysqldb | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
**** M U L T I M I D I A ****** | |
sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update | |
sudo apt-get install ubuntu-restricted-extras non-free-codecs libdvdcss2 faac faad ffmpeg ffmpeg2theora flac icedax id3v2 lame libflac++6 libjpeg-progs libmpeg3-1 mencoder mjpegtools mp3gain mpeg2dec mpeg3-utils mpegdemux mpg123 mpg321 regionset sox uudeview vorbis-tools x264 arj lha p7zip p7zip-full p7zip-rar rar unrar unace-nonfree vlc | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
**** ruby ****** | |
git clone git://github.com/ry/node.git | |
cd node | |
./configure | |
make | |
sudo make install | |
sudo apt-add-repository ppa:chris-lea/node.js | |
sudo apt-get -y update | |
sudo apt-get -y install nodejs | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz | |
tar -xvzf ruby-1.9.3-p286.tar.gz | |
cd ruby-1.9.3-p286/ | |
./configure | |
make | |
sudo make install | |
sudo gem install bundler | |
sudo apt-get install libapache2-mod-ruby -y | |
\curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
sudo rvm requirements | |
apt-get --no-install-recommends install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev | |
sudo apt-get install awk gawk | |
rvm install 1.9.3 | |
rvm use 1.9.3 --default | |
rvm rubygems current | |
Install RVM: | |
$ \curl -L https://get.rvm.io | bash | |
Without autolibs | |
$ \curl -L https://get.rvm.io | bash -s -- --autolibs=read-fail | |
Install RVM stable with ruby: | |
$ \curl -L https://get.rvm.io | bash -s stable --ruby | |
Additionally with rails (poor man's railsinstaller ): | |
$ \curl -L https://get.rvm.io | bash -s stable --rails | |
versão da gorails | |
http://gorails.com/setup/ubuntu | |
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
curl -L https://get.rvm.io | bash -s stable | |
* WARNING: You have '~/.profile' file, you might want to load it, | |
to do that add the following line to '/home/qwer/.bash_profile': | |
source ~/.profile | |
source ~/.rvm/scripts/rvm | |
rvm install 2.0.0 | |
rvm use 2.0.0 --default | |
ruby -v | |
§ versão só compacotes nativos | |
sudo apt-get install ruby ruby-switch ruby-parser ruby-dev ruby-passenger rubygems libapache2-mod-passenger libapache2-mod-ruby ri rdoc rake | |
sudo ruby-switch --set ruby1.9.1 | |
sudo ruby-switch --set ruby1.8 | |
$$ super rbenv | |
//isso segue gorails | |
cd | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
exec $SHELL | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc | |
exec $SHELL | |
rbenv install 2.0.0-p247 | |
rbenv global 2.0.0-p247 | |
ruby -v | |
rbenv global 1.9.3-p194 | |
rbenv rehash | |
cd .rbenv/plugins | |
git clone git://github.com/cldwalker/rbenv-plugin.git | |
git clone git://github.com/carsomyr/rbenv-bundler.git | |
git clone git://github.com/rkh/rbenv-update.git | |
git clone git://github.com/rkh/rbenv-whatis.git | |
git clone git://github.com/rkh/rbenv-use.git | |
rbenv install jruby-1.7.6 | |
# gem install rails --version=2.3.4 --no-ri --no-rdoc | |
gem install rails --version=3.2 --no-ri --no-rdoc | |
% RBENV_VERSION=1.9.2-p320 rbenv exec gem install rails --version 3.2 | |
STEP 2. Build a new rails project by specifying the rails version you want. | |
% RBENV_VERSION=1.9.2-p320 rbenv exec rails _3.2_ new myapp | |
STEP 3. Don't forget to go into that project and set the local rbenv ruby version. | |
% cd my_project | |
% rbenv local 1.9.2-p320 | |
¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ | |
****** config do VIM ********** | |
sudo apt-get install vim-gui-common colordiff exuberant-ctags ncurses-term ack | |
$cd /home/usuário | |
git clone git@github.com:ericodc/vimfiles.git ~/.vim | |
cd .vim | |
git submodule update --init | |
echo "source ~/.vim/vimrc" > ~/.vimrc | |
echo "source ~/.vim/gvimrc" > ~/.gvimrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment