2018年3月1日 星期四

Windows arp運用?

arp -d --刪除舊的 arp table,這一行需要用管理者權限執行

for /L %i in (193,1,254) do ping 172.30.58.%i -n 1 -w 300 > NUL --檢查本段IP

arp -a | find "172.30" | find "動態" --執行 arp 指令,輸出 arp table

2018年2月25日 星期日

Ubuntu install webmin 測試機安裝

1.install Ubuntu
2.select OpenSSH Server and Samba file server
3.關閉Selinux,理論上安裝Ubuntu後Selinux是沒有開啟的,可以先看
   修改 /etc/selinux/config 設定檔 中的 SELINUX=disabled
   重開機
4.增加Root登入,理論上安裝Ubuntu root帳號是沒有開啟的,可以
   1.使用隨便一個帳號登入,然後開啟終端機
   2.輸入 sudo passwd root
   3.輸入一次你個管理帳號
   4.設定全新的root帳號
   5.再輸入一次
   6.改密完成
   7.exit跳出後更換使用者為root
5.關閉防火牆,理論上安裝Ubuntu防火牆是沒有開啟的,可以移除(建議不要)
   sudo apt-get remove iptables
6.SSH遠端安全連線,Ubuntu安裝時要安裝OpenSSH Server ,修改
   sudo vi /etc/ssh/sshd_config找PermitRootLogin 修改成Yes,重新開機,root帳號可以用遠端SSH登入,
7.安裝webmin
   1.  vi /etc/apt/sources.list在最後增加2行存檔
        deb http://download.webmin.com/download/repository sarge contrib
        deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
   2.install the GPG key
      cd /root
      wget http://www.webmin.com/jcameron-key.asc
      apt-key add jcameron-key.asc
   3.Install webmin
      apt-get update
      apt-get install webmin
   4.安裝後開啟瀏覽器打https://server_ip_address:10000
8.在執行apt-get update出現tw.archive.ubuntu.com...error,修改/etc/apt/sources.list,將其中的
   hk.archive.ubuntu.com替換成cn.archive.ubuntu.com
   
   sudo vim /etc/apt/sources.list
   :%s/hk.archive/cn.archive/g

2018年1月17日 星期三

Windows 7 我的最愛無法摺疊?

今天到同事那邊,他說windows 7從開啟電腦左上方有個我的最愛,之前都可以摺疊及展開,但是現在無法使用,結果真的是這樣

2017年11月29日 星期三

sql server 一些問題?

將資料庫附加近來卻變唯獨,找到檔案位置按右鍵內容,將唯讀拿掉。
將資料庫卸離,出現正在複寫,錯誤3724,在新增查詢中執行
sp_removedbreplication ‘dbname’ ,然後將資料庫卸離。

2017年11月11日 星期六

vmware converter 時出現Converting a machine in VMware vCenter Converter fails with the error: SQL_CANTOPEN: unable to open database file?

vmware converter 時出現Converting a machine in VMware vCenter Converter fails with the error: SQL_CANTOPEN: unable to open database file?

經Google查詢結果
解析度
要解決此問題,請暫時禁用可能會對vCenter Converter數據庫鎖定的任何第三方應用程序。 在大多數情況下,這是由備份或防病毒解決方案引起的。

您也可以通過從位於以下位置的備份或防病毒掃描中排除vCenter Converter數據庫文件來防止發生這種情況:

C:\ ProgramData \ VMware \ VMware vCenter Converter Standalone \ db

要麼

C:\ Documents and Settings \ All Users \ Application Data \ VMware \ VMware vCenter Converter Standalone \ db

所以先將防毒軟體關閉即可。

2017年11月3日 星期五

Pietty 亂碼?

Pietty 亂碼
選項-->字元編碼 選 Unicode
選項-->亞洲語系修正-->將Unicode亞洲寬符號字元 打勾拿掉

2017年11月1日 星期三

把100MB的開機轉移到C磁碟 for win7

安裝好win7後
才發現
多切割了100MB給win7使用
想刪除的可使用此方式
1.進系統後,開始->執行
2.輸入cmd後按Enter
3.輸入DISKPART後按Enter
4.輸入LIST DISK後按Enter
5.選擇100MB分區所在的硬碟,通常為DISK 0,即輸入SELECT DISK 0後按Enter
6.輸入LIST PARTITION後按Enter
7.選擇100MB所在的分區,通常為PARTITION 1 ,即輸入SELECT PARTITION 1後按Enter
8.輸入DETAIL PARTITION後按Enter,查看這個分區是否是100M分區
9.輸入INACTIVE 後按Enter,將其轉成不能開機
10.選擇Windows 7系統安裝分區,也就是C Disk,通常是PARTITION 2,輸入SELECT PARTITION 2後按Enter)
11.輸入DETAIL PARTITION後按Enter,確保選擇了Windows安裝的PARTITION
12.確定選擇後,輸入ACTIVE 後按Enter,將其轉成可以開機
13.輸入EXIT後按Enter,退出DISKPART工具
14.輸入BCDBOOT c:\windows /s C: 後按Enter
15.輸入EXIT後按Enter,退出CMD。之後重新開機。
16.之後可用其他磁碟工具將100MB分割區分併到C或其他DEFG