All,
Just wanted to see if anybody can see any problems/issues/concerns doing what I am about to discuss concerning the installation of the WPILib tools for C++/Java on Linux.
Our team was given some small laptops with even smaller disks (~16GB) due to they are early model SSDs. We put a small version of Linux on them, as we did not want to pay for Windows licenses. We were initially going to use them for teaching programming for outreach, but later we figured we could use them for robot code development as well.
In the WPILib documentation (section 1.5, “WPILib Installation”, Linux subsection), each user is to download the suite from GitHub, and extract to their home directory (~
, or /home/user
). The suite extracted is approximately 2.1GB. As each additional user would need an additional 2.1GB, a small drive would fill up very fast after 2-3 users.
HERE IS WHAT WE NEED AN OPINION ON:
In order to save installation space, we extracted the wpilib
directory to /opt
, i.e. /opt/wpilib
.
Then, for each user, symbolic links are made in the user’s home directory (~), linking to the installed directories at /opt
.
In other words :
/home/user/wpilib/2020/documentation -> /opt/wpilib/2020/documentation
/home/user/wpilib/2020/documentation -> /opt/wpilib/2020/frccode
/home/user/wpilib/2020/documentation -> /opt/wpilib/2020/installUtils
/home/user/wpilib/2020/documentation -> /opt/wpilib/2020/jdk
/home/user/wpilib/2020/documentation -> /opt/wpilib/2020/maven
/home/user/wpilib/2020/documentation -> /opt/wpilib/2020/roborio
/home/user/wpilib/2020/documentation -> /opt/wpilib/2020/Robotbuilder
/home/user/wpilib/2020/documentation -> /opt/wpilib/2020/tools
/home/user/wpilib/2020/documentation -> /opt/wpilib/2020/utility
/home/user/wpilib/2020/documentation -> /opt/wpilib/2020/vendordeps
/home/user/wpilib/2020/documentation -> /opt/wpilib/2020/vsCodeExtensions
Thus, each additional user links to the shared suite. We have tried this, and it works, as far as we can tell. We don’t plan on simulataneous users, so there should be no locking/contention issues.
Do any files of the suite need write access? I know a logs
directory is created, and that is made in each users /home/user/wpilib/2020
directory.
Any thoughts why this should be a problem?
I’m more comfortable with Linux, but I think there is a way to do something similar in Windows.
Thanks for any input!