LabVIEW on Ubuntu!
Greetings LabVIEW friends,
Yesterday I decided to have another go at LabVIEW on Linux, to see if I could help make Antidoc compatible with Linux machines. I decided to use Ubuntu because it's compatible with LabVIEW and still fairly popular.
I started off with several failed attempts:
- I dug around for my old Raspberry Pi 2B+ which was running Ubuntu and I'd already installed LabVIEW on, but it looks like I must have left it at work before I got made redundant last year. 😕 RIP.
- I borrowed my fiancé's spare Pi 4B and put Ubuntu 22.04 LTS AMD64 on an SD card using Balena Etcher, but it wouldn't boot from it.
- I switched to Raspberry Pi Imager to prepare the SD card and got my Ubuntu up and running. Success! But when I went to install the LabVIEW 2023 Q4 package I realised the new Pis use ARM architecture and LabVIEW doesn't support that. Also explains why I didn't have any success with that AMD64 ISO...
- I decided to use Hyper-V to make myself a VM... nope, I am using Windows 11 Home Edition, which isn't suitable. Time to download VirtualBox.
Here are the steps that I have followed so far. As a Linux noob, I found I got stuck a few times so this is partly for my own reference!
- Installed VirtualBox and the Extensions Pack.
- Downloaded ubuntu-22.04.5-desktop-amd64.iso (because 22.04 is the latest version that I could find in the LabVIEW README),
- Made a VM using VirtualBox on my Windows 11 host machine: chose to give it 8GB RAM, 128GB Hard disk, 8 cores. Good thing that my new laptop has a fair amount of resources to share!
- Made an admin user called leah
- Downloaded LabVIEW 2024 Q3 Community Edition for Linux (because of the ability to save for previous versions easily). I don't trust 2025's stability yet...
- Opened terminal, did sudo apt update, sudo apt install ./ni-labview... , sudo apt search labview-2024, sudo apt install ni-labview-2024-community (watch out, it's easy to choose the wrong one there), restarted the VM.
- Ran LabVIEW
- Activated LabVIEW by logging into my ni.com account
- Installed Git: sudo apt install git-all
- Installed VIPM via vipm.io (thanks https://www.reddit.com/r/LabVIEW/comments/1gzdkpl/installing_and_configuring_vi_package_manager/ for the detailed instructions). Waited for it to download all of the packages.
- Enabled VI Server and tested the connection.
- Installed git cola with sudo apt-get install git-cola
- Gave some permissions to myself in my my natinst and vipm folders
- Installed asciidoc from vipm - despite the successful connection earlier, had to lanch LV manually within 120s as my VIPM doesn't launch Community Edition properly.
- To try and get shared clipboard working, downloaded the Guest Additions iso from https://download.virtualbox.org/virtualbox/7.1.6/ following https://www.virtualbox.org/manual/ch04.html#additions-linux
Did uname -r to find that my system was 6.8.0-52-generic. So I did sudo apt install linux-headers-generic
Then
sudo apt update
sudo apt install gcc
sudo apt install build-essential
Then mounted the iso, run, restart. Clipboard now works! - Made a snapshot in case I want to reset the machine back to this state, e.g. for the next project.
Isn't Linux wonderful? Finding vi.lib was pretty much instantaneous when I typed it in the searchbar
Comments
Post a Comment