2017年8月17日 星期四

Windows10 & 2016 WOL

關於Windows10之後Wake on lan失效問題,請到下面連結下載
Win10 Auto Installation Program的realtek driver,安裝之後問題解決,也不用像其他資料寫得要改green ethernet或者Windows10的fast boot。


Win10 Auto Installation Program (SharedID:
1152921504607292454SId:1152921504626816921)
10.0192017/7/2710404kGlobal

2017年8月8日 星期二

bash script sample

Bash Script 檔案及目錄是否存在



檢查檔案是否存在

2017年8月3日 星期四

dpkg-reconfigure dash

dpkg-reconfigure dash

Ubuntu / Debian 發行版本預設都使用 dash 作為 shell,但若使用 bash 習慣的人必定要執行此指令,choice No 將預設 shell 改為 bash! 

dpkg-reconfigure locales

本土化語言設定。

dpkg-reconfigure tzdata

時區設定。

dpkg-reconfigure exim4-config

設定 Mail Transfer Agent(MTA)。

dpkg-reconfigure console-setup

設定 console 的字型、編碼等

dpkg-reconfigure gdm/lightdm

設定 display manager。目前 Ubuntu 預設為 lightdm,舊版為 gdm(gnome display manager。

dpkg-reconfigure openssh-server

重新產生 SSH server RSA 與 DSA key。

dpkg-reconfigure wireshark

安裝 wireshark 完成後,必須要使用 root 才可以順利擷取到網路介面封包,透過此命令可以設定一般使用者也可以正常操作

2017年8月1日 星期二

bash script sample

1.create a select menu in a shell script?

#!/bin/bash

PS3='Please enter your choice: '
options=("Option 1" "Option 2" "Option 3" "Quit")
select opt in "${options[@]}"
do
    case $opt in
        "Option 1")
            echo "you chose choice 1"
            ;;
        "Option 2")
            echo "you chose choice 2"
            ;;
        "Option 3")
            echo "you chose choice 3"
            ;;
        "Quit")
            break
            ;;
        *) echo invalid option;;
    esac
done

2.create a Function in a shell script?

#!/bin/bash
           function quit {
               exit
           }
           function hello {
               echo Hello!
           }
           hello
           quit
           echo foo 

2017年7月4日 星期二

WakeMeOnLan

1.WakeMeOnLan此工具可以讓您藉由傳送網路喚醒(Wake-on-LAN,WOL)封包來遠端開機。當全部電腦開機時,此工具會掃描網路並收集電腦MAC位址,並將MAC位址資料儲存下來。事後,當電腦關機或在待機模式時,你可以使用儲存下來的電腦MAC位址來輕鬆選擇你想開啟的電腦。 

【軟體名稱】:WakeMeOnLan 
【軟體版本】:1.65
【軟體分類】:網路工具
【軟體介面】:繁體中文
【軟體性質】:免費軟體
【檔案大小】:434KB
【作業系統】:Windows


【官方網址】:http://www.nirsoft.net/utils/wake_on_lan.html

【免安裝版】 [按此下載]

使用前Enable Wake On LAN 

MAC & IP EX: 
00-xx-c0-xx-49-1b
192.168.x.x







2017年6月22日 星期四

USB DOS開機片

一.
1.首先先下載下面程式       解壓縮後得到
2.執行 HPUSBFW.EXE



下載:
Download


-------------------------------------------------------------------------------

二.EFI開機隨身碟















下載:內有使用說明文件
Download




2017年6月21日 星期三

RU.EXE

RU


Features:

  1. Select SMBIOS directly from type, no more unreadable handle number!
    ALT-9 will list all SMBIOS type description.  You can directly type any string you want to find on that list like below:


    When you press Enter or RIGHT it will show the details with the string displayed in green.  Old version of RU did not have details and strings like this version.

    You can go back by pressing LEFT to the type selection list as previous picture shown.  Then use LEFT/RIGHT arrow keys to go back and forth between SMBIOS types selection and type's details.  Same operations are applied to any other screen list.

    You can also directly type string like: "memory"


    RU will find it for you, no more up/down/page up/down to navigate yourself.  For examples, it finds type 016: "Physical Memory Array" for you.

    What if you want to find more about "memory"?  Simply press CTRL-DOWN to find forward or CTRL-UP to find backward for the last entered string.
  2. The same UI from above SMBIOS is applied to the following types:
    • ACPI ALT-6
    • E820 ALT-F2
    • IDE ALT-5
    • PCI F6
    • Mass storage ALT-F1
    • SMBIOS ALT-9
    • UEFI variables ALT-=
    • System information CTRL-I
  3. EFI configuration table is added to System Information CTRL-I
    You can directly jump to the selected table on that screen.
    For example, if we want to go EFI_SYSTEM_RESOURCE_TABLE.  First press CTRL-I and it will show:


    Type: "resource"


    Found it!  The selecting bar turns to magenta color with "[Go]" string at the end.  That means you can press Enter to go to that address.


    This is the location of EFI_SYSTEM_RESOURCE_TABLE:
  4. Mass storage now shows all block IO devices like below example "33MB RAM disk".  When there is no component name it will show the device path.
  5. SPD information changed.  Previous RU has wrong information for SPD, this version only shows the module name and size like below:


    And this:
  6. System information shows CPUIDs like below:
  7. SMBIO 3.0 is supported.
 Minor changes:
  1. Fixed ALT-M is not working for SMBIOS.
  2. UEFI variables: Fixed DEL deletes a variable but the list was not updated accordingly.
  3. Highlight color for key help in command line.
  4. CTRL-F and CTRL-D are just for the first search.  CTRL-DOWN and CTRL-UP will continue the last search.
  5. Added more key list on the pull-down menu.
  6. Mass storage: Fixed search did not advance to next LBA.
  7. SMBUS: Fixed compare SMBUS saved file is not working.
  8. RU.EFI screen is moved to the center of 100*31 resolution.
  9. E820: Added 2 more type according to ACPI E820 spec: Unusable and Disabled.
  10. E820: Added Extended Attribute support.
  11. MEMORY: Fixed memory address is always reset while input a new one and RU.EXE could display garbage characters.
  12. SPD: Support Skylake 2 pages SPD.
  13. F1 is changed to display all help lines on info block.
  14. CTRL-F1 is added to display original help window.

    Download 5.17.0284 here.
    Password: 10441018174128