Skip to content

Instantly share code, notes, and snippets.

@julianoborba
Created July 29, 2014 02:26
Show Gist options
  • Select an option

  • Save julianoborba/78984d2ff35fb1ae4c02 to your computer and use it in GitHub Desktop.

Select an option

Save julianoborba/78984d2ff35fb1ae4c02 to your computer and use it in GitHub Desktop.
Minhas Aventuras no Ubuntu
Instalando------------------------------------------------------------------
Particionamento:
Primária , Início, ext4 , / , 30 GB
Lógica , Início, swap , , 12 GB
Lógica , Início, ext4 , /boot , 8 GB (opcional)
Lógica , Início, ext4 , /home , O que sobrar
I'd always recommend a separate /home partition: 8-10GB for /, whatever you
want for swap depending on your RAM size and hibernation, then allocate the rest to /home.
The advantage of a separate /home partition is that you can easily reinstall
rather than upgrade. Synaptic has the option of exporting your currently installed packages.
Install a new version, formatting only the / partition, update, then optionally import your
packages back into Synaptic and update again.
----------------------------------------------------------------------------
Limpador de sistema para linux, BleachBit-----------------------------------
No terminal digite:
$ sudo apt-get install bleachbit
----------------------------------------------------------------------------
Virtualbox------------------------------------------------------------------
No terminal digite:
$ echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
$ wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install virtualbox-4.2
To unisntall:
$ sudo apt-get remove virtualbox* --purge
----------------------------------------------------------------------------
Sobre o apt-------------------------------------------------------------------
http://ubunteiro.wordpress.com/2008/05/08/instalando-e-entendendo-o-apt-get/
----------------------------------------------------------------------------
Debian source list generator------------------------------------------------
http://debgen.simplylinux.ch/
----------------------------------------------------------------------------
Backtrack tools no Ubuntu - Descontinuado-----------------------------------
http://www.vivaolinux.com.br/dica/Transformando-seu-Ubuntu-em-BackTrack
http://www.backtrack-linux.org/forums/showthread.php?t=42803
----------------------------------------------------------------------------
Kali tools no Ubuntu--------------------------------------------------------
Fontes:
http://www.kalilinux.net/community/threads/add-kali-menu-to-other-distro-ubuntu.603/
http://vimeo.com/73373846
Adicionar ao repositório:
## Kali tools for Ubuntu 13.04 Raring Ringtail
deb http://ppa.launchpad.net/wagungs/kali-linux2/ubuntu raring main
deb-src http://ppa.launchpad.net/wagungs/kali-linux2/ubuntu raring main
deb http://ppa.launchpad.net/wagungs/kali-linux/ubuntu raring main
deb-src http://ppa.launchpad.net/wagungs/kali-linux/ubuntu raring main
No terminal digite:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8FDFDB57
$ sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
Pelo Synaptic instale o kali-menu e o kali-archive-keyring
----------------------------------------------------------------------------
i2p Ubuntu------------------------------------------------------------------
http://www.i2p2.de/debian.html
http://sejalivre.org/anonimidade-online-com-i2p/
----------------------------------------------------------------------------
JDK------------------------------------------------------------------------
http://stackoverflow.com/questions/14788345/how-to-install-jdk-on-ubuntulinux
Download the JDK from Oracle's site (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html).
The download to the newest version is always linked from http://java.oracle.com.
As root, do:
$ cd /usr/local
$ tar xzf <the file you just downloaded>
As your normal user, add or change these two lines in your ~/.profile to point to the installation:
export JAVA_HOME=/usr/local/jdk1.7.0_13
export PATH=$PATH:$JAVA_HOME/bin
If it's an update, you may also want to remove the old java installation directory in /usr/local.
Log out and in again (or do . ~/.profile), and everything should just work.
The downside with Oracle's JDK is that it won't update with the rest of your system like OpenJDK will,
so I'd mostly consider it if you're running programs that require it.
----------------------------------------------------------------------------
Shorewall-------------------------------------------------------------------
http://myliteraturetechlife.com/installing-configuring-shorewall-firewall-in-ubuntudebian/
https://help.ubuntu.com/community/ShorewallBasics
myliteraturetechlife.com/installing-configuring-shorewall-firewall-in-ubuntudebian/clear
http://www.vivaolinux.com.br/artigo/NAT-com-firewall-simples-rapido-e-funcional
http://ubuntu.no.sapo.pt/shorewall.html#instalar
----------------------------------------------------------------------------
Menu clássico no Ubuntu-----------------------------------------------------
Opção 1 - instalar o tema Fallback (não muito estável). No terminal digite:
$ sudo apt-get install gnome-session-fallback
Ubuntu 13.04 gnome-panel shows the Applications and Places menu in the top bar together without a space in-between them.
Alberts Muktupāvels (albertsmuktupavels) wrote on 2013-09-05:
Fix currently is available only in 13.10... I have submitted fix for raring (13.04) too, but no one has approved it.
1) Open this [/usr/share/themes/Ambiance/gtk-3.0/apps/gnome-panel.css] file for editing:
sudo nano /usr/share/themes/Ambiance/gtk-3.0/apps/gnome-panel.css
2) Delete 9. line and save file:
padding: 0;
3) Restart gnome-panel or logout and login ar restart pc.
Opção 2 - instalar o Classic Menu Indicator. No terminal digite:
$ sudo apt-add-repository ppa:diesch/testing
$ sudo apt-get update
$ sudo apt-get install classicmenu-indicator
Reinicie o computador para ambos
----------------------------------------------------------------------------
Instalar GEdit--------------------------------------------------------------
$ sudo apt-get install GEdit
----------------------------------------------------------------------------
Keepnote--------------------------------------------------------------------
Install keepnote in Ubuntu
Preparing your system
Open the terminal and run the following commands
$ sudo apt-get install python python-gtk2 python-glade2 libgtk2.0-dev
Spell checking is enabled with an optional package
$ sudo apt-get install python-gnome2-extras aspell aspell-en aspell-XX
where XX is your language if it is not english. Other platforms will probably name
their packages similarly.
Download .deb package from http://rasm.ods.org/keepnote/, once you downloaded install
by double clicking on it or using the following command from your terminal
$ sudo dpkg -i keepnote_0.6.2-1_all.deb
----------------------------------------------------------------------------
Comando para atualizar o sistema--------------------------------------------
No terminal digite:
$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt-get clean
$ sudo apt-get dist-upgrade
----------------------------------------------------------------------------
Uniscan---------------------------------------------------------------------
> http://www.ubersec.com/blog1/index.php?/archives/7-Installing-uniscan-web-scanner-and-vulnerability-system.html
OBS.: Baixei um pdf e a ferramenta, está em Linux > Ubuntu
http://marcoscarraro.blogspot.com.br/2012/02/uniscan-scan-de-vulnerabilidades-web.html
http://wiwinhartanto.staff.fkip.uns.ac.id/uniscan-vulnerablity-scanner-download-and-installing-ubuntu.html
http://ubuntuforums.org/showthread.php?t=1574931
http://www.backtrack-linux.org/forums/showthread.php?t=42982
----------------------------------------------------------------------------
Skype-----------------------------------------------------------------------
http://www.sempreupdate.com.br/2013/05/instalando-e-rodando-o-skype-42-no.html
http://askubuntu.com/questions/215298/unable-to-install-skype-on-12-10-64bit
>>>> x86:
1. Ctrl + Alt + T para abrir o terminal, se você já tiver instalado uma versão anterior, execute este comando para desinstalar:
$ sudo apt-get remove skype skype-bin
2. Faça o download do Skype 4.2 a partir do site oficial, você pode fazê-lo através deste comando:
$ sudo wget http://download.skype.com/linux/skype-ubuntu-precise_4.2.0.11-1_i386.deb
3. Instale o pacote DEB e corrigir o problema de dependência se for o caso:
$ sudo dpkg -i skype-ubuntu*.deb; sudo apt-get -f install
Em sistemas de 64 bits, o usuário pode enfrentar problemas de instabilidade de áudio,
para corrigir esse problema, instale o pacote "libasound2-plugins: i386":
$ sudo apt-get install libasound2-plugins: i386
Se o ícone da bandeja ou appindicator do Skype está faltando, instale o pacote " sni-qt ":
32-Bit
$ sudo apt-get install sni-qt
64-Bit
$ sudo apt-get install sni-qt sni-qt:i386
>>>> x64:
I'd the same issue and what helps me was to enable the 32-bit architecture by:
$ sudo dpkg --add-architecture i386
$ sudo apt-get update
Then I was able to install skype via the Canonical Partner Repository:
$ sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
$ sudo apt-get update && sudo apt-get install skype
And also via direct skype download:
$ wget http://www.skype.com/go/getskype-linux-ubuntu-64/skype-ubuntu-quantal_4.1.0.20-1_amd64.deb
$ sudo dpkg -i skype-ubuntu*.deb
----------------------------------------------------------------------------
CPAN------------------------------------------------------------------------
http://www.sudobash.net/bash-how-to-install-perl-modules-through-cpan-on-ubuntu-2/
http://network-wizard.blogspot.com.br/2007/12/installing-ssleay-on-ubuntu.html
----------------------------------------------------------------------------
Brilho em 100% na inicialização, correção-----------------------------------
http://askubuntu.com/questions/66751/how-do-i-set-default-display-brightness
The solution
Copy-paste of this should do what you need (sudo will probably ask your password).
# Install xbacklight in case it is not already installed (small).
sudo apt-get install xbacklight
# This creates a small script running xbacklight.
# You can change the =30 into another value if you wish.
sudo bash -c '{
echo "#!/bin/bash"
echo "xbacklight =30"
} > /etc/lightdm/display-setup-script.sh '
# This makes that script executable
sudo chmod a+rx /etc/lightdm/display-setup-script.sh
# This instructs lightdm to run the script when starting X.
# Specifically, it adds a line display-setup-script in lightdm.conf, but only if there is not one already
if
grep ^display-setup-script /etc/lightdm/lightdm.conf ;
then
echo "Already a display-setup-script. It may already do what you need. Else please adjust manually" ;
else
sudo bash -c "echo display-setup-script=/etc/lightdm/display-setup-script.sh >>/etc/lightdm/lightdm.conf" ;
fi
----------------------------------------------------------------------------
Bumblebee e ATI, driver de vídeo--------------------------------------------
>>> http://askubuntu.com/questions/205112/how-do-i-get-amd-intel-hybrid-graphics-drivers-to-work
OBS.: resolveu problema de aquecimento do sistema, uso intenso da bateria e uso contínuo do fan.
>>>>>> For 13.04:
>>> Pre-Install:
Three terminal-commands:
$ sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6
$ sudo apt-get install dkms libqtgui4 wget execstack libelfg0 dh-modaliases
$ sudo apt-get install linux-headers-generic xserver-xorg-core libgcc1
Additional two terminal-commands for 64-bit:
$ sudo apt-get install ia32-libs lib32gcc1 libc6-i386
$ cd /usr ; sudo ln -svT lib /usr/lib64
(Note: The second command shouldn't be necessary if there is already such a symbolic
link named lib64 pointing to folder lib there. And if there is already a real folder
by that name (determined with ls -l /usr/lib64), you should ensure that its contents are
safely moved into folder /usr/lib and then delete --the now empty-- folder /usr/lib64 before executing this command).
Download from these direct-links: libudev0_175-0ubuntu13_amd64.deb (http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu//pool/main/u/udev/libudev0_175-0ubuntu13_amd64.deb).
and (the older intel driver - xserver-xorg - see also section "Important" on answer for 12.10. I think this would also be very important here.)
https://docs.google.com/file/d/0B0tTaH4qTIIXdDF3NThFWUtrYlU/edit?usp=sharing
Copy these files (two .deb packages) into an empty folder.
Remove the old drivers:
$ sudo apt-get remove fglrx*
$ sudo apt-get remove xserver-xorg-video-intel
Execute the following two terminal-commands in the folder with downloaded .deb files:
$ sudo dpkg -i libudev*
$ sudo dpkg -i xserver-xorg-video-intel_2.21.6-0ubuntu4_amd64.deb
Prevent xserver-xorg-video-intel from being upgraded:
$ sudo apt-mark hold xserver-xorg-video-intel
>>> Installation:
Get the current ATI Catalyst driver e.g. 13.04 (I have tested it with this release) from the official website: www.amd.com/drivers
Unzip the .zip and make it executable. Then go to the folder with the unzipped .run-file in terminal and type:
$ sudo sh ./amd-catalyst-XX.X-linux-x86.x86_64.run --buildpkg Ubuntu/raring
Replace XXX with the correct name of the file.
Install the created .deb-files with the following terminal-command in the current directory:
$ sudo dpkg -i fglrx*.deb
>>> Post-Install:
Enter the terminal command
$ sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
$ sudo aticonfig --initial -f
(Note: If you use multiple AMD graphics cards or AMD dual graphics, you can use sudo
aticonfig --adapter=all --initial -f instead, and/or if you use a dual monitor display,
you can also use this additional third command: sudo aticonfig --set-pcs-str="DDX,EnableRandR12,FALSE")
Select the discrete GPU
$ sudo aticonfig --px-dgpu
Reboot your system
$ sudo reboot
> Links:
http://ubuntuforums.org/showthread.php?t=1930450
>>> My Scripts for Switching
> Script for High-GPU-Mode:
#!/bin/bash
# Activate discrete GPU (High-Performance mode), must re-start X to take effect
sudo aticonfig --px-dgpu
sudo restart lightdm
> Script for Low-GPU-Mode:
#!/bin/bash
# Activate integrated GPU (Power-Saving mode), must re-start X to take effec
sudo aticonfig --px-igpu
sudo restart lightdm
> Script for showing current GPU-Mode:
#!/bin/bash
#Show current GPU (High- or Low-Performance mode) as notification
aticonfig --pxl | while read SPAM_OUT; do notify-send "$SPAM_OUT"; done
Note: If you always have problems after the execution of a Switching-Script, make a restart of your system (and not only a re-login).
Important - Today I got a security-update for "xserver-org" form the official Ubuntu repositories which crashed my system again (no login screen). Then I installed the newest two xserver-org-video-intel*.deb's (downloaded and installed as described above) from the PPA https://launchpad.net/~andrikos/+archive/ppa/+packages?field.name_filter=&field.status_filter=published&field.series_filter=quantal again. You can also add this PPA on your system for preventing this issue. For me, this PPA has too much other packages, so I will do it (downloading the two .deb-files and installing them) manually. An other solution is, to de-select the "xserver-org"-packages if there are official Ubuntu security updates available.
Outros links:
https://wiki.ubuntu.com/Bumblebee#Installation
http://www.noobslab.com/2013/04/install-ati-amd-catalyst-drivers-in.html
http://askubuntu.com/questions/205112/how-do-i-get-amd-intel-hybrid-graphics-drivers-to-work
http://wiki.cchtml.com/index.php/Ubuntu_Raring_Installation_Guide#Intel.2FATI_Hybrids
http://support.amd.com/us/gpudownload/Pages/index.aspx
https://help.ubuntu.com/community/BinaryDriverHowto/ATI
http://www.thefanclub.co.za/how-to/ubuntu-amd-catalyst-install
----------------------------------------------------------------------------
Sensors, sensores do sistema------------------------------------------------
No terminal digite:
$ sudo apt-get install lm-sensors
----------------------------------------------------------------------------
PHP environment for Ubuntu--------------------------------------------------
https://netbeans.org/kb/docs/php/configure-php-environment-ubuntu_pt_BR.html#installingSoftware
----------------------------------------------------------------------------
Tasksel---------------------------------------------------------------------
http://pplware.sapo.pt/linux/tasksell-instale-facilmente-grupos-de-software-no-linux/
O Tasksel é uma ferramenta para sistemas Debian, que permite instalar múltiplos pacotes de
software, de uma só vez e de forma muito simples, consistente e coordenada. Desta forma,
não temos de nos preocupar em encontrar os pacotes adequados, assim como estamos livres de
problemas com dependências de pacotes.
O TASKSEL é um ferramenta que agrupa um conjunto de pacotes em “TASKS”, sendo que o utilizador
apenas tem de selecionar qual a TASK a instalar.
Como instalar o TASKSEL no Debian/Ubuntu?
Para instalar o TASKSEL no Debian/Ubuntu basta abrir o terminal e escrever:
$ sudo apt-get install tasksel
$ sudo apt-get update
Para aceder à lista de TASKs disponiveis para instalação, basta executar o comandos:
$ sudo tasksel
Caso o utilizador pretenda instalar diretamente uma das TASKs, basta que saiba o nome da mesma.
Por exemplo, se o utilizador pretender instalar o Apache-MySQL-PHP basta que uso o comando:
$ sudo tasksel install lamp-server
Considerando que, por exemplo, você queira saber quais as tasks instaladas (installed (i)) e as
não instaladas unistalled – u basta correr o seguinte comando:
$ tasksel --list-task
Como qualquer outro comando, toda a informação do mesmo pode ser encontrada no respectivo manual
que está acessível através do comando
$ man tasksel
O Tasksel é sem duvida uma ferramenta muito interessante, que simplifica a instalação de um
conjunto de software. O utilizador não terá problemas em dependências de software, bibliotecas nem
terá de saber quais os pacotes necessários à instalação completa de um determinado serviço. Afinal,
instalar um qualquer serviço em Debian/Ubuntu é super fácil!
----------------------------------------------------------------------------
Hibernation-----------------------------------------------------------------
http://linuxg.net/enable-hibernation-on-ubuntu-13-04-raring-ringtail/
In this article I will show you how to add the Hibernate button to your Shutdown Menu, on Ubuntu 13.04.
When your computer hibernates, everything is moved to the swap memory and the computer shuts down.
The Ubuntu community does not encourage hibernation, because it does not work on some computers and
it is very possible to loose data during hibernation.
If you want to use hibernation, I recommend you to save everything before sending your Ubuntu box to hibernate.
The easiest way to send your computer to hibernation, on Ubuntu, is to do it by the command line interface:
$ sudo pm-hibernate
You can alias this, for an easier usage:
$ alias hibernate='sudo pm-hibernate'
Now, all you have to do is to write hibernate in the terminal and write your current password.
For making this alias persistent, add it to your ~/.bashrc.
However, you can insert a hibernation button in your shutdown menu, like this:
Step 1. Create the /var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla file:
$ sudo touch /var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla
Step 2. Paste this lines in the newly created hibernate.pkla file:
[Enable Hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
Step 3. Reboot the system and you will have a Hibernate button in your Shutdown Menu.
----------------------------------------------------------------------------
A program to display system specs-------------------------------------------
No terminal digite:
$ sudo apt-get update && sudo apt-get install hardinfo && hardinfo
----------------------------------------------------------------------------
Where to find Additional drivers in Ubuntu 13.04 / 12.10--------------------
http://www.howopensource.com/2012/10/find-additional-drivers-in-ubuntu-12-10/
----------------------------------------------------------------------------
Lynx, navegador somente texto-----------------------------------------------
http://forums.opensuse.org/english/get-technical-help-here/network-internet/457817-torify-lynx.html
https://trac.torproject.org/projects/tor/ticket/7136
https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/WebBrowsers
http://www.addictivetips.com/ubuntu-linux-tips/install-and-use-lynx-on-ubuntu/
No terminal digite:
$ sudo apt-get install lynx
Use - To load some web page in lynx browser, you will need to enter the following syntax in terminal:
$ lynx <the desired url>
Usando com TOR:
Opção 1 - Run lynx with "usewithtor lynx" if "lynx" is the command to start it, there are
limitations to using torsocks, i suggest you read up on it.
Opção 2 - $ torsocks lynx -noreferer -anonymous https://check.torproject.org/
Opção 3 - Lynx will respect the http_proxy enviroment variable, but you can edit /etc/lynx.cfg:
http_proxy:http://127.0.0.1:8118/
https_proxy:http://127.0.0.1:8118/
no_proxy:localhost,127.0.0.1
----------------------------------------------------------------------------
Configurando teclado Apple ou Clone parecido--------------------------------
Procure pela tecla correspondente ao Num Lock, e desative para diminuir a desconfiguração.
No caso do teclado Clone, esse correspondente é o F6.
Change Function Key behavior
0 = disabled : Disable the 'fn' key. Pressing 'fn'+'F8' will behave like you only press 'F8'
OBS.: 0 mágicamente fez funcioanar corretamente o Fn e todo o resto (13.04, Clone Keyboard)
1 = fkeyslast : Function keys are used as last key. Pressing 'F8' key will act as a special key.
Pressing 'fn'+'F8' will behave like a F8.
2 = fkeysfirst : Function keys are used as first key. Pressing 'F8' key will behave like a F8.
Pressing 'fn'+'F8' will act as special key (play/pause).
Ubuntu 9.04 to 12.04 LTS (Precise Pangolin)
>>> Temporarily Fix
The following command will change the behaviour of 'fn' key with immediate effect, but restarting will reset the configuration:
$ echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
(The meaning of fnmode values is as described in the preceding section.)
>>> Permanently Fix
Methods described in this section will change the behavior permanently. There are several ways to proceed with this modification. Each sub-section describes one way to permanently change the configuration.
> With .conf file (Recommended)
1. Run the following command to append the configuration line to the file /etc/modprobe.d/hid_apple.conf creating it if necessary:
$ echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
2. Trigger copying the configuration into the initramfs bootfile.
$ sudo update-initramfs -u -k all
3. Optionally, reboot
$ sudo reboot
> With sysfs.conf
1. Edit the /etc/sysfs.conf file, creating it if necessary.
gksudo gedit /etc/sysfs.conf
2. Add this lines to the end of the file.
module/hid_apple/parameters/fnmode = 2
3. Reboot
> With rc.local
This methods simply automatically applies during startup the technique used to change fnmode temporarily.
1. Edit the /etc/rc.local file.
gksudo gedit /etc/rc.local
2. Add this line near the end of the file, before the "exit" line:
echo 2 > /sys/module/hid_apple/parameters/fnmode
3. Reboot
----------------------------------------------------------------------------
Gimp------------------------------------------------------------------------
$ sudo add-apt-repository ppa:otto-kesselgulasch/gimp && sudo apt-get update && sudo apt-get install gimp
----------------------------------------------------------------------------
7 steps to an encrypted partition local or removable disk-------------------
http://ubuntu-tutorials.com/2007/08/17/7-steps-to-an-encrypted-partition-local-or-removable-disk/
----------------------------------------------------------------------------
Comandos para visualizar partições no terminal------------------------------
Lista dispositivos e seus UUIDs
$ sudo blkid
Mostra o UUID da partição <sda>
$ sudo lsblk -no UUID <sda>
Lista partições
$ sudo lsblk -f
----------------------------------------------------------------------------
Swap issue - could not mount /dev/mapper/cryptswap1-------------------------
Adicionei o UUID da partição de SWAP listado em
$ sudo blkid
ao arquivo fstab
$ sudo gedit /etc/fstab
Mas o problema parece ser que a partição não é montada na hora do boot...
http://askubuntu.com/questions/56843/could-not-mount-dev-mapper-cryptswap1
http://www.leonardoborda.com/blog/how-to-add-a-new-partition-to-the-fstab-file/
https://wiki.archlinux.org/index.php/Fstab
http://askubuntu.com/questions/146511/how-to-check-if-your-home-folder-and-swap-partition-are-encrypted-using-terminal
http://askubuntu.com/questions/53242/check-if-partition-is-encrypted
----------------------------------------------------------------------------
xulrunner-------------------------------------------------------------------
xulrunner is no longer available in the repositories for 12.04, but it's very easy to install the latest versions provided by the Mozilla Foundation here. Since these xulrunner releases are self-contained, we'll put them in the /opt directory.
Open the terminal with Ctrl+Alt+T
Type cd /opt
The below steps will automatically download the appropriate version of xulrunner based on the currently installed version of Firefox and whether your Ubuntu is 32-bit or 64-bit. (If you are running a Firefox beta, etc., please copy the URL manually from your browser and set XURL= to it (see below)
Copy and paste in the terminal, line by line:
FFVER=`grep -Po "\d{2}\.\d+" /usr/lib/firefox/platform.ini`
ARCH=`uname -p`
XURL=https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/$FFVER/runtimes/xulrunner-$FFVER.en-US.linux-$ARCH.tar.bz2
cd /opt
sudo sh -c "wget -O- $XURL | tar -xj"
sudo ln -s /opt/xulrunner/xulrunner /usr/bin/xulrunner
sudo ln -s /opt/xulrunner/xpcshell /usr/bin/xpcshell
xulrunner is now installed, and can be run with simply xulrunner from anywhere.
To uninstall it, simply remove the xulrunner directory under /opt, and the /usr/bin/xulrunner and /usr/bin/xpcshell symbolic links.
----------------------------------------------------------------------------
Installing Websecurify------------------------------------------------------
http://lifewithubuntu.blogspot.com.br/2009/11/installing-websecurify-04.html
https://code.google.com/p/websecurify/downloads/detail?name=Websecurify%20Suite%201.0.0.tar.gz&can=2&q=
----------------------------------------------------------------------------
Installing Python 3.3 on Ubuntu 13.04---------------------------------------
http://linuxg.net/how-to-install-python-3-3-on-ubuntu-13-04-12-10-and-12-04/
Because there is no PPA for Ubuntu 13.04, we’ll do an installation from sources.
Installing the dependencies:
$ sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev
Download and compile python:
$ sudo wget http://python.org/ftp/python/3.3.0/Python-3.3.0.tar.bz2
$ sudo tar jxf ./Python-3.3.0.tar.bz2
$ sudo cd ./Python-3.3.0
$ sudo ./configure --prefix=/opt/python3.3
$ sudo make && sudo make install
Some nice touches to install a py command by creating a symlink:
$ sudo mkdir ~/bin
$ sudo ln -s /opt/python3.3/bin/python3 ~/bin/py
----------------------------------------------------------------------------
Gnome Disk Utility----------------------------------------------------------
The command to install gnome-disk-utility is
$ sudo apt-get install gnome-disk-utility
The command to run gnome-disk-utility is
$ sudo gnome-disks
----------------------------------------------------------------------------
Resolve Error "Version Number Does Not Start With Digit"--------------------
Erro:
dpkg: erro ao processar /var/cache/apt/archives/webslayer_rev5-bt0_all.deb (--unpack):
a interpretar o ficheiro '/var/lib/dpkg/tmp.ci/control' perto da linha 3 pacote 'webslayer':
erro na string Versão 'rev5-bt0': número de versão não começa com um dígito
Erros foram encontrados durante o processamento de:
/var/cache/apt/archives/webslayer_rev5-bt0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Problema >> erro ao interpretar o ficheiro '/var/lib/dpkg/tmp.ci/control' perto da linha 3 pacote 'webslayer':
erro na string Versão 'rev5-bt0': número de versão não começa com um dígito
Solução >> trocar para "5rev-bt0", assim:
cd to the directory of webslayer_rev5-bt0_all.deb
$ sudo dpkg-deb -R webslayer_rev5-bt0_all.deb webslayer
$ sudo vi webslayer/DEBIAN/control
change the line “Version: rev5-bt0” to “Version: 5rev-bt0”.
save and exit
$ sudo dpkg-deb -b webslayer/ webslayer.deb
the new package webslayer.deb can be installed successfully now
remova também o pacote problemático e deixe o novo gerado, depois:
$ sudo gedit /var/lib/dpkg/status
and remove the version that are giving you trouble, no caso:
"Package: webslayer
Status: install ok installed
Priority: extra
Section: net
Installed-Size: 2666
Maintainer: Devon Kearns <dookie@kali.org>
Architecture: all
Version: 1.0~svn5-1raring0
Depends: python, python-qt4
Description: Web application bruteforcer
Webslayer is a web application bruteforcer tool, to help
security testers on all bruteforce tasks during a
penetration test.
Homepage: http://www.edge-security.com/webslayer.php"
----------------------------------------------------------------------------
Linux VI--------------------------------------------------------------------
https://www.washington.edu/computing/unix/vi.html
http://www.cs.colostate.edu/helpdocs/vi.html
----------------------------------------------------------------------------
Mantra----------------------------------------------------------------------
http://www.getmantra.com/forums/Thread-How-do-I-use-the-mantra
----------------------------------------------------------------------------
RM e RMDIR------------------------------------------------------------------
$ sudo rm -rf <dir>, it delete all files and folders contains in <dir> directory
$ sudo rmdir <dir>, it delete an empty directory
----------------------------------------------------------------------------
E harvester-----------------------------------------------------------------
http://porsot.org/installing-and-using-e-harvester-on-ubuntu-12-04-backtrack-5-r3-kali-linux/
$ git clone https://github.com/niravkdesai/ehs.git
$ cd ehs
$ chmod +x *
$ ./eharvester.sh
----------------------------------------------------------------------------
Gerix-----------------------------------------------------------------------
http://packages.ubuntu.com/lucid/amd64/python-qt3/download
http://keepitsimpleshort.blogspot.com.br/2013/06/how-to-install-Gerix-Wifi-Cracker-in-Ubuntu-13.04-and-other-ubuntu-distributions.html
http://geekswastingtime.blogspot.com.br/2012/09/gerix-wifi-cracker-in-ubuntu-1204.html
https://github.com/TigerSecurity/gerix-wifi-cracker
http://xtrabuntu.blogspot.com.br/2011/01/install-gerix-wifi-crackrer-ubuntu.html
http://blog.davidvassallo.me/2010/04/19/installing-gerix-from-backtrack-into-ubuntu/
To install, open terminal and type:
$ wget http://www.clshack.it/nopaste/gerix-wifi-cracker-ng-2.0-bt7.deb
$ sudo dpkg -i gerix-wifi-cracker-ng-2.0-bt7.deb
How to install ?
1. Add BackTrack repository:
wget -q http://all.repository.backtrack-linux.org/backtrack.gpg -O- | sudo apt-key add -
sudo sh -c "echo 'deb http://all.repository.backtrack-linux.org revolution main microverse non-free testing' >> /etc/apt/sources.list"
sudo apt-get update && sudo apt-get upgrade
2. To check if the repository is added correctly, you can try to install this BackTrack package:
sudo apt-get install backtrack-wallpapers
* If you can install it, that means you have successfully added BackTrack repository *
3. Install Gerix:
sudo apt-get install gerix-wifi-cracker-ng
Run it with
$ gksudo python /usr/share/gerix-wifi-cracker-ng/gerix.py
How to use ?
$ sudo /usr/share/gerix-wifi-cracker-ng/gerix.py
----------------------------------------------------------------------------
Debian (Ubuntu) package (.deb)----------------------------------------------
To install a downloaded Debian (Ubuntu) package (.deb), open Terminal and type:
$ sudo dpkg -i packagename.deb
To remove a Debian (Ubuntu) package (.deb):
$ sudo dpkg -r packagename
To Reconfigure/Repair an installed Debian (Ubuntu) package (.deb):
$ sudo dpkg-reconfigure packagename
----------------------------------------------------------------------------
Fix broken packages---------------------------------------------------------
Remove pacotes desnecessários
$ sudo apt-get autoremove
Fix broken packages with synaptic:
Select the "Status" Catagory. This shows packages organized by status.
Select "Broken dependencies" catagory from upper left pane.
Select the broken packages. If the packages are more than one, select them all by pressing Ctrl+A.
Then right-click on a selected package, and select the option "Mark for Complete Removal" in the menu.
Fix broken packages:
To clean up the packages you've installed from ppa, you should use ppa-purge, assumed the ppa is ppa:xorg-edger/ppa
$ sudo apt-get install ppa-purge
$ sudo apt-get update
$ sudo ppa-purge ppa:xorg-edger/ppa
it will prompt you a list of packages to remove and/or downgrade, if nothing look suspicious, answer Y and wait
if you are lucky, it should finish with out error, else you'll need to do a sudo apt-get install -f
Fix broken packages:
After you get that error, try sudo apt-get -f install to force an install of the files that didn't get loaded because of the error.
Then try sudo apt-get update again, sudo apt-get -f install back and forth until only the package that has the error is left.
$ sudo dpkg --configure -a
and clean the cache
$ sudo apt-get clean
Fix broken packages:
$ sudo apt-get update && sudo apt-get -f install
Fix broken packages:
Open terminal and run this command:
$ sudo apt-get clean
Above command will clean out the local repository of retrieved package file.
$ sudo apt-get install -f
Will correct broken dependencies i.e. -f here stands for “fix broken”.
$ sudo dpkg --configure -a
will configure all (-a) the packages which haven't been configured yet. In the end do run the update command sudo apt-get update.
Fix broken packages:
Had the same problem, an
$ sudo apt-get clean
followed by an
$ sudo apt-get update
followed by an
$ sudo apt-get upgrade -f
fixed it. I hope this helps!
Fix broken packages:
After trying
$ sudo dpkg --configure -a
and
$ sudo apt-get install -f
the problem of a broken package still exist the solution is to edit the dpkg status file manually.
$ sudo gedit /var/lib/dpkg/status (you can use vi or nano instead of gedit)
Locate the corrupt package, and remove the whole block of information about it and save the file.
----------------------------------------------------------------------------
Ver caminho da pasta atual--------------------------------------------------
$ pwd
----------------------------------------------------------------------------
Wifi analysers--------------------------------------------------------------
$ sudo apt-get install kismet
You could use Wavemon. It's available in the Software center.
Once you have installed, open a terminal and type wavemon.
----------------------------------------------------------------------------
Listar status das interfaces de Internet------------------------------------
$ sudo ifconfig
----------------------------------------------------------------------------
Open ubuntu file manager with root------------------------------------------
$ sudo gksu nautilus /var/www
I open the root terminal, insert pass, then type in "nautilus"
----------------------------------------------------------------------------
Install eclipse-------------------------------------------------------------
$ sudo apt-get install eclipse-platform
http://www.rarejava.com/blog/2011/03/how-to-manually-install-and-configure-eclipse-on-ubuntu
----------------------------------------------------------------------------
Install wpscan--------------------------------------------------------------
http://wpscan.org/
----------------------------------------------------------------------------
Como descompactar arquivos zip, rar, tar.gz, bz2, tar.bz2 pelo terminal-----
Para descompactar estes formatos de arquivos os comandos são simples:
zip: gunzip nomedoarquivo.zip
rar: unrar x nomedoarquivo.rar
tar: tar -xvf nomedoarquivo.tar
tar.gz: tar -vzxf nomedoarquivo.tar.gz
bz2: bunzip nomedoarquivo.bz2
tar.bz2: tar -jxvf nomedoarquivo.tar.bz2
----------------------------------------------------------------------------
Como resolver problemas com USB 3.0 no Ubuntu-------------------------------
O kernel do Linux suporta USB 3.0 nativamente desde a primeira versão, embora possa acontecer da velocidade de transferência de dados não ser tão rápida quanto deveria. A transferência de dados para um pendrive/HD USB 3.0 deve ser muito rápido, mas em alguns casos a transferência é mais lenta do que a conexão USB 2.0. Mostraremos aqui como corrigir este erro.
Se você percebeu este problema basta fazer uma pequena alteração no bootloader Grub e teremos o nosso USB 3.0 rápido e funcional. Abra o terminal e digite:
sudo gedit /etc/default/grub ENTER
Procure pela linha:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Insira pci=nomsi na mesma linha, após quiet splash, de tal maneira que se torna
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nomsi"
Salvar o arquivo e feche-o. Atualizar o Grub:
sudo update-grub ENTER
Reiniciar o sistema. Ao reiniciar sua USB 3.0 estará totalmente funcional.
----------------------------------------------------------------------------
Using USB stick as SWAP-----------------------------------------------------
Make sure your USB stick is connected. In a terminal type:
$ sudo blkid
It will list all your connected drives. Search for your USB stick you want to use as swap and copy the UUID (everything inside these quotes UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX").
This represents the individual name of your device.
Also note the /dev/XXX point of your device.
Edit your /etc/fstab file, so type
$ sudo gedit /etc/fstab
and enter the following
UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none swap sw,pri=5 0 0
(for all the Xs, use the UUID number you got by typing sudo blkid)
Now type
$ sudo swapon -a
----------------------------------------------------------------------------
HowTo: Create a list of installed packages----------------------------------
I found out how to do this recently and thought it might be helpful to some people. To output this information to a file in your home directory you would use,
$ dpkg --get-selections > installed-software
And if you wanted to use the list to reinstall this software on a fresh ubuntu setup,
$ dpkg --set-selections < installed-software
$ dselect
----------------------------------------------------------------------------
Install Iceweasel-----------------------------------------------------------
Since mixing Debian and Ubuntu is not generally recommended, I've tried (and succeded) to do it manually.
The Iceweasel package details page (http://packages.debian.org/squeeze/iceweasel) has links to download pages for different architectures, as well as a list of dependencies and suggested packages.
In my case, I go to the i386 architecture download page, where there are links to download the file from different mirrors. You can simply click on one of the links or copy it to run from a terminal:
$ wget -c http://ftp.mx.debian.org/debian/pool/main/i/iceweasel/iceweasel_3.5.16-20_i386.deb
Before installing the downloaded package, you need to make sure you have all dependencies installed. Any of the solutions provided here[http://askubuntu.com/questions/15452/how-can-i-find-the-version-number-of-an-installed-package-via-dpkg] will do.
In my particular case, I had to download and install xulrunner-1.9.1 and several of its dependencies: libhunspell-1.2-0, libjpeg62, and libmozjs2d. Each can be found at the link provided with the dependencies list.
Then, install everything (I show separated commands to reduce lenght of example):
$ sudo dpkg -i libhunspell-1.2-0_1.2.11-1_i386.deb libjpeg62_6b1-1_i386.deb libmozjs2d_1.9.1.16-20_i386.deb
$ sudo dpkg -i xulrunner-1.9.1_1.9.1.16-20_i386.deb iceweasel_3.5.16-20_i386.deb
NOTE: Iceweasel "takes over" your current firefox configuration, and you will not be able to run both Iceweasel and Firefox at the same time. Note the creation of the symbolic link firefox.real during installation (it links to /usr/lib/firefox/firefox.sh):
installation of iceweasel .deb package
Click for a full-resolution version.
On first run, it will check and install (or reject) the add-ons from your Firefox:
iceweasel add-on compatibility testing
Click for a full-resolution version.
And this is Iceweasel up and running on my Ubuntu 12.04:
iceweasel first run
Click for a full-resolution version.
SOURCE : http://askubuntu.com/questions/285481/how-to-install-iceweasel
wget -c http://ftp.mx.debian.org/debian/pool/main/i/iceweasel/iceweasel_3.5.16-20_i386.deb
wget -c http://ftp.mx.debian.org/debian/pool/main/i/iceweasel/xulrunner-1.9.1_1.9.1.16-20_i386.deb
wget -c http://ftp.mx.debian.org/debian/pool/main/i/iceweasel/libmozjs2d_1.9.1.16-20_i386.deb
iceweasel_3.5.16-20_amd64.deb
----------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment