18
Feb
Posted in CentOS by carlosap |
EPEL is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs such as CentOS or Scientific Linux.
http://fedoraproject.org/wiki/EPEL
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm'
...
su -c 'yum -y install foo'
18
Feb
Posted in CentOS by carlosap |
ls -t
ls -Z
Text Syntax Virtual Host Options:
httpd -t
httpd -S
httpd: Could not reliably determine the server’s fully qualified domain name, using 192.168.1.5 for ServerName
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443 192.168.1.5 (/etc/httpd/conf.d/ssl.conf:81)
Syntax OK
Configure SElinux Contexts : Use same context as /var/www/html
sudo chcon -R –reference=/var/www/html/ public_html/
17
Feb
Posted in CentOS by carlosap |
Primero bootear en el cd de rescate:
1) boot: Linux Rescue
2) Omitir montar partición
//cargar los volumentes lógicos
# lvm vgchange -a y
//Comprobar el disco duro
# e2fsck -f /dev/VolGroup00/LogVol00
//Reducir el tamaño
# resize2fs -f /dev/VolGroup00/LogVol00 10G
//Reducir el tamaño lógico
# lvm lvreduce -L10G /dev/VolGroup00/LogVol00
Crear la partición home
# lvcreate -L50G -nhome /dev/VolGroup00
Formatearla
mkfs -t ext3 /dev/VolGroup00/home
/etc/fstab
/dev/VolGroup00/home /home ext3 suid,dev,exec 0 0
16
Feb
Posted in CentOS by carlosap |
it has path completion and user friendly features:
$lftp sftp://user@server1
16
Feb
Posted in CentOS by carlosap |
$ echo $HISTFILE $HISTSIZE $HISTFILESIZE
/home/user/.bash_history 1000 1000
List previous number of history commands
$ history 5
1033 sudo yum update
1034 echo $HISTFILE $HISTSIZE $HISTFILESIZE
1035 history
1036 echo $HISTFILE $HISTSIZE $HISTFILESIZE
1037 history 5
Ctrl + r to search a string history
16
Feb
Posted in CentOS by carlosap |
Command and Sample Output :: Description
Show the first mount command in PATH:
$ type mount
mount is /bin/mount
Show binary source, and man pages for mount:
$ whereis mount
mount: /bin/mount /sbin/mount.cifs /sbin/mount.nfs /sbin/mount.nfs4
/usr/share/man/man2/mount.2.gz /usr/share/man/man8/mount.8.gz
Find bash.ps anywhere in the file system
$ locate bash.ps
/usr/share/doc/bash-3.1/bash.ps
/usr/share/doc/bash-3.1/rbash.ps
Find the umount command anywhere in your PATH or aliases
$ which umount
/bin/umount
Find umount in any installed package
$ rpm -qal |grep umount
/usr/share/man/es/man2/umount.2.gz
/sbin/umount.nfs
/sbin/umount.nfs4
Finds bzfs in the bzflag package
$yum install bzflag
find man pages for commands related to a certain word
$apropos crontab
show NAME lines alone for commands
$whatis cat
15
Feb
Posted in CentOS by carlosap |
Introduction
To update the system applying the most recent corrective patches of security and to the operating system is not as difficult as many do not suppose, nor either must be a hell of dependencies between packages RPM as some others argue. The reality of the things is that it is much very simple and single requires of good bandwidth or very many patience. Next we presented/displayed the procedures to use yum and to make easily what some denominate “horrible, difficult and complicated “.
Read more… »
14
Feb
Posted in Security by carlosap |
locally checks for signs of a rootkit:
CHKROOTKIT
http://www.chkrootkit.org/download/
5. Installation
—————
To compile the C programs type:
# make sense
After that it is ready to use and you can simply type:
# ./chkrootkit