mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 23:08:49 +01:00
Created Installing Tracks 2.2.2 on CentOS 6.5 Minimal x86_64 (markdown)
parent
38317d5563
commit
fc56da8532
1 changed files with 267 additions and 0 deletions
267
Installing-Tracks-2.2.2-on-CentOS-6.5-Minimal-x86_64.md
Normal file
267
Installing-Tracks-2.2.2-on-CentOS-6.5-Minimal-x86_64.md
Normal file
|
|
@ -0,0 +1,267 @@
|
|||
Installing Tracks 2.2.2 on CentOS 6.5 Minimal x86_64
|
||||
|
||||
https://github.com/TracksApp/tracks/wiki/Installing-Tracks-2.2.2-on-CentOS-6.5-Minimal-x86_64
|
||||
|
||||
Build Overview
|
||||
|
||||
1. Base Operating System
|
||||
|
||||
|
||||
1. Base Operating System
|
||||
|
||||
Base CentOS Installation Task Overview
|
||||
* Obtain media
|
||||
* Installation
|
||||
* Basic configuration
|
||||
* Verify operation
|
||||
* Time zone
|
||||
* EPEL
|
||||
* Virtual machine?
|
||||
* Update
|
||||
|
||||
Obtain Media
|
||||
If you are new to Linux or new to CentOS minimal installations, I would advise reviewing all the information at the URL below. Otherwise, scroll down and select the download URL under section 2. We will be using x86_64 version, also, known as 64 bit. The 32 bit version *should* work as well.
|
||||
http://wiki.centos.org/Manuals/ReleaseNotes/CentOSMinimalCD6.5
|
||||
|
||||
Installation
|
||||
Boot from media and, generally, accept the defaults. You have an opportunity to provide time zone, a host name, configure network interfaces, provide DNS IPs, and domain search. If configured at this point, the installation script automatically configures the resulting installation using these settings. It is a time saver, however, I am going to assume either these setting have not been set or changes will be needed.
|
||||
|
||||
You may skip to the section titled "Verify Operation" if you complete all the settings using the installation GUI.
|
||||
|
||||
Basic Configuration
|
||||
Network Interface Settings
|
||||
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-networkscripts-interfaces.html
|
||||
|
||||
The default interface settings will be as follows with the exception that your HWADDR and UUID will differ:
|
||||
`[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0`
|
||||
|
||||
`DEVICE=eth0`
|
||||
`HWADDR=00:0C:29:C5:0D:BD`
|
||||
`TYPE=Ethernet`
|
||||
`UUID=0250e398-8918-4e9d-afd7-7ae04258810f`
|
||||
`ONBOOT=no`
|
||||
`NM_CONTROLLED=yes`
|
||||
`BOOTPROTO=dhcp`
|
||||
|
||||
`[root@localhost ~]# ifconfig`
|
||||
|
||||
`lo Link encap:Local Loopback`
|
||||
`inet addr:127.0.0.1 Mask:255.0.0.0`
|
||||
`inet6 addr: ::1/128 Scope:Host`
|
||||
`UP LOOPBACK RUNNING MTU:16436 Metric:1`
|
||||
`RX packets:0 errors:0 dropped:0 overruns:0 frame:0`
|
||||
`TX packets:0 errors:0 dropped:0 overruns:0 carrier:0`
|
||||
`collisions:0 txqueuelen:0`
|
||||
`RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)`
|
||||
|
||||
|
||||
If you desire to use DHCP, update ifcfg-eth0 using ONBOOT value from no to yes, save, then restart network services.
|
||||
`[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0`
|
||||
|
||||
`DEVICE=eth0`
|
||||
`HWADDR=00:0C:29:C5:0D:BD`
|
||||
`TYPE=Ethernet`
|
||||
`UUID=0250e398-8918-4e9d-afd7-7ae04258810f`
|
||||
`ONBOOT=yes`
|
||||
`NM_CONTROLLED=yes`
|
||||
`BOOTPROTO=dhcp`
|
||||
|
||||
`[root@localhost ~]# service network restart`
|
||||
`Shutting down loopback interface: [ OK ]`
|
||||
`Bringing up loopback interface: [ OK ]`
|
||||
`Bringing up interface eth0:`
|
||||
`Determining IP information for eth0... done.`
|
||||
`[ OK ]`
|
||||
|
||||
`[root@localhost ~]# ifconfig`
|
||||
`eth0 Link encap:Ethernet HWaddr 00:0C:29:C5:0D:BD`
|
||||
`inet addr:192.168.113.130 Bcast:192.168.113.255 Mask:255.255.255.0`
|
||||
`inet6 addr: fe80::20c:29ff:fec5:dbd/64 Scope:Link`
|
||||
`UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1`
|
||||
`RX packets:67 errors:0 dropped:0 overruns:0 frame:0`
|
||||
`TX packets:60 errors:0 dropped:0 overruns:0 carrier:0`
|
||||
`collisions:0 txqueuelen:1000`
|
||||
`RX bytes:7680 (7.5 KiB) TX bytes:8493 (8.2 KiB)`
|
||||
|
||||
`lo Link encap:Local Loopback`
|
||||
`inet addr:127.0.0.1 Mask:255.0.0.0`
|
||||
`inet6 addr: ::1/128 Scope:Host`
|
||||
`UP LOOPBACK RUNNING MTU:16436 Metric:1`
|
||||
`RX packets:0 errors:0 dropped:0 overruns:0 frame:0`
|
||||
`TX packets:0 errors:0 dropped:0 overruns:0 carrier:0`
|
||||
`collisions:0 txqueuelen:0`
|
||||
`RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)`
|
||||
|
||||
|
||||
If you are going to use a static IP address, then update ifcfg-eth0 options with values for your network. Note the NM-CONROLLED can be safely ignored ore removed for on CentOS minimal installations, NM or Network Manager is not installed.
|
||||
`[root@localhost ~]# cd /etc/sysconfig/network-scripts`
|
||||
`[root@localhost network-scripts]# vi ifcfg-eth0`
|
||||
|
||||
`DEVICE=eth0`
|
||||
`HWADDR=00:0C:29:C5:0D:BD`
|
||||
`TYPE=Ethernet`
|
||||
`UUID=0250e398-8918-4e9d-afd7-7ae04258810f`
|
||||
`ONBOOT=yes`
|
||||
`NM_CONTROLLED=no`
|
||||
`BOOTPROTO=none`
|
||||
`IPADDR=192.168.113.150`
|
||||
`NETMASK=255.255.255.0`
|
||||
|
||||
`[root@localhost network-scripts]# service network restart`
|
||||
`Shutting down interface eth0: [ OK ]`
|
||||
`Shutting down loopback interface: [ OK ]`
|
||||
`Bringing up loopback interface: [ OK ]`
|
||||
`Bringing up interface eth0: Determining if ip address 192.168.113.150 is already in use for device eth0...`
|
||||
`[ OK ]`
|
||||
`[root@localhost network-scripts]# ifconfig`
|
||||
`eth0 Link encap:Ethernet HWaddr 00:0C:29:C5:0D:BD`
|
||||
`inet addr:192.168.113.150 Bcast:192.168.113.255 Mask:255.255.255.0`
|
||||
`inet6 addr: fe80::20c:29ff:fec5:dbd/64 Scope:Link`
|
||||
`UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1`
|
||||
`RX packets:455 errors:0 dropped:0 overruns:0 frame:0`
|
||||
`TX packets:293 errors:0 dropped:0 overruns:0 carrier:0`
|
||||
`collisions:0 txqueuelen:1000`
|
||||
`RX bytes:45176 (44.1 KiB) TX bytes:42738 (41.7 KiB)`
|
||||
|
||||
`lo Link encap:Local Loopback`
|
||||
`inet addr:127.0.0.1 Mask:255.0.0.0`
|
||||
`inet6 addr: ::1/128 Scope:Host`
|
||||
`UP LOOPBACK RUNNING MTU:16436 Metric:1`
|
||||
`RX packets:0 errors:0 dropped:0 overruns:0 frame:0`
|
||||
`TX packets:0 errors:0 dropped:0 overruns:0 carrier:0`
|
||||
`collisions:0 txqueuelen:0`
|
||||
`RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)`
|
||||
|
||||
|
||||
Network Settings
|
||||
Reference: http://www.centos.org/docs/5/html/5.2/Deployment_Guide/s2-sysconfig-network.html
|
||||
|
||||
Default settings after installation are as follows:
|
||||
`[root@localhost ~]# cat /etc/sysconfig/network`
|
||||
`NETWORKING=yes`
|
||||
`HOSTNAME=localhost.localdomain`
|
||||
|
||||
`[root@www ~]# hostname`
|
||||
`localhost.localdomain`
|
||||
`[root@localhost ~]# route`
|
||||
`Kernel IP routing table`
|
||||
`Destination Gateway Genmask Flags Metric Ref Use Iface`
|
||||
`192.168.113.0 * 255.255.255.0 U 0 0 0 eth0`
|
||||
`link-local * 255.255.0.0 U 1002 0 0 eth0`
|
||||
|
||||
|
||||
Update the "network" file with both the network and fully qualified domain name (FQDN). This will result with a default layer 3 or routing gateway. Note a log off and on or reboot is needed to see 'hostname' updated.
|
||||
`[root@localhost ~]# vi /etc/sysconfig/network`
|
||||
|
||||
`NETWORKING=yes`
|
||||
`HOSTNAME=www.mydomain.com`
|
||||
`GATEWAY=192.168.113.254`
|
||||
|
||||
`[root@localhost ~]# service network restart`
|
||||
`Shutting down interface eth0: [ OK ]`
|
||||
`Shutting down loopback interface: [ OK ]`
|
||||
`Bringing up loopback interface: [ OK ]`
|
||||
`Bringing up interface eth0: Determining if ip address 192.168.113.150 is already in use for device eth0...`
|
||||
`[ OK ]`
|
||||
|
||||
`[root@www ~]# hostname`
|
||||
`www.mydomain.com`
|
||||
`[root@localhost ~]# route`
|
||||
`Kernel IP routing table`
|
||||
`Destination Gateway Genmask Flags Metric Ref Use Iface`
|
||||
`192.168.113.0 * 255.255.255.0 U 0 0 0 eth0`
|
||||
`link-local * 255.255.0.0 U 1002 0 0 eth0`
|
||||
`default 192.168.113.254 0.0.0.0 UG 0 0 0 eth0`
|
||||
|
||||
Hosts Settings
|
||||
Note the current settings.
|
||||
`[root@www ~]# cat /etc/hosts`
|
||||
|
||||
`127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4`
|
||||
`::1 localhost localhost.localdomain localhost6 localhost6.localdomain6`
|
||||
|
||||
|
||||
To update the host name, update the hosts file as follows:
|
||||
[`root@www ~]# vi /etc/hosts`
|
||||
|
||||
`192.168.113.150 www www.mydomain.com`
|
||||
`127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4`
|
||||
`::1 localhost localhost.localdomain localhost6 localhost6.localdomain6`
|
||||
|
||||
`[root@www ~]# service network restart`
|
||||
`Shutting down interface eth0: [ OK ]`
|
||||
`Shutting down loopback interface: [ OK ]`
|
||||
`Bringing up loopback interface: [ OK ]`
|
||||
`Bringing up interface eth0: Determining if ip address 192.168.113.150 is already in use for device eth0...`
|
||||
`[ OK ]`
|
||||
|
||||
|
||||
Resolution Settings
|
||||
Configure DNS resolution settings. Current setting shown below are a result of using DHCP, initially. Your resolv.conf may differ.
|
||||
`[root@www ~]# cat /etc/resolv.conf`
|
||||
`; generated by /sbin/dhclient-script`
|
||||
`search localdomain`
|
||||
`nameserver 192.168.113.254`
|
||||
|
||||
Update resolv.conf providing DNS IP addresses and domain suffix search order.
|
||||
`[root@www ~]# cat /etc/resolv.conf`
|
||||
`search subdom.mydomain.com mydomain.com`
|
||||
`nameserver 8.8.8.8`
|
||||
`nameserver 8.8.4.4`
|
||||
|
||||
|
||||
Verifying Operations
|
||||
Use ping for an incomplete test, but it will verify basic interface, routing, and name resolution operation.
|
||||
`[root@www ~]# ping www.google.com -c 5`
|
||||
`PING www.google.com (74.125.239.48) 56(84) bytes of data.`
|
||||
`64 bytes from nuq04s19-in-f16.1e100.net (74.125.239.48): icmp_seq=1 ttl=128 time=9.83 ms`
|
||||
`64 bytes from nuq04s19-in-f16.1e100.net (74.125.239.48): icmp_seq=2 ttl=128 time=9.05 ms`
|
||||
`64 bytes from nuq04s19-in-f16.1e100.net (74.125.239.48): icmp_seq=3 ttl=128 time=13.4 ms`
|
||||
`64 bytes from nuq04s19-in-f16.1e100.net (74.125.239.48): icmp_seq=4 ttl=128 time=8.40 ms`
|
||||
`64 bytes from nuq04s19-in-f16.1e100.net (74.125.239.48): icmp_seq=5 ttl=128 time=8.25 ms`
|
||||
|
||||
`--- www.google.com ping statistics ---`
|
||||
`5 packets transmitted, 5 received, 0% packet loss, time 4070ms`
|
||||
`rtt min/avg/max/mdev = 8.256/9.808/13.490/1.924 ms`
|
||||
|
||||
|
||||
Time Zone
|
||||
After installation, the default time zone is America/New_York. Changing the time can be done several ways. My preference is to first identify the time zone by listing /usr/share/zoneinfo. For example, /usr/share/zoneinfo/America/Los_Angeles, then update /etc/sysconfig/clock.
|
||||
`[root@www ~]# cat /etc/sysconfig/clock`
|
||||
`ZONE="America/New_York"`
|
||||
`[root@localhost ~]# ls /usr/share/zoneinfo/America/`
|
||||
`Adak Coral_Harbour Hermosillo Moncton Santarem`
|
||||
`Anchorage Cordoba Indiana Monterrey Santiago`
|
||||
`Anguilla Costa_Rica Indianapolis Montevideo Santo_Domingo`
|
||||
`Antigua Creston Inuvik Montreal Sao_Paulo`
|
||||
`Araguaina Cuiaba Iqaluit Montserrat Scoresbysund`
|
||||
`Argentina Curacao Jamaica Nassau Shiprock`
|
||||
`Aruba Danmarkshavn Jujuy New_York Sitka`
|
||||
`Asuncion Dawson Juneau Nipigon St_Barthelemy`
|
||||
`Atikokan Dawson_Creek Kentucky Nome St_Johns`
|
||||
`Atka Denver Knox_IN Noronha St_Kitts`
|
||||
`Bahia Detroit Kralendijk North_Dakota St_Lucia`
|
||||
`Bahia_Banderas Dominica La_Paz Ojinaga St_Thomas`
|
||||
`Barbados Edmonton Lima Panama St_Vincent`
|
||||
`Belem Eirunepe Los_Angeles Pangnirtung Swift_Current`
|
||||
`Belize El_Salvador Louisville Paramaribo Tegucigalpa`
|
||||
`Blanc-Sablon Ensenada Lower_Princes Phoenix Thule`
|
||||
`Boa_Vista Fortaleza Maceio Port-au-Prince Thunder_Bay`
|
||||
`Bogota Fort_Wayne Managua Porto_Acre Tijuana`
|
||||
`Boise Glace_Bay Manaus Port_of_Spain Toronto`
|
||||
`Buenos_Aires Godthab Marigot Porto_Velho Tortola`
|
||||
`Cambridge_Bay Goose_Bay Martinique Puerto_Rico Vancouver`
|
||||
`Campo_Grande Grand_Turk Matamoros Rainy_River Virgin`
|
||||
`Cancun Grenada Mazatlan Rankin_Inlet Whitehorse`
|
||||
`Caracas Guadeloupe Mendoza Recife Winnipeg`
|
||||
`Catamarca Guatemala Menominee Regina Yakutat`
|
||||
`Cayenne Guayaquil Merida Resolute Yellowknife`
|
||||
`Cayman Guyana Metlakatla Rio_Branco`
|
||||
`Chicago Halifax Mexico_City Rosario`
|
||||
`Chihuahua Havana Miquelon Santa_Isabel`
|
||||
`[root@www ~]#`
|
||||
|
||||
Once you have identified you time zone, i.e. Los_Angeles, update the clock file.
|
||||
`[root@www ~]# vi /etc/sysconfig/clock`
|
||||
`ZONE="America/New_York"`
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue