Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: - bash

I have installed ubuntu terminal in window 10. It's work fine but when I install gedit or any other application then these applications installed successfully but I can not open it. Whenever I tried it gives me the Error mentioned below.
"Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(gedit:4821): Gtk-WARNING **: cannot open display:"

In the description of "Ubuntu terminal", it says: "run Ubuntu command line utilities". gedit is not a command line utility. It is a graphical utility, so it is not supported out of the box.
Your hope is that the final error is cannot open display. I bet that if you provide a suitable display in your computer, the utility will show up. Search for a X-server for your windows machine and try with the X-server installed.
This could help: https://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/

Related

rsync does not work in Visual Studio 2019

I have created a simple CMake project from the template provided in visual studio 2019. It connects to remote Linux server and errors out while copying a file using "rsync" with the following error.
Could not start the 'rsync' command on the remote host, please install it using your system package manager. Please see https://aka.ms/AA23jat for troubleshooting.
The log shows the error details as following.
23:03:25.2045083 [Error, Thread 88] liblinux.IO.Rsync: liblinux.IO.RsyncException: Could not create daemon configuration file on remote device ---> liblinux.IO.RsyncException: echo config error: and error output: Unmatched ".
Please note: rsync is installed on the remote Linux server and tested it with and without ssh its working.
When I tried to test rsync which is provided by Visual Studio under "C:\Apps\VS2019Pro\Common7\IDE\VC\Linux\bin\rsync\rsync.exe" to sync/copy a file to remote linux server it fails with following error.
dup() in/out/err failed
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.3]
Any help on this will be appreciated.
Rsync speaks the rsync protocol, which is a client server protocol.
The client you are using needs to talk to a server, which is the rsync binary on the remote server, which doesn't seem to be here.
The message is pretty clear:
Could not start the 'rsync' command on the remote host, please install it using your system package manager. Please see https://aka.ms/AA23jat for troubleshooting.
You really need to have rsync on your remote server.
I installed rsync from source on the target using the default settings which installed it at /usr/local/bin/rsync. Apparently the path Visual Studio expects is /usr/bin. I created a symbolic link with the command 'ln -s which rsync /usr/bin/rsync'

How to fix "mount_smbfs: server connection failed: No such file or directory"

Use command "mount_smbfs //username:password#server/Shared /Volumes" to connect with Windows Server, but it return with "mount_smbfs: server connection failed: No such file or directory"
>>mount_smbfs //username:password#server/Shared /Volumes
mount_smbfs: server connection failed: No such file or directory
I can not use "Finder->Go->Connect to Server" neither. Each server I connect to as "smb://server" would return an error "There was a problem connecting to the server".
Beside, I could ping the server successfully.
The real problem is that SMB didn't work in My Mac, and someone give a workaround to fix it.
You can visit it

Failed to open TCP connection to 127.0.0.1:9515

I'm new to Ruby, and I'm getting the following error when I try to execute my script
Failed to open TCP connection to 127.0.0.1:9515
I got some posts related to the same error but all of them are for Linux or Mac. I'm using Windows.
Any idea?

PuTTY command line error while connecting to google datalab instance

I'm trying to connect to previously created instance in Google Cloude Compute Engine using datalab, or create a new one using Google Cloud SDK Shell:
datalab connect nst
The program cannot connect, the error is the following:
ERROR: (gcloud.compute.ssh) [C:\Users\Anastasia...\putty.exe] exited with returned code [1]
and there is a pop-up window from putty.exe with command line error:
unknown option -"o"
Neither restart nor SDK shell reinstall doesn't help. What should I do? Thank you in advance.
I can connect to the instance through ssh.
See PuTTy "unknown option -o" when trying to connect and https://github.com/googledatalab/datalab/issues/1356

Local Mongo on Windows - couldn't connect to server 127.0.0.1:27017, connection attempt failed

Installed Mongo 3.2 on Windows 8.1. Got this:
c:\foo>"c:\Program Files\MongoDB\Server\3.2\bin\mongo.exe"
MongoDB shell version: 3.2.5
connecting to: test
2016-04-26T13:41:31.032+0100 W NETWORK [thread1] Failed to connect to 127.0.0.1
:27017, reason: errno:10061 No connection could be made because the target machine actively refused it.
2016-04-26T13:41:31.034+0100 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect#src/mongo/shell/mongo.js:229:14
#(connect):1:6
exception: connect failed
c:\foo>ver
Microsoft Windows [Version 6.3.9600]
Why?
What else can I say?
I got the same error this is how i solved it.
open your task manager
click on service tab
check for Mongo Db service
and right click restart it.
hopefully this will solved it.
You have to start the server process first.
https://docs.mongodb.org/v3.0/tutorial/install-mongodb-on-windows/#run-mongodb
First, you should install Mongodb as a service,
Open your cmd as admin
Run ( net start mongodb )
Now you can run the command ( mongo ) and you will be able to connect normally, with no Problem.

Resources