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

2014年9月18日 星期四

USB格式化選擇

考量傳輸速度:選擇FAT32, 16K
傳輸限制:單檔4G以下

NTFS效能不佳
exFAT也ok,但exFAT是較新的檔案格式, Windows 7版本以上才有預設支援

寫入
$ cat xxx.iso | pv -abt -B 0 > /media/C094-CB73/test1.data

讀取
$ cat /media/teacher/C094-CB73/ISO/esteaU-1024.iso | pv -abt > ./testa.data



Dos Command
  • 隨身碟代號 R
  • Format R: /FS:FAT32 /A:8192 ( 將 R: 格式化為 FAT32, 配置單位大小為8K )
  • Format R: /FS:NTFS /A:64K ( 將 R: 格式化為 NTFS, 配置單位大小為64K )
  • Format R: /FS:exFAT /A:64K ( 將 R: 格式化為 exFAT, 配置單位大小為64K )


資料來源:

平凡: 隨身碟的檔案系統與速度比較

2014年5月28日 星期三

清除本機DNS Cache的方法

一、Windows:

ipconfig /flushdns

二、Mac OS X
10.5以上版本請輸入:sudo dscacheutil -flushcache
不到10.5版本請輸入:lookupd -flushcache


三、Linux
/etc/rc.d/init.d/nscd restart
sudo /etc/init.d/nscd restart

安裝nscd
sudo aptitude install nscd

立即解決DNS更新連不到網站的問題

資料來源:
http://help.url.com.tw/index.php?title=%E7%AB%8B%E5%8D%B3%E8%A7%A3%E6%B1%BADNS%E6%9B%B4%E6%96%B0%E9%80%A3%E4%B8%8D%E5%88%B0%E7%B6%B2%E7%AB%99%E7%9A%84%E5%95%8F%E9%A1%8C

清空 DNS Cache - Server (bind) & Client (windows)

http://blog.xuite.net/tolarku/blog/65644952-%E6%B8%85%E7%A9%BA+DNS+Cache+-+Server+%28bind%29+%26+Client+%28windows%29

 

2013年12月12日 星期四

Ubuntu pppoe設定

pppoeconf

凍仁的筆記: Manual PPPoE on Debian

還有一套其他 linux(red hat,suse,slackware,...) 常用的
密碼是隱碼輸入
sudo apt-get install pppoe

sudo pppoe-setup
sudo pppoe-start
sudo pppoe-stop


取消pppoe启动时自动拔号:
sudo gedit /etc/network/interfaces
auto dsl-provider 改成 #auto dsl-provider
與dsl相關的語句加#後重新啟動。

设置静态ip的方法:
Ubuntu的网络参数保存在文件 /etc/network/interfaces中,默认设置使用dhcp,内容如下:
# The primary network interface
auto eth0
iface eth0 inet dhcp
设置静态ip的方法如下:
(1)编辑 /etc/network/interfaces
1.1)将dhcp 一行屏蔽
# The primary network interface
auto eth0
#iface eth0 inet dhcp
1.2)添加和静态ip有关的参数
# The primary network interface
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
(2)编辑 /etc/resolv.conf,设置dns
nameserver 202.96.134.133
nameserver 202.106.0.20
(3)执行下面两个命令,启用新设置
$sudo ifdown eth0
$sudo ifup eth0