Centos is the Community OS which is Red Hat without the branding...
vi /etc/sysconfig/network-scripts/ifcfg-eth0 # permanent modifications to networking
DEVICE="eth0" BOOTPROTO="dhcp" NM_CONTROLLED="yes" ONBOOT="yes" TYPE="Ethernet"
DEVICE=eth0 ONBOOT=yes BOOTPROTO=static
IPADDR=192.168.1.59 NETMASK=255.255.255.0 BROADCAST=192.168.1.255 NETWORK=192.168.1.0
PEERDNS=yes # if PEERDNS is not set or set to no then the settings will NOT be applied to /etc/resolv.conf DNS1=192.168.1.30 DNS2=192.168.1.3
HWADDR=08:00:27:B4:79:93
DHCP_HOSTNAME=madics-vm
GATEWAY=192.168.1.3 TYPE=Ethernet
vi /etc/sysconfig/network NETWORKING=yes HOSTNAME="myhostname"
GATEWAY="192.168.0.1"
GATEWAYDEV="eth0"
FORWARD_IPV4="yes"
/etc/init.d/network force-reload /etc/init.d/network restart
ifconfig ifdown eth0 ifup eth0
same as C:\WINDOWS\system32\drivers\etc\hosts
vi /etc/hosts # is the manual location to enter computer name / ip address pairs
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.35 wss 192.168.1.35 crm
CIFS connection to windows domain share
NOTE: the order is important, the forward slash for the domain is important, and you may need to first run:
yum install samba-client
mount -t cifs //192.168.1.35/external /mnt/external -o username=domain/user,password=thepass
mount -t cifs //192.168.1.35/external /mnt/external -o username=domain/user (will be prompted for password)
tar --atime-preserve --dereference -cvpzf /mnt/external/linux-backups/2009-08-26-madics-vm-full.tgz --exclude=/cdrom --exclude=/dev --exclude=/lost+found --exclude=/mnt --exclude=/opt --exclude=/proc --exclude=/sys --exclude=/tmp / > /mnt/external/linux-backups/2009-08-26-madics-vm-full-log.txt
red-hat-centos-basics
yum install screen
su - //not sudo su
visudo
username ALL=(ALL) ALL
passwd -l root #you can disable root (after adding yourself to sudo) maybe not a good idea?
ls -ahltr date netstat -an --inet reboot halt -p
TIMEZONES CAT /etc/localtime cat /etc/sysconfig/clock /etc/init.d/ntpd status /sbin/hwclock DATE