Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blocks:server:advanced_server_configuration-pre-7 [2023-03-16 06:47] mattias [Using a DNS Server for Accessing Computers by Name] |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Advanced Server Configuration ====== | ||
- | The setup procedure outlined in [[first_start|" | ||
- | |||
- | * Changing the IP address of the BLOCKS computer, along with other network settings, making it fit within an existing network. | ||
- | * Assigning IP addresses automatically to most computers on the network using a DHCP server. | ||
- | * Using a DNS server for accessing important computers on the network, such as the BLOCKS server, by name rather than by IP address. | ||
- | * Configuring some [[# | ||
- | |||
- | |||
- | ==== Changing the BLOCKS server' | ||
- | |||
- | If you're building a new network for BLOCKS, we recommend that you stick with the addresses and other settings established in [[blocks: | ||
- | |||
- | However, if you need to integrate BLOCKS into an already existing network, you will likely have to change the server' | ||
- | |||
- | * What fixed IP address can I use for the BLOCKS server. | ||
- | * What netmask should I use (often a group of numbers such as 255.255.255.0 or 255.255.0.0). | ||
- | * Does this network have Internet access? If so, what's the IP address of the gateway. This is often an IP address similar to others on your network, but ending in 1, such as 10.2.0.1. | ||
- | * Does this network already have a DHCP server for allocating IP addresses automatically? | ||
- | * Is there already a local DNS server on this network, for binding local computer names to IP addresses. | ||
- | |||
- | :!: While not strictly necessary, being able to use names rather than numeric IP addresses makes configuration easier, and simplifies any changes you may need to make later, since IP addresses of the BLOCKS server and possibly other devices, are only stored in one place. | ||
- | |||
- | Equipped with the above information, | ||
- | |||
- | :!: If you're also using the built-in DHCP server and/or DNS, you need to update their settings to match your new configuration, | ||
- | |||
- | |||
- | ==== Securing your Server ==== | ||
- | In case you want to expose your Blocks server on a public network, such as one accessed over wifi by guests, or perhaps even from the Internet, there are a number of precautions you need to take. For instance, you should strongly consider using a [[blocks: | ||
- | |||
- | :!: Whenever in doubt, consult with professional security experts before exposing your server to public networks or the internet. | ||
- | ==== Assigning IP Addresses Automatically ==== | ||
- | |||
- | A DHCP server automatically assigns IP addresses to some network devices, thus removing the need to specifying hard-coded IP addresses everywhere. Most networks have such a DHCP server, sometimes built into a router or similar device. If you already have such a DHCP server, you may prefer to keep it. If not, the BLOCKS server can perform this function as well (see [[# | ||
- | |||
- | :!: Some devices on the network must have known IP addresses, and can not use dynamically assigned addresses. This includes the BLOCKS server itself, as well as other devices acting as " | ||
- | |||
- | In addition to automatically assigning IP addresses, the DHCP server also serves the following important functions: | ||
- | |||
- | * It tells clients where to find the DNS server (either an internal one or an external). | ||
- | * Initiates network booting of PIXILAB Player (more on that [[blocks: | ||
- | |||
- | :!: If you want to network-boot PIXILAB Player with another DHCP server than the pre-configured in our Linux BLOCKS server, you need to manually add the required options to your DHCP server. | ||
- | |||
- | ==== Using a DNS Server for Accessing Computers by Name ==== | ||
- | |||
- | A DNS server provides name lookups for clients on your network, allowing you to access the BLOCKS Server, and possibly other devices on the network, by name rather than by its IP address. This is particularly important if you want to allow guests to access BLOCKS using their own mobile devices, e.g. to create a mobile guide system. | ||
- | |||
- | If your BLOCKS Server will be part of an existing network that has a local DNS server, all you need to do is adding a name for your BLOCK Server to your DNS, pointing it to the fixed IP address of the BLOCKS server. | ||
- | |||
- | If you're setting up a new network for use by BLOCKS, displays and other clients, you may want the server running BLOCKS to also act as a local DNS. Such functions are already installed and pre-configured in the Linux OS image. See [[#|below]] for how to enable those services, and where to find their settings. | ||
- | |||
- | ==== Configuring BLOCKS Server Options ==== | ||
- | |||
- | Beginning with our Linux-based BLOCKS server dated 2020-05-14 and later, based on Ubuntu 20.04, there are a few additional options that can be selected. These options affect the behavior of the server in various ways, such as: | ||
- | |||
- | * Use a single BLOCKS server. | ||
- | * Run two BLOCKS servers in tandem for redundancy and fail-over. | ||
- | * Run a Display Spot on the screen of the BLOCKS server. | ||
- | * Show GUI windows indicating that BLOCKS is running, or hide such windows. | ||
- | |||
- | You can switch among these options using a command included with the server, named option-select.sh. To use this command, do as follows: | ||
- | |||
- | - Start your Linux based BLOCKS server. | ||
- | - Once the desktop appears, click the Terminal icon in the icon bar on the left hand side (highlighted in the screenshot shown below). | ||
- | - Type **./ | ||
- | |||
- | {{ : | ||
- | |||
- | Doing so shows the various options available, along with the currently selected options (// | ||
- | |||
- | To select another set of options, type those options after the command name. For instance, to use the sever' | ||
- | |||
- | < | ||
- | ./ | ||
- | </ | ||
- | |||
- | :!: Specifying the kiosk option implicitly also selects the // | ||
- | |||
- | Start BLOCKS either by clicking the PIXILAB icon in the icon bar or by typing the command: | ||
- | |||
- | < | ||
- | ./start.sh | ||
- | </ | ||
- | |||
- | Doing so will start BLOCKS along with a full-screen web browser connecting to BLOCKS as a Display Spot. Connect to BLOCKS using another computer to configure this display spot and add content to it. To get rid of the full-screen web browser, do as follows: | ||
- | |||
- | - Connect a keyboard to the server computer. | ||
- | - Press Alt-F4 to close the browser window. | ||
- | - Open a terminal window. | ||
- | - Type **./ | ||
- | - Type the following command if you want to return to the stand-alone BLOCKS server mode: | ||
- | |||
- | < | ||
- | ./ | ||
- | </ | ||
- | |||
- | The command shown above also re-enables the GUI mode, making BLOCKS' | ||
- | |||
- | ====Enable Optional server services==== | ||
- | :!: **While additional services such as DNS and DHCP can be managed in many different ways, after all that is standard Linux server components well documented on the internet but we have documented most server management tasks using the server management tool Webmin.** | ||
- | |||
- | === Webmin | ||
- | |||
- | Webmin provide a browser interface to manage a server from the desktop or over the local network using a web browser. | ||
- | |||
- | |||
- | |||
- | [[blocks: | ||
- | |||
- | |||
- | |||
- | |||
- | ===DHCP Server === | ||
- | A DHCP server automatically assigns IP addresses to some network devices, thus removing the need to specifying hard-coded IP addresses everywhere. Most networks have such a DHCP server, sometimes built into a router or similar device. If you already have such a DHCP server, you may prefer to keep it. If not, the BLOCKS server can perform this function as well | ||
- | |||
- | [[blocks: | ||
- | |||
- | |||
- | === DNS Server === | ||
- | |||
- | A DNS server provides name lookups for clients on your network, allowing you to access the BLOCKS Server, and possibly other devices on the network, by name rather than by its IP address. This is particularly important if you want to allow guests to access BLOCKS using their own mobile devices, e.g. to create a mobile guide system. | ||
- | |||
- | [[blocks: | ||
- | |||
- | |||
- | === Viewing Logs in Webmin=== | ||
- | |||
- | When things don't work as expected, valuable information can often be found in various log files. Those exist as text files on the server itself, byt can be viewed remotely through webmin. | ||
- | |||
- | [[blocks: | ||
- | |||
- | |||
- | === File Transfers and Sharing === | ||
- | |||
- | Sometimes, you may want to copy files to/from the server. You can do so directly in webmin (under Others > File Manager). This can be useful for occasionally pulling or uploading a file from/to the server. You can, for instance, use this method to download archived log files from the server by selecting "File Manager" | ||
- | |||
- | However, it's often more convenient to connect to the server by mounting it as a network volume on your own laptop, rather than copying files back and forth. This makes the server files directly accessible, without having to copy them. | ||
- | |||
- | [[blocks: | ||
- | |||
- | === Server Redundancy === | ||
- | While the Blocks server software is very robust, the complete system can never be more reliable than the hardware it runs on. If your Blocks server dies for some reason, your system will stop functioning. To safeguard agains such major disasters, you can install a // | ||
- | |||
- | {{ : | ||
- | |||
- | Specialized [[blocks: | ||
- | |||
- | |||
- | |||
- | ===== Uninterruptible Power Supply ===== | ||
- | |||
- | For critical applications, | ||
- | |||
- | [[blocks: | ||
- | |||
- | |||
- | |||
- | |||
- | =====Configure PXE boot===== | ||
- | In case you want to run PIXILAB Players by booting them from the server, rather than from a local disk or USB stick, you may want set up the server for PXE booting of players. | ||
- | |||
- | [[blocks: |