Difference between revisions of "Mirror"

From CSLabsWiki
Jump to: navigation, search
Line 26: Line 26:
 
==Installation==
 
==Installation==
  
*Install Debian from netinst, 64 bits obviously.
+
See [[New Mirror Installation]]
*Make sure all of the drives are recognized.
 
 
 
Install the following:
 
 
 
<pre>
 
apt install sudo vim git resolvconf
 
</pre>
 
 
 
Remove the following to fix resolv.conf only filling with IPv6 addresses for nameservers.
 
 
 
<pre>
 
apt remove rdnssd
 
</pre>
 
 
 
Edit /etc/sysctl.conf to disable IPv6 (derpyness)
 
 
 
<pre>
 
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
 
</pre>
 
 
 
Edit /etc/hosts.allow to only permit logon from inside of COSI ..
 
 
 
<pre>
 
sshd: 128.153.145. 128.153.144.
 
</pre>
 
 
 
.. and /etc/hosts.deny to prohibit outside logon.
 
 
 
<pre>
 
sshd: ALL
 
</pre>
 
 
 
Edit /etc/default/grub to fix graphics, so that we do the resolution of the KVM after bios.
 
 
 
<pre>
 
GRUB_GFXMODE=1280x1024
 
GRUB_GFXPAYLOAD_LINUX=keep
 
</pre>
 
 
 
Install debian-zfs:
 
<pre>
 
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
 
</pre>
 
 
 
==ZFS Config==
 
After installing zfsonlinux, to create a zpool named "zoodle" with a RAID10-like configuration, run the following command:
 
<pre>zpool create -f -m /storage zoodle mirror <2tbdrive1> <2tbdrive2> mirror <4tbdrive1> <4tbdrive2> ... </pre>
 
This should be done using /dev/disk/by-path nodes, but this may fail. If it fails, use /dev/sdX devices. Then, run the following two commands to reassign the pool to use by-path:
 
<pre>zpool export zoodle
 
zpool import -d /dev/disk/by-path zoodle</pre>
 
==Apache Webserver==
 
Install apache
 
<pre>
 
apt install apache2
 
</pre>
 
 
 
Add webmasters to the www-data group
 
<pre>
 
sudo adduser <USER> www-data
 
</pre>
 
 
 
Allow read and write access of /var/www to the www-data group
 
<pre>
 
sudo chown -R www-data:www-data /var/www
 
sudo chmod -R g+rwX /var/www
 
</pre>
 
 
 
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
 
<pre>
 
git clone https://github.com/COSI-Lab/Mirror2016
 
cd Mirror2016
 
./setup.sh
 
cp -r dist/* /var/www/
 
</pre>
 
  
 
==Currently Hosted on New Mirror==
 
==Currently Hosted on New Mirror==

Revision as of 21:08, 27 April 2016

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


Hostname: mirror
Operating system: Debian 8 x64
NIC 1: Clarkson Network
MAC: 00:25:90:08:07:18
IP: 128.153.145.19
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.

Installation

See New Mirror Installation

Currently Hosted on New Mirror

  • Debian
  • ParrotSec
  • Raspbian
  • Ubuntu
  • Linux Mint
  • Archlinux
  • Isabelle
  • Gentoo
  • Sabayon
  • Serenity
  • Slackware
  • Fedora
  • GNU software
  • ipfire
  • OpenSUSE
  • Void Linux
  • TDF
  • CentOS
  • OpenBSD
  • FreeBSD

Things to be hosted

  • CRUX
  • Trisquel
  • Guix
  • Dragora
  • Parabola
  • Tails
  • Kali
  • ROS
  • Clonezilla
  • LibreBoot
  • NetBSD