[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error Selecting Port on CHIRP



Yes the askubuntu link is the one I got the command from.  (Sshhh, don't tell anyone I had to Google it :-)  

I remembered having to add my user to a group in order to have Arduino Ide work.  There you are usually 
uploading the code via USB to serial so the serial in that case is something like /dev/ttyusb0.  
But I couldn't recall which group and which command and so I found that link.  I thought the adduser command looked the 
cleanest.  I looked at the manpage and at first it didn't look like it is right but lower on the page it says: 

"Add an existing user to an existing group
       If called with two non-option arguments, adduser will add an existing user to an existing group." 

I'm not really good with bash but now I think I could have just told Chris to do this: 

sudo adduser $USER dialout 

right?  

Also the dialout group isn't what I remembered.  The last time I installed Arduino Ide it was on Arch Linux 
and there you use the uucp group.  On my Ubuntu machine I have dialout.  So I guess Ubuntu and Debian it 
is dialout.  

Thomas

On Mon, Dec 28, 2020 at 9:21 AM goossbears <acohen36@gmail.com> wrote:

On Mon, Dec 28, 2020 at 1:41 AM 'Christian Peeples' via BerkeleyLUG <berke...@googlegroups.com> wrote:
Dear All:
I am trying to use CHIRP on my Lenovo ThinkPadX61 running Uuntu 20.4 LTS to program my Wouxun KG-UV3D.  When I try the first step in the process -- downloading the frequencies from the radio -- I get the error message:
"An error has occurred:  [Errno 13] could not open port /dev/ttyS0: [Errno 13] Permission denied: '/dev/ttyS0'" 
The choices I get for "Port" are /dev/ttyS1 [through S59].  Any idea how to figure out the current one without trying 59 ports?  Is there some permission I need or dependency I need to download?

-- Chris Peeples KE6MQW --
(c) +1-510-851-0968
--

Besides what Thomas previously wrote, the searchhit-result SerialException: Could not open port /dev/ttyS0 [Errno 13] Permission denied: '/dev/ttyS0' #17 at https://github.com/codebugtools/codebug_tether/issues/17 using the exact text "[Errno 13] could not open port /dev/ttyS0: [Errno 13] Permission denied: '/dev/ttyS0" provides a somewhat-alternative solution. Sure, there're also the multiple solutions provided at the Ubuntu-specific link https://askubuntu.com/questions/210177/serial-port-terminal-cannot-open-dev-ttys0-permission-denied
Specifically following-up on the suggestions by user tompreston at the GitHub link, you (Chris) could also perform more complete steps such as:
  1. Completely closeout all your Ubuntu desktop apps and windows, and then logout (but don't yet reboot or shutdown the ThinkPad!!)
  2. Perform the Ctrl-Alt-F2 keyboard-combination entry to get a terminal session on /dev/tty2 and login there using your regular username and password.
  3.  Double-check for being in the "dialout" group by entering 'ls -l /dev/ttyS0' ........ the output should be reasonably similar to "crw-rw---- 1 root dialout 4, 64 Jun 6 10:56 /dev/ttyS0" except for of course that exact timestamp.
  4. Also check for the same by entering 'groups', which should display "dialout" among the other user-membered groups listed.
  5. Enter the command 'sudo su -' to briefly become the superuser.
  6. Run the standard administrative command sequence # 'apt update && apt upgrade' (note that user tompreston performs <user>$ 'sudo apt-get update' and <user>$ 'sudo apt-get upgrade' .)
  7. As briefly(!!) as possible, perform any other absolutely necessary administrative tasks while logged-in as the superuser (e.g., re-checking system groups settings by running # 'vigr' and # 'vigr -s'), and then immediately reboot the ThinkPad by entering the straighforward # 'reboot' to ensure that all changes go into effect ASAP.
-Aaron C

--
You received this message because you are subscribed to the Google Groups "BerkeleyLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to berkeleylug+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/berkeleylug/89497e07-3186-415a-a641-49ef80e5319bn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "BerkeleyLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to berkeleylug+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/berkeleylug/CAGpvfsp0YC9MkyPLAyExS3FA6uM46fU1U9d2UT1AhPo7UEuxog%40mail.gmail.com.