How to connect the Atom Editor with a remote server? - atom-editor

I've tried looking at other questions here with similar problems, but unfortunately I haven't been able to solve this issue.
For some basic background info, I'm currently using a PC in a lab and the lab has GPU servers somewhere in the institution. I'm attempting to connect the Atom Editor to the remote host. My PC uses Windows 10 and the remote server is Ubuntu 16.04.
I've looked at thie remote-atom guide but for some reason the "Start Server" option is not working. I've also tried to do what this answer has stated, but unfortunately I don't have sudo permission.
Would there be another way that I can connect Atom remotely? Thank you.

You can easily connect to remote FTP using atom even if you do not have any sudo permission on the sudo server.
On Remote server:
- Create a rsa key (ssh-keygen -t rsa)
- add the public key to .ssh/authorized_keys file
- download the private key to you local desktop
On local machine > open Atom editor:
- press ctrl+space to open the 'ftp-remote-edit'
- add the server if not present already
Atom editor: remote server configs
That's it, you are ready to connect and edit files.
Other viable option is using VS code using winScp.

Related

Getting Windows to detect IBM AS400 provider

I am trying to get a connection to work on my machine to an AS400 database as per this link.
I have confirmed that there is no firewall blocking the machine I am working on. I have confirmed that the connection info works on a different machine with a .UDL file. I have installed the requisite C++ runtime libraries onto the machine and confirmed it has the appropriate .NET framework (it has 4.7.2). When I try to run the UDL file with the same connection information, I get "Provider cannot be found. Ensure that the provider has been installed properly." As far as I can tell I did, but it is not detecting that?
Can someone help me understand how to get it set up so that the UDL file will indicate if the connection was successful or not? I'm not really sure what is at issue at this point.
edit: I got lucky on more searching and so on further inspection, I can see that it is not in the registry editor. Could that be the issue? How would I add it there properly so that it shows up as a Data Link so that I can configure it correctly?
go here to download and install access client solutions
after installing the base package, navigate in the install folder and find the Windows_Application folder. In that folder, double click on install_acs_64.js. That will install the ODBC drivers.
run the ODBC Data Source Adminstrator app on the windows PC. Click the Add button. Select the IBM i Access ODBC Driver. Make sure to click the Server tab and set the default schema and library list.
Once the ODBC driver is installed you can test the connection by opening Excel and use the Data tab to config a connection to the IBM i database.

GCE: cannot login, The VM guest environment is outdated and only supports the deprecated 'sshKeys' metadata item

I cannot ssh into my Google Compute Engine (GCE) Wordpress instance anymore.
It was working one month ago when I tried last.
I use the Google built-in SSH client in a Chrome browser window.
Yesterday I tried an got the following message:
The VM guest environment is outdated and only supports the deprecated
'sshKeys' metadata item. Please follow the steps here to update.
The "Steps here" link navigates to https://cloud.google.com/compute/docs/images/configuring-imported-images#install_guest_environment which does not seem to help me much.
I am not aware of any changes that I may have made.
How can I fix this?
It looks like your instance's disk is full, and so the SSH keys can't be created in the temp directory. You can do the following:
Stop your instance and wait for it to shut down
Click on the disk your instance is using, and choose "edit" at the top
Enter a larger disk size, and save
Go back to your instance and start it up again
You should now be able to connect via SSH. While you're in there, check to see what filled up your hard disk so you can prevent this from happening again (maybe a rogue program is printing out too many logs, etc).
If you're seeing this on Debian 8 or 9, the most likely reason for this is that the google-compute-engine.* packages that allow SSH access to the instance have been removed by apt-get autoremove.
If you have an open SSH connection to the machine or can use a tool like gcloud, running apt-get update && sudo apt-get install gce-compute-image-packages should fix this.
If you no longer have any SSH access, there is a procedure available on the GCP docs site that can be used to restore it.
I've created a bug report here for this.
Might be a bit late, but you can
1) Stop the VM
2) Edit and enable serial console
3) Use the serial connection to login and update the VM
recent days, I meet similar problem, later I find the permission rights of my home directory fools me, as a lazy-bone, I chmod 777 ~
After did that, I cannot ssh via my terminal, even cannot ssh via browser, only get 'The VM guest environment is outdated and only supports the deprecated 'sshKeys' metadata item, Plese follow the steps here to update'. Sounds like you must set 755 to your home dir, not just care your 700 .ssh or 600 authorized_keys.
I met the similar issue after I created a FreeBSD VM, gcloud ssh not works, but I am lucky that I can use the browser window ssh to my VM. Then I manually add the google_compute-engine public key to the .ssh/authorized_keys, now it work, I can use the gcloud ssh to connect. But not sure if this is a better/security way.

Using SCP to move a file from windows desktop to a hadoop sandbox on vmware

I think this is simple but I would really appreciate your help. I have a zip file on my windows desktop "RECEIPTS_LAB.zip" and I am running a hadoop sandbox on vmware. The sandbox is part of a training course I signed up for with mapr but I am a beginner and not sure how to move the zip file from windows to the directory in sandbox which is"/user/user01/3"
The manual uses the following code
scp RECEIPTS_LAB.zip user01#node-ip:/user/user01/3
node-ip is the ip address that I got when starting the sandbox, lets assume its 192.168.88.128
When I write the following command:
scp RECEIPTS_LAB.zip user01#192.168.88.128:/user/user01/3
And the error I get is: "RECEIPTS_LAB.zip: No such file or directory"
Please help me understand what should I do since I have tried a lot of times to modify the syntax but I still get the same error
Your error means that you are in the wrong directory.
Have you tried using WinSCP? It will give you an interface that lets you see both your computer directory and the remote computer (in this case the MapR VM) directory.
( https://winscp.net/eng/download.php )
It may make your life easier. Just download the "Portable executables" files from the website and unzip it.
since I am not seeing any port forwarding with your scp command and you are providing an actual IP address I will assume that MapR is running a sandbox with the network adapter in bridge mode.
Double click the application once it is unzipped to start it.
Then on the start up screen provide the
MapR user for user
MapR password for password
The IP address of the sandbox for the "host"
make sure the protocol is set to SCP in the combo box at the top above where you enter credentials
You shouldn't have to touch the port number if MapR's tutorial didn't have a -p switch with the scp call.
if the sandbox is at the IP address you gave and you entered the credentials right, WinSCP will load a side by side directory view of your windows machine and the sandbox. from the side by sode screen you can drag and drop between the machines.
If I understand correctly, you are trying to execute scp RECEIPTS_LAB.zip user01#node-ip:/user/user01/3 from a Windows command prompt. You don't say what version of Windows you are using or which Windows directory you are in when you try to run this command. But as written, it will succeed only if you are in the same directory as the file. If you do not specify a particular directory for the file, Windows looks for it in your current directory. Try this:
Press Windows-Key+R to open the "Run" dialog. Enter "cmd" and click "OK".
Now you should be at a command prompt in your Windows home directory -- something like
C:\Users\Musmar>
Your Desktop folder should be a sub-directory of your home directory -- something like
C:\Users\Musmar\Desktop
To verify this, type:
dir Desktop\RECEIPTS_LAB.zip
Hopefully you will see a directory listing for your file. Then type:
scp Desktop\RECEIPTS_LAB.zip user01#192.168.88.128:/user/user01/3
If my assumptions are correct, that should do what you want or at least get you one step closer.
There are some errors in the Documents of MapR.
ERRORS: Permission denied (publickey,password).
First go the the directory where the zip file is present through he terminal.
Mention the port through which you need the file to be copied.
the port that sandbox allows us is 2222. Default port 22 wont work
scp -P 2222 RECEIPTS_LAB.zip #:/user/user01/3
***Again there might be some problem with your scp. so you might uninstall and reinstall the scp client and then try this.

Unable to open RStudio-server in web browser

I have installed R and Rstudio-server on Amazon AMI cloud and both are running properly as I can type R and get the R-terminal and check whether the RStudio-server is running.
sudo lsof | grep rstudio
Since Port 8787 is not accessible and there is another port something like 6970 open so I have created a rserver.conf file in /etc/rstudio/ But when I try to open RStudio server from my system's web browser I get this error
"No Data Received"
I am not sure what is the issue, any help would be greatly appreciated.
I've been using RStudio on AWS instance (EC2, Ubuntu) for several months, so I hope I can help you. First, could you clarify this part of your post?
Since Port 8787 is not accessible and there is another port something like 6970 open
I suppose you are using EC2, as it seems to be a common one for this purpose. Then, I believe you can open certain ports by configuring security groups in the AWS console (i.e. Network&Security - Security Group). Have you added a rule to allow 8787 (or 6970 if you prefer) inbound?
This worked for me.
rstudio-server online

xampp apache not running

I want to install wordpress on localhost
I have downloaded and installed XAMPP.
I have downloaded the wordpress 3.4.1 and placed it in htdocs folder.and i renamed it as demo_folder.
when i type in navigation bar localhost/demo_folder it shows Unable to connect page.
As you can see the apache is not running as shown in fig.
when i click on start it doesnt get started
I dont know why?
can anyone help me out???
EDIT1
the below is netstat -an cmd screenshot
This is a fairly common problem with XAMPP/Windows. The usual suspect is that there is another application running on port 80, which you should terminate. Also please use the web, there is a wealth of information on this topic.
To view all currently open ports and the PID of the process using that port, open cmd and run
> netstat -o
This should help with changing the port Apache runs on: http://www.geckoandfly.com/7491/xampp-apache-wont-start-change-port-to-listen-85/ .
If you're on Windows 7, shut down the Web Deployment Agent Service. That should clear port 80.
XAMPP does have some problems with Windows. You could also try using WAMP. It seems to be a lot easier to install and use.
As for XAMPP, try making sure nothing else is using the port 80.
It seems you have tried to install the XAMP multiple times or PORT 80 has been used by other Application. If you are sure other applications is not using the Port 80 try this:
Close the XAMP and go to run and type services.msc and find the service named Apache 2.x.x etc go to its properties and get the exact name of it . For eg, mysql service name is mysql.
After you have found the service name , Open cmd with administrator privilege and type
sc delete apache
here is the manual to delete the service name :
http://technet.microsoft.com/en-us/library/cc742045(v=ws.10).aspx
after deleting the service name try opening the XAMP and click on Start next to Apache, hope it will be running now.
If nothing works above ,most of the cases I have seen Skype is the problem:
Go to Tools>Options>Advanced>Connections
Untick Use Port 80 for incoming connections

Resources