分类 原创文章 下的文章

作者: reistlin
来源: http://www.reistlin.com/blog/12
更新时间: 2010.06
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

rsa.png

安装RSA Authentication Manager 6.1 Replica Server (Windows Server 2003 SP2, 网卡 x 2), 启动"RSA Authentication Manager Control Panel"控制台, 选择"Start & Stop RSA Authentication Manager Services", 点击"Start All", "RSA Authentication Manager administration daemon"和"RSA Authentication Manager authentication engine"服务无法启动!

- 阅读剩余部分 -

作者: reistlin
来源: http://www.reistlin.com/blog/6
更新时间: 2010.03
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

redhat.pngcentos.png

适用于 RHEL 4.x / 5.x (Redhat Enterprise Linux AS) 以及 CentOS 4.x / 5.x. 无缝平滑升级 openssh. 可远程操作(不会断开 ssh 连接). 不用修改其他系统配置. 感谢 [BigYong] 指导

1. 下载 [openssh-5.4p1.tar.gz]:

wget  http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-5.4p1.tar.gz

- 阅读剩余部分 -

作者: reistlin
来源: http://www.reistlin.com/blog/5
更新时间: 2010.12
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

debian.png

Debian 5.04 安装常用软件包:

# 编译工具
apt-get install gcc make

# 系统工具
apt-get install vim aptitude locales lrzsz sudo rcconf modconf psmisc sysstat locate tofrodos patch convmv tree mutt

# 远程管理
apt-get install openssh-server openssh-client openssl

# 压缩/解压缩工具
apt-get install bzip2 rar unrar zip unzip 

# 网络工具
apt-get install curl dnsutils tcpdump vnstat iperf iftop dnstop snmp ntpdate strace mtr-tiny ethtool whois iptraf

附注: 持续更新中...

- 阅读剩余部分 -

作者: reistlin
来源: http://www.reistlin.com/blog/4
更新时间: 2010.04
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

debian.png

Debian 5.04 台湾官方下载 (ISO):

[ftp://ftp.tw.debian.org/debian-cd/5.0.4/i386/iso-cd/debian-504-i386-CD-1.iso]

Debian 5.04 配置基本系统:

IP地址设置: /etc/network/interface

# 动态DHCP获得IP地址

# 启动系统激活设备
# Loop回环地址
auto lo
iface lo inet loopback

# 启动系统激活设备
# 网卡eth0设置为DHCP类型
auto eth0
iface eth0 inet dhcp

- 阅读剩余部分 -

作者: reistlin
来源: http://www.reistlin.com/blog/1
更新时间: 2010.06
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要

linux.pngcode.png

#!/usr/bin/perl -w 

# Name: search log v1.0
# Author: reistlin
# Website: www.reistlin.com
# Hotfix: bigyong
# Website: www.bigyong.com
# Date: 2010.06.01
# BTW: reistlin`s first perl script :-)

use strict;
use Data::Dumper;

# Debug Switch
my $debug = 0;
# start time
my $time_1 = time();
# clear
system "clear";

# Keyword mode
my $key_file = "key.txt";
my $key_index = 0;
my @key_load;

if ( ! -e $key_file ) {
        print "[Error] \[$key_file\] File does not exist. \n";
        exit;
} else {
        print "[INFO] Load \[$key_file\] Check OK ...\n"
}

# key file details
my @key_stat = stat ($key_file);

print "[INFO] $key_file File Details: \n";
print "UID: $key_stat[4] \n";
print "GID: $key_stat[5] \n";
print "Size: $key_stat[7] bytes \n";
print "Atime: $key_stat[8] \n";
print "Mtime: $key_stat[9] \n";
print "\n";

open (IN, $key_file);

while (<IN>) {
        my $key_line = $_;
        chomp $key_line;
        $key_load[$key_index] = $key_line;
        $key_index++;
}

# Search mode
my $log_file = "log.log";
my $log_index = 0;
my @log_load;

if ( ! -e $log_file ) { 
	print "[Error] \[$log_file\] File does not exist. \n"; 
	exit;
} else {
	print "[INFO] Load \[$log_file\] Check OK ...\n"
} 

# log file details
my @log_stat = stat ($log_file);

print "[INFO] $log_file File Details: \n";
print "UID: $log_stat[4] \n";
print "GID: $log_stat[5] \n";
print "Size: $log_stat[7] bytes \n";
print "Atime: $log_stat[8] \n";
print "Mtime: $log_stat[9] \n";
print "\n";

open (IN, $log_file); 

my $key_load = join("|", @key_load);

while (<IN>) {
	my $log_line = $_;
	chomp $log_line;

	$log_index++;

	if ($log_line =~ /$key_load/) {
		$log_line = "\[$log_index\] $log_line \n";
		push @log_load, $log_line;		
	}
}

# Write Mode
my $result_file = "result.log";

open (IN, "+>" . $result_file);

for ($log_index = 0; $log_index < @log_load; $log_index++) {
	print IN "$log_load[$log_index] \n";
}

if (-e $result_file) {
	print "[INFO] Success \[$result_file\] Saved ... \n";
}

# result file details
my @result_stat = stat ($result_file);
print "[INFO] Result Size: $result_stat[7] bytes \n";

# end time
my $time_2 = time();
my $time = $time_2 - $time_1;
# script runtime
print "[INFO] Runtime \[$time\] Second ... \n";