How to set up an usb installation key & DVD for OS X Lino installer

Ref1 : http://www.minwt.com/?p=3113
Ref2 : http://www.minwt.com/?p=3291

==================
for USB ...
==================
Step1
點選 應用程式 / 磁碟工具程式.app
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟

Step2
接著點下隨身碟,切到【分割】頁籤,分割卷宗,再按下方的選項鈕。
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
Step3
選擇GUID
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
Step4
完成後再按右下的【套用】
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
Step5
接著按【分割】
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
Step6
這時候系統就會開始進行格式化了。
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
Step7
完成後,將USB磁碟的頁籤切到【回復】,將安裝光碟拖拉到來源的輸入框中,隨身碟拖拉到目標輸入框中。
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
Step8
都拖拉完成後,再按右下的【回復】
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
Step9
接著選擇【清除】
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
Step10
這時就會開始將安裝碟拷貝到隨身碟中啦!等它跑完就OK啦!
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
Step11
跑完後馬上來測試一下,重開機按住Option不放,哈!就會看到剛所製作好的安裝碟啦!對著它點一下。 
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
Step12
過一回~就會看到蘋果下方有個風火輪一直轉啦! 
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
Step13
哈!接下來就一直跟著安裝的步驟照作,就可重新安裝系統囉! 
梅問題-mac教學-將USB隨身碟變MACOSX的安裝碟
  哈!這樣USB隨身碟就不再只可儲存檔案啦!現在還可拿來重裝系統,這邊梅干建議各位,其實只要留7G就夠了,所以在剛分割中,可將USB隨身碟分割成二碟,另一個磁區就可拿來照常的儲存檔案,但這邊分割成二區,且又設為GUID時,剩於的空間就無法win平台下使用囉!有了這安裝碟後,以後安裝就比用光碟還來的快,但前提是不要選擇太慢的USB隨身碟,否則會等到睡著。





==================
for DVD ...
==================

Step1
下載完畢後,進到應用程式對著獅子按滑鼠右鍵選擇顯示套件內容
梅問題-將MAC OSX Lion安裝檔燒錄成光碟


Step2
進入後再雙響Contents資料夾。
梅問題-將MAC OSX Lion安裝檔燒錄成光碟
Step3
這時開啟磁碟工具,並將Contents/ShareSupport/InstallESD.dmg拖拉到磁碟工具的面板中。
梅問題-將MAC OSX Lion安裝檔燒錄成光碟
Step4
拉進去後,點一下InstallESD.dmg再按上方的燒錄
梅問題-將MAC OSX Lion安裝檔燒錄成光碟
Step5
接著放入DVD 4.7G的片子,再按燒錄
梅問題-將MAC OSX Lion安裝檔燒錄成光碟
Step6
這時就會開始進行燒錄囉!
梅問題-將MAC OSX Lion安裝檔燒錄成光碟
Step7
這樣就燒錄完成囉!這就一片MAC OSX Lion的安裝光碟。
梅問題-將MAC OSX Lion安裝檔燒錄成光碟
Step8
這時把光碟放入,來測試看看雙響光碟片,進入後再雙響安裝Mac OSX Lion .app的獅子圖示。
梅問題-將MAC OSX Lion安裝檔燒錄成光碟
Step9
接著就會開啟安裝畫面,點下方的繼續
梅問題-將MAC OSX Lion安裝檔燒錄成光碟
Step10
再按同意
梅問題-將MAC OSX Lion安裝檔燒錄成光碟
Step11
再按安裝
梅問題-將MAC OSX Lion安裝檔燒錄成光碟
Step12
哈~這樣就會開始進行安裝囉!
梅問題-將MAC OSX Lion安裝檔燒錄成光碟
  當下回換新碟碟,要整台重新安裝時,將此光碟放入,重啟電腦並按住C鍵,就可開始安裝囉!而它就是一片安裝光碟囉!

How to turn on automatic shutdown/reset in Windows XP

Ref : http://www.wretch.cc/blog/chenmoukimo/16823383


echo off
taskkill /T /FI "PID gt 0" /IM *
ipconfig /release *con*
tsshutdn 0 /delay:0 

How to set up desktop remote on WinXP for MAC using

Ref: http://www.online-tech-tips.com/windows-xp/how-to-setup-remote-desktop-on-windows-xp/


Today is computer tip day! If you have never used Remote Desktop, it is a really great way to connect to another PC (office, home, etc) remotely and get work done that you otherwise could not get done. I routinely use remote desktop to connect to servers at our office, connect to user’s computers to provide tech support, and to connect to my personal computer at home to access files.
In order to use Remote Desktop, there are a couple of things you need to understand. First off, remote desktop only works with Windows XP and Windows 2003. What I mean by this is that you can only connect INTO a Window XP or 2003 machine. You can use a Windows 98, ME, or 2000 to connect INTO a Windows XP or 2003 machine, but you cannot connect INTO a 98, ME or 2000 machine remotely. If you want to be able to connect to a Windows 2000 or earlier machine, you’ll have to buy commerical software.
Secondly, you need to make sure that you are logged in as a computer administrator on the machine in order to set it up for remote access. If you brought a computer from a store or got it straight from the manufacturer, the first user name you create is always an Administrator account.
An easy way to check whether or not you are an Administraor is to go to Start, Control Panel and then click on User Accounts. You’ll see your user name and it should have “Administrators” or “Computer Administrator” written next to it.
Thirdly, the administrator account on your machine must have a password. If you do not have to type in a password in order to access Windows when you start up your computer, then you do not have a password set up and Remote Desktop will not work. Remote desktop does not allow you to connect to a computer with a user name that does not have a password.
When you go to User Accounts, you will see an option to create a password for the account. Go ahead and do that.
Next, if the computer you are connecting to is running Windows XP SP2 (which it most likely will be), then you need to open the firewall to allow remote desktop connections. To do this, go to StartControl Panel, Windows Firewall and click on theExceptions tab.
Make sure that the Remote Desktop checkbox is checked. Don’t worry about how my screen looks, it’s part of a corporate network. You should have a lot less entries and one of them should be Remote Desktop. Check it and then click OK.
The last thing that needs to be done in order for Remote Desktop to work correctly is to tell Windows that we want to allow users to connect. So far we’ve just fulfilled the requirements, but now we have to actually allow remote desktop connections to this computer.
Go to StartControl Panel, and click on System. Click on the Remote tab and make sure that the “Allows users to connect remotely to this computer” is checked.
And that’s it! Your computer is now setup to connect to! First try connecting to the computer while on the same network…as in if you are at home, try connecting to the computer from another computer on your home network. In order to connect, go to the other computer and click on Start, All programs, Accessories, Communications, andRemote Desktop Connection.
In the dialog box, you can type in the IP address or the name of the computer. The best way to connect is to type in the IP address of the computer. In order to get the IP address of the computer you want to connect to, go to the computer and click on Start, Run and type in CMD.
In the black command window, type in the word “ipconfig” without the quotes as shown below and press Enter.
You’ll see your IP address listed along with some other info, but you don’t need to worry about that. Write down that IP address (192.x.x.x or something similar) and type that number exactly into the remote desktop text box on the other computer (the computer you are connecting from).
Click Connect and you should get a login screen pop up, which means you have successfully connected to the other computer. You can now enter the Computer Administrator user name and password.
If you get an error saying that computer cannot accept new connections, etc. that means something was not configured correctly. Remember you need to give the administrator account a password, open the port in the firewall, and check the allow remote connections checkbox in the System properties. All of these three things you need to do on the computer you want to connect TO.
Once you are able to connect from within the same network, now you can try to connect from the outside. So if you want to connect to your home computer from the office, you can do that, but you’ll have to do a few extra things.
First, you have to get your public IP Address (not the 192.168.x.x number) and you can do this by going to the computer you want to connect in to and navigating to the web site http://www.whatismyip.com/ and this will give you your public ip address. This is the address that can be used from anywhere in the world to connect to your specific location and is unique.
The second thing you have to do is open the port in your router (unless you’re connecting your cable modem directly into your computer) and forward that port to the computer you want to connect to. Here’s how you would do this on a Netgear router (as I have that) and is pretty much the same for other routers. Most manufacturer’s web sites have an article on how to configure their particular router for remote desktop since it’s very common.
You’ll need to log into your router by typing it’s IP address into the IE address bar. You can figure out the IP address of your router by going to any computer on your network (that you want to connect into) and opening the command prompt like we did above and typing ipconfig again. In addition to the IP Address field, you’ll also see Default Gateway, this is your router.
Type that address into your IE address bar as follows and press Enter:
You’ll most likely be prompted for a user name and password. Usually, you can find this in the documetation or on the under side of the router itself. For my Netgear router, the username as “admin” (lowercase) and the password was “password”.
Once you’re in, you should see an option called “Port Fowarding/Port Triggering” or something very similiar. I knew Netopia calls these “Pinholes” and on Linksys it might be called a “Service”.
Once you’re on the Port page, choose Port Triggering (if you see Remote Desktop in the list of services, you can choose that instead, but it may not be there). Now we’ll add the service for Remote Desktop. Click Add Service.
The next part may look hard, but it’s not really too bad once you understand what everything does. The service name can be anything, so type in “RemoteDesktop“. For the Service User, you can choose Any or Single Address. We want to choose single address because we want to connect into just one computer. Type in the IP address of your computer into the space provided. Again, that is what we already got earlier from the ipconfig command.
For the service type, choose TCP protocol. Now for “Triggering Port, Starting Port, and Ending Port” put in 3389. Port 3389 is the port Windows uses to connect using remote desktop.
Click Apply and you’re done! You should now be able to use your public IP address (type this into the “Computer” textbox in the Remote Desktop software) to connect through your router to your computer!
Please let me know if something is wrong or if it did not work for you! Thanks!

tw.archive.ubuntu.com 掛站處理方法


最近tw.archive.ubuntu.com有時會連不上,因此apt-get常常無法抓完套件!

解決之法就是改用其他替代網站!
cd /etc/apt
sudo cp sources.list sources.lis.bak
sudo kate sources.lis
將tw.archive.ubuntu.com全部取代為mirror.nttu.edu.tw
存檔後繼續如下指令
sudo apt-get update

就這樣囉!

How to format fat32 on FreeBSD

# dd if=/dev/zero of=/dev/da0 bs=2m(this zeros the whole drive. if you're worried about wearing it out, just append count=1)
# fdisk -i /dev/da0change the partition type to 12, & accept the rest of the defaults that it hands you. you will get the "fdisk: Class not found." error. you can safely ignore it
# newfs_msdos -F32 /dev/da0s1

[轉載]【FreeBSD】Dmidecode-查詢硬體資訊


【FreeBSD】Dmidecode-查詢硬體資訊


前言

[dmidecode] 為一套可輕鬆顯示您目前主機的各項硬體資訊套件,它查詢在您主機 BIOS 當中 SMBIOS/DMI 資訊查達到查詢各項硬體資訊的目的,例如您可查詢 CPU 類型、Cache、Memory Module、Slots、I/O Ports...等。 (請尊重 weithenn 的辛勞!!)
Dmidecode 支援作業系統類型如下:
  • FreeBSD i386, x86-64 (請尊重 weithenn 的辛勞!!)
  • NetBSD i386, x86-64
  • OpenBSD i386
  • BeOS i386
  • Cygwin i386 (請尊重 weithenn 的辛勞!!)
  • Linux i386, x86-64, ia64
  • Solaris x86


實作環境

  • FreeBSD 5.4-RELEASE
  • dmidecode-2.9 (請尊重 weithenn 的辛勞!!)

安裝及設定

步驟1.安裝 dmidecode 套件

切換至 Ports Tree 路徑安裝 dmidecode 套件 (請尊重 weithenn 的辛勞!!)
#cd /usr/ports/sysutils/dmidecode //切換到安裝路徑
#make install clean //安裝套件並清除安裝中不必要的檔案

步驟2.開始使用 dmidecode

安裝完成後即可開始使用,詳細參數可參考 [FreeBSD Man Pages - dmidecode]
  • -t (--type) Type_Number or Keyword: 參數加上硬體資訊號碼或關鍵字進行查詢 (ex. 4 = CPU、39 = Power Supply、bios、memory ...etc)
  • -s (--string) Keyword: 參數加上關鍵字進行查詢 (ex. bios-vendor、baseboard-serial-number ...etc)
  • 顯示最詳細及完整的 BIOS 硬體資訊 (請尊重 weithenn 的辛勞!!)
#dmidecode
  • 搭配 Type Number 查詢指定的硬體資訊 (請尊重 weithenn 的辛勞!!)
#dmidecode -t 4 //查詢 CPU 資訊
#dmidecode -t 39 //查詢 Power Supply 資訊
#dmidecode -t 4,39 //查詢 CPU 及 Power Supply 資訊
  • 搭配關鍵字查詢指定的硬體資訊 (請尊重 weithenn 的辛勞!!)
#dmidecode -t //顯示所有可用關鍵字
#dmidecode -t processor //查詢 CPU 資訊
#dmidecode -t memory //查詢 Memory 資訊
#dmidecode -t processor memory //查詢 CPU 及 Memory 資訊
  • 搭配關鍵字查詢指定的硬體資訊 (請尊重 weithenn 的辛勞!!)
#dmidecode -s //顯示所有可用關鍵字
#dmidecode -s bios-vendor //查詢 BIOS 製造商
#dmidecode -s baseboard-serial-number //查詢主機版序號 (Serial Number)

補充1:硬體資訊號碼及關鍵字

詳細參數可參考 [FreeBSD Man Pages - dmidecode]
硬體資訊號碼如下:
  • 0: BIOS
  • 1: System (請尊重 weithenn 的辛勞!!)
  • 2: Base Board
  • 3: Chassis
  • 4: Processor
  • 5: Memory Controller
  • 6: Memory Module
  • 7: Cache
  • 8: Port Connector (請尊重 weithenn 的辛勞!!)
  • 9: System Slots
  • 10: On Board Devices
  • 11: OEM Strings
  • 12: System Configuration Options
  • 13: BIOS Language
  • 14: Group Associations
  • 15: System Event Log
  • 16: Physical Memory Array
  • 17: Memory Device
  • 18: 32-bit Memory Error
  • 19: Memory Array Mapped Address
  • 20: Memory Device Mapped Address
  • 21: Built-in Pointing Device
  • 22: Portable Battery (請尊重 weithenn 的辛勞!!)
  • 23: System Reset
  • 24: Hardware Security
  • 25: System Power Controls
  • 26: Voltage Probe
  • 27: Cooling Device
  • 28: Temperature Probe
  • 29: Electrical Current Probe
  • 30: Out-of-band Remote Access
  • 31: Boot Integrity Services
  • 32: System Boot
  • 33: 64-bit Memory Error
  • 34: Management Device (請尊重 weithenn 的辛勞!!)
  • 35: Management Device Component
  • 36: Management Device Threshold Data
  • 37: Memory Channel
  • 38: IPMI Device
  • 39: Power Supply
硬體資訊關鍵字如下: (顯示關鍵字輸出硬體資訊等於對應的 Type Number)
  • bios: 0, 13
  • system: 1, 12, 15, 23, 32
  • baseboard: 2, 10 (請尊重 weithenn 的辛勞!!)
  • chassis: 3
  • processor: 4
  • memory: 5, 6, 16, 17
  • cache: 7 (請尊重 weithenn 的辛勞!!)
  • connector: 8
  • slot: 9

補充2:硬體 序號/版本/製造商 關鍵字

詳細參數可參考 [FreeBSD Man Pages - dmidecode]
  • BIOS
    • bios-vendor: 查詢 BIOS 製造商
    • bios-version: 查詢 BIOS 版本 (請尊重 weithenn 的辛勞!!)
    • bios-release-date: 查詢 BIOS Release 日期
  • System
    • system-manufacturer: 查詢系統製造商
    • system-product-name: 查詢系統產品名稱
    • system-version: 查詢系統版本
    • system-serial-number: 查詢系統序號 (Serial Number)
    • system-uuid: 查詢系統 UUID
  • MontherBoard (請尊重 weithenn 的辛勞!!)
    • baseboard-manufacturer: 查詢主機板製造商
    • baseboard-product-name: 查詢主機板產品名稱
    • baseboard-version: 查詢主機板版本 (請尊重 weithenn 的辛勞!!)
    • baseboard-serial-number: 查詢主機板序號 (Serial Number)
    • baseboard-asset-tag: 查詢主機板資產標籤
  • Chassis (請尊重 weithenn 的辛勞!!)
    • chassis-manufacturer: 查詢基座製造商
    • chassis-type: 查詢基座類型
    • chassis-version: 查詢基座版本 (請尊重 weithenn 的辛勞!!)
    • chassis-serial-number: 查詢基座序號 (Serial Number)
    • chassis-asset-tag: 查詢基座資產標籤
  • CPU (請尊重 weithenn 的辛勞!!)
    • processor-family: 查詢 CPU 種類/系列
    • processor-manufacturer: 查詢 CPU 製造商
    • processor-version: 查詢 CPU 版本/速度
    • processor-frequency: 查詢 CPU 處理時脈 (請尊重 weithenn 的辛勞!!)

參考

[dmidecode]
[FreeBSD Man Pages - dmidecode]
[dmidecode FreeBSD]
[Dmidecode - Linux Wiki]

虹光大成就-密教灌頂(一)