User Tools

Site Tools


linux:install_centos6

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:install_centos6 [2020/05/24 14:27] – created bstaffordlinux:install_centos6 [2022/11/23 12:49] (current) – external edit 127.0.0.1
Line 148: Line 148:
  
 Configure the network settings on the machine. Copy the following section of text into a text editor and change the values of the variables as appropriate to match the values you are using for the machine you are setting up. Open up a terminal as root on the machine and paste in the text. If necessary, access this wiki page from within the machine and copy/paste these commands manually (editing them as needed). Configure the network settings on the machine. Copy the following section of text into a text editor and change the values of the variables as appropriate to match the values you are using for the machine you are setting up. Open up a terminal as root on the machine and paste in the text. If necessary, access this wiki page from within the machine and copy/paste these commands manually (editing them as needed).
-'' +<code>IPADDRESS=172.16.1.10
-IPADDRESS=172.16.1.10+
 SUBNET=255.255.0.0 SUBNET=255.255.0.0
 GATEWAY=172.16.10.10 GATEWAY=172.16.10.10
Line 179: Line 178:
 echo "nameserver $DNS2" >> $TARGETFILE echo "nameserver $DNS2" >> $TARGETFILE
  
-service network restart''+service network restart</code>
 =====Fix Localisations===== =====Fix Localisations=====
 You may need to log into Gnome to get the user-dirs.locale generated. You may need to log into Gnome to get the user-dirs.locale generated.
-''sed -i "s/_US/_GB/g" /root/.config/user-dirs.locale +<code>sed -i "s/_US/_GB/g" /root/.config/user-dirs.locale 
-sed -i "s/_US/_GB/g" /etc/sysconfig/i18n''+sed -i "s/_US/_GB/g" /etc/sysconfig/i18n</code>
 =====Set Skel===== =====Set Skel=====
-''mkdir /etc/skel/.config+<code>mkdir /etc/skel/.config
 cp /root/.config/user-dirs.locale /etc/skel/.config/ cp /root/.config/user-dirs.locale /etc/skel/.config/
 cp /root/.config/user-dirs.dirs /etc/skel/.config/ cp /root/.config/user-dirs.dirs /etc/skel/.config/
Line 195: Line 194:
 mkdir /etc/skel/Public mkdir /etc/skel/Public
 mkdir /etc/skel/Templates mkdir /etc/skel/Templates
-mkdir /etc/skel/Videos''+mkdir /etc/skel/Videos</code>
 =====Add and Remove Software===== =====Add and Remove Software=====
 CentOS comes with Java 1.6 installed. We don't want this so remove it. CentOS comes with Java 1.6 installed. We don't want this so remove it.
-''yum -y remove java''+<code>yum -y remove java</code>
  
 We now need to install lots of software We now need to install lots of software
Line 207: Line 206:
   - Install the bits needed to install the Guest Addons for VirtualBox or VMware. These are also very useful to install in general as they are required by many software packages   - Install the bits needed to install the Guest Addons for VirtualBox or VMware. These are also very useful to install in general as they are required by many software packages
  
-''yum -y install \+<code>yum -y install \
     gedit gconf-editor \     gedit gconf-editor \
     perl \     perl \
Line 213: Line 212:
     policycoreutils-python \     policycoreutils-python \
     gcc kernel kernel-devel kernel-headers dkms make bzip2 \     gcc kernel kernel-devel kernel-headers dkms make bzip2 \
-    wget unzip openssh-clients cifs-utils''+    wget unzip openssh-clients cifs-utils</code>
  
 Now that Java is installed, set JAVA_HOME so that when and if we install Groovy, it will work properly. Now that Java is installed, set JAVA_HOME so that when and if we install Groovy, it will work properly.
-''echo 'export JAVA_HOME=/usr/lib/jvm/java; export JAVA_HOME' >> /etc/profile''+<code>echo 'export JAVA_HOME=/usr/lib/jvm/java; export JAVA_HOME' >> /etc/profile</code>
 Restart the machine by clicking System->Shutdown->Restart or by typing 'init 6' in the root terminal window. Restart the machine by clicking System->Shutdown->Restart or by typing 'init 6' in the root terminal window.
  
linux/install_centos6.1590330476.txt.gz · Last modified: (external edit)