Archive

Archive for May, 2007

Pen drive default format

It almost the same way already reported here, but instead of:

Hex code (type L to list codes): 83
use
Hex code (type L to list codes): b

sudo mke2fs -j /dev/sdb1
use
sudo mkdosfs /dev/sdb1

Categories: dica Tags:

OLPC auto reinstall / update

This is the way that I use to update the OLPCs here in INdT. You need to use a pen drive and put the auto install files in your pen drive. I’m using the OLPC pen drive format. I don’t know if it’s necessary to auto reinstall, but I’m using this format and it’s working.

I formated the pen drive using the OLPC format(partition 1=primary, files ystem type=ext3,label=OLPCRoot). I wrote a tutorial about it already reported here.

cd /media/OLPCRoot/

sudo unzip /home/alecrim/kernel/olpc/olpc406_c11.zip

Password:
Archive: /home/alecrim/kernel/olpc/olpc406_c11.zip
creating: boot/
inflating: boot/q2c11.rom
inflating: boot/olpc.fth
inflating: boot/nand406.img
inflating: bzImage

Dismount the pen drive, plug it in the OLPC and turn it on. It’s going to auto install the new image. Be sure your OLPC is plug in the energy, it can not be interrupted during update.

Great success !!!!

Categories: dica, olpc Tags:

OLPC pen drive format

OLPC uses a pen drive format to boot up the OS using the pen drive. This tutorial describe a way to format your pen drive and use the OLPC standard format. BE CAREFUL!!! You need to be sure about what you’re doing. Use the disk (/dev/sdb in my case) as parameter to fdisk. Dismount(umount /mount/point) all partitions of your pen drive.

sudo fdisk /dev/sdb

Inside fdisk you can see the menu options using m.

Command (m for help): m


Command action

a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition’s system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)

Delete the partitions already present. You will miss all data present in the pen drive.

Command (m for help): d
Partition number (1-4): 1

Command (m for help): d
Partition number (1-4): 2

Command (m for help): d
Partition number (1-4): 3

Command (m for help): d
Selected partition 4

Create a new primary partition.

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1019, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1019, default 1019):
Using default value 1019

Specify partition type.

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): L

0 Empty 1e Hidden W95 FAT1 80 Old Minix be Solaris boot
1 FAT12 24 NEC DOS 81 Minix / old Lin bf Solaris
2 XENIX root 39 Plan 9 82 Linux swap / So c1 DRDOS/sec (FAT-
3 XENIX usr 3c PartitionMagic 83 Linux c4 DRDOS/sec (FAT-
4 FAT16 <32m>
5 Extended 41 PPC PReP Boot 85 Linux extended c7 Syrinx
6 FAT16 42 SFS 86 NTFS volume set da Non-FS data
7 HPFS/NTFS 4d QNX4.x 87 NTFS volume set db CP/M / CTOS / .
8 AIX 4e QNX4.x 2nd part 88 Linux plaintext de Dell Utility
9 AIX bootable 4f QNX4.x 3rd part 8e Linux LVM df BootIt
a OS/2 Boot Manag 50 OnTrack DM 93 Amoeba e1 DOS access
b W95 FAT32 51 OnTrack DM6 Aux 94 Amoeba BBT e3 DOS R/O
c W95 FAT32 (LBA) 52 CP/M 9f BSD/OS e4 SpeedStor
e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a0 IBM Thinkpad hi eb BeOS fs
f W95 Ext’d (LBA) 54 OnTrackDM6 a5 FreeBSD ee EFI GPT
10 OPUS 55 EZ-Drive a6 OpenBSD ef EFI (FAT-12/16/
11 Hidden FAT12 56 Golden Bow a7 NeXTSTEP f0 Linux/PA-RISC b
12 Compaq diagnost 5c Priam Edisk a8 Darwin UFS f1 SpeedStor
14 Hidden FAT16 <3>
16 Hidden FAT16 63 GNU HURD or Sys ab Darwin boot f2 DOS secondary
17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fd Linux raid auto
18 AST SmartSleep 65 Novell Netware b8 BSDI swap fe LANstep
1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid ff BBT
1c Hidden W95 FAT3 75 PC/IX
Hex code (type L to list codes): 83

Turn it bootable

Command (m for help): a
Partition number (1-4): 1

List all partitions available.

Command (m for help): p

Disk /dev/sdb: 1050 MB, 1050934784 bytes
33 heads, 61 sectors/track, 1019 cylinders
Units = cylinders of 2013 * 512 = 1030656 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2069 1026223+ 83 Linux

Write modifications to disk.

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

After you partitioned the disk(pen drive), create the filesystem(mke2fs -j)

sudo mke2fs -j /dev/sdb1
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
128256 inodes, 256398 blocks
12819 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=264241152
8 block groups
32768 blocks per group, 32768 fragments per group
16032 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

Define a label to the partition. This name is going to be used during

sudo e2label /dev/sdb1 OLPCRoot

Unplug and plug the pen drive. It’s going to be automatically mount on /media/OLPCRoot .

Categories: dica, olpc Tags:

discurso Ciência da Computação / speech Computer Science (UFAM 2006/2)


Hi all,

Below is the speech I used in my graduation party. Sorry, it’s in portuguese:

Discurso do orador da formatura - Ciência da Computação da UFAM 2006/2

= Sobre a faculdade =

Para os familiares e demais presentes: BOA NOITE!!
Para os formandos :”Hello World!”.
É com essa expressão que nós de ciência da computação iniciamos com algo novo. Sendo este o nosso b-a-bá. “HELLO WORLD” !!!
Albert Eistein disse em certo momento: “A mente que se abre para uma nova idéia, jamais voltará ao seu tamanho original”.
Isto sintetiza o que ciência da computação exigiu de nós. Mente aberta, para as inovações.
Hoje trazemos lembranças daquilo que vivemos durante nosso curso.
A felicidade ao vermos nosso nome na lista de aprovados do vestibular,
a emoção do primeiro dia de aula,
a aflição nos dias que antecederam nosso trote,
o alívio pelo fim de cada semestre,
o nervosismo na defesa de nosso trabalho de conclusão
e no fim de tudo,
esta sensação de alívio e tristeza que estamos sentindo agora.
Tristeza pois percebemos que não há mais disciplinas a cursar.
E alívio no grito que cada um de nós deve ter dado ao percebemos que, ACABOU!!!
Trouxemos conosco lembranças boas e ruins.
Não foi fácil, devemos isto as professores.
Noites em claro na UFAM, em casa ou na casa de colegas.
A dificuldade é um severo instrutor e nisso alguns professores capricharam.
Obrigado a todos!!!
Entramos estudantes e saímos profissionais.
BACHARÉIS EM CIÊNCIA DA COMPUTAÇÃO

= Sobre a vida =

Certa vez disse Steve Jobs, criador da Apple e Pixar:
“O passado traz o sentido para os dias atuais e
a luta do dia a dia se transforma na conquista.”
Foram 4 anos para alguns, mais para outros.
Cada dia de luta sem perdermos a fé de que este dia chegaria.
O dia da conquista.
Somos iniciantes, temos este privilégio.
Viva cada dia como se fosse o último, um dia você poderá estar certo.
Ninguém quer morrer, nem mesmo aqueles que querem ir para o céu.
Seu trabalho faz parte da sua vida, por isto, faça aquilo que você ama.
Ame seus companheiros, filhos, irmãos e principalmente, SEUS PAIS.
Aqueles que te ajudaram a ser o que somos hoje.
BACHARÉIS EM CIÊNCIA DA COMPUTAÇÃO

= Sobre os pais =

Falar sobre família é algo fácil e difícil.
Um simples “VALEU” e um olhar de gratidão poderia dizer tudo.
Um “VALEU”,
se torna fácil, por ser difícil encontrar mais palavras para tamanha gratidão.
Educar um filho não é fácil nos dias atuais.
Pegunte a qualquer um de nós formandos se estamos prontos para isto.
Se estamos aqui é porque tivemos vocês, PAIS.
Nossos primeiros e mais importantes professores.
Nos ensinando os primeiros passos, o certo e errado.
E quantas vezes não reclamamos por isto.
Vocês lembrando a nossa cara de felicidade no dia em que passamos no vestibular.
Nós lembramos a de vocês.
É o mesmo semblante de conquista que vemos agora.
Conquista que jamais iremos esquecer.
Queremos agradecer a vocês, PAIS,
Presentes, ausentes ou que não estão mais entre nós.
Queremos compartilhar este titulo que nos foi entregue.
Nessa parte é difícil.
VALEU, NÓS AMAMOS VOCÊS.
Meus pais sempre me dizem:
“Meu filho, não deixo riquezas materiais,
mas deixo uma oportunidade que não tive, de estudar.”
Hoje é um dia em que podemos dizer:
“Não perdi esta oportunidade,
Eu estou aqui.”
Entre vencedores.
BACHARÉIS EM CIENCIA DA COMPUTACAO!!!

Obrigado!!!

Autor: Francisco Keppler Silva Alecrim

Referencias :
http://video.google.com/videoplay?docid=7459435141264492511&pr=goog-sl
http://www.youtube.com/watch?v=ol2fN0bZCso
http://www.ademar.org/texts/formatura-discurso-pais.html
http://josemorelli.net/docs/discurso.html

English version :
If you want to base your speech in this one, no problem!! Please tell me if you want to use!!!!

Portuguese version:
Se vc estiver afim de usar este discurso, sem problema!!! Por favor, apenas me avise!!!!

Categories: pessoal Tags:

Minimo debian OLPC


Hi all,

With Antonios’s help and Allan’s idea, we test a Minimo with OLPC. It runs great !!!

PS: Tutorial soon !!!

Regards,
Keppler.

Categories: debian, olpc Tags:

Debian OLPC

Hi all,
I created a howto about debian in olpc and it’s published on http://wiki.debian.org/howto_debian_olpc . I’m with some problems and suggestions are welcome.

Solved:
- Mouse (working)

Problems:
- WLAN (not working)
- xserver-xorg-video-amd - driver “amd” (not working)

Thanks in advance !!!!

INdT - Instituto Nokia de Tecnologia
OSMRC - Open Source Mobile research Center

Categories: debian, olpc Tags:

Mount LVM + Crypt filesystem

Yesterday, I was with some problems in my crypt debian filesystem. I solved the problem using a USB pen drive, created as reported by Ragner’s blog(http://ragnermagalhaes.blogspot.com/2007/05/installing-really-debian-linux-in-usb.html). And mounting my crypt + lvm filesystem as reported in http://ragnermagalhaes.blogspot.com/2007/05/mounting-lvm-crypt-filesystem.html .

Categories: debian, dica Tags: