Difference between revisions of "Mirror"

From CSLabsWiki
Jump to: navigation, search
Line 27: Line 27:
 
It is in progress of being set up in software and the entire hardware setup has been finalized (symbolized by a pair GPL3 stickers stuck to the top to hold the lid closed).
 
It is in progress of being set up in software and the entire hardware setup has been finalized (symbolized by a pair GPL3 stickers stuck to the top to hold the lid closed).
  
=Installation=
+
==Installation==
  
 
*Install Debian from netinst, 64 bits obviously.
 
*Install Debian from netinst, 64 bits obviously.
Line 82: Line 82:
 
</pre>
 
</pre>
  
=ZFS Config=
+
==ZFS Config==
 
TODO
 
TODO
  
=Apache Webserver=
+
==Apache Webserver==
 
Install apache
 
Install apache
 
<pre>
 
<pre>

Revision as of 12:18, 15 April 2016

Mirror
IP Address(es): 128.153.145.20
Contact Person: Bobby Newman
Last Update: 4/14/2016
Services: Open Source Projects Mirror


Hostname: nmirror
Operating system: Debian 8 x64
NIC 1: Clarkson Network
MAC: 00:25:90:08:07:18
IP: 128.153.145.20
CPU: Intel Xeon Processor E5504 (8 Cores)
RAM: 64GB


Mirror is COSI's mirror for FOSS projects. It hosts an array of GNU/Linux distributions and other software. It can be accessed through via [mirror.clarkson.edu | http] or rsync.

New Mirror is the new iteration of Mirror. It is in progress of being set up in software and the entire hardware setup has been finalized (symbolized by a pair GPL3 stickers stuck to the top to hold the lid closed).

Installation

  • Install Debian from netinst, 64 bits obviously.
  • Make sure all of the drives are recognized.

Install the following:

apt install sudo vim git resolvconf

Remove the following to fix resolv.conf only filling with IPv6 addresses for nameservers.

apt remove rdnssd

Edit /etc/sysctl.conf to disable IPv6 (derpyness)

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
net.ipv6.conf.eth1.disable_ipv6 = 1

Edit /etc/hosts.allow to only permit logon from inside of COSI ..

sshd: 128.153.145. 128.153.144.

.. and /etc/hosts.deny to prohibit outside logon.

sshd: ALL

Edit /etc/default/grub to fix graphics, so that we do the resolution of the KVM after bios.

GRUB_GFXMODE=1280x1024
GRUB_GFXPAYLOAD_LINUX=keep

Install debian-zfs:

apt install lsb-release
wget http://archive.zfsonlinux.org/debian/pool/main/z/zfsonlinux/zfsonlinux_6_all.deb
dpkg -i zfsonlinux_6_all.deb
apt update
apt install debian-zfs

ZFS Config

TODO

Apache Webserver

Install apache

apt install apache2

Add webmasters to the www-data group

sudo adduser <USER> www-data

Allow read and write access of /var/www to the www-data group

sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rwX /var/www

Download the COSI-Lab/Mirror2016 repository into your home directory and run the setup.sh script. It will create a dist/ directory and you will want to copy the contents into /var/www/html

git clone https://github.com/COSI-Lab/Mirror2016
cd Mirror2016
./setup.sh
cp -r dist/* /var/www/html/