User Tools

Site Tools


cubuntu

Differences

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

Link to this comparison view

cubuntu [2018/12/06 20:22]
abeverley created
cubuntu [2018/12/06 20:28] (current)
abeverley
Line 19: Line 19:
 ==== Set up export images ==== ==== Set up export images ====
  
-<​HTML><​ul></​HTML>​ +  * mkdir -p /​srv/​ubuntu/​casper 
-<​HTML><​li></​HTML>​mkdir -p /​srv/​ubuntu/​casper<​HTML></​li></​HTML>​ +  ​* ​Copy filesystem.squashfs file from casper directory on Ubuntu live CD into /​srv/​ubuntu/​casper/​ (this will be customised later) 
-<​HTML><​li></​HTML>​Copy filesystem.squashfs file from casper directory on Ubuntu live CD into /​srv/​ubuntu/​casper/​ (this will be customised later)<​HTML></​li></​HTML>​ +  ​* ​Edit /​etc/​exports and add
-<​HTML><​li></​HTML>​Edit /​etc/​exports and add <​html><​code></​html>​ +
-<​code>​ +
-/srv/ubuntu 10.0.0.1/​255.255.0.0(ro,​no_root_squash,​async,​subtree_check) +
-</​code>​ +
-<​HTML><​p></​HTML><​html></​code></​html><​HTML></​p></​HTML><​HTML></​li></​HTML>​ +
-<​HTML><​li></​HTML>​cp /​usr/​lib/​syslinux/​pxelinux.0 /​srv/​tftp<​HTML></​li></​HTML>​ +
-<​HTML><​li></​HTML>​mkdir /​srv/​tftp/​pxelinux.cfg<​HTML></​li></​HTML>​ +
-<​HTML><​li></​HTML>​Create the file /​srv/​tftp/​pxelinux.cfg/​default:<​HTML></​li></​HTML><​HTML></​ul></​HTML>​+
  
-<​html><​code><​/html>+  ​/srv/ubuntu 10.0.0.1/​255.255.0.0(ro,​no_root_squash,​async,​subtree_check) 
 + 
 +  * cp /​usr/​lib/​syslinux/​pxelinux.0 /srv/tftp 
 +  * mkdir /​srv/​tftp/​pxelinux.cfg 
 +  * Create the file /​srv/​tftp/​pxelinux.cfg/​default:​
  
 <​code>​ <​code>​
Line 40: Line 36:
 APPEND noapic initrd=initrd.lz lang=uk nfsroot=10.0.0.1:/​srv/​ubuntu netboot=nfs root=/​dev/​nfs boot=casper APPEND noapic initrd=initrd.lz lang=uk nfsroot=10.0.0.1:/​srv/​ubuntu netboot=nfs root=/​dev/​nfs boot=casper
 </​code>​ </​code>​
-<​html></​code></​html>​+
  
   * Copy initrd.lz and vmlinuz from casper directory on Ubuntu CD into /srv/tftp/   * Copy initrd.lz and vmlinuz from casper directory on Ubuntu CD into /srv/tftp/
Line 50: Line 46:
 If you want to close all the ports on your server, but open up the required ones for NFS, then you will need to fix the port numbers that NFS uses. To do this, do the following: If you want to close all the ports on your server, but open up the required ones for NFS, then you will need to fix the port numbers that NFS uses. To do this, do the following:
  
-<​HTML><​ul></​HTML>​ +  * Edit /​etc/​default/​nfs-common and add 
-<​HTML><​li></​HTML>​Edit /​etc/​default/​nfs-common and add <​html><​code></​html>​+
 <​code>​ <​code>​
 STATDOPTS="​--port 32765 --outgoing-port 32766" STATDOPTS="​--port 32765 --outgoing-port 32766"
 </​code>​ </​code>​
-<​HTML><​p></​HTML><​html></​code></​html><​HTML></​p></​HTML><​HTML></​li></​HTML>​ + 
-<​HTML><​li></​HTML>​Edit /​etc/​default/​nfs-kernel-server and add <​html><​code></​html>​+  ​* ​Edit /​etc/​default/​nfs-kernel-server and add 
 <​code>​ <​code>​
 RPCMOUNTDOPTS="​-p 32767" RPCMOUNTDOPTS="​-p 32767"
 </​code>​ </​code>​
-<​HTML><​p></​HTML><​html></​code></​html><​HTML></​p></​HTML><​HTML></​li></​HTML>​ + 
-<​HTML><​li></​HTML>​Edit /​etc/​default/​quota and add <​html><​code></​html>​+  ​* ​Edit /​etc/​default/​quota and add 
 <​code>​ <​code>​
 RPCRQUOTADOPTS="​-p 32769" RPCRQUOTADOPTS="​-p 32769"
 </​code>​ </​code>​
-<​HTML><​p></​HTML><​html></​code></​html><​HTML></​p></​HTML><​HTML></​li></​HTML>​ + 
-<​HTML><​li></​HTML>​Create /​etc/​modprobe.d/​local.conf with the contents ​<​html><​code></​html>​+  ​* ​Create /​etc/​modprobe.d/​local.conf with the contents 
 <​code>​ <​code>​
 options lockd nlm_udpport=32768 nlm_tcpport=32768 options lockd nlm_udpport=32768 nlm_tcpport=32768
 </​code>​ </​code>​
-<​HTML><​p></​HTML><​html></​code></​html><​HTML></​p></​HTML><​HTML></​li></​HTML>​ 
-<​HTML><​li></​HTML>​Update /​etc/​services (not strictly necessary, but helps):<​HTML></​li></​HTML><​HTML></​ul></​HTML>​ 
  
-<​html><​code><​/html>+  * Update ​/etc/​services (not strictly necessary, but helps):
  
 <​code>​ <​code>​
Line 92: Line 89:
 rpc.quotad ​     32769/​udp ​                      # RPC quotad rpc.quotad ​     32769/​udp ​                      # RPC quotad
 </​code>​ </​code>​
-<​html></​code></​html>​+
  
 ==== Set up DHCP server ==== ==== Set up DHCP server ====
  
 This is fully detailed in the other section on the site about a [[Setting_up_a_captive_portal_from_scratch_using_Debian|Setting up a captive portal from scratch using Debian]], so it's best to check that for full details, but essentially you need the following lines in your /​etc/​dhcp3/​dhcpd.conf file: This is fully detailed in the other section on the site about a [[Setting_up_a_captive_portal_from_scratch_using_Debian|Setting up a captive portal from scratch using Debian]], so it's best to check that for full details, but essentially you need the following lines in your /​etc/​dhcp3/​dhcpd.conf file:
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 105: Line 100:
   next-server 10.0.0.1;   next-server 10.0.0.1;
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
 ===== Customising Ubuntu ===== ===== Customising Ubuntu =====
Line 148: Line 142:
  
   * /​etc/​init/​pre-gnome.conf   * /​etc/​init/​pre-gnome.conf
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 172: Line 164:
 end script end script
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
   * Create the post gnome script /​usr/​bin/​post-gnome   * Create the post gnome script /​usr/​bin/​post-gnome
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 193: Line 182:
 fi fi
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
   * Make it executable   * Make it executable
Line 200: Line 188:
  
   * Enable it by creating /​etc/​xdg/​autostart/​post-gnome.desktop   * Enable it by creating /​etc/​xdg/​autostart/​post-gnome.desktop
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 216: Line 202:
 X-GNOME-Autostart-Delay=5 X-GNOME-Autostart-Delay=5
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
   * Add firefox script (/​usr/​bin/​firefox.sh) to automatically wipe out history and restart firefox when closed. The lynx dump logs onto our server to force it to disable the client temporarily and thus re-present the user with T&C.   * Add firefox script (/​usr/​bin/​firefox.sh) to automatically wipe out history and restart firefox when closed. The lynx dump logs onto our server to force it to disable the client temporarily and thus re-present the user with T&C.
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 241: Line 224:
 done done
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
   * Make it executable:   * Make it executable:
Line 250: Line 232:
  
 Create /​etc/​xdg/​autostart/​firefox.sh.desktop Create /​etc/​xdg/​autostart/​firefox.sh.desktop
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 265: Line 245:
 Name[en_GB]=Firefox.sh Name[en_GB]=Firefox.sh
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
 === Other customisation === === Other customisation ===
Line 306: Line 285:
  
   * /​srv/​ubuntu/​custom/​pre-gnome/​copy   * /​srv/​ubuntu/​custom/​pre-gnome/​copy
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 331: Line 308:
 rm /​usr/​bin/​esd rm /​usr/​bin/​esd
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
   * /​srv/​ubuntu/​custom/​pre-gnome/​timezone   * /​srv/​ubuntu/​custom/​pre-gnome/​timezone
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 341: Line 315:
 ln -s /​usr/​share/​zoneinfo/​Europe/​London /​etc/​localtime ln -s /​usr/​share/​zoneinfo/​Europe/​London /​etc/​localtime
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
   * Script to set the time automatically. Create /​srv/​ubuntu/​custom/​pre-gnome/​ntp   * Script to set the time automatically. Create /​srv/​ubuntu/​custom/​pre-gnome/​ntp
  
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
 ntpdate -u pool.ntp.org ntpdate -u pool.ntp.org
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
   * /​srv/​ubuntu/​custom/​pre-gnome/​gdm (Script to set default window manager to gnome)   * /​srv/​ubuntu/​custom/​pre-gnome/​gdm (Script to set default window manager to gnome)
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 360: Line 329:
 echo "​DefaultSession=gnome-classic"​ >> /​etc/​gdm/​custom.conf echo "​DefaultSession=gnome-classic"​ >> /​etc/​gdm/​custom.conf
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
   * Make them executable   * Make them executable
Line 369: Line 337:
  
   * /​srv/​ubuntu/​custom/​pre-gnome/​copy   * /​srv/​ubuntu/​custom/​pre-gnome/​copy
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 387: Line 353:
 killall gnome-panel killall gnome-panel
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
 Make the 2 scripts above executable (chmod +x copy) Make the 2 scripts above executable (chmod +x copy)
  
 The above example copy in the settings from /​opt/​ubuntu/​custom/​home. An example set of scripts that can be placed there are contained at http://​www.andybev.com/​web-portal/​home.tar.gz. To use: The above example copy in the settings from /​opt/​ubuntu/​custom/​home. An example set of scripts that can be placed there are contained at http://​www.andybev.com/​web-portal/​home.tar.gz. To use:
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 400: Line 363:
 tar -zxvf home.tar.gz tar -zxvf home.tar.gz
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
 ==== Adding a printer ==== ==== Adding a printer ====
Line 409: Line 371:
     * /​etc/​cups/​pppd/​printer-name.ppd     * /​etc/​cups/​pppd/​printer-name.ppd
   * Create a script in /​srv/​ubuntu/​custom/​pre-gnome (called printer) to copy the files on boot:   * Create a script in /​srv/​ubuntu/​custom/​pre-gnome (called printer) to copy the files on boot:
- 
-<​html><​code></​html>​ 
  
 <​code>​ <​code>​
Line 418: Line 378:
 /​etc/​init.d/​cupsys force-reload /​etc/​init.d/​cupsys force-reload
 </​code>​ </​code>​
-<​html></​code></​html>​ 
  
   * Make the script executable:   * Make the script executable:
cubuntu.txt · Last modified: 2018/12/06 20:28 by abeverley