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.

segunda-feira, 27 de fevereiro de 2012

Ubuntu on a flash drive - upgrading the kernel

solution 1

http://ubuntuguide.net/ubuntu-11-04-upgrade-linux-kernel-to-2-6-39-0

This is a frequent screen frozen issue, and it’s said has something to do with the kernel. Default kernel come with Ubuntu 11.04 is 2.6.38-8, and here’s how to upgrade to Linux kernel 2.6.39-0.
Update: Kernel-ppa currently is down, there’s no kernel packages. Before adding the ppa check ppa:kernel-ppa/ppa.
As an alternative, you can download latest kernel packages from

http://kernel.ubuntu.com/~kernel-ppa/mainline/

Press Ctrl+Alt+T to start a terminal window, and do following steps:
1.) Add the kernel ppa and update your system:

sudo add-apt-repository ppa:kernel-ppa/ppa

sudo apt-get update
 
2.) Check available kernels with the command:

apt-cache showpkg linux-headers
 
kernel 2.6.39.0 should be in list.

3.) Run the command to install kernel 2.6.39.0:
sudo apt-get install linux-headers-2.6.39-0 linux-headers-2.6.39-0-generic linux-image-2.6.39-0-generic --fix-missing
 
 
solution 2
 
http://www.linuxquestions.org/questions/debian-26/solved-upgrade-error-sub-process-usr-bin-dpkg-returned-an-error-code-1-a-706420/ 
 
 If you have more than 1 kernel installed try removing (using synaptic or
 apt-get) all kernels but the newest. After that do the dist-upgrade 
once more.


If it doesn't work boot from a livecd and resize your /boot partition into at least 100 mb.
 
(But how cant I resize a usb stick /boot partition?) 
 
or:
 
 This worked! I was back in business after doing:
 
 apt-cache showpkg linux-headers 
 
and identify the olders kernels and remove them:
 
$ sudo apt-get remove linux-image-2.6.18*
 

upgrade ubuntu

$ sudo apt-get dist-upgrade
   
   see also: http://kernel.org/
 
solution 3 
 
see more about ubuntu tweak on: 
 
http://blog.ubuntu-tweak.com/2011/12/23/ubuntu-tweak-0-6-0-released.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+ubuntu-tweak+%28Ubuntu+Tweak%29 



 
and: 
 
https://launchpad.net/ubuntu-tweak/+download


 
 
 

 
Removing Kernels via Synaptic 
 
 
http://ubuntuforums.org/showthread.php?t=1587462 
 
 
 
 First, determine which kernel you are using:

Code:
uname -r
Open Synaptic via System > Administration > Synaptic; or
Code:
gksu synaptic
Search for the kernels by typing linux-image in the upper right search box.
  • The kernels are those that being with "linux-image".
    • Example: linux-image-2.6.32-24, linux-image-2.6.32-24-generic.
    • The older kernels will have lower ending numbers. linux-image-2.6.32-23 is older than linux-image-2.6.32-24
  • Those with green selection boxes are currently installed.

Remove unused kernels as you would any other package by right clicking the package and selecting the desired option.

You can also remove the associated linux-headers and linux-restricted-modules-... for the earlier versions. Example: linux-headers-2.6.32-23

Hint: An easy way to find all the installed kernels, headers and modules for a given kernel is to type the main kernel version (2.6.XX) into the top search bar. Click on the top left column status entry in the package window to bring the installed packages (green boxed) to the top of the list.

When you delete a an older kernel via synaptic the kernel is removed from the computer and more disk space is freed up. The grub configuration file (grub.cfg) is updated and the deleted kernel will no longer be displayed on the menu. Make sure you are satisfied with the performance of newly-released kernels before deleting older ones.

 4. http://askubuntu.com/questions/183825/i-have-6-updates-that-wont-install-on-ubuntu-12-04

(if there is this message after execute part 3.: "linux-image-3.2.0-29-generic-pae: subprocess installed post-removal script returned error exit status 1 "

All the errors says it could not find a file, that is /usr/sbin/update-initramfs
Now I executed the following command to find out which package was expected to provide that file and here is the output
$ dpkg -S /usr/sbin/update-initramfs
initramfs-tools: /usr/sbin/update-initramfs
So would you please try installing package initramfs-tools and re-run the updates. To check if the package already present.
sudo dpkg -l |grep initramfs-tools
Then to install initramfs-tools (if not found)
sudo apt-get install initramfs-tools
Then repeat the install process using sudo apt-get update or other commands.
I am keen to know if this helped you to tide over the problem.

or try

sudo apt-get dist-upgrade in such cases; that is, when regular upgrade via Update Manager or sudo apt-get update && sudo apt-get upgrade leaves some packages out --- particularly "linux-something" packages (those are kernel updates).

De todos. Para todos. Mozilla Firefox

domingo, 26 de fevereiro de 2012

Video, audio and fonts on Ubuntu 14.04


Installing all you need about video, audio and fonts on Ubuntu 14.04

Open a terminal (alt+ctrl+t) and type:

sudo apt-add-repository ppa:mc3man/trusty-media
 
type 'enter' when it asks

sudo apt-get update
 
 
Then type (come on! copy from here and paste on the terminal!)
 
sudo apt-get install ffmpeg gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-gnonlin gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly totem-plugins-extra gstreamer-tools ubuntu-restricted-extras libxine1-ffmpeg gxine mencoder mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 libjpeg-progs flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview flac libmpeg3-1 mpeg3-utils mpegdemux liba52-0.7.4-dev libquicktime2
 


Choose 'ok' to agree about the conditions for installing win fonts.

Wait...

That's it.
 
from: 
 
http://askubuntu.com/questions/463976/ubuntu-14-04-64bit-gstreamer-ffmpeg-video-plugin-problem 

quinta-feira, 9 de fevereiro de 2012

Updating the kernel by terminal

To update the kernel before others applications, do the right thing:
Open terminal  just clicking alt+ctrl+t and type the following commands:
$ sudo apt-get update

Now search kernel version:

$ apt-cache search kernel-image

Now install kernel by explicitly specifying version number:
$ sudo apt-get install linux-image-x.x.xx-yy-generic

Replace xx.yy with kernel version number. Reboot the system.

Instead of the apt-get is to use aptitude command. First of all you have to install aptitude by terminal:

sudo apt-get aptitude

(see more about aptitude on https://help.ubuntu.com/8.04/serverguide/C/aptitude.html )

after that type the followings commands:


sudo aptitude update
sudo aptitude safe-upgrade
sudo aptitude full-upgrade

Important: this commands update and upgrade all of old fashion applications.



It`s a adapted version from: http://ubuntuforums.org/showthread.php?t=1218056

sexta-feira, 3 de fevereiro de 2012

Updating firefox on ubuntu by console

open the console, just clicking alt+ctrl+t

type the followings commands:
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa  
sudo apt-get update  
sudo apt-get install firefox

For closing the console type 'exit'.

De todos. Para todos. Mozilla Firefox