瀏覽模式: 普通 | 列表

今天遇到了幾個討厭的問題

1. 硬體時間跟系統時間

系統時間老是比硬體時間過的要快,找了幾篇文章後發現,原因在於CentOS把bios 時間當成UTC,再依據你的時區來加減時間。

所以我們要修改設定讓他不要再把bios 的時間當成UTC了。

ZONE="Asia/Taipei"
UTC=false
ARC=false

把UTC=true => 改成 UTC=false

2. 詭異的acpi (全稱應該是Advanced Configuration and Power Interface)

不知道為什麼當我這新裝好的Server 跑到

SMP alternatives: switching to SMP code
Booting processor 1/2 APIC 0x1

就會稍微停頓一下然後就重開了,整個拿他沒辦法。

再來拜了一下Google 大神,終於找到解決方法了。

那就是在kernel option 加上一個 acpi=off,關掉這詭異的acpi。

結果真的順暢的開機了,但是原因我仍然是不清楚...或許只是個bug吧,也不知道是主機板的bug還是os的bug  = =

最後發上兩個仙丹,以備不時之需。

如果Linux 順利無法開機進入系統的話 (非硬體問題),不妨先使用一下小萬靈丹acpi=off noapic,兩個選項一起用。

如果小萬靈丹用了還是無解的話,不妨再使用一下大萬靈丹 vga=normal ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off single

如果還是不行的話...另求高明吧...哈哈哈

標籤: Linux

CentOS 5 Minimal (最小化) Howto

1. 取消無用的服務

chkconfig mcstrans off
chkconfig netfs off
chkconfig ip6tables off
chkconfig haldaemon off
chkconfig messagebus off
chkconfig lvm2-monitor off

haldaemon 及 messagebus 如果有要使用 plug & play device,記得要打開。

vi /etc/inittab

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
#3:2345:respawn:/sbin/mingetty tty3
#4:2345:respawn:/sbin/mingetty tty4
#5:2345:respawn:/sbin/mingetty tty5
#6:2345:respawn:/sbin/mingetty tty6

不需要那麼多個終端。

2. 更新系統

yum update
如果有舊的kernel則移除舊的kernel
cd /boot
看套件有沒有把舊核心映像檔移除,沒有的話可手動移除
vi /grub/menu.lst
看grub 的設定有沒有問題。

搞定!

標籤: CentOS Linux

Sun xVM VirtualBox 1.6.4 Release

VirtualBox 1.6.4 (released 2008-07-30)

This is a maintenance release. The following items were fixed and/or added:

  • AMD-V, VT-x: stability fixes
  • Shared Folders: fixed host crash (Solaris host only, bugs #1336, #1646)
  • Shared Folders: fixed BSOD when debugging with Visual Studio (bug #1627)
  • Shared Folders: fixed BSOD when compiling on a shared folder (bug #1683)
  • Shared Folders: several fixes/stability improvements
  • SATA: fixed a race that could cause an occasional Windows guest system hang
  • SATA: fixed spurious BIOS log messages
  • Networking: fixed NIC tracing with NAT interfaces (bug #1790)
  • USB: fixed crash under certain conditions when unplugging a USB device (bug #1295)
  • Settings: fixed bug when converting 1.5.x settings
  • RDP: fixed enabling the RDP server during runtime
  • RDP: properly detect the rdesktop 1.6.0 RDP client
  • RDP: fixed RDP crash (bug #1521)
  • RDP: updated modified rdesktop client to version 1.6.0
  • GUI: NLS improvements
  • BIOS: added SMBIOS header to make Solaris and Vista recognize the DMI data
  • ACPI: properly hide a disabled floppy controller
  • VMM: small fixes to protected mode without paging
  • VMDK: fixed handling of .vmdk images without UUIDs
  • Windows hosts: fixed driver parameter validation issue in VBoxDrv.sys that could allow an attacker on the host to crash the system
  • Windows hosts: installer now contains web service examples mentioned in the manual
  • Linux hosts: properly deregister the Linux kernel module before uninstalling a Linux deb/rpm package
  • Linux hosts: kernel module works now with Linux 2.6.27
  • Linux hosts: fixed a typo in the vboxnet setup script for host network interfaces (bug #1714)
  • Linux hosts: fixed usage of tar in installer (bug #1767)
  • Linux hosts: fixed long guest shutdown time when serial port is enabled
  • Solaris hosts: refuse to install in Sun xVM hypervisor dom0
  • Solaris hosts: accept Solaris raw disks when for raw disk access
  • Windows additions: made installation of shared folders more robust
  • Windows additions: improved installation
  • Linux additions: accept every user-defined guest video mode in /etc/X11/xorg.conf
  • Linux additions: fixed startup order for recent Linux distributions (e.g. openSUSE 11)

VirtualBox 1.6.2 (released 2008-06-06)

This is a maintenance release. The following items were fixed and/or added:

  • GUI: fixed a bug which prevented to add more than one SATA drive from the GUI
  • GUI: fixed a regression introduced in 1.6.0: the fullscreen mode was left on every guest video mode switch
  • GUI: fixed several minor issues
  • Networking: fixed a host interface networking regression introduced in 1.6.0
  • VMM: fixed starting of VMs with AMD-V enabled
  • VMM: massive performance enhancements for AMD-V
  • VMM: stability improvements for AMD-V on Windows hosts
  • VMM: correctly detect AMD CPUs with erratum 170 (AMD-V)
  • VMM: detect inconsistent timestamp counters on certain AMD Phenom CPUs (Windows host only)
  • VMM: fixed KVM check (Linux hosts only) XPCOM: fixed several races
  • VMM: fixed a regression introduced in 1.6.0: Windows stuck during installation
  • SATA: improved performance with Vista guests
  • SATA: fixed statistics counter
  • Shared Folders: several fixes (iTunes download, speed up browsing)
  • ATA/IDE: fixed boot from CDROM if a medium was added while the boot menu was active
  • Networking: provide an Intel PRO/1000 T Server (82543GC) network device emulation which is recognized by Windows XP guests
  • Networking: fixes for the E1000 emulation (don't crash if not attached, fixed a bug in the statistics counter implementation)
  • NAT: don't crash if the guest sent a DHCPRELEASE message with an invalid IP address
  • NAT: fixed ARP reply for the NAT gateway and for the NAT name server if the guest IP range was changed
  • Internal Networking: fixed shutdown if more than two VMs are connected to the same network
  • BIOS: allow to change the DMI informatiton (see chapter 9.13, Con'guring the BIOS DMI information, page 125)
  • RTC: fixed UIP emulation to prevent jumping of time in Solaris guests
  • Windows host: VirtualBox installation directory corrected for 64 bits Windows
  • Windows host: fixed VBoxVRDP.exe symlink
  • Windows host: solved locking problems in raw partition VMDK support
  • Windows host: fixed stability during high system load (page fault in KeQueryActiveProcessors)
  • MacOS X host: fixed crashes under certain conditions
  • Shared Folders: limited users without admin rights now also can use Shared Folders on Windows guests
  • Linux hosts: fixed default runlevel for the kernel module helper script
  • Solaris hosts: enabled support for VT-x and AMD-V
  • Solaris hosts: dynamic loading of libdlpi fixes a problem where Solaris 10 was not able to start a VM
  • Linux additions: fixed runlevels for kernel module helper scripts
  • Linux additions: compatibility fixes with Linux 2.6.26
  • Linux additions: fixed occasional guest kernel crash during unload of the vboxadd guest kernel module

iPod 當機 - 解除方式

今天騎著機車邊聽 iPod ,結果在路上iPod 就當機了。

臨時又無法上網查如何解除當機的情況,所以一回家馬上Google 了一下。

解決方式如下:

1. 撥動 Hold 鍵開和關。(滑動 Hold 鍵到閉鎖位置,然後再一次移到開鎖位置。)

2. 先按著選擇按鈕(中間的按鍵),同時再按著 Menu 鍵,大約 6 到 10 秒,直到蘋果標誌出現。 你可能需要重複這一個步驟。

希望下次當機的時候不會再忘了怎麼去解除了。

Sun xVM VirtualBox 1.6 Release

昇陽收購Virtualbox 後第一次的release. 改名叫作  Sun xVM VirtualBox 1.6

換了Logo 也正式支援Solaris & MacOS X HOST .

This version is a major update. The following major new features were added:

  • Solaris and Mac OS X host support
  • Seamless windowing for Linux and Solaris guests
  • Guest Additions for Solaris
  • A webservice API
  • SATA hard disk (AHCI) controller
  • Experimental Physical Address Extension (PAE) support

詳情請見 http://www.virtualbox.org/wiki/Changelog

愚人節快樂

 不論你是因為看到什麼而點進來這個頁面的~

我都要祝你愚人節快樂~

也謝謝你替我的Blog帶來流量~

如果可以的話~

歡迎你在下方留下你的足跡唷~

轉貼-F2Blog Hack之SEO篇-分類和標籤頁標題

 轉貼 http://www.albertsong.com/read-16.html

當點擊分類或者標籤時,F2Blog會列出該分類或標籤下的所有文章,但是大家抬頭看一看,會發現標題中並沒有該分類的名稱或標籤的名稱,這對搜索引擎評價網站內容有不利的影響。可以通過下面的方法修改。
打開includeloadbar.inc.php



//留言本和评论时装载cache.php


這句前面添加如下內容:
//
生成分類,標籤標題
$job=(empty($_REQUEST['job']))?"":$_REQUEST['job'];
$_POST['seekname']=(empty($_POST['seekname']))?"":$_POST['seekname'];
$_GET['seekname']=(empty($_GET['seekname']))?"":$_GET['seekname'];
$seekname=($_POST['seekname']!="")?$_POST['seekname']:$_GET['seekname'];
switch ($job){
    case "category":
        $sql="select name from ".$DBPrefix."categories where id='$seekname'";
        if ($arr_array=$DMC->fetchArray($DMC->query($sql))){
            $borwseTitle=$arr_array['name'];
        }
        break;
    case "tags":
            $borwseTitle=$seekname;
        break;
    default:
        break;
}
保存檔,上傳到伺服器即可。

可以看出,F2BlogSEO的支持還不夠,希望1.3版能有改善。

標籤: SEO, F2Blog

政治抱怨 ~ Orz

用『只許周官放火,不許百姓點燈』、『做賊的喊抓賊』,來形容現在的民進黨實在是再恰當不過了。

[閱讀全文]

[轉帖] 職場上的金科玉律─骨頭公司。

下面的故事非常傳神.不管你是自己創業擔任經營者或是在幫人打工。
試問你自己是在哪一個階段
----------------------------------------------------------------------------------------------
一、目標

一條獵狗將兔子趕出了窩,一直追趕它,追了很久仍沒有捉到。
牧羊犬看到此種情景,譏笑獵狗說:「那隻兔子身材比你小卻跑的比你快。」
獵狗回答說:「你不知道我們兩個跑的目的是完全不同的 !我僅僅為了一頓飯而跑,他卻是為了性命而跑呀!」

[閱讀全文]

標籤: 職場