0

Linux commands not working

This is an incredibly basic question but I'm not super familiar with Linux; I only run it via my Steam Deck. So I went through the steps to install NextDNS via command-line client, it installed successfully, but then when I enter the commands it says to use, it says the commands are invalid.

I know I'm probably missing something super simple but Linux just makes no sense to me half the time. Can someone explain what I'm doing wrong?

Here's the relevant portion:

Congratulations! NextDNS is now installed.

To upgrade/uninstall, run this command again and select the appropriate option.

You can use the NextDNS command to control the daemon.
Here are a few important commands to know:

# Start, stop, restart the daemon:
nextdns start
nextdns stop
nextdns restart

# Configure the local host to point to NextDNS or not:
nextdns activate
nextdns deactivate

# Explore daemon logs:
nextdns log

# For more commands, use:
nextdns help

(deck@steamdeck ~)$ nextdns start
bash: nextdns: command not found
(127)(deck@steamdeck ~)$ nextdns activate
bash: nextdns: command not found
(127)(deck@steamdeck ~)$ nextdns log
bash: nextdns: command not found
(127)(deck@steamdeck ~)$ nextdns help
bash: nextdns: command not found

5 replies

null
    • R_P_M
    • 4 wk ago
    • Reported - view

    If it has been installed correctly, it should be located at /usr/bin/nextdns

    You could try the command with the full path instead, if it still won't see it.

    I've not heard of anyone installing the CLI on SteamOS so I don't know of any possible problems but since it's apparently based on Arch, I'm guessing from looking at what happens with arch installation.

    • Florian.4
    • 4 days ago
    • Reported - view

    It gets installed in /home/deck/.local/bin/

     

    afaik /usr is read only and gets wiped with steam os updates. 
     

    I have the same issue as OP and can’t get the CLI to work reliably. At some point it did work, but now it’s “command not found” for me as well. 

      • R_P_M
      • 3 days ago
      • Reported - view

       Ah, right. You'd have to update your paths to include /home/deck/.local/bin/ or ~/.local/bin/

      Add this to the ".profile" file in the home folder (if not there already).

      # set PATH so it includes user's private bin if it exists
      if [ -d "$HOME/.local/bin" ] ; then
          PATH="$HOME/.local/bin:$PATH"
      fi
      

      Logout and log back in for it to take effect.

    • Florian.4
    • 4 days ago
    • Reported - view

    I just tried what happens when I reinstall: 

    - still “command not found”

    - https://test.nextdns.io shows that nextdns is now active on the steam deck

      • R_P_M
      • 21 hrs ago
      • Reported - view

       To check whether the path has been included:

      echo $PATH

      Look to see it’s there in the output. 

Content aside

  • 21 hrs agoLast active
  • 5Replies
  • 58Views
  • 3 Following