May 14 2010

Install Flash in Ubuntu 10.04 64bits

Hello,

The classic problem when you install some new Ubuntu 64 bits version, how to use flash/

I found a script in internet that do it automaticlly for you, native flash installer (64 bits)

Close FIREFOX!

Download it

$ wget http://www.myscienceisbetter.info/flash-player/native-64bit-flash-installer.sh

Give execussion permission

$ chmod +x native-64-bit-flash-installer.sh

Execute it

$ ./native-64-bit-flash-installer.sh

Matheus

Reference:
http://mattrudge.wordpress.com/2010/05/03/installing-flash-player-on-ubuntu-10-04-64-bit/

May 14 2010

Update the buttons position in the upper bar in Ubuntu 10.04

Hello,

If you want to change the position of the buttons in windows. The buttons that I mean is, close, maximize, minimize.

To change it use ALT+F2 and type gconf-editor

gconf-editor

Press enter, open the tree APP and search for metacity, search for the button_layout.

metacity

Change it to “menu: maximize,minimize,close” remember to update the order of the words to get the default way. “menu:minimize,maximize,close”

Matheus

Reference: http://www.howtogeek.com/howto/13535/move-window-buttons-back-to-the-right-in-ubuntu-10.04/

Aug 17 2009

Install Ubuntu 9.10 Alpha 4 from Pendrive

Hello,

Just to report how I installed Ubuntu 9.10 Alpha 4 using my Pendrive. First I download it from http://cdimage.ubuntu.com/releases/karmic/alpha-4/

After this I used the “System – Administration – USB Startup Disk Creator”, choosed the image that you want and press “Make Startup Disk”.

Than just boot from the PenDrive and install normally.

Matheus

Aug 16 2009

Install NVIDIA Graphic Card in Ubuntu

Good Night,

If you want to install NVIDIA proprietary driver. First of all see if you don’t have any other version installed. Using Ubuntu go to: System – Administration – Hardware Drivers. Disable it if you want.

To verify the newest version http://www.nvnews.net/vbulletin/showthread.php?t=122606

1. Download the version that you want to install.

2. Access console pressing ctrl+alt+f1 (Don’t do it know!)

3. $ cd /download/place/

4. Close the GDM (Gnome Desktop Manager) using: sudo /etc/init.d/gdm stop

5. Run the installer: $ sudo sh ./Nxxx.run (maybe you will need to use chmod +x Nxxx.run)

6. During the installation choose “Update xorg.conf automaticlly..

7. Reboot your system: sudo reboot

In the portuguese version this is almost a translation of http://ubuntuforums.org/showthread.php?t=990978

Matheus

Jul 06 2009

Serial Mouse with Scroll on Ubuntu 9.04

Hello,

Just changed my mouse to a Serial one, and the Scroll don’t work. So what to do?

Edit /etc/X11/xorg.conf and add this lines:

Section “InputDevice”
Identifier “Configured Mouse”
Driver “Mouse”
Option “CorePointer”
Option “Device” “/dev/ttyS0″
Option “Protocol” “IntelliMouse”
Option “ZAxisMapping” “4 5″
EndSection

Remember that your Protocol can be other, so verify it typing:

$ inputttach –help

Best Regards,
Matheus

Apr 26 2009

Ubuntu 9.04, 64 Bits with Java.

Hi,

I was trying to access my back account but I could not due to problems with the java. Talking with a friend, he told me what i have to install to get it working. If you want to use Java in Ubuntu 64bits you have to use “sun-java-plugin”. To install it use this command:

sudo apt-get install sun-java6-plugin

See you,
Matheus

PS: Forgive me for publishing just a little. I was traveling and now I have some tests in university.

Apr 25 2009

Ubuntu 9.04, reducing your boot time.

Hey, searching around the internet, i find some ways to decrease the boot time. All of them were for older versions, tham i decided to try it in new Ubuntu 9.04 (Jaunty Jackalope) and i get 22seconds boot time.

I used the bum (sudo apt-get install bum) to remove some things that i don’t use.
This thins are:
acpid – Controls energy/buttons in pc/Laptop. If you don’t use notebook or a keyboard with hotkeys you can remove it.
acpi-support – Like above.
hotkey-setup – Similar above.
anacron – This system runs processes periodically. You could remove it, and use cron.
atd – Like cron, Task Scheduler.
bluetooth – Bluetooth support
usplash – Without this, you don’t see a beautifull loading screen when booting.
dns-clean – Used by dial-up connections.
pppd-dns – Used by dial-up connections.
saned – A lib for scanners.

Remember, i removed this things, like bluetooth and acpid because i don’t use it. You shouldn’t remove it, if you use. You must choose what item to remove according to your system.

Use:
$ sudo pico /boot/grub/menu.lst
and remove splash.

kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=5be10a48-2c12-4165-8957-81c7a15274e5 ro quie splash
turned
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=5be10a48-2c12-4165-8957-81c7a15274e5 ro quie

Reboot the system and executed the profiler. Press “e” in grub to edit, add to line that starts with “kernel” the word profile (add it in the end). Press “B” to boot. Wait a while, your boot is going to be slow. After this, reboot and see your boot time in bootchart.

If you want you can use Concurrent boot. To use it you have to edit /etc/init.d/rc
$sudo pico /etc/init.d/rc

And change
CONCURRENCY=none
to
CONCURRENCY=shell

Save and restart. Verify your boot time and decide if you want to use it or not. (Probabily if you don’t change boot order in rcX.d, You will not see difference.)

Usei o sudo bum (apt-get install bum) para remover algumas coisas que eu não usava.
As coisas removidas foram as seguintes:
acpid – Serve para gerenciar a energia/controles do pc/laptop. Se você não usa um notebook ou teclado com teclas te atalho pode remover.
acpi-support – Para notebooks. Como o de cima.
hotkey-setup – Semelhante ao anterior.
anacron – Este sistema roda processos periodicamente. Você pode remove-lo e colocar serviços criticos para cron
atd – Como o cron, esse também é um agendador de tarefas.
bluetooth – Suporte a Bluetooth
usplash – Remove a tela bonitinha de loading, aparecendo um monte de mensagens na tela. (remover splash da grub tbm. Abaixo)
dns-clean – Utilizado para conexões dial-up.
pppd-dns – Utilizado para conexões dial-up.
saned – Biblioteca para scanners.

Lembrando que removi pois não utilizava certos dispositivos, como bluetooth, agendador de tarefas e notebook. Voce deve ver se remove ou não de acordo com seu sistema.

For now just this, but when i have time I want to rebuild my kernel and see the diferences. Stay calm, i will keep you informed.

Matheus Bratfisch

References:
http://www.extremetech.com/article2/0,2845,2114124,00.asp
http://wiki.ubuntu-br.org/AcelerandoBoot#head-c8957311083b70f08301d9339d1dea3c54c1c9ae
http://caarlos0.wordpress.com/2009/02/09/boot-do-ubuntu-intrepid-em-20-segundos-d/

Apr 25 2009

Ubuntu, VirtualBox 2.2 and USB

Hello,

Now, with this new version of ubuntu, i will post alot about it while I’m trying configurations. I don’t want to teach how to install VirtualBox 2.2, because it’s a package .deb and is so easy to install it (Download Sun VirtualBox). In this post I want to remember that we should select the option “Enable IO APIC” in “Settings – General – Advanced”. (My version of WinXp doesn’t work without it). So if you system is not booting, verify this option. Now let’s go to enable USB in your Virtual machine.

You have to install “Guest Additions”, use the menu “Devices – Install Guest Additions”. (Don’t forget to mount it on your cd in virtualbox)

After you install it go to console:

$ grep vbox /etc/group
The result is something similar to this: vboxusers:x:gid:user

(If your user is not there, add it “System – Administration – Users and groups”)

Edit the file “mountkernfs.sh”:
$ sudo pico /etc/init.d/mountkernfs.sh

Go to the end of do_start(), and before the } add this line:
domount usbfs “” /proc/bus/usb usbdevfs -onoexec,nosuid,nodev,devgid=GID,devmode=644

(Replace the GID with your GID)

Save the file, reboot the computer and use your usb in your virtualmachine.

The site that make me try this way is http://www.davidgrant.ca/virtualbox_usb_windows_xp_guest_ubuntu_hardy. This website don’t says it works on Ubuntu 9.04 (Jaunty), so i tried and it worked.

I hope this is useful,
Matheus

PS: You have to select the device you want to use in virtual machine in “Device – USB DEVICES”

Apr 25 2009

Ubuntu 9.04, bootChart.

Hello,

I decided to stay in computer a little more, and have a test with this fresh installation of Ubuntu 9.04. Some people say that the boot would be faster in this new version, so I decided to verify this. I remember in my last instalation (Ubuntu 8.10) with fresh install I got 31 seconds on boot, after some modifications it reduces to 21 seconds. In this version, as promised the boot time decreased. I got 26 seconds. When I have some time i’m going to try to do some optimizations and decrease it more.

To verify the time I used Bootchart. You can get it using:

$ sudo apt-get install bootchart

Or you can go to menu “System -> Administradion -> Synaptic Package Manager” and search for it.

BootChart Image, BootChart logs.

Good night,
Matheus

Apr 25 2009

Ubuntu 9.04, up and running.

Hello guys,

In the last thursday the Ubuntu 9.04 was released. I decided to try the 64 bits version, I didn`t used EXT4 (but I thought alot). The installation was complete in 20 minutes (fast, right?). I like the design of the new login screen. I didn`t have any big problem until now, it have a closed nvidia driver and flash. Tomorrow I intend to try eclipse, java, etc.

The Java version is:

x-warrior@x-warrior-desktop:~$ java -version
java version “1.6.0_0″
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu7)
OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode)

Matheus Bratfisch