LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-06-2006, 08:44 PM   #16
Balarabay1
Member
 
Registered: Feb 2006
Location: Florida
Distribution: SUSE 11.0/x86 KDE
Posts: 334

Original Poster
Rep: Reputation: 30
OK, I got it to list! I had to put a "ll" in front of your wine command


doug@linux:~> ll ~/.wine/dosdevices
total 0
lrwxrwxrwx 1 doug users 13 2006-03-07 22:18 a: -> /media/floppy
lrwxrwxrwx 1 doug users 8 2006-03-07 22:18 a:: -> /dev/fd0
lrwxrwxrwx 1 doug users 10 2006-03-07 22:18 c: -> ../drive_c
lrwxrwxrwx 1 doug users 10 2006-03-07 22:18 com1 -> /dev/ttyS0
lrwxrwxrwx 1 doug users 10 2006-03-07 22:18 com2 -> /dev/ttyS1
lrwxrwxrwx 1 doug users 10 2006-03-07 22:18 com3 -> /dev/ttyS2
lrwxrwxrwx 1 doug users 10 2006-03-07 22:18 com4 -> /dev/ttyS3
lrwxrwxrwx 1 doug users 10 2006-03-07 22:18 d: -> /media/dvd
lrwxrwxrwx 1 doug users 8 2006-03-07 22:18 d:: -> /dev/dvd
lrwxrwxrwx 1 doug users 8 2006-03-07 22:18 lpt1 -> /dev/lp0
lrwxrwxrwx 1 doug users 4 2006-03-07 22:18 x: -> /tmp
lrwxrwxrwx 1 doug users 10 2006-03-07 22:18 y: -> /home/doug
lrwxrwxrwx 1 doug users 1 2006-03-07 22:18 z: -> /
doug@linux:~>



**TAKE NOTE>>>>>> ALL the /dev/ttyS0 lines were highlighted in BLACK. Along with /dev/fdo, /dev/dvd, and /dev/lpo. The rest were blue.
 
Old 04-07-2006, 12:54 PM   #17
Balarabay1
Member
 
Registered: Feb 2006
Location: Florida
Distribution: SUSE 11.0/x86 KDE
Posts: 334

Original Poster
Rep: Reputation: 30
I really need to be able to use my serial port to upload data.

Anyone who gets my serial port to be accessible to my program through WINE, w/o screwing up my modem, I'll send $15.00 through PAYPAL as a thank you for getting this problem squared away. I need to be able to use my serial port for my modem or uploading data. I don't want to see,"Cannot access serial port:Permission Denied" . I need to know how to set the permission!I'm going away soon and NEED THIS CAPABILITY!! I certainly appreciate all help which I already received.
 
Old 04-07-2006, 03:38 PM   #18
Balarabay1
Member
 
Registered: Feb 2006
Location: Florida
Distribution: SUSE 11.0/x86 KDE
Posts: 334

Original Poster
Rep: Reputation: 30
Problem Solved!

Keyed in "ls -l /dev/ttyS0" to see the permissions. My permissions were crw-rw----. I then used the following command in root "chmod 666 /dev/ttyS0". The permissions now read crw-rw-rw-. I now can use my modem OR my other application through my serial port. Amazing how a simple command can make such a HUGE difference.
 
Old 04-07-2006, 07:08 PM   #19
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I now can use my modem OR my other application through my serial port. Amazing how a simple command can make such a HUGE difference.
Yeah - except that the /dev files are permitted like that for a reason! Which is why I was suggesting the symlink route. Don't be so impatient: I had to go to bed

All you had to do was change the com1 link from /dev/ttyS0 to /dev/modem.

Quote:
Anyone who gets my serial port to be accessible to my program through WINE, w/o screwing up my modem, I'll send $15.00 through PAYPAL as a thank you for getting this problem squared away.
Of course, there was always using software that didn't need wine in the first place.

Quote:
ALL the /dev/ttyS0 lines were highlighted in BLACK. Along with /dev/fdo, /dev/dvd, and /dev/lpo. The rest were blue.
... the yellow on a black background means it is a block special device. do ls /dev to compare.
 
Old 04-10-2006, 03:42 PM   #20
linuxbot
LQ Newbie
 
Registered: Mar 2006
Posts: 11

Rep: Reputation: 0
uucp group

Quote:
Originally Posted by Balarabay1
I get this result. I hope this will help to get my port accessible.
linux:~ # ls -l /dev/ttyS0
crw-rw---- 1 root uucp 4, 64 Apr 6 16:24 /dev/ttyS0
Actually, I think the proper thing to do here is to add the uucp group to your username. In your listing above the device /dev/ttySO has read/write access by the uucp group. Adding the group to your username should give you access.

To add the group to your username:
Yast > Security and Users > Edit and Create Users > Select your username > Edit > Details > Check the uucp group.

Then set the device permissions back the way they were.
 
Old 04-10-2006, 07:42 PM   #21
Balarabay1
Member
 
Registered: Feb 2006
Location: Florida
Distribution: SUSE 11.0/x86 KDE
Posts: 334

Original Poster
Rep: Reputation: 30
Ok.....I did that

I checked off uucp on the list then accept/finish. Thats all I did.... From now on I should not have to type "chmod 666 /dev/ttyS0" in order to use my serial port for uploading. Right?
 
Old 04-12-2006, 09:05 AM   #22
linuxbot
LQ Newbie
 
Registered: Mar 2006
Posts: 11

Rep: Reputation: 0
Quote:
Originally Posted by Balarabay1
I checked off uucp on the list then accept/finish. Thats all I did.... From now on I should not have to type "chmod 666 /dev/ttyS0" in order to use my serial port for uploading. Right?
Right, theoretically (disclaimer), give it a test.


A bit of History (from my fading memory): uucp is an old unix system/protocol to transfer data between computers using dialup modems before the days of flat rate data networks and the Internet. uucp stands for Unix to Unix Copy. Back when day time long-distance phone calls were expensive and night time calls were much cheaper, uucp would batch transfer jobs, wait until night, dialup computers, and transfer data to save money on phone calls.

I know this doesn't help your problem, but I thought it might be interesting.... or not!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial port capture printed data erald Linux - Software 0 04-12-2005 01:12 AM
reading data from a serial port mchitrakar Linux - Networking 3 12-04-2004 01:24 PM
accessing data from serial port PrerakParikh Linux - Hardware 2 08-24-2004 10:17 PM
Log incomming data from a serial port shoekstr Linux - Hardware 6 05-28-2004 10:53 AM
trouble receiving serial port data mtPete Linux - General 1 08-20-2003 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration