[Tutorial] Instalando aplicativos úteis para o trabalho (no Ubuntu 18.04)

Instalações simples via APT-GET

Para atualizar o sistema antes de instalar novos aplicativos

sudo apt-get update

LUBUNTU – Interface mais leve do UBUNTU

sudo apt-get install -y lubuntu-desktop

GERAL

sudo apt-get install -y libqt4-dbus
sudo apt-get install -y libqt4-network
sudo apt-get install -y libqt4-opengl
sudo apt-get install -y libqt4-xml
sudo apt-get install -y libqtcore4
sudo apt-get install -y libqtgui4
sudo apt-get install -y libaudio2
sudo apt-get install -y nedit
sudo apt-get install -y transfig
sudo apt-get install -y xfig
sudo apt-get install -y xfig-doc
sudo apt-get install -y xfig-libs
sudo apt-get install -y texlive
sudo apt-get install -y texlive-latex3
sudo apt-get install -y texlive-extra-utils
sudo apt-get install -y texlive-fonts-extra
sudo apt-get install -y texlive-fonts-recommended
sudo apt-get install -y texlive-fonts-utils
sudo apt-get install -y texlive-generic-extra
sudo apt-get install -y texlive-latex-extra
sudo apt-get install -y texlive-math-extra
sudo apt-get install -y texlive-publishers
sudo apt-get install -y gv
sudo apt-get install -y emacs
sudo apt-get install -y emacs22
sudo apt-get install -y emacss-extras
sudo apt-get install -y vim-addon-manager
sudo apt-get install -y vim-full
sudo apt-get install -y vim-gnome
sudo apt-get install -y vim-gui-common
sudo apt-get install -y vim-latexsuite
sudo apt-get install -y vim-perl
sudo apt-get install -y vim-python
sudo apt-get install -y vim-scripts
sudo apt-get install -y gvim
sudo apt-get install -y gimp
sudo apt-get install -y gthumb
sudo apt-get install -y kolourpaint4
sudo apt-get install -y KSnapshot
sudo apt-get install -y pine
sudo apt-get install -y alpine
sudo apt-get install -y terminator
sudo apt-get install -y screen
sudo apt-get install -y imagemagick
sudo apt-get install -y subversion
sudo apt-get install -y subversion-tools
sudo apt-get install -y gnome-system-tools #Para instalar o "Users and Groups"
sudo apt-get install -y skype
sudo apt-get install -y chromium-browser
sudo apt-get install -y vlc
sudo apt-get install -y dropbox
sudo apt-get install -y rar
sudo apt-get install -y ubuntu-restricted-extras
sudo apt-get install -y python python-numpy
sudo apt-get install -y ispell
sudo apt-get install -y iamerican # Dictionary for the ispell. To use: ispell -d american file.tex
sudo apt-get install -y iamerican-small # Dictionary for the ispell. To use: ispell -d american file.tex
sudo apt-get install -y iamerican-huge # Dictionary for the ispell. To use: ispell -d american file.tex
sudo apt-get install -y iamerican-large # Dictionary for the ispell. To use: ispell -d american file.tex
sudo apt-get install -y iamerican-insane # Dictionary for the ispell. To use: ispell -d american file.tex
sudo apt-get install -y ibritish # Dictionary for the ispell. To use: ispell -d british file.tex
sudo apt-get install -y ibritish-small # Dictionary for the ispell. To use: ispell -d british file.tex
sudo apt-get install -y ibritish-huge # Dictionary for the ispell. To use: ispell -d british file.tex
sudo apt-get install -y ibritish-large # Dictionary for the ispell. To use: ispell -d british file.tex
sudo apt-get install -y ibritish-insane # Dictionary for the ispell. To use: ispell -d british file.tex
sudo apt-get install -y xpdf
sudo apt-get install -y okular
wget "http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb"
sudo dpkg -i --force-architecture AdbeRdr9.5.5-1_i386linux_enu.deb; sudo apt-get -f install # Force to 64-bit system and then install.
sudo apt-get install -y cernlib
sudo apt-get install -y cernlib-extras
sudo apt-get install -y paw
sudo apt-get install -y mn-fit


Comandos úteis para incluir no BASHRC

Para atualizar o ambiente do LaTeX

Para atualizar a biblioteca do LATEX inclua os novos arquivos “.sty” na pasta texmf em sua raiz (ex: ~frodrigu), inclua as linhas abaixo no seu “.bashrc”.

#--------------------------------------------------------------
# LATEX enviroment (.bashrc)
#================================
export TEXMFLOCAL=~/texmf
# To create the ls-R database or update after include a new class:
# sudo mktexlsr
#--------------------------------------------------------------

Por fim, de os comandos
cd ~
source .bashrc
sudo mktexlsr

Para resolver o problema de incluir “^?” ao invés de apagar

Inclua no .bashrc as linhas abaixo:

#--------------------------------------------------------------
# To fix the backspace problem (that include ^? instead of erase)
#================================================================
stty erase ^?
#--------------------------------------------------------------


Instalando o Libre Office 6 no computador (Ubuntu 16.04)

Para instalar o Libre Office acesse: http://www.libreoffice.org/download/libreoffice-fresh/
Note que o padrão é fazer download do arquivo de instalação do tipo RPM. Temos de trocar para o tipo DEB que é o do Ubuntu. Faça isso acessando o link “change?” logo acima do botão de DOWNLOAD.
Para instalar o LibreOffice, descompacte o arquivo tar.gz que foi pego através do download.
Dentro do diretório descompactado haverá um diretório DEBS. Dentro deste diretório de a linha de comando abaixo.

sudo dpkg -i *.deb


Instalando o ROOT no computador via Docker

sudo apt-get install docker
docker pull rootproject/root-ubuntu16

Depois edite o arquivo ~/.bashrc

#--------------------------------------------------------------
# ROOT environment for (.bashrc):
#================================
alias root=docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --rm -it --user $(id -u) rootproject/root-ubuntu16
#--------------------------------------------------------------

Instalando o ROOT no computador

ROOT Prerequisites page: https://root.cern.ch/build-prerequisites

O que fiz para instalar o ROOT v6.16.00 no Ubuntu18.04 foi

sudo apt-get install git dpkg-dev make g++ gcc binutils libx11-dev libxpm-dev \
libxft-dev libxext-dev
sudo apt-get install gfortran libssl-dev libpcre3-dev \
xlibmesa-glu-dev libglew1.5-dev libftgl-dev \
libmysqlclient-dev libfftw3-dev cfitsio-dev \
graphviz-dev libavahi-compat-libdnssd-dev \
libldap2-dev python-dev libxml2-dev libkrb5-dev \
libgsl0-dev libqt4-dev
mkdir ~/root
cd ~/root
wget ftp://root.cern.ch/root/root_v6.16.00.source.tar.gz
tar -xzvf root_v6.16.00.source.tar.gz
mv root-6.16.00 root-6.16.00-source
mkdir root-6.16.0
cd root-6.16.00
cmake ~/root/root-6.16.00-source/
egrep "^processor" /proc/cpuinfo | wc -l (to check the number of cores at the machine)
cmake --build . -- -j1 (1 is the number of cores at VirtualBox)
source bin/thisroot.sh

Depois edite o arquivo ~/.bashrc
[code language="powershell"]#--------------------------------------------------------------
# ROOT environment for (.bashrc):
#================================
export ROOTSYS=/usr/local/root/pro;
PATH=${ROOTSYS}/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${ROOTSYS}/lib
export PYTHONPATH=${ROOTSYS}/lib
#--------------------------------------------------------------


[Lubuntu]: ARandR (multiplos monitores no Lubuntu)

Instale o progrma ARandR para poder utlizar multiplos monitores no Lubuntu como se fossem um único (extendido).
Entre no Lubuntu Software Center e instale o ARandR.
Depois de instalado vá em "Menu → Preferences → ARandR" para abrir o aplicativo.
Dentro do ARandR basta arrastar os quadrados relativos aos monitores para colocar na posição desejada. Se quiser mudar a resolução de algum deles basta clicar com o botão direito do mouse.
Para que não precise refazer esses ajustes feitos (posição das telas e resolução) todas as vezes que entrar no ARandR, save usando a opção "Save As" em um arquivo ".sh" (ex.: my.sh).
Para que todas as vezes que você reiniciar o Lubuntu ele volte para essa configuração de monitor e não seja necessário entrar no ARandR e refazer tudo, temos duas opções:
Inclua no seu arquivo .bashrc a linha

.screenlayout/my.sh 

considero que você salvou suas configurações no arquivo my.sh dentro da pasta .screenlayout. Caso não seja o caso, corrija para que o BASH abra o arquivo que você salvou.
Abra o arquivo my.sh que você criou e cole a linha existente dentro dele no seu .bashrc. A linha será algo como:
xrandr --output HDMI1 --mode 1920x1080 --pos 1920x0 --rotate normal \
--output VIRTUAL1 --off \
--output DP1 --off \
--output VGA1 --mode 1920x1080 --pos 0x0 --rotate normal