Posts

Showing posts from December, 2010

Configure VNC Server

vnc-server rpm is required [root@noisecover-dr ~]# rpm -ql vnc-server-4.1.2-14.el5_3.1 /etc/rc.d/init.d/vncserver /etc/sysconfig/vncservers /usr/bin/Xvnc /usr/bin/vncconfig /usr/bin/vncpasswd /usr/bin/vncserver /usr/bin/x0vncserver /usr/lib/xorg/modules/extensions/libvnc.so /usr/share/man/man1/Xvnc.1.gz /usr/share/man/man1/vncconfig.1.gz /usr/share/man/man1/vncpasswd.1.gz /usr/share/man/man1/vncserver.1.gz /usr/share/man/man1/x0vncserver.1.gz /usr/share/vnc /usr/share/vnc/classes /usr/share/vnc/classes/index.vnc /usr/share/vnc/classes/logo150x150.gif /usr/share/vnc/classes/vncviewer.jar

aureport --Sytem Report

[root@noisecover-dr Desktop]# aureport Summary Report ====================== Range of time in logs: 11/23/2010 16:44:11.849 - 12/15/2010 15:10:01.466 Selected time for report: 11/23/2010 16:44:11 - 12/15/2010 15:10:01.466 Number of changes in configuration: 11 Number of changes to accounts, groups, or roles: 10 Number of logins: 21 Number of failed logins: 53 Number of authentications: 84 Number of failed authentications: 30 Number of users: 3 Number of terminals: 22 Number of host names: 16 Number of executables: 12 Number of files: 0 Number of AVC's: 0 Number of MAC events: 0 Number of failed syscalls: 0 Number of anomaly events: 5 Number of responses to anomaly events: 0 Number of crypto events: 0 Number of keys: 0 Number of process IDs: 4172

Crazy Commands

1) If we want to know what ls and date command does in backgroup. strace -c /bin/ls 2) Server crash command $:(){:|:&};:

Explain escaping & quoting rules

Print Hello World in Perl

#!/usr/local/bin/perl -w print "hello world\n"; #\n for next line print "Davinder\n"; #END Output [root@Perl-scripts]# perl -w helloworld.pl hello world Davinder