|
Created by Adenilson Paiva
over 10 years ago
|
|
// Comandos LINUX - UBUNTU ou LUBUNTU
#!/bin/sh
# Início
#------------------------------------------------------------------------------------------PPA's e ADIÇÕES A BASE-----------------------------------------------------------------------------------#
sudo add-apt-repository ppa:apt-fast/stable -y
sudo apt-get install -y apt-fast
#-------------------#
sudo add-apt-repository ppa:ubuntu-wine/ppa -y
sudo add-apt-repository ppa:linrunner/tlp -y
sudo add-apt-repository ppa:bearoso/ppa -y
sudo add-apt-repository ppa:menulibre-dev/devel -y
sudo add-apt-repository ppa:osmoma/audio-recorder -y
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian saucy contrib" >> /etc/apt/sources.list.d/virtualbox.list'
sudo sh -c "echo 'deb http://archive.canonical.com/ubuntu/ saucy partner' >> /etc/apt/sources.list.d/canonical_partner.list"
wget http://launchpadlibrarian.net/59511828/cgroup_patch
chmod +x cgroup_patch
sudo ./cgroup_patch
rm cgroup_patch
sudo ufw enable
sudo apt-fast update
#------------------------------------------------------------------------------CONTRATOS/CONFIG. Manual-----------------------------------------------------------------------------------#
#sudo apt-fast install -y mysql-server
#sudo apt-fast install -y phpmyadmin
sudo apt-fast install -y ttf-mscorefonts-installer
#---------------------------------------------------------------------------------------NETBEANS 8.0--------------------------------------------------------------------------------------------------#
#sudo apt-fast install -y openjdk-6-jdk openjdk-6-source openjdk-6-demo openjdk-6-doc oudopenjdk-6-jre-headless openjdk-6-jre-lib
#sudo apt-fast install -y openjdk-7-jdk openjdk-7-source openjdk-7-demo openjdk-7-doc openjdk-7-jre-headless openjdk-7-jre-lib
#sudo wget http://download.netbeans.org/netbeans/8.0/final/bundles/netbeans-8.0-javase-linux.sh
#sudo chmod +x netbeans-8.0-javase-linux.sh
#sudo ./netbeans-8.0-javase-linux.sh
#rm netbeans-8.0-javase-linux.sh
#------------------------------------------------------REMOÇÕES---------------------------------------------#
sudo apt-fast purge -y pidgin
sudo apt-fast purge -y xfburn
sudo apt-fast purge -y abiword
sudo apt-fast purge -y sylpheed
sudo apt-fast purge -y gnumeric
sudo apt-fast purge -y lxterminal
sudo apt-fast remove -y audacious
sudo apt-fast remove -y gnome-mplayer
sudo apt-fast remove -y laptop-mode-tools
sudo apt-fast remove -y flashplugin-installer
#----------------------------------------PROGRAMAS E UTILITARIOS----------------------------------#
sudo apt-fast install -y lubuntu-restricted-extras
sudo apt-fast install -y libreoffice
sudo apt-fast install -y libreoffice-l10n-pt-br
sudo apt-fast install -y tlp tlp-rdw
sudo tlp start
sudo apt-get install -y virtualbox-4.3 virtualbox-guest-additions-iso
sudo apt-fast install -y kolourpaint4
sudo apt-fast install -y adobe-flashplugin
sudo apt-fast install -y gmountiso
sudo apt-fast install -y easymp3gain-qt
sudo apt-fast install -y audio-recorder
sudo apt-fast install -y pavucontrol
sudo apt-fast install -y firefox-locale-pt
sudo apt-fast install -y thunderbird thunderbird-locale-pt-br
sudo apt-fast install -y preload
sudo apt-fast install -y prelink
sudo apt-fast install -y bleachbit
sudo apt-fast install -y gconf-cleaner
sudo apt-fast install -y samba gvfs-bin system-config-samba
sudo apt-fast install -y rar unrar-free
sudo apt-fast install -y p7zip-full
sudo apt-fast install -y alien
sudo apt-fast install -y remmina
sudo apt-fast install -y wine1.7 wine
sudo apt-fast install -y vlc
sudo apt-fast install -y skype
sudo apt-fast install -y menulibre
sudo apt-fast install -y bum
sudo apt-cache search snes9x
sudo apt-fast install -y snes9x-gtk
#--------------------------------------------------------------driver webcam-------------------------------------------------------------#
sudo wget http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz
sudo alien --to-deb gspcav1-20071224.tar.gz
rm gspcav1-20071224.tar.gz
sudo dpkg -i gspcav1_20071224-2_all.deb
rm gspcav1-20071224-2_all.deb
#-----------------------------------------------------driver intel/linux 64x------------------------------------------------------------#
sudo dpkg -i intel-linux-graphics-installer_1.0.5-0intel1_amd64.deb
rm intel-linux-graphics-installer_1.0.5-0intel1_amd64.deb
#----------------------------------------------------------------teamviewer----------------------------------------------------------------#
sudo wget download.teamviewer.com/download/teamviewer_linux.deb
sudo dpkg -i teamviewer_linux.deb
sudo apt-fast install -f -y
rm teamviewer_linux.deb
#-----------------------------------------------------Upgrades de programas------------------------------------------------------------#
sudo apt-fast upgrade -y java
sudo apt-fast upgrade -y firefox
sudo apt-fast upgrade -y thunderbird
#------------------------------------------------------Configurações Finas----------------------------------------------------------------#
sudo mkdir /etc/adobe
echo "OverrideGPUValidation=true" >~/mms.cfg
sudo mv ~/mms.cfg /etc/adobe
sudo sed -i 's#lxsession-default screenshot#scrot#' ~/.config/openbox/lubuntu-rc.xml
sudo sed -i 's#scrot window#scrot -u -b#' ~/.config/openbox/lubuntu-rc.xml
sudo openbox --reconfigure
sudo sed -i 's#quiet splash#quiet splash profile#' /etc/default/grub
sudo sed -i 's#unknown#yes#' /etc/default/prelink
echo "\n# Move /tmp to RAM
tmpfs /tmp tmpfs defaults,noexec,nosuid 0 0" | sudo tee -a /etc/fstab
echo "\n#
# Decrease swap usage to a workable level
vm.swappiness=10
# Improve cache management
vm.vfs_cache_pressure=50" | sudo tee -a /etc/sysctl.conf
touch .gtkrc-2.0
echo "gtk-menu-popup-delay = 0" >> ~/.gtkrc-2.0
echo "gtk-menu-popdown-delay = 0" >> ~/.gtkrc-2.0
echo "gtk-menu-bar-popup-delay = 0" >> ~/.gtkrc-2.0
echo "gtk-enable-animations = 0" >> ~/.gtkrc-2.0
echo "gtk-timeout-expand = 10" >> ~/.gtkrc-2.0
sudo /etc/cron.daily/prelink
sudo update-grub2
sudo reboot
# Fim
################## OUTROS ################
// Comandos UBUNTU
// Mudar senha (root ou usuario)
https://www.youtube.com/watch?v=zj6txhyUQqg
sudo passwd root (ou nome-de-usuário)
// ou
su
passwd root (ou nome-de-usuário)
sync
reboot -f
// Quebrando chave WEP com Ubuntu e aircrack-ng
https://www.youtube.com/watch?v=nf1XbAqxlyY
// Gerenciador de partições
sudo apt-get install gparted
// OCR no Ubuntu
http://www.vivaolinux.com.br/dica/OCR-no-Ubuntu/
sudo apt-get install tesseract-ocr tesseract-ocr-por gscan2pdf imagemagick nautilus-open-terminal
reboot -f
convert -density 300 arquivo.pdf -depth 8 arquivo.tiff
$ tesseract arquivo.tiff texto -l por
// Instalando Extras 1
// Para instalar o suporte ao WhatsApp no Pidgin do Ubuntu e derivados basta você usar estes comandos:
sudo add-apt-repository ppa:whatsapp-purple/ppa
sudo apt-get update
sudo apt-get install pidgin-whatsapp pidgin //Agora nas configurações de contas do Pidgin o WhatsApp estará disponível.
sudo addaptrepository ppa:aptfast/stable y
sudo add-apt-repository ppa:apt-fast/stable -y
sudo aptfast install bleachbit -y
sudo apt-get install apt-fast -y
sudo apt-get install bleachbit -y // Similar ao ccleaner do windows
sudo apt-get install chromium-browser
sudo apt-get install filezilla
sudo apt-get install mediawiki
sudo apt-get install netbeans
sudo apt-get install pavucontrol -y
sudo apt-get install phpmyadmin -y
sudo aptget install pidginwhatsapp pidgin
sudo apt-get install synaptic
sudo apt-get install ubuntu-restricted-extras && sudo apt-get install flashplugin-nonfree
sudo apt-get install virtualbox
sudo apt-get install wine
sudo apt-get purge phpmyadmin mysql-server -y
sudo apt-get -y install flashplugin-nonfree
sudo apt-get -y install ubuntu-restricted-extras
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5
sudo install apt-get apt-fast
// Instalando Extras 2
sudo apt-get upgrade && sudo apt-get update && sudo apt-get install chromium-browser gimp dia dia-gnome bleachbit filezilla synaptic kolourpaint4 pitivi umbrello aptoncd smplayer phpmyadmin mediawiki apache2 nautilus-dropbox ntfs-3g nautilus-* virtualboxnautilus-* -y
/* phpmyadmin mediawiki apache2 // A instalação destes três ao mesmo tempo gera conflito entre portas, devendo ser mudadas manualmente, ou instalar apenas um dos três. */
// http://www.procedural.com.br/hd-externa-nao-aparece-no-linux-ubuntu/
// http://wiki.ubuntu-br.org/Nautilus
// http://www.vivaolinux.com.br/dica/Nautilus-Mudando-a-exibicao-padrao-dos-itens-de-uma-pasta
// Configuração do Nautilus para mostrar em lista ****SHOW***
gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view'
// OPERA BROWSER
sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list' && sudo sh -c 'wget -O - http://deb.opera.com/archive.key | apt-key add -' && sudo apt-get update && sudo apt-get install opera -y
//SUBLIME TEXT 3
sudo add-apt-repository ppa:webupd8team/sublime-text-3 && sudo apt-get update && sudo apt-get install sublime-text-installer -y
// ou
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer -y
// Virtual Box no UBUNTU 14.10
sudo apt-get install virtualbox-qt
// Descompactador RAR
# sem informação
//PACKET TRACER (aplicador simulador de instalação de redes de computadores)
// http://tidahora.com.br/index.html/doku.php?id=instalando_o_packet_tracer_no_linux_mint_debian_ubuntu
wget http://tidahora.com.br/arquivos/programas/PacketTracer601_setup_linux.gz && tar zxvf PacketTracer601_setup_linux.gz && cd PacketTracer601/ && ./install
//para abrir: packettracer
// DRAFTSIGHT (64bits)
// http://www.ubuntudicas.com.br/blog/2012/11/draftsight-beta-v1r3-no-kubuntu-12-04-64-bits/
sudo apt-get install libdirectfb-extra sendmail libglu1-mesa libglu1-mesa-dev ia32-libs
// download: http://www.draftsight.com/download-linux-ubuntu
cd Downloads && mkdir tempcad && cp draftSight.deb tempcad && cp draftSight.deb tempcad && cd tempcad && ar -x draftSight.deb && tar -zxvf data.tar.gz && sudo cp -R var/. /var && sudo cp -R opt/. /opt && tar -zxvf control.tar.gz && sudo ./preinst && sudo ./postinst
// JAVA (falhou)
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java7-installer && sudo apt-get install icedtea-7-plugin -y
java -version
//PROTÉGÉ http://protege.stanford.edu/download/protege/4.0/installanywhere/>
//ou
/*Instructions
After downloading open a shell and, cd to the directory where you downloaded the installer.
At the prompt type: sh ./install_protege_4.0.2.bin */
sudo apt-get install git openssh-server
//CAKE PHP
Usar o Synaptic