[閒置一個小時自動登出]
SCHTASKS /Create /SC ONIDLE /TN idle-logout /TR "logoff" -i 60 /RU administrator /RP *****
[閒置一個半小時自動關機]
SCHTASKS /Create /SC ONIDLE /TN idle-shutdown /TR "shutdown -f -s -t 30 -c "閒置過久,電腦即將關機。"" -i 90 /RU administrator /RP ******
[04:44:44強制關機]
SCHTASKS /Create /SC DAILY /TN shutdown /TR "shutdown -f -s -t 600 -c "關機中,請盡速儲存所使用的資料。"" /ST 04:44:44 /RU administrator /RP ******
---
其中***為系統管理員的密碼
2011年2月17日 星期四
2011年2月16日 星期三
iperf - 測速率軟體
iperf --help
Usage: iperf [-s|-c host] [options]
iperf [-h|--help] [-v|--version]
Client/Server:
-f, --format [kmKM] format to report: Kbits, Mbits, KBytes, MBytes
-i, --interval # seconds between periodic bandwidth reports
-l, --len #[KM] length of buffer to read or write (default 8 KB)
-m, --print_mss print TCP maximum segment size (MTU - TCP/IP header)
-p, --port # server port to listen on/connect to
-u, --udp use UDP rather than TCP
-w, --window #[KM] TCP window size (socket buffer size)
-B, --bind bind to , an interface or multicast address
-C, --compatibility for use with older versions does not sent extra msgs
-M, --mss # set TCP maximum segment size (MTU - 40 bytes)
-N, --nodelay set TCP no delay, disabling Nagle's Algorithm
-V, --IPv6Version Set the domain to IPv6
Server specific:
-s, --server run in server mode
-U, --single_udp run in single threaded UDP mode
-D, --daemon run the server as a daemon
Client specific:
-b, --bandwidth #[KM] for UDP, bandwidth to send at in bits/sec
(default 1 Mbit/sec, implies -u)
-c, --client run in client mode, connecting to
-d, --dualtest Do a bidirectional test simultaneously
-n, --num #[KM] number of bytes to transmit (instead of -t)
-r, --tradeoff Do a bidirectional test individually
-t, --time # time in seconds to transmit for (default 10 secs)
-F, --fileinput input the data to be transmitted from a file
-I, --stdin input the data to be transmitted from stdin
-L, --listenport # port to recieve bidirectional tests back on
-P, --parallel # number of parallel client threads to run
-T, --ttl # time-to-live, for multicast (default 1)
Miscellaneous:
-h, --help print this message and quit
-v, --version print version information and quit
[KM] Indicates options that support a K or M suffix for kilo- or mega-
The TCP window size option can be set by the environment variable
TCP_WINDOW_SIZE. Most other options can be set by an environment variable
IPERF_, such as IPERF_BANDWIDTH.
Report bugs to
--
之前只有用過ttcp和netperf 這個倒是沒用過 XD
Usage: iperf [-s|-c host] [options]
iperf [-h|--help] [-v|--version]
Client/Server:
-f, --format [kmKM] format to report: Kbits, Mbits, KBytes, MBytes
-i, --interval # seconds between periodic bandwidth reports
-l, --len #[KM] length of buffer to read or write (default 8 KB)
-m, --print_mss print TCP maximum segment size (MTU - TCP/IP header)
-p, --port # server port to listen on/connect to
-u, --udp use UDP rather than TCP
-w, --window #[KM] TCP window size (socket buffer size)
-B, --bind
-C, --compatibility for use with older versions does not sent extra msgs
-M, --mss # set TCP maximum segment size (MTU - 40 bytes)
-N, --nodelay set TCP no delay, disabling Nagle's Algorithm
-V, --IPv6Version Set the domain to IPv6
Server specific:
-s, --server run in server mode
-U, --single_udp run in single threaded UDP mode
-D, --daemon run the server as a daemon
Client specific:
-b, --bandwidth #[KM] for UDP, bandwidth to send at in bits/sec
(default 1 Mbit/sec, implies -u)
-c, --client
-d, --dualtest Do a bidirectional test simultaneously
-n, --num #[KM] number of bytes to transmit (instead of -t)
-r, --tradeoff Do a bidirectional test individually
-t, --time # time in seconds to transmit for (default 10 secs)
-F, --fileinput
-I, --stdin input the data to be transmitted from stdin
-L, --listenport # port to recieve bidirectional tests back on
-P, --parallel # number of parallel client threads to run
-T, --ttl # time-to-live, for multicast (default 1)
Miscellaneous:
-h, --help print this message and quit
-v, --version print version information and quit
[KM] Indicates options that support a K or M suffix for kilo- or mega-
The TCP window size option can be set by the environment variable
TCP_WINDOW_SIZE. Most other options can be set by an environment variable
IPERF_
Report bugs to
--
之前只有用過ttcp和netperf 這個倒是沒用過 XD
2011年2月3日 星期四
2011年2月2日 星期三
2011年1月28日 星期五
啟用php imap的功能
在fedora很簡單 直接yum XD
yum install php-imap
--
不過在修好yum站台路徑前 有試著抓rpm下來裝
可是因為相依性的問題 libc-client似乎也要更新
不過打yum的時候 就會順便一起裝 XD
yum install php-imap
--
不過在修好yum站台路徑前 有試著抓rpm下來裝
可是因為相依性的問題 libc-client似乎也要更新
不過打yum的時候 就會順便一起裝 XD
2011年1月25日 星期二
2011年1月21日 星期五
2011年1月19日 星期三
2011年1月17日 星期一
kernel-panic
打重點:
開機時出現kernel panic的問題
原本以為是開機磁區問題 重新安裝grub還是一樣
後來用mkinitrd就解決了 XD
先用fedora的光碟進入救援模式
chroot /mnt/sysimage/
mkinitrd /boot/initrd-2.6.20-1.2320.fc5smp.img 2.6.20-1.2320.fc5smp
那些數字是你自己的kernel版本 不要傻傻的照打 XD
ref:
http://www.linuxquestions.org/questions/linux-software-2/kernel-panic-not-syncing-attempted-to-kill-init-261681/
開機時出現kernel panic的問題
原本以為是開機磁區問題 重新安裝grub還是一樣
後來用mkinitrd就解決了 XD
先用fedora的光碟進入救援模式
chroot /mnt/sysimage/
mkinitrd /boot/initrd-2.6.20-1.2320.fc5smp.img 2.6.20-1.2320.fc5smp
那些數字是你自己的kernel版本 不要傻傻的照打 XD
ref:
http://www.linuxquestions.org/questions/linux-software-2/kernel-panic-not-syncing-attempted-to-kill-init-261681/
訂閱:
文章 (Atom)