1) Install Alpine+ldap, setting up DavMail.
Install Alpine using port with FLAVOR set to ldap. I just referred to my previous post. So this post will focus more on OfflineIMAP and UW-IMAPd side of the project.
1) Install imap-uw2007
read the /usr/local/share/doc/pkg_readmes/uw-imap-2007f and follow the instruction. For me, I vim /etc/inetd.conf and add:
imap stream tcp nowait root /usr/local/libexec/imapd imapd
imap stream tcp6 nowait root /usr/local/libexec/imapd imapd
And it's also stated a way to enable plain text login. So I vim /etc/c-client.cf and change:
#set disable-plaintext nil
to
set disable-plaintext nil
You can restart inetd, but I just reboot. Then I telnet to localhost:143.
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ SASL-IR LOGIN-REFERRALS STARTTLS] localhost IMAP4rev1 2007f.404 at Tue, 20 Mar 2012 13:27:16 +0800 (MYT)
So far so good. In Alpine I just need to Add Folder collection (S+L+A) with the details:
Nickname: UW-IMAPd
Server: localhost:143
Path: mail/MyCompany/INBOX/
View:
Then after I saved the settings, inside folder list (L) Alpine will ask for my username (same as my OpenBSD's login name) and password (also same as my OpenBSD's password) then I can manipulate my IMAP's INBOX folder. I can add folders, delete etc. So this part is ok.
3) Installing and configuring OfflineIMAP.
I installed OfflineIMAP from OpenBSD's packages. Then I create ~/.offlineimaprc and put the basic as stated in offlineimap.org.
[general]
accounts = MyCompany
[Account MyCompany]
localrepository = Local
remoterepository = Remote
[Repository Local]
type = IMAP
remotehost = localhost
remoteport = 143
remoteuser = karl
[Repository Remote]
type = IMAP
remotehost = locahost
remoteport = 1143
remoteuser = ASIA\karl
Then I run OfflineIMAP by issuing offlineimap. Lo and behold, I got this error:
$ offlineimap
OfflineIMAP 6.3.4
Copyright 2002-2011 John Goerzen & contributors.
Licensed under the GNU GPL v2+ (v2 or any later version).
Account sync MyCompany:
***** Processing account MyCompany
Copying folder structure from IMAP to MappedIMAP
Establishing connection to localhost:1143.
WARNING: Error occured attempting to sync account 'MyCompany':
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/offlineimap/accounts.py", line 177, in syncrunner self.sync()
File "/usr/local/lib/python2.7/site-packages/offlineimap/accounts.py", line 235, in sync remoterepos.syncfoldersto(localrepos, [statusrepos])
File "/usr/local/lib/python2.7/site-packages/offlineimap/repository/Base.py", line 124, in syncfoldersto srcfolders = src.getfolders()
File "/usr/local/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line 303, in getfolders self.accountname, self))
File "/usr/local/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 32, in __init__ self.name = imaputil.dequote(name)
File "/usr/local/lib/python2.7/site-packages/offlineimap/imaputil.py", line 36, in dequote if not (string[0] == '"' and string[-1] == '"'): IndexError: string index out of range
***** Finished processing account MyCompany
Eh. Bah. Something is wrong somewhere. Help....
Tuesday, March 20, 2012
Sunday, March 18, 2012
5.1 amd64 K43U: Alpine reloaded, but snapshot has been updated.
Heyya,
I was trying to install Alpine this evening but aspell dependency is giving out error like something have changed. Then I checked my fav snapshot site and found that it's updated since 15th March.
So I'll be updating the snapshot tomorrow.
What's with Alpine again? Well previously I mentioned about trying to make Alpine to be offline email client (Alpine+UW-IMAPD+DavMail+OfflineIMAP) but the adventure never took off. So I'm visiting the trail again. Heh.
p/s: Not to mention that the Alpine+DavMail+OWA post have the most comment by readers. So it might be a useful post to some people. Later
I was trying to install Alpine this evening but aspell dependency is giving out error like something have changed. Then I checked my fav snapshot site and found that it's updated since 15th March.
So I'll be updating the snapshot tomorrow.
What's with Alpine again? Well previously I mentioned about trying to make Alpine to be offline email client (Alpine+UW-IMAPD+DavMail+OfflineIMAP) but the adventure never took off. So I'm visiting the trail again. Heh.
p/s: Not to mention that the Alpine+DavMail+OWA post have the most comment by readers. So it might be a useful post to some people. Later
Saturday, March 17, 2012
Thunderbird 9: Fixing screwed menu bar position.
Hi,
my -current is using Thunderbird 9x. And yesterday, somehow, I managed to screw the layout of it's Menu bar and Toolbar. The Menu bar should be on top, then below it the Toolbar. But by some magical keyboard shortcut I would never have known nor I can recall, I managed to swap the position between those 2 and leaving the Toolbar on top and below it, the Menu bar. It was ugly, dysfunctional and just plain wrong.
After a few misleading internet articles and forums regarding the issue, or nearly identical issues, I was left with the option of delete-and-test procedure. There's .thunderbird folder inside my $HOME and all the related settings is inside xxxxxxxx.default folder. Because there's a bunch of files, I deleted a subfolder inside then open up Thunderbird just to see did the layout was reverted back to normal. After nearly clearing the content of the .thunderbird folder, I found that the folder extensions is the one that I'm looking for.
So after I deleted the extensions folder, the layout reverted back to factory-default at the expense of losing my downloaded theme. Ah well that made me think that I can achieve the same result by changing theme to default and so it seems so. Better to lose the themes than lose my email settings. Later then.
my -current is using Thunderbird 9x. And yesterday, somehow, I managed to screw the layout of it's Menu bar and Toolbar. The Menu bar should be on top, then below it the Toolbar. But by some magical keyboard shortcut I would never have known nor I can recall, I managed to swap the position between those 2 and leaving the Toolbar on top and below it, the Menu bar. It was ugly, dysfunctional and just plain wrong.
After a few misleading internet articles and forums regarding the issue, or nearly identical issues, I was left with the option of delete-and-test procedure. There's .thunderbird folder inside my $HOME and all the related settings is inside xxxxxxxx.default folder. Because there's a bunch of files, I deleted a subfolder inside then open up Thunderbird just to see did the layout was reverted back to normal. After nearly clearing the content of the .thunderbird folder, I found that the folder extensions is the one that I'm looking for.
So after I deleted the extensions folder, the layout reverted back to factory-default at the expense of losing my downloaded theme. Ah well that made me think that I can achieve the same result by changing theme to default and so it seems so. Better to lose the themes than lose my email settings. Later then.
Wednesday, March 14, 2012
5.1 amd64 K43U: dmesg version 2.
OpenBSD 5.1 (GENERIC.MP) #207: Sun Feb 12 09:42:14 MST 2012
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8165330944 (7787MB)
avail mem = 7933804544 (7566MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeafd0 (50 entries)
bios0: vendor American Megatrends Inc. version "220" date 02/20/2012
bios0: ASUSTeK Computer Inc. K43U
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT SLIC
acpi0: wakeup devices SBAZ(S4) P0PC(S4) GEC_(S4) UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4) PE21(S4) PE22(S4) PE23(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.70 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.50 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 3 pa 0xfec00000, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus 4 (PE21)
acpiprt3 at acpi0: bus -1 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (PCE4)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpibat0 at acpi0: BAT1 model "PA3533U " serial 41167 type Li-Ion oem "ASUSTEK"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
vga1 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 3 int 18
drm0 at radeondrm0
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 3 int 19, AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: SCSI3 0/direct fixed naa.50014ee6ac21175d
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus0 targ 1 lun 0: ATAPI 5/cdrom removable
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
pciide0 at pci0 dev 20 function 1 "ATI SB700 IDE" rev 0x40: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 3 int 16
azalia1: codecs: Realtek ALC269
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb1 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci2 at ppb1 bus 2
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ppb2 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL (0x2c80), apic 3 int 16, address 14:da:e9:a2:a3:06
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb3 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci4 at ppb3 bus 4
athn0 at pci4 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 3 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address d0:df:9a:85:1a:ef
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb2 at ehci2: USB revision 2.0
uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb6 at ohci3: USB revision 1.0
uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uvideo0 at uhub0 port 3 configuration 1 interface 0 "04081-00050100C417910FV ASUS USB2.0 WebCam" rev 2.00/0.05 addr 2
video0 at uvideo0
umass0 at uhub0 port 5 configuration 1 interface 0 "Generic USB2.0-CRW" rev 2.00/38.82 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: SCSI0 0/direct removable serial.0bda0138516388200000
uhidev0 at uhub3 port 1 configuration 1 interface 0 "Logitech USB-PS/2 Optical Mouse" rev 2.00/20.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
ugen0 at uhub3 port 4 "Lite-On Technology product 0x3002" rev 1.10/0.01 addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (e777c1bb59b96fd1.a) swap on sd0b dump on sd0b
This dmesg have Multi-Card detected and speaker working.
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8165330944 (7787MB)
avail mem = 7933804544 (7566MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeafd0 (50 entries)
bios0: vendor American Megatrends Inc. version "220" date 02/20/2012
bios0: ASUSTeK Computer Inc. K43U
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT SLIC
acpi0: wakeup devices SBAZ(S4) P0PC(S4) GEC_(S4) UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4) PE21(S4) PE22(S4) PE23(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.70 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.50 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 3 pa 0xfec00000, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus 4 (PE21)
acpiprt3 at acpi0: bus -1 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (PCE4)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpibat0 at acpi0: BAT1 model "PA3533U " serial 41167 type Li-Ion oem "ASUSTEK"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
vga1 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 3 int 18
drm0 at radeondrm0
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 3 int 19, AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0:
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus0 targ 1 lun 0:
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
pciide0 at pci0 dev 20 function 1 "ATI SB700 IDE" rev 0x40: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 3 int 16
azalia1: codecs: Realtek ALC269
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb1 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci2 at ppb1 bus 2
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ppb2 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL (0x2c80), apic 3 int 16, address 14:da:e9:a2:a3:06
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb3 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci4 at ppb3 bus 4
athn0 at pci4 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 3 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address d0:df:9a:85:1a:ef
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb2 at ehci2: USB revision 2.0
uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb6 at ohci3: USB revision 1.0
uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uvideo0 at uhub0 port 3 configuration 1 interface 0 "04081-00050100C417910FV ASUS USB2.0 WebCam" rev 2.00/0.05 addr 2
video0 at uvideo0
umass0 at uhub0 port 5 configuration 1 interface 0 "Generic USB2.0-CRW" rev 2.00/38.82 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0:
uhidev0 at uhub3 port 1 configuration 1 interface 0 "Logitech USB-PS/2 Optical Mouse" rev 2.00/20.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
ugen0 at uhub3 port 4 "Lite-On Technology product 0x3002" rev 1.10/0.01 addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (e777c1bb59b96fd1.a) swap on sd0b dump on sd0b
This dmesg have Multi-Card detected and speaker working.
5.1 amd64 K43U: Updated BIOS to 2.20 and found some issues.
Hi,
I updated my K43U's BIOS 2 days ago to version 2.20 from previous version 2.17. Then I noticed something. I'm not sure this is related to me updating the BIOS but for sure, I noticed this issue after updating the BIOS.
Sometime the speaker will not function. Result of mixerctl will show that the speaker is not muted and if I attach a headphone, mixerctl will update accordingly - headphone works and detaching the headphone will result in still no sound coming out from the speaker. Rebooting will result in the same issue unless I opt for shutting down, then boot the machine. In Win7 the speaker is working fine with no issue so this might not be a BIOS update issue.
I also notice that this machine's Multicard Reader will sometime be detected and sometime not. If you refer to my dmesg, there no card reader detected but sometime I can see this dmesg result added:
umass0 at uhub0 port 5 configuration 1 interface 0 "Generic USB2.0-CRW" rev 2.00/38.82 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: SCSI0 0/direct removable serial.0bda0138516388200000
To make it ever more weirder, when Multi-Card is detected, the speaker will have no problem. Eh. But then I never tested the Card Reader in either OpenBSD or Win7 so I don't know if it's faulty or what. My machine have 2 years warranty so I better make sure.
UPDATE 14/03/12: I found that my Realtek MultiCard Reader is not working. Even in Win7. So I better send the machine to Asus Service Center ASAP.
Later.
I updated my K43U's BIOS 2 days ago to version 2.20 from previous version 2.17. Then I noticed something. I'm not sure this is related to me updating the BIOS but for sure, I noticed this issue after updating the BIOS.
Sometime the speaker will not function. Result of mixerctl will show that the speaker is not muted and if I attach a headphone, mixerctl will update accordingly - headphone works and detaching the headphone will result in still no sound coming out from the speaker. Rebooting will result in the same issue unless I opt for shutting down, then boot the machine. In Win7 the speaker is working fine with no issue so this might not be a BIOS update issue.
I also notice that this machine's Multicard Reader will sometime be detected and sometime not. If you refer to my dmesg, there no card reader detected but sometime I can see this dmesg result added:
umass0 at uhub0 port 5 configuration 1 interface 0 "Generic USB2.0-CRW" rev 2.00/38.82 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0:
To make it ever more weirder, when Multi-Card is detected, the speaker will have no problem. Eh. But then I never tested the Card Reader in either OpenBSD or Win7 so I don't know if it's faulty or what. My machine have 2 years warranty so I better make sure.
UPDATE 14/03/12: I found that my Realtek MultiCard Reader is not working. Even in Win7. So I better send the machine to Asus Service Center ASAP.
Later.
Monday, March 12, 2012
5.1 amd64 K43U: Screenshot anyone?
Hi,
Shown here is my Asus K43U running OpenBSD 5.1 (snapshot). There's tmux displaying a part of dmesg output, then the result of uname -a and lastly the scrot command I use to take this screenshot.
I'm using spectrwm (still scrotwm here) with xstatbar runnin at the bottom.
Oh yeah tmux is using 256 color. Heh. Later.
Friday, March 09, 2012
5.1 amd64 K43U: Something about APM.
Hi,
apm is working fine. In dmesg, I can see that my E-450 APU have 3 speed detected:
cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
So I vim /etc/rc.conf.local and add:
apmd_flags="-A"
Basically this is to tell apm to use Automatic performance adjustment mode. So with power adapter connected, the processor will be in full force (1650Mhz) and will lower down to (825Mhz) when in battery mode and scale up/down according to load. Nice.
I will still need to find something about the LCD's brightness though because that's one of the major power-sucker. Will update on this later.
apm is working fine. In dmesg, I can see that my E-450 APU have 3 speed detected:
cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
So I vim /etc/rc.conf.local and add:
apmd_flags="-A"
Basically this is to tell apm to use Automatic performance adjustment mode. So with power adapter connected, the processor will be in full force (1650Mhz) and will lower down to (825Mhz) when in battery mode and scale up/down according to load. Nice.
I will still need to find something about the LCD's brightness though because that's one of the major power-sucker. Will update on this later.
Tuesday, March 06, 2012
5.1 amd64 K43U: CUPS revisited.
Hi,
I just finished setting up CUPS and successfully made the Firefox to use CUPS for printing. At first I just installed cups-1.5.0p8 and change my /etc/rc.conf.local to add:
# Packages script to start (/etc/rc.d/)
pkg_scripts="cupsd"
At the bottom of the file. Now OpenBSD uses that instead of my previous posting and if I use my previous way, doing ps aux | grep cups will display bunch of cups threads being started. Recent way are much better.
So then when I open the http://localhost:631 (CUPS local page), I just add my network printer (HP Laserjet 9050dn) using socket://ip.address then downloading external driver from CUPS's website. Test printing went successful but when I want to print under Firefox, there's only Print to file and Print to lpr options with no CUPS printer. My office also have a Ricoh Aficio MP4500 printer but currently not working for me. Will try to figure this out later.
After searching for answers, I installed gtk+2-cups-2.24.9p0 with all of the dependencies. Restarting Firefox then checking the Print menu, I can now see the printer correctly. But when I tried to print, I get this pdftops failed error and printing queue stopped. So I went off to search for another answer.
Looking at OpenBSD's packages site, I saw cups-pdf-2.5.1 which might be the solution I was looking for. The packages is to print a file to PDF, but I have a feeling this can solve my printing issue. So I installed that, quit a lot of dependencies too then tried printing in Firefox. Wallah! Printing done, I'm happy so back to work. Later then.
I just finished setting up CUPS and successfully made the Firefox to use CUPS for printing. At first I just installed cups-1.5.0p8 and change my /etc/rc.conf.local to add:
# Packages script to start (/etc/rc.d/)
pkg_scripts="cupsd"
At the bottom of the file. Now OpenBSD uses that instead of my previous posting and if I use my previous way, doing ps aux | grep cups will display bunch of cups threads being started. Recent way are much better.
So then when I open the http://localhost:631 (CUPS local page), I just add my network printer (HP Laserjet 9050dn) using socket://ip.address then downloading external driver from CUPS's website. Test printing went successful but when I want to print under Firefox, there's only Print to file and Print to lpr options with no CUPS printer. My office also have a Ricoh Aficio MP4500 printer but currently not working for me. Will try to figure this out later.
After searching for answers, I installed gtk+2-cups-2.24.9p0 with all of the dependencies. Restarting Firefox then checking the Print menu, I can now see the printer correctly. But when I tried to print, I get this pdftops failed error and printing queue stopped. So I went off to search for another answer.
Looking at OpenBSD's packages site, I saw cups-pdf-2.5.1 which might be the solution I was looking for. The packages is to print a file to PDF, but I have a feeling this can solve my printing issue. So I installed that, quit a lot of dependencies too then tried printing in Firefox. Wallah! Printing done, I'm happy so back to work. Later then.
Friday, March 02, 2012
5.1 amd64 K43U: ksh script for Asus K43U keyboard shortcut in spectrwm.
Hi,
I've written a simple script to use my K43U keyboard shortcuts. As stated previously, Fn+F1 (sleep) and Fn+F7 (Off LCD) shortcuts is working. But as the Fn button is undetected in OpenBSD or xorg, I cannot use the Fn button to create other shorcuts, instead I need rely on spectrwm's MOD key. I might change this back to Fn key if later on it's workable.
What's the purpose of this (current) script?
- MOD+F10 to mute/unmute master volume (mixerctl outputs.master.mute)
- MOD+F11 to decrease master volume (mixerctl outputs.master. For both LR channel)
- MOF+F12 to increase master volume (mixerctl outputs.master. For both LR channel)
If you're using xstatbar, like me, xstatbar will show a graph of master volume for each Left/Right channel. So by using this script, you can see how much percentage of the volume you increase/decrease.
Why ksh? Because OpenBSD's default SHELL is ksh and I'm using it. This script might work with other shell.
Copy the asusfn.sh to either your $HOME or if you want to use it exclusively for spectrwm (scrotwm), copy it to /usr/local/share/scrotwm/ but make sure to alter my .scrotwm.conf below accordingly as I put my asusfn.sh in $HOME. Make sure to chmod the asusfn.sh to executable.
Manual usage is:
$ ./asusfn.sh [param]
Replace [param] with:
aup : To increase volume.
adn : To decrease volume.
amt : To mute/unmute volume.
This top part is snippet of my $HOME/.scrotwm.conf. As stated above, alter accordingly.
And this part above is the asusfn.sh. If you read the script carefully, you can see that you can also use the command:
$ ./asusfn.sh info
Which is basically my debugging for the script. I'm not an expert on ksh scripting so I used that to check values/env/bla bla etc.
Future (might be) improvements:
- MOD+F2 to enable/disable athn0 (Wireless LAN)
- MOD+F8 to change display output
- MOD+F9 to enable/disable touchpad
I also found that there's acpiasus which is the Hotkeys driver for Asus's laptop. Currently not automatically working with this machine-o-mine so I need to search for clues on it.
Legal stuff. You can freely copy/use/alter the script any way you want. Don't mock my programming skill because I'm not a programmer and I know this script can be made more simpler. If you alter the script and gave it somebody, make sure you tell them it's not my version. If you find this script useful, thank me or don't either way it's ok. Later.
I've written a simple script to use my K43U keyboard shortcuts. As stated previously, Fn+F1 (sleep) and Fn+F7 (Off LCD) shortcuts is working. But as the Fn button is undetected in OpenBSD or xorg, I cannot use the Fn button to create other shorcuts, instead I need rely on spectrwm's MOD key. I might change this back to Fn key if later on it's workable.
What's the purpose of this (current) script?
- MOD+F10 to mute/unmute master volume (mixerctl outputs.master.mute)
- MOD+F11 to decrease master volume (mixerctl outputs.master. For both LR channel)
- MOF+F12 to increase master volume (mixerctl outputs.master. For both LR channel)
If you're using xstatbar, like me, xstatbar will show a graph of master volume for each Left/Right channel. So by using this script, you can see how much percentage of the volume you increase/decrease.
Why ksh? Because OpenBSD's default SHELL is ksh and I'm using it. This script might work with other shell.
Copy the asusfn.sh to either your $HOME or if you want to use it exclusively for spectrwm (scrotwm), copy it to /usr/local/share/scrotwm/ but make sure to alter my .scrotwm.conf below accordingly as I put my asusfn.sh in $HOME. Make sure to chmod the asusfn.sh to executable.
Manual usage is:
$ ./asusfn.sh [param]
Replace [param] with:
aup : To increase volume.
adn : To decrease volume.
amt : To mute/unmute volume.
This top part is snippet of my $HOME/.scrotwm.conf. As stated above, alter accordingly.
And this part above is the asusfn.sh. If you read the script carefully, you can see that you can also use the command:
$ ./asusfn.sh info
Which is basically my debugging for the script. I'm not an expert on ksh scripting so I used that to check values/env/bla bla etc.
Future (might be) improvements:
- MOD+F2 to enable/disable athn0 (Wireless LAN)
- MOD+F8 to change display output
- MOD+F9 to enable/disable touchpad
I also found that there's acpiasus which is the Hotkeys driver for Asus's laptop. Currently not automatically working with this machine-o-mine so I need to search for clues on it.
Legal stuff. You can freely copy/use/alter the script any way you want. Don't mock my programming skill because I'm not a programmer and I know this script can be made more simpler. If you alter the script and gave it somebody, make sure you tell them it's not my version. If you find this script useful, thank me or don't either way it's ok. Later.
Thursday, March 01, 2012
5.1 amd64 K43U: Current status.
Hi,
Current status of running OpenBSD -current on Asus K43U.
- xf86-video-ati is at 6.14.3. Display is at 1366x768. But unfortunately xvinfo and glxinfo gave disappointing result so no hardware rendering yet.
- Video using software rendering (see above).
- Fn+f1 (Sleep) function seems to be working.
- Fn+f7 (Turn LCD Off) function is working.
- acpiasus not working for this machine yet.
- Speaker automatically mute when headphone jack is inserted.
- The bloody Firefox 9 cannot use $http_proxy env anymore. I tried Lynx using proxy and it's fine. Bloody mess. I'm searching for solution on this.
- Conky have problem with cpu detection.
- xstatbar is the way to go. Nice graph for both CPU cores.
- Sometime speaker not working, only shutdown then boot will fix it.
- Built-in Multi-Card reader sometime detected and sometime not. No SDCard to test so can't say for sure.
This will be updated when necessary. Later.
Current status of running OpenBSD -current on Asus K43U.
- xf86-video-ati is at 6.14.3. Display is at 1366x768. But unfortunately xvinfo and glxinfo gave disappointing result so no hardware rendering yet.
- Video using software rendering (see above).
- Fn+f1 (Sleep) function seems to be working.
- Fn+f7 (Turn LCD Off) function is working.
- acpiasus not working for this machine yet.
- Speaker automatically mute when headphone jack is inserted.
- The bloody Firefox 9 cannot use $http_proxy env anymore. I tried Lynx using proxy and it's fine. Bloody mess. I'm searching for solution on this.
- Conky have problem with cpu detection.
- xstatbar is the way to go. Nice graph for both CPU cores.
- Sometime speaker not working, only shutdown then boot will fix it.
- Built-in Multi-Card reader sometime detected and sometime not. No SDCard to test so can't say for sure.
This will be updated when necessary. Later.
Wednesday, February 29, 2012
5.1 amd64 K43U: Where is scrotwm now, eh?
Hi,
I was looking for updated info on my fav wm, scrotwm but heck I can't find any now. What? spectrwm? Uh?
Oh. If you read this conversation, you'll finally know that scrotwm has changed its name to spectrwm. That's why. Well changes are gradual so some reference to scrotwm is still there. Nice name. As long as it perform better each time it's updated, I will be happy. Later
I was looking for updated info on my fav wm, scrotwm but heck I can't find any now. What? spectrwm? Uh?
Oh. If you read this conversation, you'll finally know that scrotwm has changed its name to spectrwm. That's why. Well changes are gradual so some reference to scrotwm is still there. Nice name. As long as it perform better each time it's updated, I will be happy. Later
Friday, February 24, 2012
5.1 amd64 K43U: Following -current using snapshot, updated to radeon 6.14.3
Hi,
First of all, now my K43U machine is using 1366x768 display and no more slow scrolling! Hurrah! I LOVE OPENBSD! At last! The display is more crisp. If you're using AMD e-450 with Radeon HD 6300 graphic, now is your time to rejoice!
My current uname -a is:
OpenBSD karlap.vampire.my 5.1 GENERIC.MP#207 amd64
I've successfully installed OpenBSD -current snapshot.
Why I want to follow -current?
1) Because -current have the updated radeon 6.14.3 driver which can detect and use Radeon HD 6320 properly.
2) Because I want to use -current.
3) Because scrotwm is the newest version.
4) Because of the Radeon HD6320 driver... heh.
If you have more or less the same reason as me, read on. Before I forget, many thanks to http://blather.michaelwlucas.com/archives/543 for providing incredibly informative tips on updating to snapshot.
Updating my 5.0 to 5.1 (-current):
I used http://ftp.OpenBSD.org/pub/OpenBSD/snapshots/amd64 for the site to update my machine.
1) Copy bsd* and *.tgz files to local folder. (eg: /mnt/snapshots/amd64/)
2) Login to machine without X. cd to the folder you downloaded the files above. In shell, type this command:
$ sudo cp bsd.rd /
$ sudo sudo sysmerge -s etc51.tgz -x xetc51.tgz
3) Reboot the machine, after rebooted, bypass autoloading bootfile and choose:
boot> boot bsd.rd
4) bsd.rd will booted and choose (U)pgrade, then choose the folder you saved all the files for updating (eg: /mnt/snapshots/amd64/)
5) let it update. Remember that this is only the base OpenBSD, not all the third-party packages. After it's done, reboot.
6) I still have problem using pkg_add via proxy so I downloaded all the updated packages manually and place it in a specific folder (eg: /mnt/snapshots/packages/)
7) Now to update packages. Still without X and in shell, type:
$ export PKG_PATH=/mnt/snapshots/packages/
$ sudo pkg_add -vui
8) Make sure you read the verbose output to find out any missing dependencies.
Updating xf86-video-ati to 6.14.3 (hurrah!)
1) Download http://ftp.x.org/pub/individual/driver/xf86-video-ati-6.14.3.tar.gz
2) tar -zxvf the file
3) cd to the folder, and type this commands:
$ sh ./configure --prefix=/usr/X11R6 --sysconfdir=/etc --mandir=/usr/X11R6/man --with-xorg-module-dir=/usr/X11R6/lib/modules --disable-kms
$ sudo make
$ sudo make install
4) Now to test, vi /etc/X11/xorg.conf and change:
Section "Device"
Driver "vesa"
to
Driver "radeon"
5) reboot to test.
So far the machine is running like a charm. Nice display. Nice widescreen resolution. Oh, BTW. This is more updated scrotwm. YEAH!
There's a few remaining issue though:
1) Annoying ultra-sensitive touchpad (I use usb mouse most of the time).
2) xv with MPlayer is not working.
3) gnome-mplayer + Thunderbird + youtube issue (can use HTML5 WebM no problem though).
And I'm figuring out ways to use the Fn key combination as intended by the label (on/off WiFi, enable/disable touchpad, mute/unmute | vol up/down mixer etc). I'll post updates on any new findings. Now my K43U is back as my primary work machine. Yeah!
First of all, now my K43U machine is using 1366x768 display and no more slow scrolling! Hurrah! I LOVE OPENBSD! At last! The display is more crisp. If you're using AMD e-450 with Radeon HD 6300 graphic, now is your time to rejoice!
My current uname -a is:
OpenBSD karlap.vampire.my 5.1 GENERIC.MP#207 amd64
I've successfully installed OpenBSD -current snapshot.
Why I want to follow -current?
1) Because -current have the updated radeon 6.14.3 driver which can detect and use Radeon HD 6320 properly.
2) Because I want to use -current.
3) Because scrotwm is the newest version.
4) Because of the Radeon HD6320 driver... heh.
If you have more or less the same reason as me, read on. Before I forget, many thanks to http://blather.michaelwlucas.com/archives/543 for providing incredibly informative tips on updating to snapshot.
Updating my 5.0 to 5.1 (-current):
I used http://ftp.OpenBSD.org/pub/OpenBSD/snapshots/amd64 for the site to update my machine.
1) Copy bsd* and *.tgz files to local folder. (eg: /mnt/snapshots/amd64/)
2) Login to machine without X. cd to the folder you downloaded the files above. In shell, type this command:
$ sudo cp bsd.rd /
$ sudo sudo sysmerge -s etc51.tgz -x xetc51.tgz
3) Reboot the machine, after rebooted, bypass autoloading bootfile and choose:
boot> boot bsd.rd
4) bsd.rd will booted and choose (U)pgrade, then choose the folder you saved all the files for updating (eg: /mnt/snapshots/amd64/)
5) let it update. Remember that this is only the base OpenBSD, not all the third-party packages. After it's done, reboot.
6) I still have problem using pkg_add via proxy so I downloaded all the updated packages manually and place it in a specific folder (eg: /mnt/snapshots/packages/)
7) Now to update packages. Still without X and in shell, type:
$ export PKG_PATH=/mnt/snapshots/packages/
$ sudo pkg_add -vui
8) Make sure you read the verbose output to find out any missing dependencies.
Updating xf86-video-ati to 6.14.3 (hurrah!)
1) Download http://ftp.x.org/pub/individual/driver/xf86-video-ati-6.14.3.tar.gz
2) tar -zxvf the file
3) cd to the folder, and type this commands:
$ sh ./configure --prefix=/usr/X11R6 --sysconfdir=/etc --mandir=/usr/X11R6/man --with-xorg-module-dir=/usr/X11R6/lib/modules --disable-kms
$ sudo make
$ sudo make install
4) Now to test, vi /etc/X11/xorg.conf and change:
Section "Device"
Driver "vesa"
to
Driver "radeon"
5) reboot to test.
So far the machine is running like a charm. Nice display. Nice widescreen resolution. Oh, BTW. This is more updated scrotwm. YEAH!
There's a few remaining issue though:
1) Annoying ultra-sensitive touchpad (I use usb mouse most of the time).
2) xv with MPlayer is not working.
3) gnome-mplayer + Thunderbird + youtube issue (can use HTML5 WebM no problem though).
And I'm figuring out ways to use the Fn key combination as intended by the label (on/off WiFi, enable/disable touchpad, mute/unmute | vol up/down mixer etc). I'll post updates on any new findings. Now my K43U is back as my primary work machine. Yeah!
5.1 amd64 K43U: dmesg.
OpenBSD 5.1 (GENERIC.MP) #207: Sun Feb 12 09:42:14 MST 2012
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8165330944 (7787MB)
avail mem = 7933804544 (7566MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeafd0 (50 entries)
bios0: vendor American Megatrends Inc. version "217" date 11/08/2011
bios0: ASUSTeK Computer Inc. K43U
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT SLIC
acpi0: wakeup devices SBAZ(S4) P0PC(S4) GEC_(S4) UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4) PE21(S
4) PE22(S4) PE23(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.70 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX1
6,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.49 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX1
6,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 3 pa 0xfec00000, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus 4 (PE21)
acpiprt3 at acpi0: bus -1 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (PCE4)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpibat0 at acpi0: BAT1 model "PA3533U " serial 41167 type Li-Ion oem "TOSHIBA"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
vga1 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 3 int 18
drm0 at radeondrm0
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 3 int 19, AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: SCSI3 0/direct fixed naa.50014ee6ac21175d
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus0 targ 1 lun 0: ATAPI 5/cdrom removable
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
pciide0 at pci0 dev 20 function 1 "ATI SB700 IDE" rev 0x40: DMA, channel 0 configured to compatibility, channel 1 configured to
compatibility
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 3 int 16
azalia1: codecs: Realtek ALC269
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb1 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci2 at ppb1 bus 2
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ppb2 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL (0x2c80), apic 3 int 16, address 14:da:e9:a2:a3:06
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb3 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci4 at ppb3 bus 4
athn0 at pci4 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 3 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address d0:df:9a:85:1a:ef
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb2 at ehci2: USB revision 2.0
uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb6 at ohci3: USB revision 1.0
uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uvideo0 at uhub0 port 3 configuration 1 interface 0 "04081-00050100C417910FV ASUS USB2.0 WebCam" rev 2.00/0.05 addr 2
video0 at uvideo0
uhidev0 at uhub3 port 1 configuration 1 interface 0 "Logitech USB-PS/2 Optical Mouse" rev 2.00/20.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (e777c1bb59b96fd1.a) swap on sd0b dump on sd0b
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8165330944 (7787MB)
avail mem = 7933804544 (7566MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeafd0 (50 entries)
bios0: vendor American Megatrends Inc. version "217" date 11/08/2011
bios0: ASUSTeK Computer Inc. K43U
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT SLIC
acpi0: wakeup devices SBAZ(S4) P0PC(S4) GEC_(S4) UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4) PE21(S
4) PE22(S4) PE23(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.70 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX1
6,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.49 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX1
6,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 3 pa 0xfec00000, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus 4 (PE21)
acpiprt3 at acpi0: bus -1 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (PCE4)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpibat0 at acpi0: BAT1 model "PA3533U " serial 41167 type Li-Ion oem "TOSHIBA"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
vga1 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 3 int 18
drm0 at radeondrm0
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 3 int 19, AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0:
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus0 targ 1 lun 0:
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
pciide0 at pci0 dev 20 function 1 "ATI SB700 IDE" rev 0x40: DMA, channel 0 configured to compatibility, channel 1 configured to
compatibility
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 3 int 16
azalia1: codecs: Realtek ALC269
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb1 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci2 at ppb1 bus 2
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ppb2 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL (0x2c80), apic 3 int 16, address 14:da:e9:a2:a3:06
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb3 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci4 at ppb3 bus 4
athn0 at pci4 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 3 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address d0:df:9a:85:1a:ef
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb2 at ehci2: USB revision 2.0
uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb6 at ohci3: USB revision 1.0
uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uvideo0 at uhub0 port 3 configuration 1 interface 0 "04081-00050100C417910FV ASUS USB2.0 WebCam" rev 2.00/0.05 addr 2
video0 at uvideo0
uhidev0 at uhub3 port 1 configuration 1 interface 0 "Logitech USB-PS/2 Optical Mouse" rev 2.00/20.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (e777c1bb59b96fd1.a) swap on sd0b dump on sd0b
Thursday, February 23, 2012
5.0 amd64 K43U: Upgrading to -current. Soon.
Heyya,
I'm currently preparing my system (mostly preparing myself) to get my K43U upgrading to -current. Most probably using snapshot installation. Information are lacking but I'm more or less getting to it. I will post anything on it later.
I'm currently preparing my system (mostly preparing myself) to get my K43U upgrading to -current. Most probably using snapshot installation. Information are lacking but I'm more or less getting to it. I will post anything on it later.
Thursday, December 01, 2011
5.0 amd64 K43U: Firefox + gecko-mediaplayer + FlashVideoReplacer = watch streaming video inside Firefox!
Hi,
Maybe you guys knew about this far longer than me but this post is just a reminder for me. Anyway, here it is.
- Install Firefox
- Download and install gecko-mediaplayer from OpenBSD package.
- Search for FlashVideoReplacer plugin from Firefox's plugin website. Install that.
After FlashVideoReplacer plugin has been installed. There will be an icon on the top right side of Firefox. Click on it and go to Preferences. On the Replacement tab, I choose:
- Preferred method = embedded
- Plugin/MIME type = WMP (application/x-mplayer2)
Then enjoy streaming videos.
Just a while ago I managed to make a mess by configuring the mplayer plugin to use xv in "Right-click video > Preferences > Adjust Output Settings > Video Output". When I open videos after that, the screen is blank but there's sound. To make it worst, right-click does nothing so I can't go to the Preferences again. The solution? go to ~/.mplayer/ and delete the config. Opening another video will reset the settings. Later.
Maybe you guys knew about this far longer than me but this post is just a reminder for me. Anyway, here it is.
- Install Firefox
- Download and install gecko-mediaplayer from OpenBSD package.
- Search for FlashVideoReplacer plugin from Firefox's plugin website. Install that.
After FlashVideoReplacer plugin has been installed. There will be an icon on the top right side of Firefox. Click on it and go to Preferences. On the Replacement tab, I choose:
- Preferred method = embedded
- Plugin/MIME type = WMP (application/x-mplayer2)
Then enjoy streaming videos.
Just a while ago I managed to make a mess by configuring the mplayer plugin to use xv in "Right-click video > Preferences > Adjust Output Settings > Video Output". When I open videos after that, the screen is blank but there's sound. To make it worst, right-click does nothing so I can't go to the Preferences again. The solution? go to ~/.mplayer/ and delete the config. Opening another video will reset the settings. Later.
5.0 amd64 K43U: Current status.
Hey,
So far, this is my experience on running 5.0 amd64 using this K43U laptop. The list is what I consider as interesting and somewhat important.
Hardware:
1) Atheros (athn0) wireless works. Using kismet to scan for AP but I didn't test to connect to any yet.
2) Realtek (re0) LAN works like a charm.
3) Haven't tested suspend/resume yet. Soon I hope.
4) Sound works out of the box. Yum!
5) AMD Radeon HD 6310 is not yet supported. My widescreen LCD panel is on 1024x768 on vesa although it should be 1366x768. Still searching for tips on this.
Software:
1) Davmail 64-bit (using FreeBSD's package). Currently still testing as there's issue with java memory error.
2) Firefox works and now I can watch streaming video (youtube etc) inside Firefox! Using gecko-mediaplayer plugin and FlashVideoReplacer extension.
3) Thunderbird + enigmail works.
4) scrotwm using the source (0.9.34). Works great. No crashing on Thunderbird anymore.
5) conky have problem with ${addr} and multicore processor. Read about patch to fix it but I installed from package, not from port so no hope for me yet. Maybe in -current?
Later then.
So far, this is my experience on running 5.0 amd64 using this K43U laptop. The list is what I consider as interesting and somewhat important.
Hardware:
1) Atheros (athn0) wireless works. Using kismet to scan for AP but I didn't test to connect to any yet.
2) Realtek (re0) LAN works like a charm.
3) Haven't tested suspend/resume yet. Soon I hope.
4) Sound works out of the box. Yum!
5) AMD Radeon HD 6310 is not yet supported. My widescreen LCD panel is on 1024x768 on vesa although it should be 1366x768. Still searching for tips on this.
Software:
1) Davmail 64-bit (using FreeBSD's package). Currently still testing as there's issue with java memory error.
2) Firefox works and now I can watch streaming video (youtube etc) inside Firefox! Using gecko-mediaplayer plugin and FlashVideoReplacer extension.
3) Thunderbird + enigmail works.
4) scrotwm using the source (0.9.34). Works great. No crashing on Thunderbird anymore.
5) conky have problem with ${addr} and multicore processor. Read about patch to fix it but I installed from package, not from port so no hope for me yet. Maybe in -current?
Later then.
5.0 amd64 K43U: Davmail crash with java dumping core, FreeBSD's package might be the saviour.
Hey,
As some of you know, I'm using OpenBSD primarily for work and I use my company's email address which uses MS OWA. So I use davmail so Thunderbird can retrieve my emails properly. You can search my blog for davmail settings.
I downloaded davmail-3.9.6 and I noticed that less than an 1, davmail will crash and there's java.core dumping. I have a hint that this might be due to 64 version of davmail is not available for OpenBSD and there's only linux's version which has 64-bit.
As this issue is critical, I need to make sure I resolve this as soon as possible. Downloading linux's 64-bit version is out of the question because I don't want any more mess. So I thought of doing an experiment.
I noticed that FreeBSD have amd64 version of davmail in their package system. FreeBSD, which used to be i386 system only have broaden their supported architecture by releasing amd64 version of their OS a few years back. Good news indeed.
I found davmail-3.8.4 package (*.tgz) for FreeBSD 8.2 which is ok as long as it will work. I do some comparison and found that this is what's needed for davmail to work. No installation needed.
lib/
davmail.sh
davmail.jar
There's some files inside the lib folder and only 1-2 files has changed since 3.8.4 to 3.9.6. So I extracted the *.tgz and copied that files into ~/davmail/. Using my previous davmail configuration, I'm now using the amd64 version of davmail meant for FreeBSD.
I'm just using it today, starting in just 1 hour and so far it seems to be working fine. It davmail can survive working hours today then it's great. For the package, you can download from FreeBSD or I can provide mine if needed.
Update!: Just as I published this post, the davmail crashed again. Here's the header of the error message:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 4361696 bytes for Chunk::new. Out of swap space?
#
# Internal Error (allocation.cpp:272), pid=11064, tid=8626964480
# Error: Chunk::new
#
# JRE version: 7.0
# Java VM: OpenJDK 64-Bit Server VM (20.0-b03 mixed mode bsd-amd64 compressed oops)
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Maybe it's java's issue. Hmm. I'll need to search for answers. Maybe install another version of jre or jdk. Anyone else have this issue?
Update 02/12/11 09:40:
I found that there's already a few 5.0 users which posted question regarding this java.lang.OutOfMemoryError issue and it affected different java based program like eclipse and netbeans.
Rewinding a bit, DavMail is run using davmail.sh script which resides in DavMail folder. Normally by default, the script contains:
# davmail.sh Ahmad Zulkarnain 2011
BASE=`dirname $0`
for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1
The last line tells the script to run DavMail. I tried to change the command to:
java -Xms512m -Xmx512m -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1
Note the bold text are the changes I made. But then I have this error:
/home/karl/davmail/davmail.sh /home/karl/davmail/davmail.conf
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I even tried using only -Xms512m or -Xmx512m with the same error. So then after reading the java man page, I experiment with adding -d64 to force DavMail to run in 64-bit environment. So now the last line of davmail.sh looks like this:
java -d64 -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1
Now I tested that one invoking sh ~/davmail/davmail.sh ~/davmail/davmail.conf without making it a background process so I can see the output in xterm. I tested that since my last post on the java.lang.OutOfMemoryError until the end of my working hour and there's no crash. *Maybe* DavMail is not stressed enough by then because mails are less in the evening. So today I'm testing the altered davmail.sh to see if it can survive until the end of my working hours. I will keep you guys posted on that.
Thanks to Daniel M for your comment, sorry I have to answer your question in here instead of the comment box but I'm still interested to know any java tips from you.
Update 02/12/11 11:49:
Ok it crashed again. Still have the java.lang.OutOfMemoryError and java.core dump. But at least it's not as fast as yesterday. I managed to get more than an hour of emailing done. So I need to search for more answers. Later.
As some of you know, I'm using OpenBSD primarily for work and I use my company's email address which uses MS OWA. So I use davmail so Thunderbird can retrieve my emails properly. You can search my blog for davmail settings.
I downloaded davmail-3.9.6 and I noticed that less than an 1, davmail will crash and there's java.core dumping. I have a hint that this might be due to 64 version of davmail is not available for OpenBSD and there's only linux's version which has 64-bit.
As this issue is critical, I need to make sure I resolve this as soon as possible. Downloading linux's 64-bit version is out of the question because I don't want any more mess. So I thought of doing an experiment.
I noticed that FreeBSD have amd64 version of davmail in their package system. FreeBSD, which used to be i386 system only have broaden their supported architecture by releasing amd64 version of their OS a few years back. Good news indeed.
I found davmail-3.8.4 package (*.tgz) for FreeBSD 8.2 which is ok as long as it will work. I do some comparison and found that this is what's needed for davmail to work. No installation needed.
lib/
davmail.sh
davmail.jar
There's some files inside the lib folder and only 1-2 files has changed since 3.8.4 to 3.9.6. So I extracted the *.tgz and copied that files into ~/davmail/. Using my previous davmail configuration, I'm now using the amd64 version of davmail meant for FreeBSD.
I'm just using it today, starting in just 1 hour and so far it seems to be working fine. It davmail can survive working hours today then it's great. For the package, you can download from FreeBSD or I can provide mine if needed.
Update!: Just as I published this post, the davmail crashed again. Here's the header of the error message:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 4361696 bytes for Chunk::new. Out of swap space?
#
# Internal Error (allocation.cpp:272), pid=11064, tid=8626964480
# Error: Chunk::new
#
# JRE version: 7.0
# Java VM: OpenJDK 64-Bit Server VM (20.0-b03 mixed mode bsd-amd64 compressed oops)
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Maybe it's java's issue. Hmm. I'll need to search for answers. Maybe install another version of jre or jdk. Anyone else have this issue?
Update 02/12/11 09:40:
I found that there's already a few 5.0 users which posted question regarding this java.lang.OutOfMemoryError issue and it affected different java based program like eclipse and netbeans.
Rewinding a bit, DavMail is run using davmail.sh script which resides in DavMail folder. Normally by default, the script contains:
# davmail.sh Ahmad Zulkarnain 2011
BASE=`dirname $0`
for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1
The last line tells the script to run DavMail. I tried to change the command to:
java -Xms512m -Xmx512m -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1
Note the bold text are the changes I made. But then I have this error:
/home/karl/davmail/davmail.sh /home/karl/davmail/davmail.conf
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I even tried using only -Xms512m or -Xmx512m with the same error. So then after reading the java man page, I experiment with adding -d64 to force DavMail to run in 64-bit environment. So now the last line of davmail.sh looks like this:
java -d64 -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1
Now I tested that one invoking sh ~/davmail/davmail.sh ~/davmail/davmail.conf without making it a background process so I can see the output in xterm. I tested that since my last post on the java.lang.OutOfMemoryError until the end of my working hour and there's no crash. *Maybe* DavMail is not stressed enough by then because mails are less in the evening. So today I'm testing the altered davmail.sh to see if it can survive until the end of my working hours. I will keep you guys posted on that.
Thanks to Daniel M for your comment, sorry I have to answer your question in here instead of the comment box but I'm still interested to know any java tips from you.
Update 02/12/11 11:49:
Ok it crashed again. Still have the java.lang.OutOfMemoryError and java.core dump. But at least it's not as fast as yesterday. I managed to get more than an hour of emailing done. So I need to search for more answers. Later.
Wednesday, November 30, 2011
5.0 amd64 K43U: dmesg!
Hi,
Here's the dmesg for K43U. Take note that I've upgraded my machine with 8Gb RAM. Yum!
Later then. Yeah I know I've not yet completed my installation's experience...
Here's the dmesg for K43U. Take note that I've upgraded my machine with 8Gb RAM. Yum!
Later then. Yeah I know I've not yet completed my installation's experience...
Tuesday, November 22, 2011
Garuda is yet again no match for Harimau Muda. Hurray for Malaysian Football Team!
Heyya!
I'm still excited because our Harimau Muda football team has won the SEA Games gold medal for the 2nd time in a row!! Hurray! Although the team has been provoked, our national anthem disrespected by the home crowd, BUT STILL WE"RE THE CHAMPION! The team fought Indonesia in quarter final and in the final, at Gelora Bung Karno's stadium, the so-called "stadium keramat" for the home team BUT WE BEAT THEM TWICE! YEAH!.
The "ganyang Malaysia" provocation ignited during the SEA Games football campaign didn't destroy the team's spirit. Instead of respecting other nation's culture, some of the home crowd choose to be rude and childish. Oh well, you get silver medal for that. Good on you.
For Harimau Muda and Harimau Malaya, keep up the great effort and superb performance. We'll always support you (as long you guys can cope with criticism that is :). You guys deserves the gold medal, and the sweet memory of beating Garuda on their own turf.
As for Garuda, good show. Can't say the same for some of the supporters though. Enjoy your silver medals. With all the courtesies of the referees, you guys earned it. Doping Check while Harimau Muda is still celebrating and haven't even received their medals yet? Wow that's too unprofessional.
Oh while I'm still on football here, remember AFC Cup. Heh. Later.
I'm still excited because our Harimau Muda football team has won the SEA Games gold medal for the 2nd time in a row!! Hurray! Although the team has been provoked, our national anthem disrespected by the home crowd, BUT STILL WE"RE THE CHAMPION! The team fought Indonesia in quarter final and in the final, at Gelora Bung Karno's stadium, the so-called "stadium keramat" for the home team BUT WE BEAT THEM TWICE! YEAH!.
The "ganyang Malaysia" provocation ignited during the SEA Games football campaign didn't destroy the team's spirit. Instead of respecting other nation's culture, some of the home crowd choose to be rude and childish. Oh well, you get silver medal for that. Good on you.
For Harimau Muda and Harimau Malaya, keep up the great effort and superb performance. We'll always support you (as long you guys can cope with criticism that is :). You guys deserves the gold medal, and the sweet memory of beating Garuda on their own turf.
As for Garuda, good show. Can't say the same for some of the supporters though. Enjoy your silver medals. With all the courtesies of the referees, you guys earned it. Doping Check while Harimau Muda is still celebrating and haven't even received their medals yet? Wow that's too unprofessional.
Oh while I'm still on football here, remember AFC Cup. Heh. Later.
Monday, November 21, 2011
5.0 amd64 K43U: Dual booting OpenBSD 5.0 AMD64 with Windows 7 x64.
Hi,
Ok. Now's the time some of us has been waiting for. I'll write up the experiences in configuring dual-boot environment of OpenBSD 5.0 AMD64 and Windows 7 x64 on my Asus K43U AMD Vision's laptop. I might write this in parts, or even put it all in this 1 posting.
Previously I wrote a bit about my K43U laptop and a bit about the specification. I have a large hard disk, 500Gb so I made my mind to dual boot this laptop with OpenBSD 5.0 AMD64 and Windows 7 x64. OpenBSD will be my work environment, and Windows 7 will be for gaming stuff. Now on to the experience.
1) Preparations
Ok first of all, install Windows first. On my K34U, I have 3 partition on my 500Gb drive. The first partition is Windows's reserved for something that I don't know of, whatever to make the OS happy. Then the 2nd partition is for Windows 7. The 3rd partition is for OpenBSD 5.0 AMD64. Make sure the important files in Windows 7 is properly backed up, as I've learned on the hardest way possible. More on this in a moment. Here's how I divide the hard disk.
None = System Reserved = 100Mb
C: = Windows 7 = 270Gb
None = OpenBSD 5.0 AMD64 = 195Gb
After hours of installation and updating Windows 7's driver to make it workable, my Windows 7 environment is installed. I used MS's Computer Management > Disk Management to create the free space for the would be OpenBSD into a raw partition without any filesystem format inside.
With the OpenBSD's CD inside, I rebooted the machine and for K43U, I need to press [ESC] key during the ASUS logo to choose the boot device. Then I choose my DVD drive to boot the OpenBSD CD. Then the lovely OpenBSD boot screen appears.
OpenBSD then asked me to choose either to (R)epair, (I)nstall or (U)pgrade, I choose [I] for installation.
After that the setups for root user/pass, configuring re0 for network and adding another user for the system. It's all the easy parts.
Then OpenBSD asked me to either "use the (W)hole disk or (E)dit the partition". It's the fdisk *gasp*. I just remembered and my last dual-boot exercise is on FreeBSD which is a long time ago! Ah. People says that curiosity kills the cat and mine killed my Windows 7 partition as I thought pressing [W] will give me a preview and there will be a confirmation afterwards asking me to confirm to use the whole hard disk. Well remember this well people. IT DOES NOT!. Once you hit the [W] key, OpenBSD will proceed with rewriting the MBR and it will be nearly impossible to recover your Windows installation. Well some said it's nearly impossible, but me, I never managed to get it back! I had to reinstall Windows 7 and start again. So do keep this in mind.
So I carefully hit the [E] key (remember next to the [E] key is... the [W]!!) so I can edit the partition manually. Here's a bit of it. Bold text is my input:
fdisk:1> e 2
fdisk:1> A6
fdisk:*1> q
So basically I told fdisk to use the 3rd slice (partition) of the hard disk (remember in *nix numbers starts with 0, not 1) and it's labeled as 2. OpenBSD needs A6 as the filesystem type so I set it. Then I just press [Q] to save changes and exit fdisk. Some pointer on the net stating that pressing [W] to write the changes in MBR is needed but I didn't do that. I might make you happier but currently this minimum steps are working fine for me.
After that, my partitions look like this:
Take note that the "*" sign on partition 0 means that I didn't make the new OpenBSD partition as active partition and retain Windows 7 partition as bootable. Well, this is because I'll be using Windows 7's own boot manager for dual booting. No need to install other boot manager software.
Now to partition the OpenBSD slice (Partition? Slices?). As usual, I starts with auto to see roughly how OpenBSD will partition my OpenBSD. And then I revert back to zero and do it manually. So I come up with this:
/ = 1Gb
swap = 2Gb
/var = 7Gb
/tmp = 4Gb
/usr = 18Gb
/home = the rest
Yours might be different so adjust it accordingly. I still think my swap is too big but as I have a bigger hard disk now, it doesn't matter much. Then proceed with OpenBSD installation. It took a while but no problem on the installation. Great.
2) Dual-boot preparation.
So the OpenBSD 5.0 amd64 has been installed. Before I reboot the machine, it's best to refer to http://www.openbsd.org/faq/faq4.html#Multibooting.
I proceed with creating the OpenBSD Partition Boot Record using the OpenBSD page for reference.
# dd if=/dev/rsd0a of=openbsd.pbr bs=512 count=1
After that I put my fat32 usb thumbdrive and copy the file "openbsd.pbr" into it.
Before rebooting, I changed the timezone so that the time in OpenBSD don't go off by 8 hours (Malaysian time). Text in bold is mine.
$ sudo config -ef /bsd
OpenBSD 5.0 (GENERIC.MP) #63: Wed Aug 17 10:14:30 MDT 2011
$nbsp;$nbsp;$nbsp;$nbsp;deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Enter 'help' for information
ukc> timezone -480
timezone = -480, dst = 0
ukc> quit
Saving modified kernel.
How did I get the "-480"? Because Malaysian time is +8 to UTC. So why was it -480? 8 x 60 mins = 480 mins. Because we're 8 hours in advance from UTC, we need to deduct the timezone about 480 minutes. Yours might be different so do make sure of it. dst is Daylight Saving Time which we don't use so it's 0. Oh yeah, make sure visudo is done appropriately so that we can sudo.
3) Configuring Windows 7 x64 to dual-boot.
Ok remember when I didn't change the active partition on fdisk back then? It's because we're going to reboot and let Windows 7 as the default boot (not for long though). I'll be using W7's own boot manager to dual boot OpenBSD amd64 and Windows 7 x64. As before, it's best to refer to OpenBSD's page on multibooting because I do.
Inside Windows 7, I moved the openbsd.pbr from my thumbdrive to C:\. Then I opened cmd (MS command prompt) as Administrator. Inside it, I typed the following. Bold text is mine and TAKE NOTE! I copied this from OpenBSD's page because there are details I didn't save.
C:\Windows\system32> bcdedit /create /d "OpenBSD/i386" /application bootsector
The entry {0154a872-3d41-11de-bd67-a7060316bbb1} was successfully created.
C:\Windows\system32> bcdedit /set {0154a872-3d41-11de-bd67-a7060316bbb1} device boot
The operation completed successfully.
C:\Windows\system32> bcdedit /set {0154a872-3d41-11de-bd67-a7060316bbb1} path \openbsd.pbr
The operation completed successfully.
C:\Windows\system32> bcdedit /set {0154a872-3d41-11de-bd67-a7060316bbb1} device partition=c:
The operation completed successfully.
C:\Windows\system32> bcdedit /displayorder {0154a872-3d41-11de-bd67-7060316bbb1} /addlast
The operation completed successfully.
C:\Windows\system32>
See the text in underline? That thing depends on your system. I didn't save what's mine so I copied from OpenBSD's page. Yours will be different so do take note of that. Now the machine has been configured to dual-boot between OpenBSD 5.0 amd64 and Windows 7 x64. The Windows 7 boot manager can be tweak.
That's all. I might be updating this post to reflect any other things I forgot to mention etc. Enjoy and later!
Ok. Now's the time some of us has been waiting for. I'll write up the experiences in configuring dual-boot environment of OpenBSD 5.0 AMD64 and Windows 7 x64 on my Asus K43U AMD Vision's laptop. I might write this in parts, or even put it all in this 1 posting.
Previously I wrote a bit about my K43U laptop and a bit about the specification. I have a large hard disk, 500Gb so I made my mind to dual boot this laptop with OpenBSD 5.0 AMD64 and Windows 7 x64. OpenBSD will be my work environment, and Windows 7 will be for gaming stuff. Now on to the experience.
1) Preparations
Ok first of all, install Windows first. On my K34U, I have 3 partition on my 500Gb drive. The first partition is Windows's reserved for something that I don't know of, whatever to make the OS happy. Then the 2nd partition is for Windows 7. The 3rd partition is for OpenBSD 5.0 AMD64. Make sure the important files in Windows 7 is properly backed up, as I've learned on the hardest way possible. More on this in a moment. Here's how I divide the hard disk.
None = System Reserved = 100Mb
C: = Windows 7 = 270Gb
None = OpenBSD 5.0 AMD64 = 195Gb
After hours of installation and updating Windows 7's driver to make it workable, my Windows 7 environment is installed. I used MS's Computer Management > Disk Management to create the free space for the would be OpenBSD into a raw partition without any filesystem format inside.
With the OpenBSD's CD inside, I rebooted the machine and for K43U, I need to press [ESC] key during the ASUS logo to choose the boot device. Then I choose my DVD drive to boot the OpenBSD CD. Then the lovely OpenBSD boot screen appears.
OpenBSD then asked me to choose either to (R)epair, (I)nstall or (U)pgrade, I choose [I] for installation.
After that the setups for root user/pass, configuring re0 for network and adding another user for the system. It's all the easy parts.
Then OpenBSD asked me to either "use the (W)hole disk or (E)dit the partition". It's the fdisk *gasp*. I just remembered and my last dual-boot exercise is on FreeBSD which is a long time ago! Ah. People says that curiosity kills the cat and mine killed my Windows 7 partition as I thought pressing [W] will give me a preview and there will be a confirmation afterwards asking me to confirm to use the whole hard disk. Well remember this well people. IT DOES NOT!. Once you hit the [W] key, OpenBSD will proceed with rewriting the MBR and it will be nearly impossible to recover your Windows installation. Well some said it's nearly impossible, but me, I never managed to get it back! I had to reinstall Windows 7 and start again. So do keep this in mind.
So I carefully hit the [E] key (remember next to the [E] key is... the [W]!!) so I can edit the partition manually. Here's a bit of it. Bold text is my input:
fdisk:1> e 2
fdisk:1> A6
fdisk:*1> q
So basically I told fdisk to use the 3rd slice (partition) of the hard disk (remember in *nix numbers starts with 0, not 1) and it's labeled as 2. OpenBSD needs A6 as the filesystem type so I set it. Then I just press [Q] to save changes and exit fdisk. Some pointer on the net stating that pressing [W] to write the changes in MBR is needed but I didn't do that. I might make you happier but currently this minimum steps are working fine for me.
After that, my partitions look like this:
Take note that the "*" sign on partition 0 means that I didn't make the new OpenBSD partition as active partition and retain Windows 7 partition as bootable. Well, this is because I'll be using Windows 7's own boot manager for dual booting. No need to install other boot manager software.
Now to partition the OpenBSD slice (Partition? Slices?). As usual, I starts with auto to see roughly how OpenBSD will partition my OpenBSD. And then I revert back to zero and do it manually. So I come up with this:
/ = 1Gb
swap = 2Gb
/var = 7Gb
/tmp = 4Gb
/usr = 18Gb
/home = the rest
Yours might be different so adjust it accordingly. I still think my swap is too big but as I have a bigger hard disk now, it doesn't matter much. Then proceed with OpenBSD installation. It took a while but no problem on the installation. Great.
2) Dual-boot preparation.
So the OpenBSD 5.0 amd64 has been installed. Before I reboot the machine, it's best to refer to http://www.openbsd.org/faq/faq4.html#Multibooting.
I proceed with creating the OpenBSD Partition Boot Record using the OpenBSD page for reference.
# dd if=/dev/rsd0a of=openbsd.pbr bs=512 count=1
After that I put my fat32 usb thumbdrive and copy the file "openbsd.pbr" into it.
Before rebooting, I changed the timezone so that the time in OpenBSD don't go off by 8 hours (Malaysian time). Text in bold is mine.
$ sudo config -ef /bsd
OpenBSD 5.0 (GENERIC.MP) #63: Wed Aug 17 10:14:30 MDT 2011
$nbsp;$nbsp;$nbsp;$nbsp;deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Enter 'help' for information
ukc> timezone -480
timezone = -480, dst = 0
ukc> quit
Saving modified kernel.
How did I get the "-480"? Because Malaysian time is +8 to UTC. So why was it -480? 8 x 60 mins = 480 mins. Because we're 8 hours in advance from UTC, we need to deduct the timezone about 480 minutes. Yours might be different so do make sure of it. dst is Daylight Saving Time which we don't use so it's 0. Oh yeah, make sure visudo is done appropriately so that we can sudo.
3) Configuring Windows 7 x64 to dual-boot.
Ok remember when I didn't change the active partition on fdisk back then? It's because we're going to reboot and let Windows 7 as the default boot (not for long though). I'll be using W7's own boot manager to dual boot OpenBSD amd64 and Windows 7 x64. As before, it's best to refer to OpenBSD's page on multibooting because I do.
Inside Windows 7, I moved the openbsd.pbr from my thumbdrive to C:\. Then I opened cmd (MS command prompt) as Administrator. Inside it, I typed the following. Bold text is mine and TAKE NOTE! I copied this from OpenBSD's page because there are details I didn't save.
C:\Windows\system32> bcdedit /create /d "OpenBSD/i386" /application bootsector
The entry {0154a872-3d41-11de-bd67-a7060316bbb1} was successfully created.
C:\Windows\system32> bcdedit /set {0154a872-3d41-11de-bd67-a7060316bbb1} device boot
The operation completed successfully.
C:\Windows\system32> bcdedit /set {0154a872-3d41-11de-bd67-a7060316bbb1} path \openbsd.pbr
The operation completed successfully.
C:\Windows\system32> bcdedit /set {0154a872-3d41-11de-bd67-a7060316bbb1} device partition=c:
The operation completed successfully.
C:\Windows\system32> bcdedit /displayorder {0154a872-3d41-11de-bd67-7060316bbb1} /addlast
The operation completed successfully.
C:\Windows\system32>
See the text in underline? That thing depends on your system. I didn't save what's mine so I copied from OpenBSD's page. Yours will be different so do take note of that. Now the machine has been configured to dual-boot between OpenBSD 5.0 amd64 and Windows 7 x64. The Windows 7 boot manager can be tweak.
That's all. I might be updating this post to reflect any other things I forgot to mention etc. Enjoy and later!
Subscribe to:
Posts (Atom)
6.5 amd64: Modify existing certbot certificates.
Hi, It's been quite some time eh. As you can see, I still upgrade my OpenBSD system regularly but currently I do not have the time to ...
-
Firstly, yeah I changed the blog's title. As I'm using ONLY OpenBSD nowadays, I think it's appropriate to change the title as I...
-
Hi, First of all, now my K43U machine is using 1366x768 display and no more slow scrolling! Hurrah! I LOVE OPENBSD! At last! The display i...
-
Hi, It's been quite some time eh. As you can see, I still upgrade my OpenBSD system regularly but currently I do not have the time to ...
