cancel
Showing results for 
Search instead for 
Did you mean: 

Defining a COMPORT number on Linux mint 17 rosa

Community Veteran
Posts: 17,782
Thanks: 1,611
Fixes: 19
Registered: 06-11-2007

Defining a COMPORT number on Linux mint 17 rosa

I am trrying to define a comport number through the terminal, using a USB to Serial Converter cable PL2303

 

This line seems to have a problem in it....

 


ln -sf /dev/ttyUSB0 ~/.wine/dosdevices/com4

 

It should be returned as a copy.. and the comport should be assigned to port number 4   However, I must have miscopied something... maybe the slants are the wrong way  (back slant )  ? ?   or spacing  but it gives the following error..

 

ln:invalid option - -`/`

Try `ln - - help` for more information.

 

However the help is incomprehensible to me !... can someone please correct it ?

 

14 REPLIES
Community Veteran
Posts: 5,471
Thanks: 1,451
Fixes: 34
Registered: 16-10-2014

Re: Defining a COMPORT number on Linux mint 17 rosa

Have you tried escaping the paths using single quotes? i.e.

'/dev/ttyUSB0' '~/....'

Also make sure that the device your linking to actually exists.

Community Veteran
Posts: 17,782
Thanks: 1,611
Fixes: 19
Registered: 06-11-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

@Mook   do you  mean i should put the single quotes in where you have them on the existing format of the text?

 

I am not a Linux geek, so quite a lot of the linux terminology is not understood.

Community Veteran
Posts: 5,471
Thanks: 1,451
Fixes: 34
Registered: 16-10-2014

Re: Defining a COMPORT number on Linux mint 17 rosa

@shutter, Yes, like this:

ln -sf '/dev/ttyUSB0' '~/.wine/dosdevices/com4'

But this shouldn't really be needed so it tells me that something else is wrong.

Community Veteran
Posts: 17,782
Thanks: 1,611
Fixes: 19
Registered: 06-11-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

ok thanks... wll give that a try... and then see if the "dosdevice" i.e. the pl2303 is correctly defined.  will probably take me the rest of the day... so don`t rush back ! !

 

cheers

Wink

Community Veteran
Posts: 5,471
Thanks: 1,451
Fixes: 34
Registered: 16-10-2014

Re: Defining a COMPORT number on Linux mint 17 rosa

@shutter, what you should do is :

 

cd ~/.wine/dosdevices

then

ln -sf /dev/ttyUSB0 com4

That should do the trick.

 Corrected typo spotted by @VileReynard

Community Veteran
Posts: 17,782
Thanks: 1,611
Fixes: 19
Registered: 06-11-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

@Mook  ok thanks for that... maybe that line was missed out when I re-wrote the instructions ! .. will give that a go this afternoon...busy doing other stuff now.. helping a guy in Belguim with cwcom ! ( on linux ! )

cheers

Wink

VileReynard
Seasoned Pro
Posts: 10,997
Thanks: 265
Fixes: 11
Registered: 01-09-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

Shouldn't

ln -sf /def/ttyUSB0 com4

be

ln -sf /dev/ttyUSB0 com4

and do you need root authority to do it?

Community Veteran
Posts: 6,773
Thanks: 257
Fixes: 20
Registered: 16-02-2009

Re: Defining a COMPORT number on Linux mint 17 rosa

no why would you need root, ttyUSB0 should be user writeable, as long as they are in the dialout group
"hairybiker@octo:~$ ln -s /dev/tty0 ./com4
hairybiker@octo:~$ ll com4
lrwxrwxrwx 1 hairybiker hairybiker 9 Apr 2 12:21 com4 -> /dev/tty0
"
VileReynard
Seasoned Pro
Posts: 10,997
Thanks: 265
Fixes: 11
Registered: 01-09-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

I see - note that

jeremy@hector ~ $ ls -l /dev/tty0
crw--w---- 1 root tty 4, 0 Mar 31 23:37 /dev/tty0

Community Veteran
Posts: 17,782
Thanks: 1,611
Fixes: 19
Registered: 06-11-2007

Re: Defining a COMPORT number on Linux mint 17 rosa


@VileReynard

VileReynard wrote:

Shouldn't

ln -sf /def/ttyUSB0 com4

be

ln -sf /dev/ttyUSB0 com4

and do you need root authority to do it?


 

 

I think you are confusing the issue even more... the original in my post was deV .. so why are you asking if deF should be deV?

 

 

As it happens,... the guy I was trying to help,. seems to have sorted it out... therefore, the original instruction that I wrote must have been correct, as it worked for me, on my initial trial... ( and I think it has worked for other Linux users since being published on the internet )..

 

Maybe, having already got the USB0  comport defined already,.. installing another usb to serial converter has confused the issue.. and I could possibly have mis - read the dmesg listings.

 

Thanks for your efforts guys.. ....   as usual.... much appreciated. Smiley

VileReynard
Seasoned Pro
Posts: 10,997
Thanks: 265
Fixes: 11
Registered: 01-09-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

Linux doesn't come equipped with a /def directory. Cheesy

Community Veteran
Posts: 17,782
Thanks: 1,611
Fixes: 19
Registered: 06-11-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

@VileReynard  so why did you post this, then ?

 

**********************************************************************************************************************************************

 

VileReynard wrote:

Shouldn't

ln -sf /def/ttyUSB0 com4

be

ln -sf /dev/ttyUSB0 com4
Community Veteran
Posts: 5,471
Thanks: 1,451
Fixes: 34
Registered: 16-10-2014

Re: Defining a COMPORT number on Linux mint 17 rosa

@shutter, that was my mistake @VileReynard was only highlighting my error that I then corrected.

Community Veteran
Posts: 17,782
Thanks: 1,611
Fixes: 19
Registered: 06-11-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

@Mook Ah, well... that explains why I was confused ! ! .. Undecided

 

@VileReynard restored to glory ! ! .. Wink