cancel
Showing results for 
Search instead for 
Did you mean: 

Defining a COMPORT number on Linux mint 17 rosa

shutter
Community Veteran
Posts: 22,206
Thanks: 3,769
Fixes: 65
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 14
Anonymous
Not applicable

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.

shutter
Community Veteran
Posts: 22,206
Thanks: 3,769
Fixes: 65
Registered: ‎06-11-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

@Anonymous   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.

Anonymous
Not applicable

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.

shutter
Community Veteran
Posts: 22,206
Thanks: 3,769
Fixes: 65
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

Anonymous
Not applicable

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

shutter
Community Veteran
Posts: 22,206
Thanks: 3,769
Fixes: 65
Registered: ‎06-11-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

@Anonymous  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
Hero
Posts: 12,616
Thanks: 582
Fixes: 20
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?

"In The Beginning Was The Word, And The Word Was Aardvark."

HairyMcbiker
All Star
Posts: 6,792
Thanks: 266
Fixes: 21
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
Hero
Posts: 12,616
Thanks: 582
Fixes: 20
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

"In The Beginning Was The Word, And The Word Was Aardvark."

shutter
Community Veteran
Posts: 22,206
Thanks: 3,769
Fixes: 65
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
Hero
Posts: 12,616
Thanks: 582
Fixes: 20
Registered: ‎01-09-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

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

"In The Beginning Was The Word, And The Word Was Aardvark."

shutter
Community Veteran
Posts: 22,206
Thanks: 3,769
Fixes: 65
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
Anonymous
Not applicable

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.

shutter
Community Veteran
Posts: 22,206
Thanks: 3,769
Fixes: 65
Registered: ‎06-11-2007

Re: Defining a COMPORT number on Linux mint 17 rosa

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

 

@VileReynard restored to glory ! ! .. Wink