2017年11月1日 星期三

網路 packet drop, jitter, delay 模擬器



NIST Net network emulator
https://www-x.antd.nist.gov/nistnet/



https://wiki.linuxfoundation.org/networking/netem
netem

netem provides Network Emulation functionality for testing protocols by emulating the properties of wide area networks. The current version emulates variable delay, loss, duplication and re-ordering.

2017年10月27日 星期五

tar 檔解開後 換位置 make build 不過

1.打make時出現的error


make[5]: *** No rule to make target 'xxx old file ', needed by 'xxx.o'.

[ ! -d "iptables-1.4.4" ] || make -C iptables-1.4.4 || exit $?
make[3]: Entering directory '/root/work/8197f_build/rtl819x_orig2/users/iptables-1.4.4'
make  all-recursive
make[4]: Entering directory '/root/work/8197f_build/rtl819x_orig2/users/iptables-1.4.4'
Making all in extensions
make[5]: Entering directory '/root/work/8197f_build/rtl819x_orig2/users/iptables-1.4.4/extensions'
  GEN      matches4.man
-e + ./libipt_addrtype.man
-e + ./libipt_ah.man
-e + ./libxt_cluster.man
-e + ./libxt_comment.man

-e + ./libxt_TRACE.man
  GEN      initext4.c
  CC       initext4.o
make[5]: *** No rule to make target '/ssd/home_ssd/jwsyu/8197f_apteam_sdk/rtl819x-SDK-v3.4.11C-full-package/rtl819x_orig2/linux-3.10/include/uapi/linux/posix_types.h', needed by 'libxt_tcpmss.o'.  Stop.
make[5]: Leaving directory '/root/work/8197f_build/rtl819x_orig2/users/iptables-1.4.4/extensions'
Makefile:1126: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/root/work/8197f_build/rtl819x_orig2/users/iptables-1.4.4'
Makefile:434: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/root/work/8197f_build/rtl819x_orig2/users/iptables-1.4.4'
Makefile:1643: recipe for target 'iptables-1.4.4' failed
make[2]: *** [iptables-1.4.4] Error 2
make[2]: Leaving directory '/root/work/8197f_build/rtl819x_orig2/users'
Makefile:472: recipe for target 'app' failed
make[1]: *** [app] Error 2
make[1]: Leaving directory '/root/work/8197f_build/rtl819x_orig2/users'
Makefile:165: recipe for target 'bins' failed
make: *** [bins] Error 2



2.到出錯的目錄用 grep 找出 有舊位置字串的檔案
  grep oldaddress
 發現是在  xxxxx.o.d

3.在出錯的目錄 將 .o.d砍掉
cd /root/work/8197f_build/rtl819x_orig2/users/iptables-1.4.4/extensions

find . -name "*.o.d"   | xargs rm -f

linux 找出所有的 soft link檔案



https://askubuntu.com/questions/522051/how-to-list-all-symbolic-links-in-a-directory

Parsing ls is a Bad Idea®, prefer a simple find in that case:

find . -type l -ls

To only process the current directory:

find . -maxdepth 1 -type l -ls


找出失效的 symlinks
https://unix.stackexchange.com/questions/34248/how-can-i-find-broken-symlinks


find . -xtype l




# 先把 -exec 後面的東西先清掉, 用 -print 來先確認輸出
# rm 可以多用 -i 的參數來加以確認
find . -name "*.php" -exec rm -i {} \;
#
# 系統直接刪除
find . -delete -name "*.php"
find . -name "*.php" | xargs /bin/rm -rf

2017年9月8日 星期五

好用的 rufus

好用的 rufus for windows

Rufus
Create bootable USB drives the easy way

類似 linux的 dd功能

https://rufus.akeo.ie/

2017年9月6日 星期三

常用國道無線電頻率



http://www.jcradio.com.tw/article/state-road-radio


業餘無線電使用頻率中,法定的使用頻率範圍在VHF 144.000~146.000MHz之間、UHF 430.000~432.000MHz之間。無線電使用人數已經不如以往,在法定的範圍有執照的業餘玩家都能夠自由使用,為了達到最有效率的通訊,長期以來經過無線電玩家呼籲以及使用習慣,逐漸在一些特別常用到的場合中,會使用特定的頻率來聯絡。

  另外除了 145.000MHz 與 431.000MHz 為法定緊急呼叫及遇到重大災害時所使用的緊急頻道,業餘使用者必須避免長時間聊天占用。以下提供一些經常會使用的國道頻率,給初入門的業餘玩家參考:


143.690 MHz 中部橫貫公路


143.800 MHz 平面道路交通路況

143.870 MHz 北宜公路

144.860 MHz 國道三號

144.880 MHz 國道一號

146.990 MHz 蘇花公路

430.780 MHz 國光客運(中山高)

2017年9月5日 星期二

孩子學程式,家長可以怎麼支持呢?

未來family
https://gfamily.cwgv.com.tw/content/index/8805


孩子學程式,家長可以怎麼支持呢?
作者:書摘

發表日期:2017-08-31

點擊瀏覽數:2212







2017年8月2日 星期三

android marshmallow v6.0.1 wifi peap/ 紅米note miui 6 developer mode/option



https://forums.oneplus.net/threads/workaround-for-one-plus-one-after-updated-to-android-marshmallow-v6-0-1-fail-to-connect-wifi-peap.445078/


1. Turn on developer mode through multiple tap on About -> Build. (search for "enable developer mode/option", if you not get what I mean)
2. Go into developer option, look for "Use Legacy DHCP client - Use the DHCP client from Lollipop instead of the new Android DHCP client", and turn it On.
3. On your wifi again, it should be able to connect to your office / work wifi network with PEAP connection.



http://hk.miui.com/thread-2484-1-1.html

1)設定>關於手機>然後係miui 版本點擊數下, 直至話你已是開發人員了.

2)跟住返回上一頁(設定首頁)>其他進階設定(additional setting)>就會見到開發人員選項(Developer options).


http://www.tmps.hc.edu.tw/ischool/resources/WID_31_2_b60fb72333f26d97a4c5a373aaf2801e9548b37c/NEWS_31_2_fbaa28b64298f00cde5f922677330f60ae848b01/attached/4-%E7%84%A1%E7%B7%9A%E7%B6%B2%E8%B7%AF%E7%94%B3%E8%AB%8B.pptx







TANet 無線網路漫遊交換中心

https://roamingcenter.tanet.edu.tw/?page_id=1946

SSID名稱

TANet無線網路漫遊之SSID名稱
為利使用者識別可否使用無線網路漫遊交換機制,請加入漫遊中心的單位於新增或者修改SSID名稱為TANetRoaming。
備註:
SSID(Service Set Identifier)指的是提供無線網路功能的服務組其定義一個識別代號,簡單來說指的就是無線網路識別名稱。


https://roamingcenter.tanet.edu.tw/?p=2329

使用iTaiwan漫遊之連線單位使用方式及登入頁面

於他校進行漫遊使用iTaiwan服務,主要有兩種方式,分別如下:
1.選擇身份選單「iTaiwan」並在「使用者名稱」及「密碼」,輸入您的iTaiwan帳號及密碼即可完成連線設定。
2.於帳號部份輸入您的iTaiwan帳號加上@itw,舉例來說如:0912345678@itw,並輸入密碼後即可完成連線設定。


https://issuetracker.google.com/issues/37064769

peap eap mschapv2 android M not working