bash: telnet: command not found [closed] - macos

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
This post was edited and submitted for review last year and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I'm trying to connect the server using telnet, but when I enter telnet localhost 8000. It shows the error of telnet not found. I wrote my code in C and ran it on macOS terminal. Am I supposed to install something before I can use it?

Yes you would need to install telnet to use it on your mac. You can also try using an alternative tool, that comes pre-installed on macOS machines. It is called netcat and you can do the following:
nc -vz localhost 8000
If the command above is not good enough, you can install telnet on your mac by following the tutorial that can be found here:
https://osxdaily.com/2018/07/18/get-telnet-macos/
More precisely, the section titled:
Installing Telnet in MacOS with Homebrew
You will need to install homebrew (it is a package manager for MacOS, similar to yum or apt in linux).

Related

Why can't I use apt-get on Mac even though wget is installed [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I use Mac Big Sur 11.5.1. I installed wget using brew, but the terminal said apt-get: command not found when I put sudo apt-get install ros-noetic-imu-tools. Although I tried brew install wget again, it said wget 1.21.1 is already installed and up-to-date. So wget is installed for sure. What is a possible cause?
macOS doesn't use apt as its package manager. Homebrew is the most popular package manager for macOS. Additionally, wget has no relation to the package manager, apt. See the awesome answer here for more information.
I would try this search for getting it ROS working with Mac. This SO question might be of relevance too.

Problem ssh connection Macbook as host to Debian VirtualBox [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I meet some problem while connected thru ssh to a Debian Virtualbox from a MacBook Pro.
I success to connect in ssh but some commands don't work from Macbook terminal and I don't understand why.
For example halt -p or a2ensite works directly on the VirtualBox screen but not thru ssh connection from MacBook terminal.
Is it related to the fact that Debian use bash and Macbook use zsh ?
I think I miss something here.
Thanks for your help !
I found the answer. I will be very interested if someone can explain to me why.
But after change zsh to bash on my MacBook:
chsh -s /bin/bash
Then restarting my laptop.
I started the VirtualBox and connect to it in ssh.
And all commands are now working.

Error while installing Atom in Kali Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I was trying to install Atom in Kali Linux Live.
And after command
dpkg -i ~/Downloads/atom-amd64.deb
I get error
dpkg: error: cannot access archive '/root/Downloads/atom-amd64.deb': No such file or directory
I have tried as both root and non-root users
I am using Kali Linux Live with Persistence (Bootable USB)
Same kind of thing happens with Visual Studio code too.
You may have to install kali Linux on the device as Kali Linux Live provides the tools for hacking. If you want to install software, then you have to install Kali or manually install it without a package.
Check out this Reddit post about the issue: https://www.reddit.com/r/linuxquestions/comments/4zgrzs/is_it_possible_to_install_software_on_kali_linux/

How to install atom on Bash on Ubuntu on Windows? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I think it is a hard thing to do as nobody was able to help me, if anyone know how to install atom on Bash on Ubuntu on Windows, it would be greatly appreciated.
You can install it as you would on any Ubuntu - from its README.md:
Debian Linux (Ubuntu)
Atom is only available for 64-bit Linux systems.
Download atom-amd64.deb from the Atom releases page.
Run sudo dpkg --install atom-amd64.deb on the downloaded package.
Launch Atom using the installed atom command.
The thing is - it won't run. Bash on Ubuntu on Windows is highly experimental yet, so graphic applications won't work. I've tried on a VM, and I get a libXss.so not found error. You may be able to fix that issue by setting the LD_LIBRARY_PATH environment variable, probably, but you'll hit a bug in the implementation sooner than later.
Anyway, atom runs natively on Windows, so I'm not sure why would you want to install it there.

Yosemite psql only [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have done a fresh install of Yosemite. I have read that PostgreSQL is the default database in MacOS now. The problem is that I can't find psql in this new installation. It looks like either I missed to check to install database server or it is not available in Yosemite by default.
I have tried to find the file using: find . | grep psql
The PostgreSQL server is running on remote machine, so, basically I only need command line utility to connect to the remote server
My question is: how can I install just psql (command line utils) without installing the whole server?
Thanks
OS X built-in PostgreSQL is for system data, not for user. Please use Homebrew, Macports, Postgres.app or the EDB installer instead.
It's data directory is for example deleted on upgrade.

Resources