LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2003, 03:17 PM   #1
alexaltair
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Rep: Reputation: 0
VMware "/dev/parport0" is used by other program


I did install Windows 2000 as guest OS in VMware under Linux.

Now, when I add "/dev/parport0" to have an access to LPT, I always get the same error message: "/dev/parport0" is used by other program

How can I 'free' /dev/parport0 for VMware?
Please help.
 
Old 08-04-2003, 04:34 PM   #2
mindnumbed
Member
 
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74

Rep: Reputation: 15
well, first of all, find out what other program is using it (as root):
# fuser /dev/parport0
this will return a PID (or a list of PIDs). You can then do
$ ps 1234
(where 1234 is the PID or list of PIDs seperated by spaces)
this will find out what program is using the device. you can then close it down to free it. If that doesn't work you can manually kill the processes:
WARNING if you kill important system processes you could crash your computer. however you won't permanently kill it.
$ kill 1234

MN
 
Old 08-04-2003, 05:19 PM   #3
alexaltair
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
# fuser /dev/parport0 - returns nothing at all.
However, I discovered that CUPS is running... So, I turned it off and VMware works now. But, when CUPS is off I can't print from Linux. That's sucks.

Is that possible to run both CUPS and VMware?...

Quote:
Originally posted by mindnumbed
well, first of all, find out what other program is using it (as root):
# fuser /dev/parport0
this will return a PID (or a list of PIDs). You can then do
$ ps 1234
(where 1234 is the PID or list of PIDs seperated by spaces)
this will find out what program is using the device. you can then close it down to free it. If that doesn't work you can manually kill the processes:
WARNING if you kill important system processes you could crash your computer. however you won't permanently kill it.
$ kill 1234

MN
 
Old 08-04-2003, 05:27 PM   #4
mindnumbed
Member
 
Registered: Jul 2003
Location: Scotland
Distribution: Debian
Posts: 74

Rep: Reputation: 15
I don't think you can have them both simultaneously: use
# service cups stop
#service cups start
to turn CUPS on/off.

the ideal solution would be to pipe windoze printing output via CUPS. however, it would be ugly:

windoze-->loopback interface-->samba server on loopback interface-->CUPS

samba can be automatically set up to print from 'doze, however this would really be more trouble than it's worth.
 
Old 08-04-2003, 06:30 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Just do rmmod lp. After you power off your virtual machine, type insmod lp to activate your parallel port for CUPS. No need to power down CUPs. Any printing will be kept in queue until the printer port or printer is activated.

OR

Setup a postscrpt printer in Windows that makes a postscript file and let CUPS print the postscript file. Great setup for inkjet printers if you don't want the other computers messing up your printer alignment.

OR

Write a multi-connection parallel port module/service.
 
  


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
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 10:33 PM
C -communicating with system("ftp"); using "program|ftp>>myfifo" probably hansschmucker Programming 1 03-23-2005 02:39 PM
Getting error: "ALSA device "default" is already in use by another program." brynjarh Debian 7 02-04-2005 12:45 PM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 06:44 AM
"unable to find device node for /dev/x in /dev!" during install zombiedeth *BSD 0 02-02-2004 03:38 AM


All times are GMT -5. The time now is 04:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration