Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Wine
Reload this Page Linux newbie needs help with serial port in wine
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Wine Discussion about Wine, the Open Source implementation of the Windows API on top of X and Unix.

Reply
 
Thread Tools Display Modes
Old 07-08-2007   #1 (permalink)
Just Joined!
 
scott.g's Avatar
 
Join Date: Jun 2007
Posts: 15
Linux newbie needs help with serial port in wine

Hello and thanks. am trying to set up a dos type serial port in .wine/dosdevices. I see ports files setup as symbolic links with the linux devices.

lrwxrwxrwx 1 scott.g root 10 2007-07-08 12:27 com1 -> /dev/ttyS0
lrwxrwxrwx 1 scott.g root 10 2007-06-28 22:07 com2 -> /dev/ttyS1
lrwxrwxrwx 1 scott.g root 10 2007-06-28 22:07 com3 -> /dev/ttyS2
lrwxrwxrwx 1 scott.g root 10 2007-06-28 22:07 com4 -> /dev/ttyS3

If I try to run a application that calls a port I get "Port Locked" which I understand is because I do not belong to the group that the devices do.

I am pretty new with linux and don't quite understand all the "groups". In the gnome GUI I set my user ID up for groups (root) and (tty) but still no go. It is better for me if I can learn these commands from a non-GUI command line entry.

If I login as root and try to run the application I do not get teh "Port Locked" error, but the software locks up with an I/O error, well one thing at a time...

Thanks for the help and tips, Scott
scott.g is offline   Reply With Quote
Old 07-09-2007   #2 (permalink)
Just Joined!
 
Join Date: Mar 2007
Posts: 14
I don't know much about serial ports, but I can tell you about the command-line tool to add a user to a group. (Maybe you know this already!!) As root, type:

Code:
adduser <some-user-name> <some-group>
then the user 'some-user-name' will now belong to 'some-group'. If you want more info on the command, type 'man adduser'. If you want to find out what groups a user belongs to, type 'groups <some-user-name>'. Again, you can find out about the 'groups' command by typing 'man groups'. When you're looking at a man page, you exit by typing 'q'.
radiodee1 is offline   Reply With Quote
Old 07-09-2007   #3 (permalink)
Just Joined!
 
scott.g's Avatar
 
Join Date: Jun 2007
Posts: 15
Thank you for the great info, I did try to add to groups in the GUI but it did not seem to work. I temporally changed the ownership of the /dev/ttyS0 device to my user name, and that eliminated the error. But I think it would be more effective for me to add my username to the group of the port.

I'll try it tonight when I get home.
scott.g is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
speedtouch modem connect problem and tainted kernel superkarimo SuSE Linux Help 0 01-04-2007 05:37 PM
mouse scroller crashandburn0420 Gentoo Linux Help 25 11-07-2005 02:08 PM
try out this simple port scanner that im working on in perl hex Linux Security 0 04-10-2004 03:09 AM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 09:33 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0