up

CentOS is hard

First, activate root:

sudo su

Set ip:

Gotta find out what your ethernet interface is called.

Sometimes it’s eno16777736, sometimes its eth33 or similar.

ifconfig

Then, config the interface.

ifconfig eno16777736 10.150.x.y netmask 255.255.255.0 up

Then, hit the up arrow and hit enter again. Running this once isn’t enough. Sometimes twice isn’t enough.

Set Gateway:

ip route add default via 10.150.x.254

Run this twice too.

Set DNS:

vim /etc/resolv.conf

Add This Line: nameserver 8.8.8.8

Fix YUM:

yum clean all
yum --disablerepo=\* --enablerepo=base,extras,updates update

SSH with X11 forwarding:

ssh -CY student@10.150.x.y

C enables compression, makes things faster
Y enables X11 forwarding, trusted, no extra security.