2013年6月14日 星期五

Set IE Home Page in WinCE

設定其下的registry key,
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]   
   "Start Page"="http://www.msn.com"   ; 以MSN Web Page做為首頁

Linux測試storage

lmbench

lmdd - move io for performance and debugging tests
copies a specified input file to a specified output with possible conversions. This program is primarily useful for timing I/O since it prints out the timing statistics after completing.

OPTIONS



if=nam
Input file is taken from name; internal is the default. internal is a special file that acts like Sun's /dev/zero, i.e., it provides a buffer of zeros without doing a system call to get them.

The following file names are taken to mean the standard input: -, 0, or stdin.
of=nam
Output file is taken from name; internal is the default. internal is a special file that acts like /dev/null, without doing a system call to get rid of the data.

The following file names are taken to mean the standard output: -, 1, or stdout.

The following file names are taken to mean the standard error: 2, or stderr.
bs=
Input and output block size n bytes (default 8192). Note that this is different from dd(1), it has a 512 byte default. Also note that the block size can be followed by 'k' or 'm' to indicate kilo bytes (*1024) or megabytes (*1024*1024), respectively.
fsync=
If n is non-zero, call fsync(2) on the output file before exiting or printing timing statistics.
count=
Copy only n"" input records.

lmdd of=internal if=/media/sda1/test count=50000
lmdd if=internal of=/media/sda1/test count=50000 fsync=1

Linux建置TFTP Server

  1. mkdir /tftpboot
  2. vi /etc/xinetd.d/tftp
    service tftp
    {
    socket_type = dgram
            protocol = udp
    wait = yes
    user = root
    server = /usr/sbin/in.tftpd
    server_args = -s /tftpboot
    disable = no
    per_source = 11
    cps = 100 2
    flags = IPv4
    }
  3. vi /etc/inetd.conf
    #tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd
  4. /etc/init.d/xinetd restart

Mac OS X 10.7 SAMBA 傳輸速度慢

參考了這個網頁,怎麼解決Mac OS X 10.7 SAMBA伺服過慢的問題?
才知道原來Apple針對SAMBA做了修改呀 ><

2013年6月10日 星期一

如何增加程式捷徑到lubuntu LXPanel的Available Applications裡

cd /usr/share/applications
新增.desktop檔案,如test.desktop
編輯test.desktop檔案,如下:

[Desktop Entry]
Name=test
Comment=test
Exec=/opt/test
Icon=serpentine
Terminal=false
Type=Application
Encoding=UTF-8
Categories=GTK;Utility;

然後可以在Accessories裡看到test

可參考其他.desktop檔案的寫法

也可放置在~/.local/share/applications/

在lubuntu上安裝Flash Plug-in

sudo apt-get install flashplugin-installer

在lubuntu上安裝Skype,發現Skype Chat Title Bar不見了

       今天在lubuntu上安裝Skype,想跟朋友聊天,發現Chat的title bar不見了,連移視窗位置都不行,在網上也找不到什麼好方法。
     
       結果在底下的工具列透過滑鼠右鍵,將Chat window放到最大,title bar就出現了。難不成要放到最大來聊天 ><

       好在透過右鍵按resize,重新拖拉大小與位置,有紀錄起來新的位置,再重開chat就正常了,還好還好,Lucky ^^