This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ttt:make_a_ccc_server [2017/10/19 05:33]
Andrei Maberley [Make an index.html]
ttt:make_a_ccc_server [2019/01/24 07:24] (current)
Andrei Maberley ↷ Links adapted because of a move operation
Line 19: Line 19:
 ===== Software ===== ===== Software =====
  
-To get the  CCC-Server up and running we need to :+To get the  CCC-Server up and running we need to;
  
  
Line 41: Line 41:
  =====Operating System====  =====Operating System====
  
-This guide assumes you have a fresh install of Xubuntu 14.04 on your laptop.  Check out [[hp8100:workshop_02|Workshop 02]] for a refresher on how to install the operating system. If you need an installer, check out [[ttt:preparation_02|how to make one]].+This guide assumes you have a fresh install of Xubuntu 14.04 on your laptop.  Check out [[mbrc_hp8x00:workshop_02|Workshop 02]] for a refresher on how to install the operating system. If you need an installer, check out [[ttt:preparation_02|how to make one]].
  
- 
-==== Change Repository ==== 
- 
-To make sure we can still access a repository for this machine, even when the LAN is setup later on we need you change the source of our repository.  You can do this using the //Software and Updates// in system Settings. 
- 
-{{ :ttt:menu_004.png?direct&800 |}} 
- 
-Change the download server to //main//. 
- 
-{{ :ttt:software_updates_002.png?direct&800 |}} 
 =====The CCC Wiki===== =====The CCC Wiki=====
  
 After testing most of the available options, we decided to use [[https://www.dokuwiki.org/dokuwiki#|Dokuwiki]].  Dokuwiki is simple to edit, maintain and back-up.  It doesn't require a database for installation and can be edited from any modern web browser. Most importantly, dokuwiki can be distributed freely and easily. After testing most of the available options, we decided to use [[https://www.dokuwiki.org/dokuwiki#|Dokuwiki]].  Dokuwiki is simple to edit, maintain and back-up.  It doesn't require a database for installation and can be edited from any modern web browser. Most importantly, dokuwiki can be distributed freely and easily.
- 
- 
  
 ===== Apache Set-up===== ===== Apache Set-up=====
Line 107: Line 95:
 {{ :ttt:apache2_ubuntu_default_page_it_works.png?direct&600 |}} {{ :ttt:apache2_ubuntu_default_page_it_works.png?direct&600 |}}
  
-We need to do simple webpage to redirect to our docuwiki install. We will delete the old index.html then make our own.+We need to do simple webpage to redirect to our docuwiki install which we will make later on 
 + 
 +We will delete the old index.html then make our own.
  
   sudo cd /var/www/html   sudo cd /var/www/html
   sudo rm index.html   sudo rm index.html
   sudo nano index.html   sudo nano index.html
 +
 +Inside index.html you can use:
 +
  
 <code> <code>
Line 121: Line 114:
 </head> </head>
 <body> <body>
-If your browser doesn't automatically go there within a few seconds, +Click to go straight to the <a href="http://10.42.0.1/dokuwiki/doku.php">ccc local wiki</a>
-you may want to go to +
-<a href="http://10.42.0.1/dokuwiki/doku.php">ccc local wiki</a>+
 manually. manually.
 </body> </body>
Line 243: Line 234:
 </code> </code>
  
-This is what ours looks like+This is what ours looks like for using the Australian repository.
  
 <code> <code>
Line 308: Line 299:
    edgeadmin-HP-elitebook-8420p     edgeadmin-HP-elitebook-8420p 
  
-We will use the <code>hostnamectl</code> command to set the new name to ''cccserver'' +We will use edit our hostname file to change it too ''cccserver''
- +
-  hostnamectl set-hostname cccserver+
  
 +  sudo nano /etc/hostname
 +  
 Next edit your hosts file. Next edit your hosts file.
  
-   sudo nano/ect/hosts+  sudo nano /etc/hosts
  
 and where you see your old computer name, change it to your new name.  For example mine was: and where you see your old computer name, change it to your new name.  For example mine was:
  
-   127.0.1.1 edgeadmin-HP-elitebook-8420p+  127.0.1.1 edgeadmin-HP-elitebook-8420p
  
 Which becomes Which becomes
  
-   127.0.1.1 cccserver+  127.0.1.1 cccserver 
 + 
 + 
 +Time for a reboot to check these settings stick.  Once you've rebooted, try a ''sudo'' command to see if the hostname and /etc/hosts are working.   
  
  ==== Network Management ====  ==== Network Management ====
Line 331: Line 325:
  
  
-The other part is the ifconfig tool, which we configure with the files on /etc/network. Lets deal with this first.+The other part is the command line ''ifconfig'' tool, Lets deal with this first. 
 + 
 +--------
  
 First we need to find hardware MAC address of the ethernet interface we are using. You can do this with the command ''ifconfig'' and look for ethernet interface name First we need to find hardware MAC address of the ethernet interface we are using. You can do this with the command ''ifconfig'' and look for ethernet interface name
Line 364: Line 360:
 You'll need to enter your own ethernet port hardware address (MAC address), which you can find using ''ifconfig'' again. It appears as ''HWaddr: '' You'll need to enter your own ethernet port hardware address (MAC address), which you can find using ''ifconfig'' again. It appears as ''HWaddr: ''
  
-{{ :hp8100:terminal_-_ccc_ccc-dysart_004.png?nolink&300 |hardware address}}+{{ :hp8100:terminal_-_ccc_ccc-dysart_004.png?nolink&600 |hardware address}}
  
 Now edit NetworkManager.conf Now edit NetworkManager.conf
Line 390: Line 386:
  
 Where mac:xx:xx:xx:xx:xx:xx is the mac you've discovered earlier. Where mac:xx:xx:xx:xx:xx:xx is the mac you've discovered earlier.
 +
 ===== DHCP and DNS Server  ===== ===== DHCP and DNS Server  =====
  
Line 483: Line 480:
    
   address=/*archive.ubuntu.com/10.42.0.1   address=/*archive.ubuntu.com/10.42.0.1
-  address=/security.ubuntu.com/10.42.0.1+  
      
 </code> </code>
Line 498: Line 495:
   sudo service dnsmasq restart   sudo service dnsmasq restart
      
-  
- 
  <WRAP center round important 60%>  <WRAP center round important 60%>
 The ethernet port on the laptop is dedicated to serving this mirror, and can not be used for usual internet access. Use the wifi for this instead. The ethernet port on the laptop is dedicated to serving this mirror, and can not be used for usual internet access. Use the wifi for this instead.
 </WRAP> </WRAP>
  
 +==== Change Repository ====
 +
 +To make sure we can still access a repository for this machine we will change the sources for our packages to the main repository.  You can do this using the //Software and Updates// in system Settings.
 +
 +{{ :ttt:menu_004.png?direct&800 |}}
 +
 +Change the download server to //main//.
 +
 +{{ :ttt:software_updates_002.png?direct&800 |}}
 ===== Maintenance ===== ===== Maintenance =====
  
  • ttt/make_a_ccc_server.1508391207
  • by Andrei Maberley