Dtrace on OpenSolaris

I’ll talk a bit about …. Dtrace
That it?
A wonderful tool that has the OpenSolaris to monitor your entire system ..
How so?
DTrace is intended to monitor everything, when he said, is all the same, on your computer, what programs open (that’s already doing it or other OS software), network status, hardware, file behavior, attendance, monitor what’s Threads system are running, are in the queue, which will still be called (I want to see an OS or proprietary software to do this !!!), see what is happening in the kernel, you can see EVERYTHING in detail, as called processes, modules, functions,DWI!!
According to wikipedia “… The kernel of an operating system is understood as the core of it, or a literal translation, core. He represents the software layer closest to the hardware and is responsible for managing the resources of the computer system as a whole ….. “So if you can see what the kernel is doing through the Dtrace, you really can correct mistakes and so walk to an ideal operating system (Theoretically )!!!!
To get a better idea, the Dtrace group explains that “… DTrace is a framework created by Sun Microsystems for Solaris 10 that gives the system administrator a way understandable to monitor and track all internal operations of each process or Routine system, becoming a powerful tool for advanced diagnosis of problems or enhancements ….”
The cool thing is you monitor what they do, such as what processes you use when you start x software. What about this all you have on hand and see that performance, see problems or failures that can be repaired even by yourself.
In this link (Click Here) Sun you find a book about DTrace and a good detailed explanation of what he is and does!

To make a script to run dtrace you have to write in Language D. Yeah, that’s right, D. Language But that is not a big deal not, is quiet.
A small example from the terminal Opensolaris …
Open terminal and type

cat hello.d
#! / Usr / sbin / dtrace-s
trace (“Hello World \ n”);

Ready program is done in the / usr / sbin / dtrace-s command is to create the script
and to run the command type
dtrace-s hello.d

Here is the output!!

It is a simple example, but you can see that is not as difficult goes like only a matter of habit with the language.

So with this example and encouragement that Dtrace is the best tool for monitoring and optimization of the Solaris and OpenSolaris, just start playing!
I hope it helped and have any questions just email or post comments!

Here you can find a “How to” DTrace is a very good material for those just starting out and want to understand more about this powerful tool!
Click here to download!
And here the Potal BigAdim Sun has plenty of tips and materials!


How to install VirtualBox 3.0 on OpenSolaris

The difficult is…have more than 1 file to install…..
We, frequently see one file to install, but now we have two files.
one for interfaces like usb, boot order, cd image, it is kernel interface package…
and another only VirtualBox.
Here is the snapshot, step by step to install it. Then here we have the pkg..we are extracting it to some directory ( what you want).

We can see 4 files.
2 is .pkg, so we need it.

After you extracted you can open the terminal and go to the directory which you extrated the files.

As we can see. we have 2 files.
WE must “execute” first the VirtualBox.Kern….

pfexec pkgadd -G -d VirtualBoxKern-3.0.2-SunOS-r49928.pkg
You say “all”, to install all of it.

Now you install the second pkg,

pfexec pkgadd -G -d VirtualBox-3.0.2-SunOS-r49928.pkg

The first file is VirtualBox kernel interface package, you must install it first!!!
After you install the main VirtualBox package:
VirtualBox working!!!

This installation I did because I had no internet connection… I have a cd wich has many software to install on OpenSolaris…. but if you have internet connection I will post later how to do that in a repository from Sun… (you be registered )…

How to install OpenOffice on OpenSolaris


After we have installed the OpenSolaris Operating System, now we will install the OpenOffice…

The easier way to do this, i think… 😀

So, lets go!!!

You can download the OpenOffice clicking HERE!!!!

After you downloaded the OpenOffice, the instalation package you can open it or put in some directory in your pc …

In this tutorial that i made, i copy from cd to desktop…

I ‘ve copied to desktop and after to /export/home/renato/download… this was my preference..

You put the file where you wants…. anyway will install it… After copied you can open it the file.tar.gz and copy the directory which is inside that .tar.gz and paste where you wants.. thats directory which contains the source… you, basicly, are unzinping the file.tar.gz and taking hte directory…

Now, you can open the Terminal, wrtite su, write your root password and star to install.

Now look what i did…I entered in the directory which the is the file…
cd local of package
and now i wrote :
pkgadd -d. (dont forget the dot)

now, you will see the packages and after the question if you wants all packages..
I said “all”, to install all packages of OpenOffice ….

After this it will question you about the instalation and you say “yes” to all….
Ready.. the OpenOffice was installed….

P.S. If you download it by manager packages, it does all of it only using clicking!!
In the list of packges you search for openoffice and click to download. Automatically it is been installed…
No complications!!

Triboot – Ubuntu, OpenSolaris e Windows

Aproveitei esse post do meu blog antigo e o trouxe pra cá para mostrar como se faz um triboot com ubuntu, opensolaris e windows na maquina.

O windows já veio quando comprei o note, logo instalei o OpenSolaris, que automaticamente já faz o Dual-Boot pra você, como o Ubuntu faz quando se tem o windows já instalado.

Um problema que sempre temos é, quanto ubuntu ou solaris já estão instalados e queremos instalar um dos dois. O que ocorre é que o Grub de um substitui o Grub do outro (isso já deveria ter sido solucionado, mããs).
No link abaixo você encontra um minibook do OpenSolaris explicando como fazer o Tri-boot no pc…

Como eu já tinha o OpenSolaris instalado e depois instalei o ubuntu, fica mais fácil editar o GRUB do ubuntu.
O Ubuntu que instalei aqui é o 9.10.

Quando você vai instalar o ubuntu, ele lhe mostra (na parte de partições) quais sistemas operacionais estão no seu pc e em quais partições estão.
ex: (hd0,1)
O “hd0” indica o número da sua HD. Se você só tem uma HD então é hd0, se tiver 2 ou 3. Segunda HD é hd1 , terceira hd é hd2 e assim por diante.
E o número depois da virgula mostra a particao que o sistema está, no caso do meu exemplo a hd0 tem 3 partições…

Por ter instalado o Ubuntu por ultimo, vamos ao Grub dele localizado em /boot/grub/grub.cfg .
Nessa versão do ubuntu o arquivo do Grub está diferente, em outras versões era menu.lst, no próprio minibook do OpenSolaris acima, você obtém essa informação.

Você irá encontrar algo, mais ou menos assim:

menuentry “Ubuntu, Linux 2.6.31-14-generic” {
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,4)
search –no-floppy –fs-uuid –set aedd5635-eefd-4470-8733-5697fb9c1227
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=aedd5635-eefd-4470-8733-5697fb9c1227 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
menuentry “Ubuntu, Linux 2.6.31-14-generic (recovery mode)” {
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,4)
search –no-floppy –fs-uuid –set aedd5635-eefd-4470-8733-5697fb9c1227
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=aedd5635-eefd-4470-8733-5697fb9c1227 ro single
initrd /boot/initrd.img-2.6.31-14-generic
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry “Memory test (memtest86+)” {
linux16 /boot/memtest86+.bin
menuentry “Memory test (memtest86+, serial console 115200)” {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sda1)” {
insmod ntfs
set root=(hd0,1)
search –no-floppy –fs-uuid –set a848d7b248d77d8e
drivemap -s (hd0) ${root}
chainloader +1

nas linhas acima, mostra a entrada do ubuntu 9.10, e do windows, ou seja, ele não viu que o OpenSolaris estava instalado lá, então vamos adicionar o OpenSolaris depois do Windows ali, ….

menuentry “OpenSolaris 2009.06″{
set root=(hd0,2)
chainloader +1
No meu caso, o OpenSolaris está na segunda partição, tomem cuidado com isso, sabia bem onde está seu OpenSolaris, para adicionar certo no GRUb…
Lembrando que para editar esse arquivo no ubuntu você terá que ser super usuário…
Depois disso, só fechar e salvar seu Grub e reiniciar o pc, e pronto, triboot feito….