Cannot run compiled c program when in Desktop virtualization Citrix - c

I Cannot run compiled c program on solaris when in Citrix Desktop virtualization , I get this error:
gnome-session: you're already running a session manager
But I can run from ssh clients. How can I resolve this?

After much research and I found out that it worked by running it in zsh environment.

Related

how to solve issue running podman run ubuntu

I am using ubuntu 18.04 on wsl 1. I have installed podman. After pulling the image when tried to run it got the following error unable to write pod event "write unixgram #00044->/run/systemd/journal/socket: sendmsg: no such file or directory"
and cannot create a new network namespace: "permission denied"
How to solve this issue?
Short answer: Container systems like Docker and Podman that manipulate namespaces and cgroups will not run on WSL1. You'll need WSL2 in order to run Podman.
More Detail:
While WSL1 is great at running many types of Linux binaries, it does so by acting as a "translation layer", mapping Linux kernel syscalls to the rough equivalent in the Windows kernel. However, it does not provide a real Linux kernel, and its abilities do not include the namespace support needed for containers.
You'll definitely need WSL2, which runs in a VM with a real Linux kernel, in order to use Podman, or any other Linux container technology.

Debugging ncurses application in Eclipse IDE (Linux)

I'm creating an ncurses application in the Eclipse IDE (for C/C++ developers), running on Linux Mint. I'm able to successfully launch the application in the gnome terminal from Eclipse, via an external tool configuration, as per the following post:
http://damienlearnsperl.blogspot.com/2015/03/experimenting-with-ncurses-on-linux-in.html
However, so far I've been unable to run the Eclipse debugger alongside the gnome terminal. Running the debugger within Eclipse doesn't work either, since I only see the "Error opening terminal: unknown." message, after which the application is terminated.
I've tried several suggestions found on google, but none of them seem to work, or they're related to outdated/other versions of Eclipse:
Debugging ncurses with Eclipse CDT
https://wiki.eclipse.org/CDT/User/FAQ#HOWTO_debug_applications_which_require_a_real_terminal
https://www.eclipse.org/forums/index.php/t/44886/
The "Attach to Application" option doesn't seem to work either, I'm only seeing "failure to attach to process" errors when trying to attach the debugger to a running gnome terminal.
Any suggestions?
Many thanks,
Ksawery

Remote cross-platform project in Eclipse

I would like to make a C/C++ app for OrangePi zero. As orpi zero is a pretty low power running Eclipse on it is pain.
I would prefer to run Eclipse on Windows machine and remotely build and run/debug the app on orpi. I tried to achieve this by using RSE. After setting up RSE connection I can make a remote project. Edit files but without auto-completion, showing declarations(missing headers) and so on. Also, I cannot compile or run the app.
Is there any other way than cross-compiling on Windows and deploying to remote orpi? Some way to have autocompletion and compiling directly using orpi toolchain? Or at least have auto-completion working. My biggest concern about using cross-compile toolchain is dependency hell for external libraries.
Orpi is running Armbian. Developing in Eclipse 4.9

Debugging in Eclipse with remote GDB

I have a Linux machine which is set up to cross-compile programs for an AVR target. It's easy to run and debug programs locally:
Run the program with simavr (acts as GDB server)
Run GDB (avr-gdb) and connect it to simavr
I'd like to to recreate this flow remotely from Eclipse on a Windows machine. The Windows machine isn't really set up for development — it has Eclipse installed and the source code for my project, but it doesn't have any local C/C++ dev tools like GDB. I'd ideally like to visually debug using the local copy of the source, but by interacting with the remote GDB over SSH.
This Eclipse plugin seems to be the recommended tool for the job. Unfortunately I can't get this working. Here's what I've done:
Created a new "C/C++ Remote Application" debug configuration.
Set the "Preferred Launcher" to "Direct Remote Debugging Launcher".
Pointed "Remote C/C++ exe file path" to the location of the binary on the remote machine
Pointed "Remote workspace directory" to the location of the project source on the remote machine
This does not seem to work. When I attempt to debug with this configuration, I get this error:
Error with command: gdb --version
Cannot run program "gdb": Launching failed
This error makes sense. If I look in the "Debugger" tab of my debug configuration, the "GDB debugger" is set to gdb. If I open the file browser for the debugger, it only shows files on my local Windows machine. It looks like the configuration is set up to execute gdb on my machine.
I thought the point of the plugin was the launch GDB on a remote machine, but I can't find a way to make a debug configuration that actually does that. Any help would be appreciated.
We use the package called GDB Hardware Debugger which lets you specify which GDB you want to use and how you want to launch it. We keep its eclipse configuration as empty as possible, with the minimum required, and continue configuring GDB through its scripting option -x which offers finer-grained control. That way, you are not required to understand how and when are those eclipse fields used to run GDB. For example, we needed to perform some extra GDB settings before connecting while this plugin connects first and then uses the provided GDB script.

How to remotely run a program on the Jetson TK1 using Nsight Eclipse

I've finished the setup of my jetson tk1 eval board and I've started to setup my Nsight Eclipse to remotely run my programs on the Jetson board.
I've created a CUDA C project in Eclipse and completed the setup and connected my board to my eclipse.
When I build the sample CUDA file locally on eclipse it's working fine but when I try to run on the remote board, I get this output :
echo $PWD'>'
/bin/sh -c "cd \"/home/ubuntu\";export LD_LIBRARY_PATH=\"/usr/local/cuda-
6.0/lib\":\${LD_LIBRARY_PATH};\"/home/ubuntu/test\"";exit
ubuntu#tegra-ubuntu:~$ echo $PWD'>'
/home/ubuntu>
ubuntu#tegra-ubuntu:~$ /bin/sh -c "cd \"/home/ubuntu\";export
LD_LIBRARY_PATH=\" /usr/local/cuda-
6.0/lib\":\${LD_LIBRARY_PATH};\"/home/ubuntu/test\"";exit
/home/ubuntu/test: 1: /home/ubuntu/test: Syntax error: ")" unexpected
logout
From the last line of output, it seems like it's an executable format error. Does anyone ever encountered something similar? I'm running out of ideas.
I managed to find the answer. The version of Eclipse I had wasn't able to correctly compile my cuda file into the ARMv7 format. So I was always uploading an x64_86 format executable file.
My solution was to create a bash script that transfers the cuda file and compile it directly on the board when I launch the run sequence from eclipse.
In the end it took a bit of programming to make things work but it's now compiling and executing correctly on the remote board.
Hello I meet the same problem. I solve these problem by delete the whole workspace and generate a new one. You can have a try.

Resources