I have unpacked and installed vscode server on my server using:
wget https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable
and unpacked the tar file into ~/.vscode/bin/${commit_id}
Now I'm trying to log in into my remote using the vscode extension, but the extension keeps on trying to download and install the remote server. The extension is not able to recognize that code-server is already installed in the server. Is there a way to hack this problem ?
Related
My environment:
Ubuntu 20.04.3 LTS on Windows 10
-> https://www.microsoft.com/store/productId/9NBLGGH4MSV6
PhpStorm 2022.1 Build #PS-221.5080.224, built on April 13, 2022
My Problem:
I'm trying to export a PostgreSQL database inside the Database tab of PhpStorm.
To execute the export I right click the database in the list and click on the "Export with 'pg_dump'" option. This opens the Export window with all the options and command preview:
Inside of the window I get the error message "Path to executable is wrong" even tho the pg_dump file exists at the given path /usr/bin/pg_dump. This stops me from executing the export.
I have tried to manually install pg_dump in another directory and select it in the PhpStorm Export window, but it still won't detect the executable. The executable itself works fine.
The solution to this problem was to do a sudo apt-get install postgresql-client.
Apparently there is a general problem with the pg_dump executable of the "postgresql-client-common" package:
https://askubuntu.com/questions/501091/command-pg-dump-not-found
After installing the postgresql-client package, everything works fine in PhpStorm as well.
The code is pretty simple there: IDE checks that file exists and is executable, then run /path/to/pg_dump --version command and parse output looking for some keywords. Unfortunately there are no logs which can show exact reason, but I guess the issue that IDE can't get access to the file. Most likely due to WSL. The workaround is to install IDE and unpack PG binaries on Windows, then configure port forwarding to make PG server accessible from host OS.
I have already installed vimplug I can open the file but has no effect on Neovim 1
The error says that your plugin manager (vim-plug) isn't able to run the git executable. It needs to do this to fetch the plugins you're trying to load. So install git, make sure you can run it from your PowerShell command line, and you should be set.
Despite setting the http.proxy setting, I am unable to download extensions (or browse extensions).
I found that if I start the program with --proxy-server=http://myproxy.example.com:3128 then it works.
The code-server used for remote development doesn't support the --proxy-server flag.
The workaround I have found is to manually download the .vsix extension archive for the extension I want to install. e.g. from here: https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools there's a "Download Extension" drop down on the right under "Resources" where I can download the extension for the server's platform.
Then, move this archive to the target server. Since I'm using an ssh remote, I just scp it over.
Then, install the extension from the archive:
~/.vscode-server/bin/<id>/bin/code-server --install-extension /path/to/archive.vsix
And this should install the extension. I had to restart the editor a few times before the extension showed as installed in the editor as well.
I installed Ubuntu Server 15 on VirtualBox 5.0.10 and set up ssh access to the guest using NAT/port forwarding (host:3022->guest:22). The host is Windows 7 64bit.
I can successfully access the Ubuntu server via putty or other ssh client from an external computer (not the host). But NetBeans 8.0.2 can't complete adding the remote host. It just freezes on "Connecting ip_addr:3022..." stage (authentication type is 'Password')
What can be the reason? How can I resolve it?
It seems like the reason is that com-jcraft-jsch.jar distributed with NetBeans 8.0.2 doesn't work with OpenSSH 6.9 distributed with Ubuntu 15. There is a workaround for this, but unfortunately it doesn't work with OpenSSH 6.9.
I was able to resolve the issue after I downloaded and built OpenSSH-5.4 (requires zlib-dev, libssl-dev and some other packages). To use existant ssh config files you need to configure OpenSSH properly before build:
./configure --sysconfdir=/etc/ssh
make
sudo make install
Please note that make install will install binaries in /usr/local/bin, configuration files in /usr/local/etc, the server in /usr/local/sbin, etc. To specify a different installation prefix, use the --prefix option to configure.
You may need to modify /etc/ssh/sshd_config file (at least to point to sftp-server) and you may want to modify /etc/init.d/ssh, but anyway, OpenSSH-5.4 does work with NetBeans 8.0.2.
UPD: NetBeans 8.0.2 also works correctly with OpenSSH 6.6.1
I'm back connected with a Freebsd server [netcat ] And There is a File On /tmp That i want to download it but
Its can't be browsed with My Browser So there is any ways to download it ?
because i don't have access to others folders . Just /tmp
You can use fetch(1)
eg. fetch https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
or download wget with
pkg install wget
and use wget
eg. wget https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
If you have an account on the server and the ssh daemon is running you can use scp. From a terminal emulator (e.g. xterm) you can do % scp freebsd.server.org:/tmp/file .. Of course replace freebsd.server.org with the correct name of the host.
If you're on windows, you could also use a graphical program such as Winscp.
If you have SSH installed on the server, you can use any SSH client out there. For Windows, WinSCP is a good option but if you run *nix OS with Gnome, Nautilus can do the same natively.