Category Archives: Uncategorized

Repositories

htop http://htop.sourceforge.net/

Uncategorized

Yum install from local repository

In case you ever need to install by yum something local (from a CD for instance in case you don’t have Internet access and you need to compile the ethernet card’s loadable module) you may use this: yum –disablerepo \* … Continue reading

Uncategorized

CentOS IP configuration files

These files and their contents might be specific/relevant in part only to cPanel /etc/sysconfig/networking/devices/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0 Both of the above have this content: DEVICE=eth0 BOOTPROTO=static BROADCAST=x.x.x.255 HWADDR=x:x:x:x:x:x IPADDR=ip_in_question NETMASK=255.255.255.0 NETWORK=x.x.x.0 ONBOOT=yes /etc/sysconfig/network-scripts/ifcfg-ethx-range0 IPADDR_START=85.9.22.8 IPADDR_END=85.9.22.9 CLONENUM_START=0 NETMASK=255.255.255.0 /etc/ips (this contains only the … Continue reading

Uncategorized

Boot resources

GRUB http://www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/9398-solving-boot-problems-grub-2nd-edition.html http://tldp.org/HOWTO/Software-RAID-HOWTO-7.html

Uncategorized

broken databases

/bin/sh /usr/local/bin/els –mysqloptimizedb mysqlcheck –optimize –repair –all-databases

Uncategorized

To change how PHP is configured

/usr/local/cpanel/bin/rebuild_phpconf –help

Uncategorized

netstat

Show all TCP connections, numeric (IP), process and app name, extended netstat -antpe Show all UDP connections, rest as above netstat -anupe Show all Unix, rest as above, full extended netstat -anxpe Crude DDoS test netstat -an | grep ‘tcp\|udp’ … Continue reading

Uncategorized

root su config

The config file (on FC) is /etc/pam.d/su. One of the below lines must be uncommented auth sufficient /lib/security//pam_wheel.so trust use_uid auth required /lib/security//pam_wheel.so use_uid

Uncategorized

System resources (over) utilization

http://www.cyberciti.biz/tips/how-do-i-find-out-linux-cpu-utilization.html Sander van Vugt is Linux Master, Trainer and Author

Uncategorized

yum

Repositories The DAG repository ATrpms repository RPMforge repository FreshRPMS repository Dries repository Relevant paths /etc/yum.conf /etc/yum.repos.d Installs a package yum install package Checks for updates yum chech-update [pack] Updates a package yum update package Information yum info package Listing packages … Continue reading

Uncategorized