Dicas para o Ubuntu

Olá!

O objetivo dessa página é orientar usuários iniciantes do Ubuntu que desejam instalar e configurar o Ubuntu utilizando ao máximo o modo gráfico. Caso o uso do ambiente gráfico não for possível, as orientações buscam ser o mais simples possível, sempre voltadas aos iniciantes do Ubuntu. A versão utilizada do Ubuntu é sempre mais atual e estável de 64 bits.

domingo, 31 de março de 2013

How to recover a high capacity usb flash drive / Como recuperar os arquivos de um pendrive de alta capacidade

(English)
How to recover a high capacity usb flash drive, with a hundred of files and totally unreadable in a GNU/Linux system. 

The testdisk tool works fine. It is can get in the Debian/ubuntu/LinuxMint repository. Type, as a root user, the following command to install:

Add the universal repository

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
 
and 
 
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
 
and  
 
 
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"

  # sudo apt-get install testdisk

Once upon the tool has been installed, just execute as root:


  # testdisk

So, the initial screen appears, with informations and an action main menu:

  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
  
  TestDisk is free data recovery software designed to help recover lost
  partitions and/or make non-booting disks bootable again when these symptoms
  are caused by faulty software, certain types of viruses or human error.
  It can also be used to repair some filesystem errors.
  
  Information gathered during TestDisk use can be recorded for later
  review. If you choose to create the text file, testdisk.log , it
  will contain TestDisk options, technical information and various
  outputs; including any folder/file names TestDisk was used to find and
  list onscreen.
  
  Use arrow keys to select, then press Enter key:
  >[ Create ] Create a new log file
   [ Append ] Append information to log file
   [ No Log ] Don't record anything
 
Let the first option (Create) to run. To do it, type 

  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
    TestDisk is free software, and
  comes with ABSOLUTELY NO WARRANTY.
  
  Select a media (use Arrow keys, then press Enter):
  >Disk /dev/sda - 500 GB / 465 GiB - ST500DM002-1BD142
   Disk /dev/sdb - 32 GB / 29 GiB - SanDisk Cruzer Blade
  
  Note: Disk capacity must be correctly detected for a successful recovery.
  If a disk listed above has incorrect size, check HD jumper settings, BIOS
  detection, and install the latest OS patches and disk drivers.
  ecover files
  or partitions off dead flash drives, usually fried by Windows, or any hard drive
  or removable media 
 
This screen shows the options to make the recovering actions. In this case,
the better one is the second option, to verify the flash drive:
 
  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
  Disk /dev/sdb - 32 GB / 29 GiB - SanDisk Cruzer Blade
  
  Please select the partition table type, press Enter when done.
  >[Intel  ] Intel/PC partition
   [EFI GPT] EFI GPT partition map (Mac i386, some x86_64...)
   [Humax  ] Humax partition table
   [Mac    ] Apple partition map
   [None   ] Non partitioned media
   [Sun    ] Sun Solaris partition
   [XBox   ] XBox partition
   [Return ] Return to disk selection
  
  Note: Do NOT select 'None' for media with only a single partition. It's very
  rare for a drive to be 'Non-partitioned'.
 
So, choose the partition type, marked as default. Type to proceed.

  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
  Disk /dev/sdb - 32 GB / 29 GiB - CHS 30532 64 32
  
  >[ Analyse  ] Analyse current partition structure and search for lost partitions
   [ Advanced ] Filesystem Utils
   [ Geometry ] Change disk geometry
   [ Options  ] Modify options
   [ MBR Code ] Write TestDisk MBR code to first sector
   [ Delete   ] Delete all data in the partition table
   [ Quit     ] Return to disk selection
  
  Note: Correct disk geometry is required for a successful recovery. 'Analyse'
  process may give some warnings if it thinks the logical geometry is mismatched.
 
The diagnosis is a unreadable flashdrive. So, select the first option, Analyse.

  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
  Disk /dev/sdb - 32 GB / 29 GiB - CHS 30532 64 32
  Current partition structure:
       Partition                  Start        End    Size in sectors
  
  Warning: Incorrect number of heads/cylinder 255 (FAT) != 64 (HD)
  Warning: Incorrect number of sectors per track 63 (FAT) != 32 (HD)
   1 P FAT32 LBA                0   1  1 30532  33 32   62530592 [NO NAME]
  
  Warning: Bad starting sector (CHS and LBA don't match)
  No partition is bootable
  
  *=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
  >[Quick Search]  [ Backup ]
                              Try to locate partition
Let's go to Quick Search:
  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
  Should TestDisk search for partition created under Vista or later ? [Y/N]
  (answer Yes if unsure)
 
The answer is Yes:

Original article posted  in: http://www.dicas-l.com.br/arquivo/recuperacao_de_arquivos_de_pendrives_discos_rigidos_ou_qualquer_tipo_de_midia_removivel.php#.UVh32zeSoy4
................................................................................................................................................................
(Portuguese/Português)
Como recuperar um pendrive de alta capacidade, com centenas de arquivos, e totalmente irreconhecível no  sistema GNU/Linux.
O utilitário testdisk funciona bem.O aplicativo faz parte do repositório Debian/Ubuntu/LinuxMint. Para instalar digite, como root, o seguinte comando:
  # apt-get install testdisk
Uma vez que o software tenha sido instalado, basta executar, como root, o comando abaixo:
  # testdisk
Aparecerá então a tela inicial do programa, com informações e um menu inicial de ações:
  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
  
  TestDisk is free data recovery software designed to help recover lost
  partitions and/or make non-booting disks bootable again when these symptoms
  are caused by faulty software, certain types of viruses or human error.
  It can also be used to repair some filesystem errors.
  
  Information gathered during TestDisk use can be recorded for later
  review. If you choose to create the text file, testdisk.log , it
  will contain TestDisk options, technical information and various
  outputs; including any folder/file names TestDisk was used to find and
  list onscreen.
  
  Use arrow keys to select, then press Enter key:
  >[ Create ] Create a new log file
   [ Append ] Append information to log file
   [ No Log ] Don't record anything
Vamos deixar na primeira opção (Create). Para prosseguir, tecle .
  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
    TestDisk is free software, and
  comes with ABSOLUTELY NO WARRANTY.
  
  Select a media (use Arrow keys, then press Enter):
  >Disk /dev/sda - 500 GB / 465 GiB - ST500DM002-1BD142
   Disk /dev/sdb - 32 GB / 29 GiB - SanDisk Cruzer Blade
  
  Note: Disk capacity must be correctly detected for a successful recovery.
  If a disk listed above has incorrect size, check HD jumper settings, BIOS
  detection, and install the latest OS patches and disk drivers.
  ecover files
  or partitions off dead flash drives, usually fried by Windows, or any hard drive
  or removable media 
Nesta tela temos os dispositivos para os quais poderemos efetuar ações de recuperação. Neste caso, a minha opção é por realizar uma verificação do pendrive, a segunda opção disponível.
  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
  Disk /dev/sdb - 32 GB / 29 GiB - SanDisk Cruzer Blade
  
  Please select the partition table type, press Enter when done.
  >[Intel  ] Intel/PC partition
   [EFI GPT] EFI GPT partition map (Mac i386, some x86_64...)
   [Humax  ] Humax partition table
   [Mac    ] Apple partition map
   [None   ] Non partitioned media
   [Sun    ] Sun Solaris partition
   [XBox   ] XBox partition
   [Return ] Return to disk selection
  
  Note: Do NOT select 'None' for media with only a single partition. It's very
  rare for a drive to be 'Non-partitioned'.
Selecionamos então o tipo de partição, que já vem assinalada por padrão. Teclamos para prosseguir.
  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
  Disk /dev/sdb - 32 GB / 29 GiB - CHS 30532 64 32
  
  >[ Analyse  ] Analyse current partition structure and search for lost partitions
   [ Advanced ] Filesystem Utils
   [ Geometry ] Change disk geometry
   [ Options  ] Modify options
   [ MBR Code ] Write TestDisk MBR code to first sector
   [ Delete   ] Delete all data in the partition table
   [ Quit     ] Return to disk selection
  
  Note: Correct disk geometry is required for a successful recovery. 'Analyse'
  process may give some warnings if it thinks the logical geometry is mismatched.
A situação é de um pendrive ilegível, seleciono então a primeira opção, Analyse.
  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
  Disk /dev/sdb - 32 GB / 29 GiB - CHS 30532 64 32
  Current partition structure:
       Partition                  Start        End    Size in sectors
  
  Warning: Incorrect number of heads/cylinder 255 (FAT) != 64 (HD)
  Warning: Incorrect number of sectors per track 63 (FAT) != 32 (HD)
   1 P FAT32 LBA                0   1  1 30532  33 32   62530592 [NO NAME]
  
  Warning: Bad starting sector (CHS and LBA don't match)
  No partition is bootable
  
  *=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
  >[Quick Search]  [ Backup ]
                              Try to locate partition
Vamos então para a busca rápida (Quick Search):
  TestDisk 6.13, Data Recovery Utility, November 2011
  Christophe GRENIER 
  http://www.cgsecurity.org
  
  Should TestDisk search for partition created under Vista or later ? [Y/N]
  (answer Yes if unsure)
 
Respondo então Yes:

artigo original postado em:

http://www.dicas-l.com.br/arquivo/recuperacao_de_arquivos_de_pendrives_discos_rigidos_ou_qualquer_tipo_de_midia_removivel.php#.UVh32zeSoy4

quinta-feira, 14 de fevereiro de 2013

Ubuntu 12.10 has experienced an internal error

Sorry, Ubuntu 12.10 has experienced an internal error

remove apport and relax if you don't want to report the bugs:

sudo apt-get remove apport
sudo apt-get remove apport-gtk

or

/etc/default/apport and set it to enabled=0

terça-feira, 27 de novembro de 2012

listening radio on ubuntu

For broadcast that use .ram application:

 download in this site:


http://br.real.com/realplayer/other_versions.html


choose your version (in this case, Linux i686, English, .deb)

execute this command:

sudo dpkg -i RealPlayer11GOLD.deb

if this message appears: 




Try 'apt-get -f install' with no packages (or specify a solution).





execute the command

apt-get -f install

and execute the command


sudo dpkg -i RealPlayer11GOLD.deb

Choose your broadcast  and enjoy it.

just that.

sábado, 10 de novembro de 2012

How do I change the icon theme in Ubuntu?


(from:



You can change icon theme with Ubuntu Tweak.

Install Faenza Icon Theme

Hit Ctrl+Alt+T to open terminal and run the following commands:

sudo add-apt-repository ppa:tiheum/equinox sudo apt-get update
sudo apt-get install faenza-icon-theme


Install Ubuntu Tweak:
After installation of Faenza run following commands in terminal to install "Ubuntu Tweak".

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak
 
How To Change Icon Theme With Ubuntu Tweak?
  • Once installed Hit Super key (windows key) to open Unity dash and search for "ubuntu tweak" and open it.
  • Go to tweak tab and click on "Themes" button.


enter image description here
  • Hare you can easily change the icon theme
enter image description here

segunda-feira, 5 de novembro de 2012

Ubuntu - java in firefox browser

Problems to access some sites?

Maybe you need java in firefox browser and you need to get java in your PC.

These is the commands to install java on Ubuntu:

sudo apt-get install openjdk-6-jre

sudo apt-get install openjdk-7-jre

For a while, these is the commands to install java in firefox browser:

sudo apt-get install icedtea6-plugin

sudo apt-get install icedtea-7-plugin

sudo apt-get install icedtea-plugin

(Note that the name "icedtea-7-plugin" is different than "icedtea6-plugin"!!!)






silverlight no Ubuntu

Moonlight is an opensource silverlight application. However the installation is like a windows application, some users in forums declare moonlight as a not developed application. I tried to use on some sites that use silverlight and moolight didn`t  work. 

 To install moonlight, open this site:



http://www.go-mono.com/moonlight/download.aspx


and click on appropriate version (32 or 64 bits) and click to install.


After downloading, the app automatically will be installed in your PC. So, the installation will ask you to restart the browser. Restart and see the app by the firefox command on menu:

tools/addons

if the name "Novell Moonlight x.xx.x.x" appears, this means the moonlight was successfull installed.


segunda-feira, 9 de julho de 2012

Fixing a NTFS partition in Ubuntu

HOW TO Fix a NTFS partition in Ubuntu

20Sep11
My HowTo on fixing an EXT partition in Ubuntu is by far my most popular post, pulling in new visitors everyday. The only reason I wrote it is because it was something that happened to me now and again.
But what about dual boots? What happens when your NTFS drive goes beserk, and you only have access to your Ubuntu install? Well, finally, I’ve come across a solution.
Now, before we begin, this HowTo assumes that your Ubuntu install is working as normal, and that the NTFS partition isn’t essential to Ubuntu. It’s also possible (though I’ve not yet tried) to follow this HowTo using Parted  Magic.
First, we need to find out what partition we are dealing with. To do this, open a terminal and type;
1sudo fdisk -l
That’ll give you something like this;
1Disk /dev/sdb: 160.0 GB, 160041885696 bytes
2255 heads, 63 sectors/track, 19457 cylinders
3Units = cylinders of 16065 * 512 = 8225280 bytes
4Sector size (logical/physical): 512 bytes / 512 bytes
5I/O size (minimum/optimal): 512 bytes / 512 bytes
6Disk identifier: 0x2709a320
7
8 Device Boot Start End Blocks Id System
9/dev/sdb1 * 1 19457 156288321 7 HPFS/NTFS
/dev/sd1 is in this case the NTFS drive we’ll be working with. Obviously change this to whatever yours is. If your partition isn’t listed here, or appears to be the wrong size, you’ll need to use TestDisk.
Next, you need to install some software called “ntfsprogs”. You can do this through Synaptic or on the command line using;
1sudo apt-get install ntfsprogs
There’s just one last step.
1sudo ntfsfix /dev/sdb1
With any luck, you should see the following;
1Mounting volume... OK
2Processing of $MFT and $MFTMirr completed successfully.
3NTFS volume version is 3.1.
4NTFS partition /dev/sdb1 was processed successfully.
And that’s it! Go try to mount you NTFS partition, and it should work again as normal. If not, feel free to leave a comment below.

Original article from:

http://linuxexpresso.wordpress.com/2011/09/20/howto-fix-an-ntfs-partition-in-ubuntu/