Date   
Re: Command not found

KK4JOW
 

when I type in echo $PATH it comes back with:

/home/pi/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games

When I enter /bin/ls it comes back with

ardop    dump1090_1.3.1_sdrplay  Music     pyqso-1.1.0  Videos
Desktop    GridTracker    perl5     qsstv   weather
Documents  HamRadio    Pictures  Scratch   wsjtx_to_n3fjp
Downloads  MagPi    Public    Templates   YAAC





 

Re: Command not found

Jim Hudson
 

Disregard previous.

I see you screen shot.

Post you APPLICATION lines.

73,
Jim

Re: Command not found

Jim Hudson
 

What commands don't work?

Does 'env<ENTER>' without quotes put anything on the screen.

Could be a permission problem. Try sudo ls -l
Does that give you the contents of the directory your in?

You might try to restore your profile:
sudo cp /etc/profile /home/pi/.profile
((Note the period)
Reboot

73,
Jim

Re: Command not found

Eric
 

Since you can log in, all is not lost and you should not have to reimage the pi to get things working.



If you type in a program name (like ls) at the prompt and there is no explicitly specified path, the shell searches, in order, each directory listed in the PATH environment variable for the program. The first instance of the program that is found gets executed. Only after searching "everywhere" without finding the program, will you get the "command not found" error.

The other effect of the above is that if you have two copies of one program and you update only one you might not see the results of an update.


If there is no PATH environment variable defined, there is no place to search, so you would have to explicitly (as done below with the ls command) specify the correct path to get it to work.



Anyway....


What is the result of the command

echo $PATH

followed, of course, by enter ?



The echo command is a built-in command for the bash shell and should work as it's not an external to bash.



Since you have a Raspberry Pi, see if typing

/bin/ls

works.

If the result of the echo $PATH shows no text and /bin/ls works, then your login session has lost its path.

If this is the case, the next step is to figure out what happened to the path. Please let me know what happens.





Eric, WB6TIX

Re: Command not found

KK4JOW
 

I don't know what directory I am in or how it changed. All these commands worked before.

Re: Command not found

Jerome Kutche
 

Are u in correct directory to run these commands? Just a thought 73 Jerry

 

From: RaspberryPi-4-HamRadio@groups.io <RaspberryPi-4-HamRadio@groups.io> On Behalf Of KK4JOW@...
Sent: Sunday, February 9, 2020 1:53 PM
To: RaspberryPi-4-HamRadio@groups.io
Subject: [RaspberryPi-4-HamRadio] Command not found

 

I don't know what I've done but my pi doesn't seem to recognize any commands. They all come aback with " bash: command not found"

How can I fix this? I've run update and upgrade and rebooted.

Thanks

Re: Command not found

Eric
 

My guess is that your PATH environment variable was removed.

If you type echo $PATH (echo is built into the shell), you should get something like
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:


When you type in a command, BASH looks to see if the command is built in. If not, it then looks though the various paths until it finds the command.

I'm having to "bail out" right now to go meet some folks, but check out the following.

https://unix.stackexchange.com/questions/227989/complete-view-of-where-the-path-variable-is-set-in-bash

(be care of the possible line breaks)

and in your home directory is a file called .profile Note it has the "dot" in front of the file name. The dot keeps the file from being displayed unless you want by adding the -a option to ls.


The commands are likely there, but just not accessible because the path. So, while you are looking around, try

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:

and then

so you can at least look around.

Eric

Re: Command not found

Kevin Scott
 

Re-image?

Command not found

KK4JOW
 

I don't know what I've done but my pi doesn't seem to recognize any commands. They all come aback with " bash: command not found"
How can I fix this? I've run update and upgrade and rebooted.
Thanks

Re: TNC_Pi Jumpers?

Dan Dicke
 

Never mind. They aren’t tnc-pi 2’s so it doesn’t matter. They won’t work for my project. Thanks for responding


Dan

Dan Dicke Electric
Sent via IPhone

On Feb 6, 2020, at 18:20, Mark Griffith via Groups.Io <mdgriffith2003@...> wrote:

A photo would be helpful. 

Mark 
KD0QYN 



On Thu, Feb 6, 2020 at 6:13 PM, Dan Dicke via Groups.Io
<res0xgcr@...> wrote:
I have two TNC-Pi 2’s and I just received three from someone and they were to be TNC-Pi 2’s but they have jumpers on them?!  What are the Jumpers for and these are obviously NOT TNC-Pi 2’s

Dan

Re: TNC_Pi Jumpers?

 

I have pix of a half dozen different TNC-PI PCBs here


Tadd --- Sent from Planet X

On Feb 6, 2020, at 9:20 PM, Mark Griffith via Groups.Io <mdgriffith2003@...> wrote:

A photo would be helpful. 

Mark 
KD0QYN 



On Thu, Feb 6, 2020 at 6:13 PM, Dan Dicke via Groups.Io
<res0xgcr@...> wrote:
I have two TNC-Pi 2’s and I just received three from someone and they were to be TNC-Pi 2’s but they have jumpers on them?!  What are the Jumpers for and these are obviously NOT TNC-Pi 2’s

Dan

Re: TNC_Pi Jumpers?

Mark Griffith
 

A photo would be helpful. 

Mark 
KD0QYN 



On Thu, Feb 6, 2020 at 6:13 PM, Dan Dicke via Groups.Io
<res0xgcr@...> wrote:
I have two TNC-Pi 2’s and I just received three from someone and they were to be TNC-Pi 2’s but they have jumpers on them?!  What are the Jumpers for and these are obviously NOT TNC-Pi 2’s

Dan

TNC_Pi Jumpers?

Dan Dicke
 

I have two TNC-Pi 2’s and I just received three from someone and they were to be TNC-Pi 2’s but they have jumpers on them?! What are the Jumpers for and these are obviously NOT TNC-Pi 2’s

Dan

Re: USB Power supplies

Charles Gallo
 

No, I have not

--  
73 de KG2V
Charlie

On Feb 5, 2020, at 11:56 AM, Cliff Dorr via Groups.Io <kf7ku@...> wrote:

Have you measured rfi for this ps?  I have a similar unit(shipped by a popular Pi kit supplier) that creates a lot of 20m hash on my 7610.  My fix was to use the Anker dc battery bank recharger used for my iphone.  It will run my pi for a few days..an acceptable solution until I find a suitable regulated dc ps.

Re: USB Power supplies

Cliff Dorr
 

Have you measured rfi for this ps?  I have a similar unit(shipped by a popular Pi kit supplier) that creates a lot of 20m hash on my 7610.  My fix was to use the Anker dc battery bank recharger used for my iphone.  It will run my pi for a few days..an acceptable solution until I find a suitable regulated dc ps.

Re: Unbootable SD Cards

Bradley Davy
 

I had an SD card failure not long after setting up my first Pi 3B. Reimaged and its worked ever since. I’ve had a couple instances where I could not get into the Pi via SSH due to network or update errors and had to unplug the power to move it to plug into a TV. On one occasion I noticed the green LED was periodically on, which I believe indicates its reading or writing to the SD card. Now I try to make sure the green LED is not lit before pulling the power. No SD card failure since I’ve adopted this practice. 


Brad

Re: Unbootable SD Cards

Don Poaps
 

I've had 2 SD card 64 G died on me using a Docker Power Buck converter. I've got a replacement coming to me. The 5 v plug works but not the 12. Not sure if defective or my bad luck with these SD cards. Plus another Metal case with a fan also killed an SD card. Heat??



73

Don Poaps
New Westminster, BC
VA7DGP DATA
VA7QU   VOICE


Winlink: va7qu@...
Subject://wl2k           



                    
  




 


On Tue, Feb 4, 2020 at 8:21 PM bbillp <b.bill.p@...> wrote:
I am mystified by all the reports of failed SD cards and wonder where these are coming from because I have many RPis as old as the first originals up to the 3b+ without failure, two Pi run 24/7 for years.    Samsung SDs.

Low voltage then build your own DC cable plus you can cut it to a decent length and set the power supply to 5.3 volts.



Re: Unbootable SD Cards

Bernard Littau
 

I am similarly mystified but have experienced SD card failure on the RPi myself.  I attribute this, perhaps mistaken, on cheap SD cards.  Twice now on SD cards shipped with the RPi as a kit.  

I believe, at this point, SD cards are like toasters: an appliance, you get what you pay for. Commodity item.  

Bernard

On Tue, Feb 4, 2020 at 20:21 bbillp <b.bill.p@...> wrote:
I am mystified by all the reports of failed SD cards and wonder where these are coming from because I have many RPis as old as the first originals up to the 3b+ without failure, two Pi run 24/7 for years.    Samsung SDs.

Low voltage then build your own DC cable plus you can cut it to a decent length and set the power supply to 5.3 volts.



Re: Unbootable SD Cards

bbillp
 

I am mystified by all the reports of failed SD cards and wonder where these are coming from because I have many RPis as old as the first originals up to the 3b+ without failure, two Pi run 24/7 for years. Samsung SDs.

Low voltage then build your own DC cable plus you can cut it to a decent length and set the power supply to 5.3 volts.

Re: Unbootable SD Cards

Mark Griffith
 

I don't know what corruption issue you are talking about. I have been using SD cards for years with no issues.  You also don't mention the power problem of supplying power to the drive either through the Pi or with a different power supply.

But to each their own. If you are comfortable with your setup that is great.

Mark 
KD0QYN 



On Tue, Feb 4, 2020 at 12:20 PM, Perry Ogletree
<afa4nq@...> wrote:
Dump the SD cards and go to small SSD drives instead.  You can get 240/256 Gb drives for less than $40 and a USB case for them is another $10.  You'll have more room and won't have the corruption issue.
Note: Depending on the version of your Pi, you may still need a small "bootstrap" SD card as not all Pi's can boot from a SSD. That card will only be read at boot and does not experience the corruption issue per my experience.
I've had good results with the Team Group 256 Gb SSD at $29.99 from Newegg or Micro Center.

Perry