Since I am preparing for the RHCSA this Spring, I figured I should install Centos 7 on it. To do the install, I needed to connect it to a monitor, keyboard, and mouse. I setup the following LVM partitions:
/boot 500 MiB xfsand did a minimal install, then ran:
swap 1 GiB
/ 20 GiB xfs
/var 197 GiB ext4
/home 241 GiB ext4
# yum updateThe next task was to configure it to have a static IP address, after which I could unplug it from the monitor, keyboard, and mouse and put it back on the shelf. To set a static IP address, I used this and this web pages as guides. I ran:
# yum install net-tools
# yum install vim
# vi /etc/sysconfig/network-scripts/ifcfg-ens32and changed:
TYPE="Ethernet"to:
BOOTPROTO="dhcp"
DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
NAME="ens32"
UUID="aed7d424-7293-4db7-8a89-c25f77557bf9"
DEVICE="ens32"
ONBOOT="yes"
TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="ens32"
UUID="aed7d424-7293-4db7-8a89-c25f77557bf9"
DEVICE="ens32"
ONBOOT="yes"
HWADDR="00:01:2e:bd:15:e3"
IPADDR="10.0.0.254"
PREFIX="24"
GATEWAY="10.0.0.1"
DNS="10.0.0.1"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
I tested that I could connect to the new server from outside, and it worked, but it actually took more than 2 minutes to connect. I'll have to look into why that is.
Symlinking python3 to python3.4
Next I installed Python 3.4 (since what use is a computer without Python 3?) using the steps I described in my previous post.
To be able to type python3 instead of python3.4 to launch this version of Python, I made a symbolic link. First I took a look at the .bash_profile file, which contained the following:
# .bash_profile.local/bin is being added to the PATH, but I didn't yet have this directory, so I made it and then changed directories to it:
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
$ mkdir .local$ mkdir .local/binfrom here I ran:
$ cd .local/bin
$ which python3.4to find out where it was located, and then made the symlink:
$ ln -s /usr/bin/python3.4 python3after which I could launch Python 3 they way I wanted, as the following screenshot shows:
No comments:
Post a Comment