I have access to public machine which don't provide sudo access. How can I install latest g++ in a local folder in Ubuntu and use it while compiling and running C++ programs?
I tried this solution (Install gcc on linux with no root privilege) but its not working.
it Produces Error bzr: ERROR: Connection error: failed to connect to bzr.savannah.gnu.org:4155: Connection refused.
It looks like your network does not allow connections to most TCP/IP ports. Bazaar uses TCP/IP port (port 4155). On my network this works fine:
% bzr branch bzr://bzr.savannah.gnu.org/gsrc/trunk/ /tmp/gsrc
Branched 3509 revisions.
Related
I am trying to set-up Eclipse on Windows to build and debug a C application on an i.MX6 eval kit running Yocto Linux. When I try to connect either via the debugger or via the Remote System Explorer I get the following error:
Could not open connection.
Reason: Algorithm Negotiation fail
I can connect to the board via Tera Term using SSH and port 22, so it seems like GDB server is running, but there is some incompatibility between Eclipse SSH and Linux SSH. I've seen several posts about this, but most of them are years old, and no longer apply. I tried changing the connection settings in Eclipse, but nothing I have tried seems to work.
How do I configure Eclipse, or Yocto Linux, to allow them to communicate?
OS: Wk16 vs Debian 10.4
Ansible: 2.9
Hi all
I need to send a file from remote Windows to remote linux without to copy in local without to install ssh package in Windows server.
A Win_server <-- Ansible role executor -- B Ansible_host C linux_host
|
| ^
|___SENDING FILE_______________________________________TO___________|
Thank's a lot
Checkout syncronize module at Ansible Documentation: https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize_module.html
Also, be aware to stablish direct ssh connection between targets.
Hint: It's possible to activate ssh on windows and stablish connection to the linux machine. Take care of the risks!
Other way is to use fetch and copy to do the triangle copy using Ansible server as elbow.
Today I putted the SSH in Windows how #guistela sayed.
I Installed "Posh-SSH" on Windows host with ansible:
Manual Download from:
https://www.powershellgallery.com/packages/Posh-SSH.
Send file to Windows host contains files to send.
Install with microsoft steps: Installing PowerShell modules from a
NuGet package.
Possh-SSH use commands, more info here:
powershell-scp-to-transfer-files-between-windows-linux:
Open ports
Send file
Close ports
This 4 general steps permits send files from windows to linux hosts.
Cordially
I need to install bind9 on a machine that has no internet connection.
I downloaded the source code and want to compile it on this machine, but there is no C compiler on my machine. And as I have no internet connection, I cannot install gcc (manual install is too difficult).
How should I do this? Is there a way that I can compile everything on another machine and move all the binaries?
Thanks
Check out Keryx, it's an offline packet repository which permits you to firstly download bind9 and push it to your offline workstation (assuming you're on a Debian based distro).
I am using windows 8.1 as host os and Ubuntu Linux in vmware guest.I have created git repository in Linux and trying to clone it on windows using tortoise git. I am using my home's Wi-Fi connection but it is detected as eth0 not as wlan0. I don't know why. If I delete that wired connection in guest Linux then it network connectivity not working.I have configured network connectivity as bridged.
I am using Mobaxterm(free version) on a windows 7 desktop to connect to a SUSE 11 Enterprise server on AWS. I am trying to display the xclock program on my xtrem client but I get an error saying 'Error: Can't open display:'. I have used the following syntax to set the display on the server:
export DISPLAY=<IP_addr>:0.0
SUSE 11 does not come with xclock by default so I had to download it and install it.
The hosts file on my PC has the localhost entry commented out, I am not sure if that would make a difference. Any ideas on how to debug this? Thanks.
Fixed!
Earlier I was just looking at xclock program's error msg. But when I scanned Mobaxterms client terminal's output, I found the following msg:
X11 forwarding request failed on channel 0
After some google hunting, found that one of the reasons this happens is when xauth package is not installed on the remote server. So, I checked and found that to be the case. This is the command I ran:
zypper in -name xorg*
This command tells you if the package is installed and if any dependencies exist. The package comes bundled with the xclock program. So zypper uninstalled the other xclock I had installed from another source and replaced it with the right version.
Link to package info:
https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service_pack=&architecture=i386&package_name=xorg-x11-xauth
I also modified a file called /etc/ssh/sshd_config as root. The following lines need to be uncommented:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
And X11UseLocalhost was changed to 'no'. I also changed my security group on AWS to let inbound traffic on port 6000. I am not sure if that matters.
After this mobaxterm automatically set my display parameter to localhost and I was able to run xclock on the remote server and see it on my local PC desktop.