Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:54 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : ZORIN WINE & USB

Author Message
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 04:46am 07 Aug 2019
Copy link to clipboard 
Print this post

G'Day All

In my search for a replacement for W7 I installed Linux Mint and after a lot of problems got the thing to run Arduino & MMedit.
Then in a burst of over confidence I decided to try Zorin.
It installed with no problems until I went looking for Wine.
Zorin did come with wine but for Zorin 15 it is left out because 15 is intended for the Commercial world and wine has a security risk so there.
So I installed Wine and now I have the usual problem of talking to USB ports.
I am in the dialout group.
When I try to do the symbolic link thing I get, failed to create symbolic link ............. file exists.(the dots are the bit I put in)
Zorin does look good, if I can only get it to work.
And I have run out of cab. sav.

Peter
Edited 2019-08-07 14:47 by PeterB
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 09:32am 07 Aug 2019
Copy link to clipboard 
Print this post

When you say "the dots are the bit I put in" I suspect no-one can diagnose it without more detail.

Sorry, can't help with the other kind of wine!

John
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 10:05am 07 Aug 2019
Copy link to clipboard 
Print this post

G'Day John

You mean you can't read dots?
That's the "sudo ln -s /dev/ttyACM0 ~/.wine/dosdevices/com7" bit. I got lazy.
PUTTY can see my E64
Does that mean there is a symbolic link?
This linux thing reminds me of how my wife drove a car. She just knew that pushing that and pulling this made it go. All with no understanding of what she was doing. And she drove very well. I am not coping very well but I will.
If you fix my problem I will send you some cab.sav.

Peter
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 10:41am 07 Aug 2019
Copy link to clipboard 
Print this post

Yes it should mean the "file" (i.e. name) already exists.

You can check each of the ones you posted using ls, such as
ls -ld /dev/ttyACM0
ls -ld ~/.wine/dosdevices/com7

(I've added the d to make sure that in the rather odd situation the file is a directory we find out!)

If they exist, I suppose the next question is are they right...

It's encouraging that putty is happy but what file (name) is it using?

John (no wine needed, but thanks for the offer)
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 10:56am 07 Aug 2019
Copy link to clipboard 
Print this post

If I put in ls -ld/dev/ttyACM0 I get invalid option ls: -- '/'
And I have seen that before in my efforts.
Are you sure about the wine?

Peter
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 11:39am 08 Aug 2019
Copy link to clipboard 
Print this post

Some time ago I tried to get onto the Zorin forum. It fell in a heap.
This time I gave it my best and through gritted teeth, I managed to get there.
And that took me to the unofficial manual and then a page on wine and that is interesting.
So I will go back a few steps and redo some things. I am confident that this is going to work.
And I think I know where I can get some cab. sav. Happy days

Peter
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 12:50pm 08 Aug 2019
Copy link to clipboard 
Print this post

  PeterB said  If I put in ls -ld/dev/ttyACM0 I get invalid option ls: -- '/'
And I have seen that before in my efforts.
Are you sure about the wine?

Peter


You need a space (as in my previous post) between the -ld and the name (the /dev/stuff).

The ls is the command name, the -ld are arguments (aka parameters aka options aka flags) and the rest is/are names of things you want ls to do a -ld listing of.

Good offer on the wine but I'm drinking enough as it is!

John (yayy - Edit is working.)
Edited 2019-08-08 22:52 by JohnS
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 05:34am 09 Aug 2019
Copy link to clipboard 
Print this post

And that is the risk of trying to do something with no understanding and old eyes.
So then I get /dev/ttyACM0 and /home/peter/.wine/dosdevices/com7

Friday is a busy day for me so I haven't done anything yet.
But I do have 175 pages of manual to read.

Peter
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 05:52am 09 Aug 2019
Copy link to clipboard 
Print this post

So they both exist, as it looked from your post.

That means either the equivalent of the ln -s has already been done, so it's not needed, or it is needed but there's a file (name) in the way.

As you say putty works that may well mean the former, i.e. all is OK.

Is there something (other than the ln -s failing) that makes you think all is not OK?

John
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 06:14am 09 Aug 2019
Copy link to clipboard 
Print this post

If I try to connect MMEDIT to com7 I get com port error

I also have Arduino installed and when I open up port I get a list of unpteen ports.
Selecting port7 does nothing.

I can't see anything else, no smoke, no noise, just no comms.

It's good of you to help but don't let it drive you to madness.

I started this in the hope that somebody would leap in with "ZORIN has this different way of doing xyz"

Peter
Edited 2019-08-09 16:17 by PeterB
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 07:22am 09 Aug 2019
Copy link to clipboard 
Print this post

Hi Peter,

I have not used ZORIN, but I am using Lubuntu, GalliumOS, Puppy Linux, ElementaryOS
(yes there are many flavours of Linux).
I am using wine for a different reason, but also need a com port.

To be honest, You are most unlucky to have selected a ZORIN build that did not have wine installed. And getting serial ports to work is something that is not configured default. Although the solution is quite simple.

If I look at your serial port configuration, why did you choose com7..? Not all software can handle beyond com4.

My configuration consists of:


sudo ln -s /dev/ttyACM0 ~/.wine/dosdevices/com1

for Arduino UNO and Micromite

sudo ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com2

for Arduino NANO and typical serial port adapters like for ArmmiteF4

In simple terms the command "ln" makes a link. And it links the new name (com7) you have given it to the Linux serial device "ttyACM0".
Since Wine searches for serial ports in the folder ~/.win/dosdevices/ , that is where the link is placed.
Linux has all devices (serial ports, but also harddisks, etc..) in the folder /dev/

Question:
Do you start Arduino in Wine (Windows?) or did you install Arduino native in Linux?
If Arduino is installed in Wine you should use serial port COM7 (or in my case COM1)
If Arduino is installed in Linux, you should search for a serial port named "ttyACM0" of "ttyUSB0".

Volhout
Edited 2019-08-09 17:24 by Volhout
PicomiteVGA PETSCII ROBOTS
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 07:44am 09 Aug 2019
Copy link to clipboard 
Print this post

G'Day Volhout

Both return failed to create symbolic link ......................file exists

Arduino is installed in wine

Thanks for your interest

Peter
 
Quazee137

Guru

Joined: 07/08/2016
Location: United States
Posts: 593
Posted: 08:36am 09 Aug 2019
Copy link to clipboard 
Print this post

Awhile back in working with Rob getting GFXTerm to run.
I found that wine makes com1 through com35 as soon as GFXTerm is
ran and they don't seem to work.

So I go into .wine/dosdevices and delete them.

Then I make new links for the ttyUSBx and/or ttyAMCx that I need.
And it works.

a bash script could delete the non working links and create new ones.
Edited 2019-08-09 18:38 by Quazee137
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 10:09am 09 Aug 2019
Copy link to clipboard 
Print this post

G'Day Quazee

I had a dosdevices full of coms which I cleaned out and now have com1 and com2 but with no improvement, well not that I can see. The system talks about com1 and COM1, should I be concerned?

Peter
 
Quazee137

Guru

Joined: 07/08/2016
Location: United States
Posts: 593
Posted: 10:55am 09 Aug 2019
Copy link to clipboard 
Print this post

Have a play with this test script

I saved it as winecomms.sh

in my MMBASIC/tools folder
then with NEMO went there and back clicked on it
then properties and under permissions set execute.

it'll show you linux USB's and ACM's
then wines comm's
then relink them if you want.

if you look through the ls of wine comms
you'll see where wine linked them.
my two USB's where at COMM34 and COMM35
to me its just easier to relink them to
the first 8 COMM's


#!/bin/bash

echo "------- USB's ---------"
ls -l /dev/ttyUSB*
echo
echo "------- ACM's ---------"
ls -l /dev/ttyACM*

echo "press Enter to see wine comm's"

echo "----- dosdevices ------"
ls -l ~/.wine/dosdevices/com*

echo "press Enter to redo wine comm's ^C to exit"
read $key

rm ~/.wine/dosdevices/com*

ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1
ln -s /dev/ttyUSB1 ~/.wine/dosdevices/com2
ln -s /dev/ttyUSB2 ~/.wine/dosdevices/com3
ln -s /dev/ttyUSB3 ~/.wine/dosdevices/com4

ln -s /dev/ttyACM0 ~/.wine/dosdevices/com5
ln -s /dev/ttyACM1 ~/.wine/dosdevices/com6
ln -s /dev/ttyACM2 ~/.wine/dosdevices/com7
ln -s /dev/ttyACM3 ~/.wine/dosdevices/com8

ls -l ~/.wine/dosdevices/com*
echo
echo "press Enter"
read $key
exit


Edited 2019-08-09 20:59 by Quazee137
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 12:33am 10 Aug 2019
Copy link to clipboard 
Print this post

Good Morning / Evening Quazee137

Well done!

Your code gave me ACM0 on com33 and now I have Arduino and MMEDIT working.
I need to do a lot more to get anywhere near understanding it but thought I should report in so you can get a good nights sleep
I am really looking forward to seeing what Zorin can do in the hands of an idiot.

Thanks for your input and John & Volhout also.

Life is good.

Peter
 
Quazee137

Guru

Joined: 07/08/2016
Location: United States
Posts: 593
Posted: 12:59am 10 Aug 2019
Copy link to clipboard 
Print this post

Peter

here is the mites.sh I use daily to get all the little ones talking.

mites.sh

#!/bin/bash
if [ -e "/dev/ttyUSB0" ] ; then gnome-terminal -e "minicom --color=on ttyUSB0" ;fi

if [ -e "/dev/ttyUSB1" ] ; then gnome-terminal -e "minicom --color=on ttyUSB1" ;fi

if [ -e "/dev/ttyUSB2" ] ; then gnome-terminal -e "minicom --color=on ttyUSB2" ;fi

if [ -e "/dev/ttyUSB3" ] ; then gnome-terminal -e "minicom --color=on ttyUSB3" ;fi

if [ -e "/dev/ttyUSB4" ] ; then gnome-terminal -e "minicom --color=on ttyUSB4" ;fi

if [ -e "/dev/ttyUSB5" ] ; then gnome-terminal -e "minicom --color=on ttyUSB5" ;fi

if [ -e "/dev/ttyACM0" ] ; then gnome-terminal -e "minicom --color=on ttyACM0" ;fi

if [ -e "/dev/ttyACM1" ] ; then gnome-terminal -e "minicom --color=on ttyACM1" ;fi

if [ -e "/dev/ttyACM2" ] ; then gnome-terminal -e "minicom --color=on ttyACM2" ;fi

if [ -e "/dev/ttyACM3" ] ; then gnome-terminal -e "minicom --color=on ttyACM3" ;fi

# tile the comm screens 2 rows 4 cols on my desktop #2
#x-tile g 2 4



Have FUN

For who knows why I have been on downunder time most my life.
Edited 2019-08-10 11:01 by Quazee137
 
PeterB
Guru

Joined: 05/02/2015
Location: Australia
Posts: 655
Posted: 01:05am 10 Aug 2019
Copy link to clipboard 
Print this post

Quazee

Thanks for that, I think I understand it.
I suspect Grogster is on his way to see you.

It has been talked about before but the world needs a wine / LINUX package to simplify this process. A PLUG N PLAY for ports.

Peter

I just noticed the downunder time which explains why you never sleep.
Is it because of TBS?

P
Edited 2019-08-10 11:07 by PeterB
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025