Suse Grub 修改密碼方法 一般是在 boot kernel 按 e 然後行末加 1 即可,但 SUSE GRUB 卻不是這麼一回事。 只要在 boot option 的地方輸入 init=/bin/bash,OK~在bash下輕輕鬆鬆passwd修改密碼成功
|
||||||
|
Suse Grub 修改密碼方法 一般是在 boot kernel 按 e 然後行末加 1 即可,但 SUSE GRUB 卻不是這麼一回事。 只要在 boot option 的地方輸入 init=/bin/bash,OK~在bash下輕輕鬆鬆passwd修改密碼成功 參考了 哇哇 的文章 : http://portable.easylife.tw/2043 於是有了下列筆記產生。 安裝 Copssh 3.1.1 http://sourceforge.net/projects/sereds/files/Copssh/3.1.1/Copssh_3.1.1_Installer.zip/download 1.將 Copssh_3.1.1_Installer.zip 解壓縮後執行安裝 2.我的安裝路徑在 C:\Apps\ICW\ , 接下來 SvcCOPSSH 服務帳號的密碼(可自訂),直接按下一步繼續然後完成安裝之前,會彈一個警告視窗說 Copssh 預設是不會有任意使用者可以登入,必須要啟動使用者。 Start Slide Show with PicLens Lite先安裝 lzo #cd /root 再安裝 openvpn 2.1.1 (lzo 必須要先安裝,不然下面的安裝會出錯) Linux Bonding (合併網卡) 實作 目的 * 網卡自動備援 實作環境 * Fedora Core 3 Linux 環境設定 vi /etc/sysconfig/network-scripts/ifcfg-bond0
As I am building up a total IPv6 network of Linux servers on VMWare, today I will write about how we can configure DHCPv6 server & client. I tested only on RedHat/Fedora/CentOS based platforms. But it should work on other platforms with some minor changes. So lets start…Server Configuration: (dhcp6s)
First we will install DHCPv6 RPM on the server:
After installing the above mentioned RPM we will turn on global IPv6 initialization and will also enable forwarding of IPv6 packets: [繼續閱讀] … #wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
#tar zxvf mod_evasive_1.10.1.tar.gz
#cd mod_evasive
#yum install httpd-devel.x86_64
#apxs -cia mod_evasive20.c
#vi /etc/httpd/conf/httpd.conf
加入下列代碼:
<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
DOSEmailNotify y...@email.com
DOSLogDir "/var/lock/mod_evasive"
DOSWhitelist 127.0.0.1
</IfModule>
ok後,寫入存檔離開。
#vi test.pl
========= test.pl 的 內容 – 開始 ===========
#!/usr/bin/perl
# test.pl: small script to test mod_dosevasive’s effectiveness
use IO::Socket;
use strict;
for(0..100) {
my($response);
my($SOCKET) = new IO::Socket::INET( Proto => "tcp",
PeerAddr=> "127.0.0.1:80″);
if (! defined $SOCKET) { die $!; }
print $SOCKET "GET /?$_ HTTP/1.0\n\n";
$response = <$SOCKET>;
print $response;
close($SOCKET);
}
========= test.pl 的 內容 – 結束===========
把 127.0.0.1 改成你 server 的 ip,存檔離開。
#chmod +x test.pl
#./test.pl
#wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz #tar zxvf mod_evasive_1.10.1.tar.gz #cd mod_evasive #yum install httpd-devel.x86_64 #apxs -cia mod_evasive20.c #vi /etc/httpd/conf/httpd.conf 清除 squid-proxy 的 cache 由於用 ram 做為 squid-proxy 的 cache,而且空間只有 1GB ,為了空間有效的靈活運用,便有了這支 SCRIPTS 來清除 CACHE 的想法。 #!/bin/bash #Create by splin #Date:AUG-07-2009-02 #below is show free cache size. F_CACHE=`free -m|grep cache|tail -1|awk ‘{print $4}’` # for cache free size SQC_SIZE=`df -h|grep -i cache|head -1|awk ‘{printf $4}’` #for cache free size percentage SQC_USED=`df -h|grep -i cache|head -1|awk [...] 原文來自這裡 Red Hat 週五警告,上週網路攻擊所攻破的部分伺服器中,包括自家商業支援與免費版本的Linux。遭入侵的包括Red Hat Linux Enterprise伺服器,以及由該公司贊助、社群支援的Fedora計畫。 Red Hat在一份安全通告中表示,它有信心此次入侵並沒有影響到Red Hat Network(公司用來傳送Red Hat Enterpirse Linux變更、產品更新的主要機制),因此客戶並不需要擔心。 此一開放原始碼廠商也釋出一份腳本也用來偵測可能有問題的OpenSSH套件。 [繼續閱讀] … 直接套用 fstab 中參數的用法 /etc/fstab 的內容: /dev/sda3 / ext3 acl,user_xattr 1 1 不用重開直接套用的命令: mount -o rw,acl,user_xattr,remount / 適用: RHEL 5.1 x86 & x86_64 / SLES 10 SP1 x86 & x86_64 =========================== 在 RHEL 下不使用 dmraid 來安裝時 OS 時, 可以在 BOOT 時下 #linux nodmraid 即可. 適用: RHEL 5.1 x86 & x86_64 =========================== 如何在 Linux 下掛載 windows 分享的資料夾? 先在根目錄建立一個 fs1 的資料夾#mkdir /fs1 在 text mode 下:#mount.cifs //10.6.116.92/ShareFolder /fs1-o username=mark,password=123456,domain=SPLIN再用 #df -h 去檢查有沒有掛載成功。 在 GUI mode 下,開啟 text mode 視窗:#nautilus –browser 在 location 的地方輸入 smb://10.6.116.92 然後會再出現要你輸入 username,password,Domain [...] |
||||||
|
版權所有 © 2010 マルクとキャンディとミミのブロッグ - 全部權利保留 Bad Behavior has blocked 70 access attempts in the last 7 days. マルクとキャンディとミミのブロッグ 使用的快取程式為 WP Super Cache |
||||||
近期迴響