ROS Melodic - GCP Ubuntu 18.04 - Could not connect to Display - google-cloud-platform

I am a beginner, installed ROS Melodic on GCP Ubuntu 18.04 and trying to run the below
"rosrun turtlesim turtlesim_node"
Got the following error :
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
Please help

From the error message it is showing, it looks like you need to setup an X-Window environment. You can do so by following the Google Cloud Documentation [1].
Also ensure the application that you are running is having all dependencies satisfied.
[1] https://cloud.google.com/solutions/chrome-desktop-remote-on-compute-engine

Related

qt 5.15 Failed to connect to server. Check your network connection and try again

I am using Ubuntu 20.04 and I trying to install qt 5.15, however, the online installer always displays the above mentioned message. I have already tried waiting (maybe it was just a problem with the server), rebooting my machine and nothing worked.
I tried in another machine with Ubuntu 22.04 and it worked.
Does anyone has any clue of how I can fix this problem for my 20.04 Ubuntu machine?

can't connect airflow to google cloud

I am trying to setup a Google Cloud Platform connection with apache airflow using JSON key file,
I got this error when I trigger the DAG:
ERROR - [Errno 2] No such file or directory: 'C:/AIRFLOW1/secret/key.json'
I tried '/AIRFLOW1/secret/key.json' also got the same issue.
Am using Windows 10 as OS and Ubuntu 20.04 as a subsystem where my airflow webserver is running.
Thank you guys, I have solved the problem myself.
I share the solution :
instead of defining the keyPath in this way: "C:/AIRFLOW1/secret/key.json"
the right way is to define it like that: "/c/AIRFLOW1/secret/key.json"

Generating CentOS image for Openstack Ironic Boot Failure

I am trying to create a custom CentOS image to be used as an image for Openstack Ironic. I am following the guide here: https://docs.openstack.org/image-guide/centos-image.html. I created the image, and deploy it on my baremetal server. On the ironic side it seems that it has successfully 'dd' the image into the server. But when the server boots up, it can't find any of the partitions with the error /dev/disk/by-uuid/XXXX does not exist. I am able to boot it to rescue mode, but I am clueless on what to do to debug it.
I also used the same procedure to deploy custom Ubuntu Image, and it seems to work perfectly fine. Does anyone have any suggestions to solve this?
Okay, after much tinkering, I have found the problem. This is more of a CentOS7 problem than an openstack problem.
I have found the kickstart script that generates the CentOS cloud build (https://github.com/CentOS/sig-cloud-instance-build/blob/master/cloudimg/CentOS-7-x86_64-GenericCloud-201606-r1.ks). Turns out that they included the dracut-config-generic package which my custom CentOS image did not include. After some google searching work, I found this link (https://www.systutorials.com/docs/linux/man/8-dracut/) stated that:
On RHEL-7 the hostonly mode is the default mode. Generic "non-hostonly" images are created, if the dracut-config-generic rpm is installed. The rescue kernel entry in the bootloader menu is also a generic image.
Without dracut-config-generic, the images can only run in the virtualised environment I set up. So after adding this package, I can successfully deploy it through openstack ironic successfully.
Hope this helps anyone that was trying on this.

SSH Error while trying to connect to Google Compute Instance

I am running below command to connect to google compute instance:
gcloud compute ssh example-instance
I am getting error message below:
ERROR: (gcloud.compute.ssh) Your platform does not support OpenSSH.
Can someone please help me in this regard.
Thanks
Shiv
Try updating your local Cloud SDK and run ssh command again. To update the Google Cloud SDK use the following command:
gcloud components update
The error is pretty much self-explanatory. You need to install an OpenSSH to operate. Try installing OpenSSH. The guide for installing on Windows 10 is as follows:
https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse

Error when trying to build Clojure boot file in Ubuntu 12.04

I am starting out with Clojure, and i am currently following the hoplon.io get started tutorial
My troubles start when i try to build boot from source: (http://github.com/tailrecursion/boot)
This is the error that i receive when running the make boot command:
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:pom:2.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
clojars (http://clojars.org/repo/)
I have installed maven but that did not change anything. Has anyone encountered this problem aswell?
Best Regards
Daniel