顯示具有 OS 標籤的文章。 顯示所有文章
顯示具有 OS 標籤的文章。 顯示所有文章

2011年10月18日 星期二

如何將Dropbox以服務型式啟動(免登入運行) Start Dropbox as a Windows Service

前置作業:安裝Dropbox, 取消開機時自動啟動 ( 一般型 與 服務型 不能同時運行。)

1. 安裝 Windows Server 2003 Resource Kit Tools,內含將Dropbox 服務化的程式
Download Details - Microsoft Download Center - Windows Server 2003 Resource Kit Tools
https://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17657
2. 在命令提示字元下執行(安裝自訂新服務)

C:\Program Files (x86)\Windows Resource Kits\Tools>instsrv Dropbox "c:\Program Files (x86)\Windows Resource Kits\Tools\srvany.exe"

3. 執行 regedit.exe 登錄檔編輯程式:
  a. 尋找機碼 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dropbox
  b. 新增機碼 Parameters
  c. 新增字串值(type REG_SZ) Application
  d. 修改字串值Application之值為 「Dropbox.exe 執行檔之路徑」

4. 至服務管理員, 在登入分頁中, 選擇帳號登入的方式執行,登入帳號為安裝Dropbox所用之帳號,並輸入其密碼,參考資料中,舊版Dropbox可以免帳號啟動,新版的Dropbox 似乎不行。

5. 啟動Dropbox 服務,以後Dropbox會在開機時,自動以服務型式啟動。

p.s. 另一種付費方案解:
Run any Application as a Windows Service | AlwaysUp | Run/Start your exe/program at boot as a Windows 2008/7/Vista/2003/XP Service | Free Trial
http://www.coretechnologies.com/products/AlwaysUp/

Dropbox 延伸應用:網頁服務器
Using Dropbox as an automatic and free Web Publishing solution | Bram.us
http://www.bram.us/2008/12/15/using-dropbox-as-a-free-web-publishing-solution/

Reference:
[1] Installing Dropbox as a service on Windows Server 2003, 2008 (x64)
http://blog.dreamfactory.se/2011/01/20/dropbox-as-a-service/
[2] Download Details - Microsoft Download Center - Windows Server 2003 Resource Kit Tools
https://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17657
[3] TipsAndTricks/WindowsService - Dropbox Wiki
http://wiki.dropbox.com/TipsAndTricks/WindowsService
[4] How to run Dropbox as a Windows 7/2008/Vista/2003/XP Service | AlwaysUp | Start Dropbox at Boot - No need to login
http://www.coretechnologies.com/products/AlwaysUp/Apps/RunDropboxAsAService.html
[5] Dropbox On Windows Home Server (as a service) « Dropbox Forums
http://forums.dropbox.com/topic.php?id=2828&replies=11
[6] windows home server - How to configure Dropbox as a service - Super User
http://superuser.com/questions/41992/how-to-configure-dropbox-as-a-service

2011年10月12日 星期三

如何在Ubuntu系統上之Virtualbox 使用USB裝置

For Natty Narwhal (  Ubuntu 11.04 )

Add yourself to the user group vboxusers, then log out and back in, to make use of available USB devices. To do this via the graphical interface, click System Settings/Users and Groups/Manage Groups. 

Reference:
[1] Mount USB Devices in Virtualbox with Ubuntu - How-To Geek
http://www.howtogeek.com/howto/31726/mount-usb-devices-in-virtualbox-with-ubuntu/
[2] VirtualBox/USB - Community Ubuntu Documentation
https://help.ubuntu.com/community/VirtualBox/USB

2010年1月28日 星期四

該記憶體不能為read或written 的解決方法

到「C:\WINDOWS\Prefetch\」資料夾中,把裡面的檔案都刪除
or
執行 輸入cmd Enter鍵在命令提示字元下輸入
for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1

來源網址:
出現「該記憶體不能為"written"」錯誤訊息的簡單解法 | 電腦玩物
系統 - 該記憶體不能為read或written的解決方案 - 史萊姆論壇

2009年8月11日 星期二

如何變更MAC位址

如果同一網域有複數的網卡MAC位址相同常會引起網路問題,
因此,變更位址須特別注意此點。
書上通常會說,MAC位址是唯一的,
但[1]中提到MAC有可能會重複的
(雖然舉例有誤,應該是16^12=2^48=281,474,976,710,656)。
[1][2]中引用IHH所發表之 "MAC地址三步全接觸之豪“奪”MAC",
在 HKEY_LOCAL_MACHINE\ system\Currentcontrolset\services\classes\net 下多個000、001、002等編號子目錄。
觀察其DriverDesc的敘述,在欲修改網卡名稱對應之編號目錄下,
新增一字串值,命名為NetworkAddress,並輸入所需之MAC位址。
在WinXP下實驗,經上述修改後,重新啟動網卡即可變更MAC位址。
在[3]中有更詳盡之英文解說,其中Method 2-d說到『Go to Start -> Run, type “regedt32” to start registry editor.
Do not use “Regedit.”』,
微軟的技術文件[4]中解釋,WinXP與WinSever 2003中,Regedt32.exe 等同 Regedit.exe,
但在Win2K中是不同的,故有此差異。
另外有一個GPL授權的小工具"Macshift"[5]可以使用,
其作者相關資訊於[6]有記載,[7]中有中文詳細圖文說明。

Reference:
[1] 資安論壇 • 檢視主題 - 修改MAC位址“欺騙”設備的三招
[2] 修改MAC位址“欺騙”設備的三招FLASH論壇-Flash之神魂顛倒
[3] Changing MAC addresses on Windows 2000 and XP
[4] Regedit.exe 與 Regedt32.exe 的差異
[5] Macshift: Change your MAC address: The definitive free command-line MAC changing utility for Windows XP
[6] CodeProject: MAC Address Changer for Windows XP/2003. Free source code and programming help
[7] fjufirefox: 我愛超量下載

2009年8月10日 星期一

如何用指令停用及啟用網卡

[1]中提到數種方法,其中
netsh int set interface name="Local Area Connection 3" admin=disabled
netsh int set interface name="Local Area Connection 3" admin=enabled
看來最簡短,但實際執行失敗,會出現如[2]fcretusys所說的情形,[2]中亦提及Win2003可正常運作。
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct sy
ntax.

Usage set interface [name = ] IfName
[ [admin = ] ENABLED|DISABLED
[connect = ] CONNECTED|DISCONNECTED
[newname = ] NewName ]

Sets interface parameters.

IfName - the name of the interface
admin - whether the interface should be enabled (non-LAN only).
connect - whether to connect the interface (non-LAN only).
newname - new name for the interface (LAN only).

Notes:
- At least one option other than the name must be specified.
- If connect = CONNECTED is specified, then the interface
is automatically enabled even if the admin = DISABLED
option is specified.
[1][3][4]中提到用devcon工具[5],為一指令式的裝置管理員
使用下列指令可得到網卡資料,需注意事項" hwids 空格 =net"
devcon hwids =net
輸出結果如:
PCI\VEN_10EC&DEV_8167&SUBSYS_E0001458&REV_10\4&BC67B8D&0&28F0
Name: Realtek RTL8169/8110 Family Gigabit Ethernet NIC
Hardware ID's:
PCI\VEN_10EC&DEV_8167&SUBSYS_E0001458&REV_10
PCI\VEN_10EC&DEV_8167&SUBSYS_E0001458
PCI\VEN_10EC&DEV_8167&CC_020000
PCI\VEN_10EC&DEV_8167&CC_0200
Compatible ID's:
PCI\VEN_10EC&DEV_8167&REV_10
PCI\VEN_10EC&DEV_8167
PCI\VEN_10EC&CC_020000
PCI\VEN_10EC&CC_0200
PCI\VEN_10EC
PCI\CC_020000
PCI\CC_0200
ROOT\MS_L2TPMINIPORT\0000
Name: WAN Miniport (L2TP)
Hardware ID's:
ms_l2tpminiport
.
.
.
選擇網卡資料之Compatible ID's:的第一筆資料,如下指令可成功停用及啟用網卡。
停用:
devcon disable "PCI\VEN_10EC&DEV_8167&REV_10"
啟用:
devcon enable "PCI\VEN_10EC&DEV_8167&REV_10"

Reference:
[1] http://windowsitpro.com/articles/index.cfm?articleid=41111&cpage=4
[2] http://forum.sysinternals.com/forum_posts.asp?TID=9483
[3] http://social.msdn.microsoft.com/Forums/zh-TW/241/thread/2ff7a678-0b27-46ec-9b54-ad7e75dbd54f
[4] http://www.wlanbook.com/enable-disable-wireless-card-command-line/
[5] http://support.microsoft.com/kb/311272/zh-tw

如何變更遠端桌面聽候的連接埠(How to change the listening port for Remote Desktop)

souce link:

1.Start Registry Editor.(regedit.exe)
2.Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
3.On the Edit menu, click Modify, and then click Decimal.
4.Type the new port number, and then click OK.
5.Quit Registry Editor.

2009年2月27日 星期五

如何將日文輸入法安裝在中文語系下

參考網站:

將日文輸入法裝在中文語系 @ Wayne's Blog :: 痞客邦 PIXNET ::
http://mstar.pixnet.net/blog/post/23050671
將下列codes(For XP) 存成.reg檔,點擊以匯入登錄檔資訊。
(在Win2000下的 "Ime File"="imejp.ime")


REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\E0300404]
"Ime File"="imjp81.ime"
"Layout File"="Kbdjpn.dll"
"Layout Text"="日文輸入系統 (MS-IME2002)"


"Layout Text" 可自訂名稱。
再新增輸入法即可在中文語系下找到安裝。

常用MS IME 快速鍵:
  • 切換全形/半形:Shift + Space
  • 切換日文/中文語系:Alt - Shift //按鍵設定可設定
  • 切換英文/日文:Alt - ~ //中文語系下的日文無效
  • 切換為平假名 Hiragana:Ctrl - CapsLock
  • 切換為片假名 Katakana:Alt - CapsLock
︺ A 與 A 與 A 之差異 (Different answer, but thanks Yucca.)
︺ A:half-width Alphanumeric
A:Full-width Alphanumeric
A:Direct Input

2007年11月26日 星期一

cmdow.exe

cmdow.exe 是用來隱藏DOS Box的顯示畫面,常見於SuperXP…等無人值守安裝後的作業系統,其行為會被防毒軟體視為病毒。

2007年9月26日 星期三

如何變更grub的預設開機系統?

sudo gedit /boot/grub/menu.lst

更改 ##default num 此行下方附近的

default 0 //預設為第一個開機選項

變更成欲設定的開機選項,從0開始計數

ex:

Ubuntu, kernel 2.6.20-15-generic //0
Ubuntu, kernel 2.6.20-15-generic (recovery mode) //1
Ubuntu, memtest86+ //2
Other operating systems: //3
Microsoft Windows XP Home Edition //4

要改成預設Windows XP開機 就改成

default 4


參考來源:
HowtoRestoreGrub
http://wiki.ubuntu-tw.org/index.php?title=HowtoRestoreGrub