Tag Archives: Howto

Home »  Tag: Howto

Assumption: clean fresh minimal installed RedHat or Centos (or any similar linux) registered and updated to the latest revisions: rhn_register #with your details yum -y update #to get latest updates make sure either dns is working or your hosts and IP are in the local /etc/hosts file Time to start the clock: Install the needed packages. # yum -y install mysql-server httpd php php-mysql unzip wget # chkconfig httpd on; chkconfig mysqld on # /etc/init.d/mysqld start Initializing MySQL database:  Installing MySQL system tables.. . OK Filling help tables… OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password ‘new-password’ /usr/bin/mysqladmin -u root -h wiki.sabeo.ie password ‘new-password’ Alternatively you can run: /usr/bin/mysql_secure_installation which will also […]

Fairly easy task I want to rename my RedHat host. Temporarily change the hostname: hostname NEW-HOSTNAME If you like to change it permanently: vi /etc/sysconfig/network And change the host details in there. Then restart the network service network restart Related posts: RedHat 6.x/CentOS 6.x: Rename RHN Satellite (Spacewalk) Server Linux / VMware: Howto Increase a / (Root) LVM partition on a single vmdk without adding another partition Linux: Howto show the Servers IP address at the login console RedHat / Ubuntu / Solaris / Linux: Slow SSH logins (5 second delay) RedHat 6.x / Centos 6.x: How to install in WordPress in less than 10 minutes Centos / Debian / LVM: Add a new disk as a LVM volume

Howto Increase a / (Root) LVM partition on a single vmdk without adding another partition (For example under VMware Workstation)   Increase Vmware partition and LVM Resize your vmdk under VMWare as you would do it usually. Once you’ve resized the vmdk I advise to take a snapshot while everything is still fine. That way if you completely screw your VM’s partition table you have a back-out Run # df -h Filesystem            Size  Used Avail Use% Mounted on /dev/mapper/vg_sat01-lv_root                        16G  3.9G   11G  27% / tmpfs                 935M     0  935M   0% /dev/shm /dev/sda1             485M   37M  423M   8% /boot It will all look a bit like this run # /sbin/fdisk -u -l /dev/sda Disk /dev/sda: 96.6 GB, 96636764160 bytes 255 heads, 63 sectors/track, 11748 cylinders, total 188743680 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 […]

%d bloggers like this: