quarta-feira, 17 de junho de 2009

Resetting the Root Password

The following methods can be used for resetting the root password if the root password is unknown.

If you use GRUB for booting, select the system to be booted, and add 1 to the end of the kernel boot command. If you're not presented with an edit “box” to add boot parameters, try using GRUB's edit command (the letter e). The 1 tells the kernel to boot to single-user mode.

The system now should boot to a root prompt. At this point, simply use the passwd command to change the root password.

Another option is to boot a rescue CD or an installation CD that lets you get to the command line. Once you're at a command prompt, mount the system's root directory if it's not already mounted:

$ mkdir /mnt/system
$ mount /dev/sda1 /mnt/system

Now, do a chroot and reset the password:

$ chroot /mnt/system
$ passwd

fonte: http://www.linuxjournal.com/content/resetting-root-password

Octave, Ler , escrever em arquivo

Programa Principal, Chamado: prog.m
_________________________________________________________________________
%arquivo que usa a funçao de escrita

a=[1 2 3];


arq=input("Insira o nome do arquivo a salvar entre aspas \t");

saida(arq,a);
_________________________________________________________________________

Arquivo saida.m
_________________________________________________________________________

function ret_mat=saida(file_n, mat)

fid=fopen(file_n, "w");
sz=size(mat);
fprintf(fid, "%d %d\n", sz(1), sz(2));

for i=1:sz(1)
fprintf(fid, "%f ", mat(i,:));
fprintf(fid, "\n");
endfor

ret_v=fclose(fid);

endfunction
_________________________________________________________________________

Arquivo entrada.m
_________________________________________________________________________


# função que le uma matriz gravada com o comando save_mat

function ret_mat=entrada(file_n)

fid=fopen(file_n, "r");
size_m=fscanf(fid, "%d ", [1,2]);
ret_mat=fscanf(fid, "%f ", size_m);
fclose(fid);

endfunction

segunda-feira, 15 de junho de 2009

Vendas de portáteis caem e Dell dos EUA oferece notebook barato com Ubuntu

Da cobertura da Info:

Para evitar a crise que afeta as vendas de computadores pessoais, a Dell começou a vender este mês nos EUA um notebook barato com Linux.

Por apenas 229 dólares é possível adquirir o notebook Dell Inspiron 15n com Ubuntu 8.10. A configuração iniciail do modelo é bem modesta. Processador Intel Celeron 585 de 2,16 GHz, 2 GB DDR2 800 MHz de memória, disco rígido de 160 GB, placa de vídeo onboard Intel X4500HD e Wi-Fi 802.11g. (viainfo.abril.com.br)

Saiba mais (info.abril.com.br).

referência http://br-linux.org/2009/vendas-de-portateis-caem-e-dell-dos-eua-oferece-notebook-barato-com-ubuntu/