Raspberry Pi, pinet, install printer - raspberry-pi

We're having two issues:
1)
We are having a problem installing printer drivers to a Pinet installation on a Ubuntu 15.04 virtual machine. The printer is a Xerox Fujitsu DocuCentre-V C3373
There is a GNU/Linux driver available here.
We've run the shell script in the Ubuntu VM, and followed the instructions, but the printer doesn't show up anywhere.
We also tried following the Ubuntu add printer method, and that does add a generic printer, but the output is quite bizarre.
2)
We were trying to do these things in the Ubuntu VM, because we couldn't figure out how to copy the files to the pinet chroot folder.
Where I have looked around, I've seen instructions for installing CUPS on a raspbian to get AirPlay working. I'm not sure if that is a suitable approach.
Thanks in advance for any help.

Related

compile perl script using par::packer and run it on different linux versions

I have a Perl script which I tried to use PAR::Packer in order to make it a standalone executable so it runs without having Perl on the target machine (because of security reasons).
I used WSL on Windows to pack the Perl script, but the problem I have when I run it on the target machine is the error: "version `GLIBC_2.29' not found".
I ran the command ldd --version and the version on the target machine is 2.17.
The problem I am facing is I cannot install anything on the target machine so I cannot install Perl + PAR::Packer to compile the script and then distribute it to the other machines that are gonna use the script (it's gonna be used in an image so lots of machines).
I cannot seem to find a solution or alternative for this, would love any help from the community.
Edit:
the ubuntu on my WSL was ubuntu 22, the target machines runs redhat and not debian variant, IDK which version as they are a custom linux made by the company i work in.
why am i stuck?
the main problem is that PAR::Packer isn't working on old ubuntu builds ( before 14) and at ubuntu 14 the glibc is already 2.22 while on version 12 its 2.15 so I need to compile the script on old ubuntu (version 12) but the compiling program (PAR::Packer) only works on ubuntu 14 and above so I am stuck in a loop and would apprentice any help or even alternatives for this problem.
Thanks!
Edit: the ubuntu on my WSL was ubuntu 22, the target machines runs redhat
Your problem is that you are trying to build on newer Linux machine, and run the resulting binary on older Linux. That doesn't work (without additional effort).
The simplest solution is to build on the oldest Linux distribution you need to support, possibly in a docker container.
Some other solutions are listed here.

How to compile something using arm-none-eabi-gcc on windows

I am trying to build a project for a raspberry pi 4, using windows 10 as the building platform, I have the compiler installed, arm-none-eabi-gcc however every piece of information I've learned about it relates to how to run it on a linux machine, and I don't really want to run a vm just to load the linux environment, so how do I run the compiler on windows 10, Do I run it from Cmd? or is there a different method to do this?
You could check this PreBuilt GNU Toolchain for building natively on Win10.
Otherwise you could also setup a WSL environment in your win10, then you would also be able use any linux toolchains.
You can download the IDE DS-5 Community Edition
https://developer.arm.com/tools-and-software/embedded/legacy-tools/ds-5-development-studio/editions/community-edition
You can download the toolchains:
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads
Then follow the steps in this tutorial:
https://developer.arm.com/tools-and-software/embedded/legacy-tools/ds-5-development-studio/resources/tutorials/getting-started-with-ds-5-ce-and-armv8-foundation-platform
https://community.arm.com/developer/tools-software/tools/b/tools-software-ides-blog/posts/running-bare-metal-software-on-the-raspberry-pi-3-using-arm-ds-5
You should have the arm-none-eabi-gcc.exe for Windows Compile.
Also, you have the linux environment like MinGW and use installed terminal(xterm).
then, you have to copy the .so files into MinGW /lib or /usr/lib folder under C:/MinGW.
Hope this would be helpful for you.

How to Access Linux Files in a WSL distro from Windows 10?

Recently I updated my Windows 10 Pro with May Update (version 1903, build 18362.116). Then for my existing distros: OpenSuse Leap 15 and Ubuntu (installed from MS Store), I wanted to open a linux directory by using Explorer and I'm getting this message:
[susedis#mypc ~]$ explorer.exe .
If 'explorer.exe' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf explorer.exe
This problem happens also with VSC (code) and VSC-Insiders (code-insiders).
I've read this article and ...
OPTION 1: my current problem
OPTION 2: icon LINUX does not exist in tree view
OPTION 3: it works
Supposedly options 1 and 2 should exist and work, even more with the latest update. What's wrong? Thanks in advance.
PS1: I've found these articles Run Visual Studio Code for Linux from WSL and Using Visual Studio Code with Windows Subsystem for Linux, they talk about installing xserver and more stuff on side linux. But many other articles and videos don't talk about it, it's like it was a built-in feature of Windows. This is so dark.
I just found what is the root of my problem: the distro.
explorer, code, code-insiders commands ONLY work through UBUNTU and I was using OpenSuse.
This warning is lacking in every article on Web I read, including on VSC site (example: Developing in WSL). This is a disadvantage for other distros. Very bad.
PS1: The solution can be found here.

usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed MSI | ubuntu 16.04 fancontrol

I've installed lm-sensors, but when I run pwmconfig command as root, it throws an error:
/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
My laptop is an MSI Gs63VR Stealth Pro core Intel i7 CPU
Thank you!
A simple search for the error message yielded several hits on Google. All of the top hits are from before this question was posted.
This guide on AskUbuntu may be helpful, or this one.
Likely the issue you're having can be solved with a linux kernel option. Add this to your Grub command-line: acpi_enforce_resources=lax
sudo sed -E -i 's/(GRUB_CMDLINE_LINUX_DEFAULT=.+)"$/\1 acpi_enforce_resources=lax"/' /etc/default/grub
sudo update-grub
then reboot.

Error "context mismatch in svga_sampler_view_destroy" running GUI programs on Ubuntu in a VM

I am running Ubuntu 16.04 on a VMware workstation player VM on windows 10. When I run some GUI programs (have observed this on Spyder and Chromium) am getting the message "context mismatch in svga_sampler_view_destroy" is repeatedly printed to the console.
It seems to be related to virtualization as it goes away if turn off 3D display acceleration. I don't want to turn off acceleration as it makes a big difference to the video performance.
I got the same error while running the Android Emulator in VmWare player 14.0. This seems to be an issue with Ubuntu, VmWare and OpenGL 3.3
What solved my problem was the solution from Mesa on how to handle Ubuntu as guest OS in VmWare
In short you need to set the environment variable SVGA_VGPU10 to 0 (this turns off OpenGL 3.3 support, falling back to 2.1)
To set it for one session of Bash, use:
$ export SVGA_VGPU10=0
To permanently write it to the Bash user settings:
$ echo "export SVGA_VGPU10=0" >> ~/.bashrc
For future reference the solution is to disable Accelerate 3D Graphics