Trabalhar no fim de semana não é fácil pra ninguém. Mas não disseram que precisava ser um inferno. Como diz o anúncio da security list da Debian: "You know the drill...".
Não me lembro de ter tido esse problema antes, mas para tudo sempre existe a primeira vez....
Apr 7 12:43:56 musashi root: WARNING: system temperature too high, shutting down soon!
Apr 7 12:43:56 musashi kernel:
Apr 7 12:43:56 musashi root: WARNING: system temperature too high, shutting down soon!
Perdi tudo que estava trabalhando, mas não perdi o laptop :-)
Surpresa ao fazer o update dos sources do sistema:
20080226: FreeBSD 7.0-RELEASE
Sem perda de tempo, "make buildworld" e vamos lá!
This article is linked by:
|
In this article I'll break my style and write in english since its aimed to describe my experience with a laptop Compaq nc6220 and FreeBSD-7.0-PRERELEASE. Hopefully it can be a source of information for further reference.
This a standard laptop from the company (Ericsson). It isn't exactly powerfull but can help you to have your work done. It's equiped with:
I found some other descriptions mismatching my configuration. It's probably because its a corporate machine and better improvements like wi-fi and CD writer were just removed. Sad but that's my reality.
Initially I installed FreeBSD-6.0 on it. Since then I've coming upgrading, over and over. I was running FreeBSD-6.3-RC1 when I decide to move on, for FreeBSD-7.0 (CURRENT at that time). As any upgrade, it was painfull.
I could use alternative hardware for a few purpouses, like a PCMCIA interface for Wi-Fi, but some internal parts didn't work at all. I was force to completely disable ACPI since it was hanging it each 15 seconds. I found unplug the power cable could fix it, but it was an annoying task to be done frequently. I could found some discussions about this issue,. but no effective fix was provided until now.
Right now the current status follows:
If you could go further then me, don't hesitate to share your success :-)
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/local/share/X11/rgb"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/lib/X11/fonts/misc/"
FontPath "/usr/local/lib/X11/fonts/TTF/"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/Type1/"
FontPath "/usr/local/lib/X11/fonts/100dpi/"
FontPath "/usr/local/lib/X11/fonts/75dpi/"
EndSection
Section "Module"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "abnt2"
Option "XkbLayout" "br"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
#DisplaySize 290 220 # mm
Identifier "Monitor0"
VendorName "AUO"
ModelName "e11"
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # []
#Option "SWcursor" # []
#Option "ColorKey" #
#Option "CacheLines" #
#Option "Dac6Bit" # []
#Option "DRI" # []
#Option "NoDDC" # []
#Option "ShowCache" # []
#Option "XvMCSurfaces" #
#Option "PageFlip" # []
Identifier "Card0"
Driver "i810"
VendorName "Intel Corporation"
BoardName "Mobile 915GM/GMS/910GML Express Graphics Controller"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768" "640x480" "1280x960" "1280x1024" "800x600" "1152x864" "1600x1200"
Virtual 1600 1200
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "640x480" "1280x960" "1280x1024" "800x600" "1152x864" "1600x1200"
Virtual 1600 1200
EndSubSection
EndSection
Section "DRI"
Group 0
EndSection
hostb0@pci0:0:0:0: class=0x060000 card=0x0944103c chip=0x25908086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '915GM Mobile Intel(R) 915GM/PM/GMS/910GML Express Processor to DRAM Controller'
class = bridge
subclass = HOST-PCI
vgapci0@pci0:0:2:0: class=0x030000 card=0x308a103c chip=0x25928086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82915GM/GMS, 82910GML Integrated Graphics Device'
class = display
subclass = VGA
vgapci1@pci0:0:2:1: class=0x038000 card=0x308a103c chip=0x27928086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 82915GLx/x/x Mobile Intel(R) 915GM/GMS/, 910GML Express Chipset Family'
class = display
pcib1@pci0:0:28:0: class=0x060400 card=0x0944103c chip=0x26608086 rev=0x03 hdr=0x01
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW PCI Express Port 1'
class = bridge
subclass = PCI-PCI
pcib2@pci0:0:28:1: class=0x060400 card=0x0944103c chip=0x26628086 rev=0x03 hdr=0x01
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW PCI Express Port 2'
class = bridge
subclass = PCI-PCI
uhci0@pci0:0:29:0: class=0x0c0300 card=0x0944103c chip=0x26588086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW USB UHCI Controller'
class = serial bus
subclass = USB
uhci1@pci0:0:29:1: class=0x0c0300 card=0x0944103c chip=0x26598086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW USB UHCI Controller'
class = serial bus
subclass = USB
uhci2@pci0:0:29:2: class=0x0c0300 card=0x0944103c chip=0x265a8086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW USB UHCI Controller'
class = serial bus
subclass = USB
ehci0@pci0:0:29:7: class=0x0c0320 card=0x0944103c chip=0x265c8086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FB/FR/FW/FRW USB 2.0 EHCI Controller'
class = serial bus
subclass = USB
pcib3@pci0:0:30:0: class=0x060401 card=0x0944103c chip=0x24488086 rev=0xd3 hdr=0x01
vendor = 'Intel Corporation'
device = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub Interface to PCI Bridge'
class = bridge
subclass = PCI-PCI
pcm0@pci0:0:30:2: class=0x040100 card=0x0944103c chip=0x266e8086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel Corporation 82830M/MG SDRAM Controller / Ho AC '97 Audio Controller/ Sigmatel (SoundMAX Integrated Digital Audio)'
class = multimedia
subclass = audio
none0@pci0:0:30:3: class=0x070300 card=0x0944103c chip=0x266d8086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Intel 82801DB Realtek ALC655 @ Intel 82801EB ICH5-M - AC'97 Audio Controller [B-1] PCI'
class = simple comms
subclass = generic modem
isab0@pci0:0:31:0: class=0x060100 card=0x0944103c chip=0x26418086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FBM LPC Interface Bridge (ICH6-M)'
class = bridge
subclass = PCI-ISA
atapci0@pci0:0:31:1: class=0x01018a card=0x0944103c chip=0x266f8086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '82801FB/FBM Ultra ATA Storage Controllers - 266F'
class = mass storage
subclass = ATA
bge0@pci0:16:0:0: class=0x020000 card=0x0944103c chip=0x167d14e4 rev=0x11 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM5751M Broadcom NetXtreme Gigabit Ethernet'
class = network
subclass = ethernet
cbb0@pci0:2:6:0: class=0x060700 card=0x0944103c chip=0x8031104c rev=0x00 hdr=0x02
vendor = 'Texas Instruments (TI)'
device = 'PCIxx21/x515 Cardbus Controller'
class = bridge
subclass = PCI-CardBus
none1@pci0:2:6:3: class=0x018000 card=0x0944103c chip=0x8033104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = 'PCIxx11/21 Integrated FlashMedia Controller'
class = mass storage
none2@pci0:2:6:4: class=0x080500 card=0x0944103c chip=0x8034104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = '10981734 SDA Standard Compliant SD Host Controller'
class = base peripheral
none3@pci0:2:6:5: class=0x078000 card=0x0944103c chip=0x8035104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = 'N/A PCI GemCore based SmartCard controller'
class = simple comms
ath0@pci0:3:0:0: class=0x020000 card=0x32021186 chip=0x0013168c rev=0x01 hdr=0x00
vendor = 'Atheros Communications Inc.'
device = 'AR5212, AR5213 802.11a/b/g Wireless Adapter'
class = network
subclass = ethernet
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-PRERELEASE #3: Sat Jan 19 16:44:43 BRST 2008
This email address is being protected from spambots. You need JavaScript enabled to view it. :/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1.73GHz (799.68-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x6d8 Stepping = 8
Features=0xafe9fbff
Features2=0x180
AMD Features=0x100000
real memory = 528285696 (503 MB)
avail memory = 502382592 (479 MB)
kbd1 at kbdmux0
kqemu version 0x00010300
kqemu: KQEMU installed, max_locked_mem=251532kB.
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Jan 19 2008 16:44:17)
cpu0 on motherboard
est0: on cpu0
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 6120d2906000612
device_attach: est0 attach returned 6
p4tcc0: on cpu0
pcib0: pcibus 0 on motherboard
pci0: on pcib0
vgapci0: port 0x5000-0x5007 mem 0xd0800000-0xd087ffff,0xc0000000-0xcfffffff,0xd0880000-0xd08bffff irq 10 at device 2.0 on pci0
agp0: on vgapci0
agp0: detected 7932k stolen memory
agp0: aperture size is 256M
vgapci1: mem 0xd0900000-0xd097ffff at device 2.1 on pci0
pcib1: irq 10 at device 28.0 on pci0
pci16: on pcib1
pci0:16:0:0: invalid VPD data, remain 0xffff
bge0: mem 0xd0000000-0xd000ffff irq 10 at device 0.0 on pci16
miibus0: on bge0
brgphy0: PHY 1 on miibus0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:14:c2:e7:d2:55
bge0: [ITHREAD]
pcib2: at device 28.1 on pci0
pci32: on pcib2
uhci0: port 0x2000-0x201f irq 10 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: on uhci0
usb0: USB revision 1.0
uhub0: on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: port 0x2020-0x203f irq 11 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: on uhci1
usb1: USB revision 1.0
uhub1: on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: port 0x2040-0x205f irq 11 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: on uhci2
usb2: USB revision 1.0
uhub2: on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: mem 0xd0980000-0xd09803ff irq 10 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb3: EHCI version 1.0
usb3: wrong number of companions (4 != 3)
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: on ehci0
usb3: USB revision 2.0
uhub3: on usb3
uhub3: 8 ports with 8 removable, self powered
pcib3: at device 30.0 on pci0
pci2: on pcib3
cbb0: mem 0xd0400000-0xd0400fff irq 11 at device 6.0 on pci2
cardbus0: on cbb0
pccard0: on cbb0
cbb0: [ITHREAD]
pci2: at device 6.3 (no driver attached)
pci2: at device 6.4 (no driver attached)
pci2: at device 6.5 (no driver attached)
pcm0: port 0x2100-0x21ff,0x2200-0x223f mem 0xd0981000-0xd09811ff,0xd0982000-0xd09820ff irq 11 at device 30.2 on pci0
pcm0: [ITHREAD]
pcm0:
pci0: at device 30.3 (no driver attached)
isab0: at device 31.0 on pci0
isa0: on isab0
atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x2580-0x258f irq 10 at device 31.1 on pci0
ata0: on atapci0
ata0: [ITHREAD]
ata1: on atapci0
ata1: [ITHREAD]
pmtimer0 on isa0
orm0: at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0
atkbdc0: at port 0x60,0x64 on isa0
atkbd0: irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse, device ID 3
ppc0: at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: on ppc0
ppbus0: [ITHREAD]
plip0: on ppbus0
lpt0: on ppbus0
lpt0: Interrupt-driven port
ppi0: on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
sc0: at flags 0x100 on isa0
sc0: VGA
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: can't assign resources (memory)
unknown: can't assign resources (port)
unknown: can't assign resources (irq)
unknown: can't assign resources (port)
unknown: can't assign resources (port)
sio4: at port 0x3e8-0x3ef,0x300-0x30f irq 3 drq 3 pnpid SMCf010 on isa0
sio4: type 16550A
sio4: [FILTER]
unknown: can't assign resources (memory)
Timecounters tick every 1.000 msec
hptrr: no controller detected.
ad0: 38154MB at ata0-master UDMA100
acd0: DVDROM at ata0-slave PIO4
GEOM_LABEL: Label for provider acd0 is iso9660/WGR614v7.
Trying to mount root from ufs:/dev/ad0s1a
WARNING: attempt to net_add_domain(bluetooth) after domainfinalize()
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
drm0: on vgapci0
info: [drm] AGP at 0xc0000000 256MB
info: [drm] Initialized i915 1.5.0 20060119
drm0: [ITHREAD]
ath0: mem 0xd0410000-0xd041ffff irq 11 at device 0.0 on cardbus0
ath0: [ITHREAD]
ath0: using obsoleted if_watchdog interface
ath0: Ethernet address: 00:13:46:14:1a:31
ath0: mac 7.9 phy 4.5 radio 5.6
Com o crescimento do projeto Mambo, que criou um braço GPL chamado Joomla, está cada vez mais difícil encontrar módules e outros *add-ons*.
Após uma longa busca, consegui achar um link interessante sobre isso, onde tudo está resumido para busca:
Vendo a chegada do novo release, 7.0, resolvi encarar o upgrade. Uma das novas características que chamou mais minha atenção foi o novo algoritmo escalonador, ULE, não ativo por padrão, mas através da configuração de kernel:
OPTION SCHED_ULE
Sua interação com sistemas multimídia é realmente melhor em quesitos de resposta, algo que supreendeu até em relação ao scheduler do Linux, também capaz tem preempção tempo-real para esse tipo de aplicação.
Apesar de já portado para o também embrionário FreeBSD-6.3, outras vantagens me fizeram optar pelo upgrade (um parto bem doloroso, diga-se de passagem e descrito mais adiante) como suporte melhorados a novos drivers, que fez com que minha interface FastEthernet USB, USB200M, funcionasse sem nenhuma configuração adicional, simplesmente plugando. Esse não foi o único dispositivo, também minhas interfaces wireless USB da Belkin passaram a funcionar sem o uso do ndiswrapper.
Logo de início minha felicidade foi infinita e tive a sensação de ter dado um passo na direção certa ao fazer o upgrade para a versão CURRENT (isso foi em finados de dezembro, antes do lançamento do RC1). Não durou mais que o tempo necessário para começar a descobrir várias aplicações não funcionando corretamente.
Uma das melhores aquisições em minhas viagens foi o HD externo de 160 GB da Iomega. Pequeno, leve e suportado pelo FreeBSD:
umass0: Iomega Iomega HDD USB2.0 Drive, rev 2.00/2.40, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: Fixed Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)
Ao formatar, decidi criar uma instalação de Ubuntu sobre o mesmo, utilizando uma partição (da0s1) como raiz, outra (da0s2) maior como home, uma para troca com usuários de windows (da0s6) e uma última com o que sobrou (da0s7), que ficou como "/mnt/ots".
Utilizando o fdisk-linux, disponível no ports, é possível criar e depois visualizar as partições.
musashi# fdisk-linux -l /dev/da0
Disk /dev/da0: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/da0s1 1 608 4883728+ 83 Linux
/dev/da0s2 609 12766 97659135 83 Linux
/dev/da0s3 12767 19457 53745457+ 5 Extended
/dev/da0s5 12767 12888 979933+ 82 Linux swap
/dev/da0s6 18242 19457 9767488+ b Win95 FAT32
/dev/da0s7 12889 18241 42997941 83 Linux
Partition table entries are not in disk order
Sendo que o tipo Ext3 (Journalling) é suportado pelo FreeBSD, nada melhor que o utilizar para guardar os dados, fazendo todo sincronismo de UFS para Ext3 e tendo um sistema backup, em Linux, disponível no HD externo.
Para fazer o mount/umount, criei um pequeno script, que segue abaixo, já que o sistema de automount não reconheçe perfeitamente os devices e respectivos pontos de montagem, fora o fato do mesmo alterar a posição de da0 para da1 ou qualquer outro da, dependendo de qual outro dispositivo estiver conectado.
#! /bin/sh
case $1 in
-m) ;;
-u) ;;
*) echo "Use: $0 [-m|-u]"
echo " -m: mount disks "
echo " -u: umount disks "
exit 1
;;
esac
echo "Finding Iomega"
### Finding device
umass=`dmesg | grep -i iomega | tail -1|awk -F":" '{print $1}'`
umass_id=`echo $umass | sed 's/umass//'`
device=`dmesg | grep "umass-sim$umass_id" | tail -1 |awk '{print $1}'`
if [ ! $umass_id ] ; then
echo "Impossible to find Iomega device"
exit 1
fi
case $1 in
-m) echo "Checking partitions"
for id in 1 2 7
do
fsck.ext3 -y /dev/${device}s${id}
done
for id in 6
do
fsck_msdosfs -y /dev/${device}s${id}
done
echo "Mounting partitions"
mount | grep "/dev/${device}s1" > /dev/null 2>&1
if [ $? -ne 0 ]; then
mount_ext2fs /dev/${device}s1 /mnt/ext2
fi
mount | grep "/dev/${device}s2" > /dev/null 2>&1
if [ $? -ne 0 ]; then
mount_ext2fs /dev/${device}s2 /mnt/ext2/home
fi
mount | grep "/dev/${device}s7" > /dev/null 2>&1
if [ $? -ne 0 ]; then
mount_ext2fs /dev/${device}s7 /mnt/ext2/mnt/ots
fi
mount | grep "/dev/${device}s6" > /dev/null 2>&1
if [ $? -ne 0 ]; then
mount_msdosfs -u 1000 -g 100 -o longnames -m 777 /dev/${device}s6 /mnt/msdos
fi
;;
-u) for dir in msdos ext2/mnt/ots ext2/home ext2
do
echo "Umounting: /mnt/$dir"
umount /mnt/$dir
done
;;
esac
Finalmente aumentei meu arsenal de brinquedos. Novo PSP Slim. Conexão WLAN e USB. Através dessa, funciona perfeitamente com BSD:
umass0: Sony "PSP" Type A, rev 2.00/1.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0 da0:
Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers
da0: 61MB (126848 512 byte sectors: 64H 32S/T 61C)
Pode ser acessado com:
mount_msdosfs -o longnames -m 777 /dev/da0s1 /mnt/PSP
Minha diversão agora é tentar acertar a codificação de filmes para assistir no PSP, já que o mesmo tem saída pra TV (e claro que comprei o cabo :-).
A melhor dica que encontrei foi em:
Tentei fazer um resample de um vídeo para adequar ao PSP, mas falhou com o seguinte erro:
helio@musashi:torrents$ ffmpeg -i Video.mp4 -r 29 -b 768k -ar 24000 -ab 64k -s 320x240 M4V00001.MP4
FFmpeg version SVN-r10657, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --cc=cc --prefix=/usr/local --make=gmake --disable-debug --enable-memalign-hack --enable-shared --enable-pp
--extra-cflags=-I/usr/local/include/vorbis -msse -I/usr/local/include --extra-ldflags=-L/usr/local/lib -la52 --extra-libs=-pthread
--enable-gpl --enable-pthreads --mandir=/usr/local/man --enable-liba52 --enable-liba52bin --enable-libfaad --enable-libfaadbin
--enable-libgsm --enable-libmp3lame --enable-libogg --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
libavutil version: 49.5.0
libavcodec version: 51.44.0
libavformat version: 51.14.0
built on Nov 17 2007 21:27:40, gcc: 3.4.6 [FreeBSD] 20060305
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Video.mp4': Duration: 01:38:49.8, start: 0.000000, bitrate: 775 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 320x176, 25.00 fps(r) Stream #0.1(eng): Audio: mpeg4aac, 48000 Hz, stereo
File 'M4V00001.MP4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'M4V00001.MP4': Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240, q=2-31, 768 kb/s, 29.00 fps(c)
Stream #0.1(eng): Audio: 0x0000, 24000 Hz, stereo, 64 kb/s
Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1
Compiler did not align stack variables. Libavcodec has been miscompiled and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. You may try recompiling using gcc >= 4.2.
Do not report crashes to FFmpeg developers.
Unsupported codec for output stream #0.1
Consegui arrumar refazendo a instalação do ffmpeg via ports:
root@musashi# cd /usr/ports/multimedia/ffmpeg root@musashi# env CC=gcc4.2 make build deinstall install clean
Com isso o filme foi resampleado (existe isso?), mas não foi aceito no PSP... brinquedo novo é assim :-)
-rwxr-xr-x 1 helio users 1555 Nov 4 2001 nsbm2html
-rwxr-xr-x 1 helio users 154 Oct 4 2001 admin-linux-br
-rwx------ 1 helio users 49 May 6 2001 pop.secure.sh
-rwxr-xr-x 1 helio users 651 Dec 7 2000 housemailer.sh
-rwxr-xr-x 1 helio users 1044 Oct 29 1997 getmail.sh
Esse getmail.sh foi realmente meu primeiro script...
O legal de usar "tar" para fazer backup (e também restaurar) é que vc consegue manter a data de criação do arquivo. Olhando em meu laptop, achei alguns beeeem antigos:
-rwxr-xr-x 1 helio users 181 Dec 12 2003 speedyteste.sh
-rwxr-xr-x 1 helio users 67 Nov 18 2003 coreclean.sh
-rwxr-xr-x 1 helio users 350 Sep 24 2003 mywget
-rwxr-xr-x 1 helio users 1908 Sep 23 2003 jisql
-rwxr-xr-x 1 helio users 282 Jun 16 2003 dvd-rip_pt.sh
-rwxr-xr-x 1 helio users 5380 Jun 3 2003 tcp_queue_test
-rw-r--r-- 1 helio users 4458 Jun 3 2003 tcp_queue_test.c
-rwxr-xr-x 1 helio users 111 May 27 2003 xquake2.sh
-rwxr-xr-x 1 helio users 1091 May 20 2003 change_bg.py
-rwxr-xr-x 1 helio users 1063 Apr 27 2003 make_downloads.py
-rwxr-xr-x 1 helio users 629 Apr 21 2003 avi_enconder.sh
-rwxr-xr-x 1 helio users 242 Apr 21 2003 dvd-rip.sh
-rwxr-xr-x 1 helio users 7887 Apr 21 2003 dvd2divxscript.pl
-rwxr-xr-x 1 helio users 51 Apr 3 2003 mygcc
-rwxr-xr-x 1 helio users 111 Mar 25 2003 hgcc.sh
-rwxr-xr-x 1 helio users 1017 Feb 25 2003 pimpoplayer.py
-rwxr-xr-x 1 helio users 653 Dec 11 2002 pythonget.py
-rwxr-xr-x 1 helio users 2814 Nov 21 2002 aph_preenche.py
-rwxr-xr-x 1 helio users 809 Nov 19 2002 get_storeproc.sh
-rwxr-xr-x 1 helio users 377 Nov 19 2002 isql_safe
-rwxr-xr-x 1 helio users 480 Nov 13 2002 myisql
-rwxr-xr-x 1 helio users 647 Nov 1 2002 asse.sh
-rwxr-xr-x 1 helio users 20 Oct 2 2002 pfctl
-rwxr-xr-x 1 helio users 2519 Aug 14 2002 velox-auth.py
-rwx------ 1 helio users 13885 Aug 8 2002 stat.pl
-rwxr-xr-x 1 helio users 1700 Aug 1 2002 changepasswdial.py
-rwxr-xr-x 1 helio users 83 Jul 30 2002 evol-kill.sh
-rwxr-xr-x 1 helio users 2762 Jul 25 2002 http_teste.py
-rwxr-xr-x 1 helio users 115 Jul 3 2002 planta_dsl_teste.sh
-rwxr-xr-x 1 helio users 166 Apr 9 2002 bookmarksupdate.sh
-rwxr-xr-x 1 helio users 1805 Jul 17 2001 id-velox.sh
-rwxr-xr-x 1 helio users 123 Jun 18 2001 wordview.sh
-rwxr-xr-x 1 helio users 275 May 21 2001 Xterm
-rwxr-xr-x 1 helio users 261 May 21 2001 Xterm-ROOT
Devo ter alguns de 1997 em outro backup, do antigo servidor de casa :-)
Para quem já utilizou a solução de SSLVPN da Juniper, sabe que é preciso mapear as portas para seu uso (no meu FreeBSD não funciona o modo de tunelamento).
Como vários serviços são acessiveis via portas baixas, incluindo ssh, ftp, telnet, etc, existe a possibilidade de mapear as portas acima de 1024 nas portas baixas através de vários ips de loopback.
O script abaixo gera o arquivo rinetd.conf para as várias interfaces :-)
#! /bin/sh
CONF="/usr/local/etc/rinetd.conf"
PORTS="110:11000 25:2500 443:44300 80:8000 22:2200 23:2300 21:2100 20:2000"
### Commands here ###
TMSTAMP=`date "+%Y%m%d"`
if [ -f $CONF ]; then
mv $CONF $CONF-$TMSTAMP
fi
IPS=`ifconfig lo0 | grep netmask | awk '{print $2}'`
for ip in $IPS
do echo "Configuring: $ip"
for port in $PORTS
do
LOW_PORT=`echo $port | awk -F":" '{print $1}'`
HIGH_PORT=`echo $port | awk -F":" '{print $2}'`
echo -e "$ip $LOW_PORT \t $ip $HIGH_PORT" >> $CONF
done
done
Da última compilação de kernel:
Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.3-PRERELEASE #1: Sat Nov 10 13:01:13 CST 2007 root@musashi:/usr/src/sys/i386/compile/GENERIC
WARNING: MPSAFE network stack disabled, expect reduced performance.
ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality
0 CPU: Intel(R) Pentium(R) M processor 1.73GHz (1729.18-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x6d8 Stepping = 8
[...]
A tag 6.3-PRERELEASE já diz tudo. Se bem que eu provavelmente vá pular direto pro release 7.0... mais emocionante.
Page 29 of 33