Starting from April 2018 and with the 18.04 LTS (L)Ubuntu release, a Samba server comes pre-installed on image cloned laptops. This means that a Labdoo laptop can be used as a server to other computer clients allowing these clients to access all the educational content in the server. This is a powerful configuration as it allows many types of devices (laptops, tablets, mobile phones, etc.) to access the educational content in the server without the need to have access to the Internet or the need to replicate the educational software in many devices.
Due to the speed of the server or the network, there are limitations in the number of computer clients that can be supported by one computer server. If too many clients are connected, the performance of the data transfer will become slow. So if you have many computer clients, it may be necessary to have more than one computer server.
This page describes how you can convert a Labdoo laptop into your own computer server to provide access to other computer clients. With a few simple steps a server can be set-up, check out the next instructions on how to do that!
Install Samba server
sudo apt-get install samba
or via the Linux package manager, e.g. synaptic.
smbd
[Enter] in a terminal to start the Samba server manually. To avoid starting this program each time manually, you can add "smbd" as a command in menu → Preferences / Settings → Personal / Personal → StartUp Applicatons / Start Programs → with "Add" → Name: Samba / command: smbd / Comment: add start up of Samba Server.. This will start the Samba server every time you reboot the system.
sudo apt-get install caja-share
or by using the synaptic package manager (this extension is also part of the Labdoo Image since April 2018).
Set up the Shared Folders
sudo caja
[Enter] in a terminal and right click on the folder you want to share. Click in the context menu "Share". Please notice that if Caja is not started as root, the menu item "Sharing" will not appear.
Access to the server via tablet, mobile phone, laptop or PC clients
Depending on your client and operating system installed and in use (Android, iOS, Windows, Linux etc.) access to the server may be different. Below you will find some examples and tips. There are also useful programs such as file managers, browsers, pdf viewers or ebook readers on your device. Check if your file manager is able to connect to a server (not all apps are able to) or if additional extensions need to be installed.
Access to the Server Using a Client
Connecting to the Server Using Ghost Commander in Android
The example Ghost Commander is similar to other file managers.
To create a Bookmark Using Ghost Commander
Note: Some file managers first store documents and pages locally before opening and displaying them. This can end up filling up the memory in your device. Cleaning up the memory can help.
Display Educational Content and Documents
Make Xowa Accessible from other Devices
Xowa comes with an http-server to help share Xowa wikis within a local network. Navigate to the folder /home/labdoo/Public/xowa
and open a terminal (e.g. using the file manager Caja: File →open a terminal here). Run the Xowa-jar file in this folder as follows:
For 64 Bit installations: java -jar xowa_linux_64.jar --app_mode http_server
[Enter]
For 32 Bit installations: java -jar xowa_linux.jar --app_mode http_server
[Enter]
Don't close this terminal window, as otherwise the Xowa process will be stopped. So leave it open as long as Xowa is used by other client devices.
Some devices, operating systems and browsers can resolve the hostname into its IP address. The IP address is like the address number of a home, which controls the access to each device inside your LAN (Local Area Network).
If the IP address cannot be resolved automatically you can get it manually. From the server computer, first right mouse click on the network/WiFi symbol on the desktop → Connection Information → read IP address (often similar to 192.168.1.xxx). Notice: The IP address will change every time, when you reboot the server (if you run DHCP for dynamic IPs in your network). It might be helpful to assign a static IP address to your server.
Read Xowa Content on any Client
The following is based on the IP address 192.168.1.133 just to illustrate an example. Instead of this IP address, use your server's IP address. Open the browser of your choice on your device (tablet, mobile phone, PC) and type the address of the server:
SERVER_IP_ADDRESS:8080
In our example: 192.168.1.133:8080:8080
Related Links and References
https://en.wikipedia.org/wiki/Samba_%28software%29
https://help.ubuntu.com/community/Samba/SambaServerGuide
https://en.wikipedia.org/wiki/Ubuntu_MATE
https://en.wikipedia.org/wiki/PCMan_File_Manager