在搜尋程式中打regedit,開啟編輯器
使用RegEdit修改機器碼下列參數:
1. HKLM\SYSTEM\CurrentControlSet\services\W32Time\Parameters
參數 Type,類別 REG_SZ,資料 NTP
2. HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags
數值設成5
3. HKLM\SYSTEM\CurrentControlSet\services\W32Time\TimeProviders\NtpServer
參數 Enable,類別 REG_DWORD,數值 1 (啟用NTPserver)
回到command line,cmd.exe中輸入:
1. 開機時自動啟動w32time程序
sc config w32time start= auto
2. 更新修改後的機器碼
w32tm /config /update
3. 檢查目前機器碼設定
w32tm /query /configuration
在工作管理員->服務->w32time 啟動
Ref: http://jamyy.us.to/blog/2015/10/7752.html
P.S.: Remember to turn off the firewall to let clients connecting to NTP server. (20190116 updated)
2016年7月18日 星期一
讓Windows 10 ~ 7變成NTP server
2015年4月18日 星期六
Install Git server on Synology NAS Note / 在Synology NAS上安裝Git Server筆記
文字筆記
1. 使用有管理員權限的帳號登入DSM
2. 控制台 -> 終端機&SNMP -> 終端機 -> 啟動SSH功能 -> 更改連接埠, ex: 5566
3. 套件中心 -> Git Server安裝啟用 -> 選擇可使用的使用者
4. NAS重新啟動
5. 新建Git Repository
(1) 開新的共用資料夾, e.g.: GitRepo(在儲存空間1下)
(2) 開在GitRepo中開新資料夾, e.g.: Gittest
(3) Git init : 用SSH
用SSH登入(putty),切換至資料夾位置, e.g.: /volume1/GitRepo/Gittest
鍵入"git init",產生".git"資料夾。
(4) Git init : 用TortoiseGit
使用區域網路連至NAS中,找到"GitRepo/Gittest"後 ,按右鍵選"Git Create repository here"
產生".git" 資料夾。
6. Clone資料夾
(1) 在本機端選取資料夾按右鍵後,在url欄位中輸入:
ssh :// {帳號} @ {NAS網址或IP} : {SSH port number} / {資料夾位置}
資料夾位置e.g.: /volume1/GitRepo/Gittest
(2) 輸入帳號密碼,Clone完成。
-----還未成功-----
7. Push資料夾 (完成1-6後,只能clone T_T)
(1) 用SSH登入
(2) 改資料夾權限讓group可以讀寫, e.g.:
chmod -R 775 Gittest
chgrp -R users Gittest
(3) 應該可以Push了,位置同Clone的位置。
(4) 因為每個資料夾要用SSH設定,且沒有GUI,故關閉Git Server... XD
Ref:
http://moonlightjuice.blogspot.tw/2013/09/git-synology-git-server.html
http://programingman.blogspot.tw/2015/03/synology-nas-git-server.html
http://forum.synology.com/enu/index.php
2015年4月17日 星期五
Git GUI Local Settings Note / Git本機端圖形介面安裝設定筆記
懶得截圖,文字筆記
For Windows (Win 7)
1. 先下載"msysGit"和"TortoiseGit"msysGit (主程式)
http://msysgit.github.com/
TortoiseGit (GUI,有語言包可下載)
http://code.google.com/p/tortoisegit/
2. 先安裝"TortoiseGit",一直下一步就對了
3. 注意在選要使用的SSH客戶端(Choose SSH Client)要選擇TortoisePLink
O TortoisePLink, coming from Putty, integrates with Windows better.
X OpenSSH, Git default SSH Client
4. 安裝msysGit,一直下一步
5. 注意:
(1) Adjusting your PATH environment
O Use Git Bash only
(2) Select Components
O Simple context menu (Registry based)
O Git Bash Here
O Git GUI Here
(3) Choosing the SSH executable
O Use (Tortoise)Plink
C:\... directory of TortoisePlink
(4) Configuring the line ending conversions
O Checkout Windows-style, commit Unix-style line endings
6. 試用
(1) 新建資料夾, ex: GitTest
(2) 進入後按右鍵,或不進入選取後按右鍵,選"Git Create repository here"
(3) 跳出視窗直接選OK,並初始化
(4) 產生".git"隱藏資料夾
(5) 開始生產檔案和code ^_^
Ref:
http://shaocian.blogspot.tw/2013/01/windows-git-msysgit-tortoisegit.html
http://www.coder.com.tw/blog/system/windows_git_tortoisegit_msysgit/
For Linux (Ubuntu)
1. 進到Ubuntu Software Center中2. 搜尋git
3. 安裝git主系統, 包含:git, git-receive-pack, git-shell, git-upload-archive, git-upload-pack
4. 搜尋Cola Git GUI
5. 安裝Cola Git GUI
6. 或是使用終端機指令
sudo apt-get install git-core git-cola
7. 試用
(1) 開新資料夾, ex: GitTest
(2) 用終端機指令移到"GitTest"中,輸入
git init
產生".git"資料夾
(3) 開啟Cola Git,可用open來開剛才產生完的"GitTest"或是遠端Clone
(4) 開始生產檔案和code ^_^
Ref:
http://graphicalgit.blogspot.tw/2012/07/git-cola-git-gui-1.html
P.S.: 在VM裡面建的GitTest可在host中用Git管理
Dropbox/Cloud Station(Synology DSM)同步
1. Dropbox直接把資料夾丟上去就對了,Easy2. 使用Cloud Station記得在
設定 -> 同步規則 -> 選擇性同步資料夾下面勾選同步"."開頭的檔案與資料夾。
3. 丟資料夾上去,收工
2013年8月20日 星期二
透過xrdp讓Linux可被Windows遠端
1. 設定桌面分享
開始→桌面分享→勾選選項
(1)分享:允許使用者觀看與控制桌面
(2)安全性輸入密碼,取消確認每次連線
(3)通知區顯示:只在有人連線時
2.安裝XRDP
$ sudo apt-get install xrdp
更改port
$ sudo vim /etc/xrdp/xrdp.ini
[globals]
xxx
port=3389→修改
xxx
有用iptable記得把port打開
xrdp重新啟動
$ sudo /etc/init.d/xrdp restart
3.用Windows內建遠端桌面進行連線,完成
4.如果是空白畫面
安裝gnome-session-fallback,如下:
$ sudo apt-get install gnome-session-fallback
$ echo "gnome-session --session=ubuntu-2d" > ~/.xsession
$ sudo vim /etec/xrdp/startwm.sh (
#. /etc/X11/Xsession
if [ -e $HOME/.xsession ]; then
. $HOME/.xsession
else
. /etc/X11/Xsession
fi
$ sudo /etc/init.d/xrdp restart
以上
2009年10月24日 星期六
Alternative English online broadcast....
oh!zone
http://www.ohzone.org/index.php
sounds like no more ads.... checking now.... XD
2009年10月21日 星期三
OpenCV scale image in member function
1. release old image pointer
2.create a new space using the image pointer
3. it should be work!!!
-------------
cvResize and cvReshape is not work for this purpose, I don't know why....XD
and create a pointer in the member function will be release after finished the member function....
2009年7月10日 星期五
FireFox 3.5
Nightly Tester Tools
http://briian.com/?p=139
好用 直接強制裝舊版的PCman plug-in
然後也可以強制裝一堆舊版的add-on
All-in-one gesture換成Firegesture了
感覺比較好用的樣子 不過要改設定 不然會卡卡的
