Changes

From SME Server
Jump to navigationJump to search
1,304 bytes added ,  15:29, 17 March 2016
Line 579: Line 579:  
install a minimal Centos7
 
install a minimal Centos7
 
configure network access
 
configure network access
 +
* Setup network:
 +
To start the networking if you can not ping ie not up
 +
[root@buildcos9 ~]# /etc/sysconfig/network-scripts/ifup-eth eth0
 +
* Set DHCP to install basic utilities
 +
[root@buildcos9 ~]#  dhclient eth0
 +
* Install utilities
 +
[root@buildcos9 ~]# yum install nano system-config-network-tui mc man htop top iftop iptraf screen openssh-clients mlocate
 +
* Finalise network setup
 +
[root@buildcos9 ~]# nano /etc/sysconfig/network-scripts/ifcfg-eth0
 +
and set manually if necessary:
 +
DEVICE="eth0"
 +
BOOTPROTO="none"
 +
HWADDR="00:E0:4C:68:21:6D"
 +
IPADDR=192.168.xxx.12
 +
NETMASK=255.255.255.0
 +
GATEWAY=192.168.xxx.3
 +
DNS1=192.168.xxx.3
 +
IPV6INIT=no
 +
NM_CONTROLLED="yes"
 +
ONBOOT="YES"
 +
TYPE="Ethernet"
 +
UUID="fe6ebc0d-dbee-4bf6-a3cf-5e84c5453549"
 +
 +
Check and restart:
 +
[root@buildcos9 ~]# chkconfig network on
 +
[root@buildcos9 ~]# service network restart
 +
 +
*  Enable SSH
 +
SSH is present but is disabled at this stage. To enable ssh issue:
 +
service sshd start
 +
 +
You may have a slow login to ssh, if needed :
 +
nano /etc/ssh/sshd_config
 +
 +
And change the “UseDNS yes” field to “UseDNS no”.
 +
Now change the “GSSAPIAuthentication yes” line to “GSSAPIAuthentication no”.
 +
 +
You have to restart the ssh service or the server
 +
 +
* Reboot system to ensure all new config are permanent
 +
  [root@buildcos9 ~]# reboot
 +
 
update packages
 
update packages
 
  yum update
 
  yum update
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu