Last active
February 5, 2018 17:50
-
-
Save adlerluiz/11af6a4c2842e94cde15 to your computer and use it in GitHub Desktop.
Instalação Ubuntu Gnome 15.04
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
Este guia tem por objetivo facilitar a minha vida para ter o meu ambiente restaurado ou construído do zero, mas pode ser utilizado por qualquer outra pessoa que goste de um ubuntu ainda mais fácil para utilizar no desenvolvimento de aplicações PHP com repositórios Git. Não estão colocados aqui detalhes sobre instalação de banco de dados, e o hardwar alvo é um macbook pro 17" i7 com HD SSD. | |
-----Ignore este bloco a partir deste ponto e pule para o item 1 | |
-----Utilizado apenas para anotações rápidas. | |
Revisar: https://wiki.ubuntu.com/Multitouch/AppleMagicTrackpad | |
sudo apt-get install gsynaptics | |
gpointing-device-settings | |
JAVA DA SUN: | |
You'll have to install Oracle JDK 8 (Oracle Java SE Development Kit 8) in order to make it work: you can get the latest version here, or you can download it from the webupd8 Java repository: | |
Add the webupd8 Java repository to apt: sudo add-apt-repository ppa:webupd8team/java | |
Update the apt cache: sudo apt-get update | |
Install Oracle JDK 8: sudo apt-get install oracle-java8-installer | |
Then when prompted for a JDK installation provide the Oracle JDK 8 installation path, which is either the path you chose during the manual installation or the default path for the version installed via the webupd8 repository, which is | |
COLOCAR SYNC DE HORA EM HORA NO CRON! | |
http://blog.midnightmonk.com/225/linux/free-up-and-release-unused-or-cached-memory.shtml |
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
1 - Instalar o Ubuntu Gnome | |
2 - Ao logar coloque o mouse para modo naturall | |
3 - Ao logar, instalar as seguintes extensões gnome usando o Firefox: | |
https://extensions.gnome.org/extension/19/user-themes/ | |
https://extensions.gnome.org/extension/307/dash-to-dock/ | |
https://extensions.gnome.org/extension/118/no-topleft-hot-corner/ | |
https://extensions.gnome.org/extension/844/maximus-two/ ou | |
https://extensions.gnome.org/extension/723/pixel-saver/ | |
https://extensions.gnome.org/extension/616/insensitive-message-tray/ | |
https://extensions.gnome.org/extension/967/hide-legacy-tray/ | |
4 - Fazer as seguintes configurações no Dash to Dock: | |
Em Position and Size: | |
- Aumente o tamanho dos ícones (80px) | |
- Mude o autohide: | |
- Desative o push | |
- Desative o dodge windows | |
Em Behaviour, desmarque o scroll para desktops | |
Em Appearance, não utilize o tema built-in | |
5 - Instale a extensão HTitle no Firefox (https://addons.mozilla.org/pt-br/firefox/addon/htitle/) | |
6 - Execute os script abaixo Pessoal para instalar todos os softwares necessários | |
7 - Execute o Tweak Tool, altere o tema da janela e gtk para vertex-dark e os ícones para mbuntu-os-y | |
8 - Baixe o Sublime 3 do link http://www.sublimetext.com/3 e siga a configuração explicada aqui: https://gist.github.com/phackwer/2bd92058a7dc8d68a35f | |
9 - Execute a parte da Xys/PHP | |
10 - Instale a parte referente ao Oracle | |
11 - Instale o Chrome | |
12 - Instale o reFind: http://sourceforge.net/projects/refind/files/latest/download | |
13 - Execute o script em /usr/share/refind(versao)/install.sh | |
14 - Instale o fish shell | |
15 - Coloque suporte para o exFat para poder espetar HDs de terceiros que só usam Windows. | |
16 - Instale o Pulse Equalizer | |
Install Monochrome icons for Libreoffice: | |
Human icons are default in LibreOffice which kind of look weird with this transformation pack, to make LibreOffice more elegant with monochrome icons follow these instructions. | |
Enter following commands to install monochrome icons for libreoffice. | |
Terminal Command: | |
sudo apt-get install libreoffice-style-sifr | |
After installation go to LibreOffice menu select "Tools" > "Options" > "LibreOffice" > "View" and select "Sifr" under "Icon size and style" |
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
https://bugzilla.kernel.org/show_bug.cgi?id=55541 | |
I was able to get a Creative CA0132 (Recon3D + Sound Blaster Z) sound card to function within Linux. Someone noted that the 32-bit kernel plays just fine, but that the 64-bit kernel needs a special fix in /etc/rc.local. Add the following before exit 0: | |
rmmod snd_hda_intel | |
modprobe snd_hda_intel position_fix=1 | |
Someone at ALSA needs to get this patched up ASAP. |
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
Por padrão, o fone de ouvido não mudará automaticamente ao ser conectado. | |
É preciso abrir o alsamixer e desmutar HP auto-detect (selecione e aperte a tecla M) |
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
sudo apt-get update | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo add-apt-repository ppa:nilarimogard/webupd8 | |
sudo add-apt-repository ppa:snwh/pulp | |
sudo apt-get update | |
sudo apt-get install terminator build-essential curl git oracle-java8-installer \ | |
fish exfat-fuse exfat-utils pulseaudio-equalizer bchunk \ | |
meld rabbitvcs-nautilus rabbitvcs-cli rabbitvcs-gedit \ | |
paper-gtk-theme paper-icon-theme epiphany-browser \ | |
ttf-mscorefonts-installer ubuntu-restricted-extras | |
# java path /usr/lib/jvm/java-8-oracle | |
# uso bchunk arquivo.bin arquivo.cue arquivo.iso | |
chsh -s /usr/bin/fish | |
sudo -i gedit /etc/default/apport | |
enabled=0 | |
sudo service apport stop | |
Instalaćão do NodeJS com NVM: | |
curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | sh | |
bash | |
nvm ls-remote | |
nvm install 5.3.0 | |
nvm use 5.3.0 | |
nvm alias default 5.3.0 | |
nvm use default | |
npm install -g gulp jshint jscs csslint js-beautify | |
sudo ln -s /home/`whoami`/.nvm/v5.3.0/bin/node /usr/local/bin/node | |
sudo ln -s /home/`whoami`/.nvm/v5.3.0/bin/npm /usr/local/bin/npm | |
sudo ln -s /home/`whoami`/.nvm/v5.3.0/bin/gulp /usr/local/bin/gulp | |
sudo ln -s /home/`whoami`/.nvm/v5.3.0/bin/jshint /usr/local/bin/jshint | |
sudo ln -s /home/`whoami`/.nvm/v5.3.0/bin/jscs /usr/local/bin/jscs | |
sudo ln -s /home/`whoami`/.nvm/v5.3.0/bin/csslint /usr/local/bin/csslint | |
sudo ln -s /home/`whoami`/.nvm/v5.3.0/bin/js-beautify /usr/local/bin/js-beautify | |
# Flash player | |
Flash is GTK+2 and Epiphany is GTK+3...that's the problem. | |
sudo apt-get install flashplugin-installer | |
sudo apt-get install nspluginwrapper | |
sudo nspluginwrapper -i /usr/lib/flashplugin-installer/libflashplayer.so | |
nspluginwrapper -v -a -n -i |
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
sudo apt-get install gearman redis-server freetds-dev \ | |
freetds-bin tdsodbc unixodbc unixodbc-dev slapd ldap-utils \ | |
imagemagick libmagickwand-dev libpcre3 libpcre3-dev \ | |
apache2 libaio1 php5 php5-mcrypt php5-dev php5-mysql php5-odbc \ | |
php5-pgsql php5-sqlite php5-sybase php5-ldap php5-apcu libapache2-mod-php5 \ | |
php5-redis php5-gearman php5-imagick php5-curl php5-gd php-pear phantomjs | |
sudo ln -s /usr/bin/phantomjs /usr/local/bin | |
sudo ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/cli/conf.d/20-mcrypt.ini | |
sudo ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini | |
sudo touch /etc/php5/mods-available/mycfg.ini | |
sudo echo 'date.timezone = America/Sao_Paulo' >> /etc/php5/mods-available/mycfg.ini | |
sudo echo 'always_populate_raw_post_data = -1' >> /etc/php5/mods-available/mycfg.ini | |
sudo ln -s /etc/php5/mods-available/mycfg.ini /etc/php5/cli/conf.d/20-mycfg.ini | |
sudo ln -s /etc/php5/mods-available/mycfg.ini /etc/php5/apache2/conf.d/20-mycfg.ini | |
sudo gedit /etc/apache2/apache2.conf | |
sudo chown -R `whoami`: /var/www/html | |
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.3.deb && sudo dpkg -i elasticsearch-1.7.3.deb | |
wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -; | |
echo "deb http://packages.elasticsearch.org/logstash/1.5/debian stable main" | sudo tee -a /etc/apt/sources.list; | |
sudo apt-get update && sudo apt-get install logstash; |
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
sudo gedit /etc/init/redis-server.conf | |
# Coloque o seguinte conteúdo no arquivo: | |
description "redis server" | |
start on runlevel [23] | |
stop on shutdown | |
exec sudo -u redis /usr/bin/redis-server /etc/redis/redis.conf | |
respaw | |
sudo service redis-server start | |
sudo update-rc.d redis-server defaults; | |
sudo update-rc.d redis-server enable; | |
sudo gedit /etc/elasticsearch/elasticsearch.yml | |
# Descomente estas três linhas e defina os valores como abaixo | |
node.master: true | |
discovery.zen.ping.multicast.enabled: false | |
discovery.zen.ping.unicast.hosts: ["localhost"] | |
# Altere este valor | |
network.bind_host: localhost | |
# Adicione este valor | |
script.disable_dynamic: true | |
sudo update-rc.d elasticsearch defaults 95 10 | |
sudo /etc/init.d/elasticsearch start | |
#old | |
#sudo service elasticsearch start | |
#sudo update-rc.d elasticsearch defaults; | |
#sudo update-rc.d elasticsearch enable; | |
sudo gedit /etc/logstash/conf.d/logstash.conf | |
#Adicione o conteúdo abaixo: | |
input { | |
redis { | |
host => "localhost" | |
port => 6379 | |
db => 1 | |
key => "CoreAnalytics_PageViews" | |
type => "AnalyticsPageViews" | |
data_type => "list" | |
} | |
redis { | |
host => "localhost" | |
port => 6379 | |
db => 1 | |
key => "CoreAnalytics_Login" | |
type => "AnalyticsLogin" | |
data_type => "list" | |
} | |
} | |
output { | |
elasticsearch { | |
protocol => "http" | |
host => "localhost" | |
port => 9200 | |
index => "qware.analytics" | |
} | |
} | |
sudo gedit /etc/rc.local | |
(Adicione) | |
/usr/sbin/service elasticsearch start | |
sudo gedit /etc/freetds/freetds.conf | |
[xcorp] | |
host = xyssrv07.xys.com.br | |
port = 1433 | |
tds version = 8.0 | |
client charset = UTF-8 | |
sudo su | |
touch sudo touch /etc/php5/mods-available/redis-session.ini | |
echo 'session.save_handler = redis' >> /etc/php5/mods-available/redis-session.ini | |
ln -s /etc/php5/mods-available/redis-session.ini /etc/php5/apache2/conf.d/ |
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
Baixe o zip Instant Client Package - Basic e o Instant Client Package - SDK do site: | |
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html | |
execute os comandos abaixo de acordo com a versão baixada (neste exemplo foi utilizado o 12_1): | |
cd ~/Downloads | |
unzip instantclient-basiclite-linux.x64-12.1.0.2.0.zip | |
unzip instantclient-sdk-linux.x64-12.1.0.2.0.zip | |
cd instantclient_12_1 | |
sudo mkdir /usr/lib/oracle | |
sudo mkdir /usr/lib/oracle/12_1 | |
sudo mkdir /usr/lib/oracle/12_1/client64/ | |
sudo mkdir /usr/lib/oracle/12_1/client64/lib | |
sudo mv * /usr/lib/oracle/12_1/client64/lib | |
cd /usr/lib/oracle/12_1/client64/lib | |
sudo ln -s libclntsh.so.12.1 libclntsh.so | |
sudo ln -s libocci.so.12.1 libocci.so | |
sudo ln -s /usr/lib/oracle/12_1/client64/lib/*.so /usr/local/lib/ | |
sudo ln -s /usr/lib/oracle/12_1/client64/lib/*.so.12.1 /usr/local/lib/ | |
export ORACLE_HOME=/usr/lib/oracle/12_1/client64 | |
sudo pecl install oci8-2.0.10 | |
sudo touch /etc/php5/mods-available/oci8.ini | |
sudo echo 'extension=oci8.so' >> /etc/php5/mods-available/oci8.ini | |
sudo ln -s /etc/php5/mods-available/oci8.ini /etc/php5/cli/conf.d/20-oci8.ini | |
sudo ln -s /etc/php5/mods-available/oci8.ini /etc/php5/apache2/conf.d/20-oci8.ini |
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
Caso você use SSD, ative o trim para que o sistema rode mais rápido (ref: http://www.edivaldobrito.com.br/como-ativar-o-trim-em-discos-ssd-no-ubuntu-linux/ ) | |
Para ativar e usar o TRIM em discos SSD no Ubuntu Linux, faça o seguinte: | |
Passo 1. Se não estiver aberto, execute um terminal usando o Dash ou pressionando as teclas CTRL+ALT+T; | |
Passo 2. Confirme se você tem um SSD como o comando abaixo. Se o resultado for 0 você tem um SSD, mas se for 1 que é um HDD: | |
cat /sys/block/sda/queue/rotational | |
ou | |
cat /sys/block/sdb/queue/rotational | |
Passo 3. Mesmo se você tiver um SSD, nem todos eles suportam o TRIM. Para saber se o seu suporta executado o comando a seguir: | |
sudo hdparm -I /dev/sda | grep "TRIM supported" | |
ou | |
sudo hdparm -I /dev/sdb | grep "TRIM supported" | |
Passo 4. Se o retorno for igual a mensagem abaixo, então você pode seguir adiante. Se não houver nenhuma saída, isso significa que seu SSD não suporta TRIM. | |
Data Set Management TRIM supported | |
Passo 5. Agora execute o comando, conforme abaixo: | |
sudo fstrim -v / | |
Passo 6. Você deve ver uma saída, parecida com isso: | |
/: 87781376 bytes were trimmed | |
Passo 7. Se tudo correu bem, é hora de programar o cron para executar o fstrim uma vez por dia, para isso, crie um arquivo com esse comando: | |
sudo gedit /etc/cron.daily/trim | |
Passo 8. Copie e cole as linhas abaixo no arquivo criado e salve-o. Em seguida, feche o gedit: | |
#!/bin/sh | |
LOG=/var/log/trim.log | |
echo "*** $(date -R) ***" >> $LOG | |
fstrim -v / >> $LOG | |
fstrim -v /home >> $LOG | |
Passo 9. Agora torne o script executável com o comando abaixo: | |
sudo chmod +x /etc/cron.daily/trim | |
Pronto. Agora seu sistema está com o TRIM habilitado. |
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
sudo apt-get install steam | |
sudo add-apt-repository ppa:oibaf/graphics-drivers | |
sudo apt-get update | |
sudo apt-get upgrade | |
E, por algum motivo, isto: | |
cd $HOME/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu | |
mv libstdc++.so.6 libstdc++.so.6.bak | |
cd $HOME/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu | |
mv libstdc++.so.6 libstdc++.so.6.bak |
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
Configurando o git para armazenar a autenticação global: | |
$ git config --global credential.helper store | |
Utilizando o Meld como diff ou merge tool | |
$ git difftool -t meld | |
$ git mergetol -t meld |
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
Faça checkout do fonte: | |
git clone https://github.com/pgmodeler/pgmodeler | |
cd pgmodeler | |
Agora instale os requerimentos: | |
sudo apt-get install qtbase5-dev qttools5-dev-tools qt5-default postgresql-server-dev-9.4 clang | |
E finalmente: | |
sudo ./linuxdeploy.sh | |
Ou então, caso tenha erros: | |
qmake -r -spec linux-clan PREFIX=/opt/pgmodeler BINDIR=/opt/pgmodeler PRIVATEBINDIR=/opt/pgmodeler PRIVATELIBDIR=/opt/pgmodeler/lib LANGDIR=/opt/pgmodeler/lang SAMPLESDIR=/opt/pgmodeler/samples SCHEMASDIR=/opt/pgmodeler/schemas PLUGINSDIR=/opt/pgmodeler/plugins CONFDIR=/opt/pgmodeler/conf DOCDIR=/opt/pgmodeler SHAREDIR=/opt/pgmodeler TEMPDIR=/opt/pgmodeler/tmp | |
make && sudo make install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment