近來在試 Google Web Toolkit (GWT),為了這個要裝 Tomcat 。數天前說過,Ubuntu 可以 apt-get Tomcat 。但後來發現,那個 Tomcat 跑不到 GWT Sample 的 war 。
後來,到 Apache 官網下載 Tomcat 去跑,跑 war 卻 ok 。
起初,我還以為 tomcat 是需要 Apache 才能跑。原來這兩個東東可以是完全沒有關係。
Ubuntu apt-get 提供了 tomcat 。但奇怪的是, Ubuntu 的 wiki page 卻叫你去官網下載。另外, Ubuntu tomcat 在安裝時,會告訴你依靠 gcj ,這點也叫人不安。
不過,其實使用 Ubuntu-tomcat ,其實不是想像中那麼可怕。
https://help.ubuntu.com/9.04/serverguide/C/tomcat.html
要注意的是,只要修改 xml 檔,就能使 tomcat 使用 sun-java 。
error message
libstdc++.so.5 cannot open shared object file no such file or directory
missing requirement
libstdc++5
sudo apt-get install flashplugin-nonfree
ref: http://www.cyberciti.biz/faq/ubuntu-linux-how-to-install-flash-player-for-firefox/
Youtube小測之一:
比起我當初在8.10情況暢順得多。CPU在800MHz程度下約80%。
Youtube小測之二:
這是800MHz的狀況,速度慢得很可憐。雖然在1.87GHz時情況會有點改善,但不久不知為何電腦會自動跳回800MHz,可能是和過熱有關?
另,就像這個網頁放上兩個Youtube沒有play,甚至沒有顯示這個網頁tab也好,也可以使我的電腦耗上20%的CPU,奇怪。
Ubuntu 9.04, installed with Chinese UI. The Ubuntu is installed in the whole disk space.
luzi82-laptop description: Notebook product: 2668HB6 vendor: IBM version: ThinkPad T43 serial: L3KDHHT width: 32 bits capabilities: smbios-2.33 dmi-2.33 configuration: administrator_password=disabled boot=normal chassis=notebook frontpanel_password=unknown keyboard_password=disabled power-on_password=disabled uuid=FF256E01-472B-11CB-9DFC-EA1A310CB60C *-core description: Motherboard product: 2668HB6 vendor: IBM physical id: 0 version: Not Available serial: VJ0AG57X2AD *-firmware description: BIOS vendor: IBM physical id: 0 version: 1YET65WW (1.29 ) (08/21/2006) size: 128KiB capacity: 960KiB capabilities: pci pcmcia pnp apm upgrade shadowing escd cdboot bootselect edd int13floppy720 int5printscreen int9keyboard int14serial int17printer int10video acpi usb biosbootspecification *-cpu description: CPU product: Intel(R) Pentium(R) M processor 1.86GHz vendor: Intel Corp. physical id: 6 bus info: cpu@0 version: 6.13.8 slot: None size: 800MHz capacity: 1866MHz width: 32 bits clock: 533MHz capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx up bts est tm2 cpufreq *-cache:0 description: L1 cache physical id: a slot: Internal L1 Cache size: 32KiB capacity: 32KiB capabilities: synchronous internal write-back data *-cache:1 description: L2 cache physical id: b slot: Internal L2 Cache size: 2MiB capacity: 2MiB capabilities: burst internal write-back unified *-memory description: System Memory physical id: 2c slot: System board or motherboard size: 2560MiB *-bank:0 description: SODIMM DDR Synchronous physical id: 0 slot: DIMM 1 size: 512MiB width: 64 bits *-bank:1 description: SODIMM DDR Synchronous physical id: 1 slot: DIMM 2 size: 2GiB width: 64 bits *-pci description: Host bridge product: Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller vendor: Intel Corporation physical id: 100 bus info: pci@0000:00:00.0 version: 03 width: 32 bits clock: 33MHz *-pci:0 description: PCI bridge product: Mobile 915GM/PM Express PCI Express Root Port vendor: Intel Corporation physical id: 1 bus info: pci@0000:00:01.0 version: 03 width: 32 bits clock: 33MHz capabilities: pci pm msi pciexpress bus_master cap_list configuration: driver=pcieport-driver *-display UNCLAIMED description: VGA compatible controller product: M22 [Mobility Radeon X300] vendor: ATI Technologies Inc physical id: 0 bus info: pci@0000:01:00.0 version: 00 width: 32 bits clock: 33MHz capabilities: pm pciexpress msi bus_master cap_list configuration: latency=0 *-pci:1 description: PCI bridge product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 vendor: Intel Corporation physical id: 1c bus info: pci@0000:00:1c.0 version: 03 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm bus_master cap_list configuration: driver=pcieport-driver *-network description: Ethernet interface product: NetXtreme BCM5751M Gigabit Ethernet PCI Express vendor: Broadcom Corporation physical id: 0 bus info: pci@0000:02:00.0 logical name: eth0 version: 11 serial: 00:11:25:d2:d6:7f capacity: 1GB/s width: 64 bits clock: 33MHz capabilities: pm vpd msi pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.94 firmware=5751m-v3.40a latency=0 link=no module=tg3 multicast=yes port=twisted pair *-pci:2 description: PCI bridge product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 3 vendor: Intel Corporation physical id: 1c.2 bus info: pci@0000:00:1c.2 version: 03 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm bus_master cap_list configuration: driver=pcieport-driver *-usb:0 description: USB Controller product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 vendor: Intel Corporation physical id: 1d bus info: pci@0000:00:1d.0 version: 03 width: 32 bits clock: 33MHz capabilities: bus_master configuration: driver=uhci_hcd latency=0 module=uhci_hcd *-usb:1 description: USB Controller product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 vendor: Intel Corporation physical id: 1d.1 bus info: pci@0000:00:1d.1 version: 03 width: 32 bits clock: 33MHz capabilities: bus_master configuration: driver=uhci_hcd latency=0 module=uhci_hcd *-usb:2 description: USB Controller product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 vendor: Intel Corporation physical id: 1d.2 bus info: pci@0000:00:1d.2 version: 03 width: 32 bits clock: 33MHz capabilities: bus_master configuration: driver=uhci_hcd latency=0 module=uhci_hcd *-usb:3 description: USB Controller product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 vendor: Intel Corporation physical id: 1d.3 bus info: pci@0000:00:1d.3 version: 03 width: 32 bits clock: 33MHz capabilities: bus_master configuration: driver=uhci_hcd latency=0 module=uhci_hcd *-usb:4 description: USB Controller product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller vendor: Intel Corporation physical id: 1d.7 bus info: pci@0000:00:1d.7 version: 03 width: 32 bits clock: 33MHz capabilities: pm debug bus_master cap_list configuration: driver=ehci_hcd latency=0 module=ehci_hcd *-pci:3 description: PCI bridge product: 82801 Mobile PCI Bridge vendor: Intel Corporation physical id: 1e bus info: pci@0000:00:1e.0 version: d3 width: 32 bits clock: 33MHz capabilities: pci bus_master cap_list *-pcmcia description: CardBus bridge product: RL5c476 II vendor: Ricoh Co Ltd physical id: 0 bus info: pci@0000:0b:00.0 version: 8d width: 64 bits clock: 33MHz capabilities: pcmcia bus_master cap_list configuration: driver=yenta_cardbus latency=176 maxlatency=5 mingnt=128 module=yenta_socket resources: iomemory:b00d0c0b0-b00d0c0af *-network description: Wireless interface product: PRO/Wireless 2200BG [Calexico2] Network Connection vendor: Intel Corporation physical id: 2 bus info: pci@0000:0b:02.0 logical name: eth1 version: 05 serial: 00:12:f0:ca:64:cf width: 32 bits clock: 33MHz capabilities: pm bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=ipw2200 driverversion=1.2.2kmprq firmware=ABG:9.0.2.6 (Mar 22 2005) ip=192.168.1.17 latency=64 link=yes maxlatency=24 mingnt=3 module=ipw2200 multicast=yes wireless=IEEE 802.11g *-multimedia description: Multimedia audio controller product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller vendor: Intel Corporation physical id: 1e.2 bus info: pci@0000:00:1e.2 version: 03 width: 32 bits clock: 33MHz capabilities: pm bus_master cap_list configuration: driver=Intel ICH latency=0 module=snd_intel8x0 *-communication UNCLAIMED description: Modem product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller vendor: Intel Corporation physical id: 1e.3 bus info: pci@0000:00:1e.3 version: 03 width: 32 bits clock: 33MHz capabilities: pm cap_list configuration: latency=0 *-isa description: ISA bridge product: 82801FBM (ICH6M) LPC Interface Bridge vendor: Intel Corporation physical id: 1f bus info: pci@0000:00:1f.0 version: 03 width: 32 bits clock: 33MHz capabilities: isa bus_master configuration: latency=0 *-ide description: IDE interface product: 82801FBM (ICH6M) SATA Controller vendor: Intel Corporation physical id: 1f.2 bus info: pci@0000:00:1f.2 logical name: scsi0 logical name: scsi1 version: 03 width: 32 bits clock: 66MHz capabilities: ide pm bus_master cap_list emulated configuration: driver=ata_piix latency=0 *-disk description: ATA Disk product: Hitachi HTS54161 vendor: Hitachi physical id: 0 bus info: scsi@0:0.0.0 logical name: /dev/sda version: SB4O serial: SB144GGRKJ5VDV size: 149GiB (160GB) capabilities: partitioned partitioned:dos configuration: ansiversion=5 signature=cccdcccd *-volume:0 description: EXT3 volume vendor: Linux physical id: 1 bus info: scsi@0:0.0.0,1 logical name: /dev/sda1 logical name: / version: 1.0 serial: d9651c70-cf9d-4160-91a0-4bf0ecebff0b size: 143GiB capacity: 143GiB capabilities: primary bootable journaled extended_attributes large_files ext3 ext2 initialized configuration: created=2009-08-01 23:47:12 filesystem=ext3 modified=2009-08-01 16:35:05 mount.fstype=ext3 mount.options=rw,relatime,errors=remount-ro,data=ordered mounted=2009-08-02 08:05:32 state=mounted *-volume:1 description: Extended partition physical id: 2 bus info: scsi@0:0.0.0,2 logical name: /dev/sda2 size: 5891MiB capacity: 5891MiB capabilities: primary extended partitioned partitioned:extended *-logicalvolume description: Linux swap / Solaris partition physical id: 5 logical name: /dev/sda5 capacity: 5890MiB capabilities: nofs *-cdrom description: DVD reader product: UJDA765 DVD/CDRW vendor: MATSHITA physical id: 1 bus info: scsi@1:0.0.0 logical name: /dev/cdrom logical name: /dev/cdrw logical name: /dev/dvd logical name: /dev/scd0 logical name: /dev/sr0 version: 1.02 capabilities: removable audio cd-r cd-rw dvd configuration: ansiversion=5 status=nodisc *-serial UNCLAIMED description: SMBus product: 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller vendor: Intel Corporation physical id: 1f.3 bus info: pci@0000:00:1f.3 version: 03 width: 32 bits clock: 33MHz configuration: latency=0 *-network DISABLED description: Ethernet interface physical id: 1 logical name: pan0 serial: ca:c2:50:26:e3:b4 capabilities: ethernet physical configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A link=yes multicast=yes