$ w
show all of the login users
$ last
show last login users
$ write username
type message
Ctr+D: end of message
Saturday, February 15, 2014
Thursday, February 13, 2014
unlock a deny host
1.
$ service denyhosts stop
2.
$ vim /etc/hosts.deny
delete the IP from the file
3.
$ cd /va/lib/denyhosts
$ grep -iRH IP ./*
$ service denyhosts stop
2.
$ vim /etc/hosts.deny
delete the IP from the file
3.
$ cd /va/lib/denyhosts
$ grep -iRH IP ./*
[root@server denyhosts]# grep -iRH IP ./*
./hosts:IP:0:Sun Feb 9 11:27:57 2014
./hosts-restricted:IP:0:Sun Feb 9 11:27:57 2014
./hosts-root:IP:0:Sun Feb 9 11:27:57 2014
./hosts-valid:IP:11:Sun Feb 9 11:31:57 2014
./users-hosts:username - IP:11:Sun Feb 9 11:31:57 2014
delete the IPs from all of the files.
4.
$ service denyhosts start
Tuesday, February 4, 2014
Install svnnotify on CentOS 6
http://pkgs.org/centos-6/repoforge-i386/perl-SVN-Notify-2.80-1.el6.rf.noarch.rpm.html
Install Howto
- Download the latest rpmforge-release rpm from
http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/
- Install rpmforge-release rpm:
# rpm -Uvh rpmforge-release*rpm
- Install perl-SVN-Notify rpm package:
# yum install perl-SVN-Notify
You may have some error message
Warning: post-commit hook failed (exit code 2) with output:
Use of qw(...) as parentheses is deprecated at /usr/share/perl5/vendor_perl/SVN/Notify.pm line 730.
Can't locate HTML/Entities.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/share/perl5/vendor_perl/SVN/Notify/HTML/ColorDiff.pm line 6.
Fix it: # yum install perl-HTML-Parser
Subscribe to:
Posts (Atom)