Page 1 of 2

howto use printer

Posted: 22. Jun 2009, 18:59
by docmccoy
Good day java community.

I have one problem. Hope someone know answer. Let me describe it: i have Linux Fedora 11 as primary system and Windows XP as host system. In Windows i've installed program Guitar Pro, which allows to write, listen and print music. I can successfully write it and all i might to do - is to print it for further reading from hands. All is good, but how should i print? In program i choose by Ctrl-P printer options and cannot see my printer, because Windows XP cannot recognize it. And even if i want to print in any other program or simple text editor some document, i can't access the printer. Please, help me with printing in my host system. Thanks

Kostya

Re: howto use printer

Posted: 22. Jun 2009, 19:33
by vbox4me2
Use lpd/lpr, windows supports lpr printing.

Re: howto use printer

Posted: 22. Jun 2009, 20:20
by docmccoy
Sorry, but what exactly is lpr?

Re: howto use printer

Posted: 22. Jun 2009, 20:33
by baf
lpr is a printer protocol.

In windows start-> settings->printers and faxes-> add printer
select local deselect automatically detect...
next
create a new port , standard tcpip port.
next next
ipaddress of your host(10.0.2.3 in standard nat).
custom->settings->lpr
select the correct printqueue name.

good luck

Re: howto use printer

Posted: 22. Jun 2009, 21:42
by docmccoy
Thanks for instructions. I did everything, however printer does not work. When i typing in command line "cmd /k ipconfig /all" and press enter nothing has appear, besides i was expecting to see all ip addresses of windows machine. And i assume that IP for printer 10.0.2.3 was incorrect. Do you have another candidates for printer IP value?

Re: howto use printer

Posted: 22. Jun 2009, 22:05
by vbox4me2
Did you setup the lpd(deamon) on the Host where the printer is?

Re: howto use printer

Posted: 22. Jun 2009, 22:14
by docmccoy
In Fedora 11 it can be accomplished by the web browser interface typing localhost:631 and then installing proper printer. Yes, i've done it

Re: howto use printer

Posted: 22. Jun 2009, 22:50
by vbox4me2
Did you solve the ipconfig issue? without that your not going anywhere, once your Guest has an ip address you can try the lpr command in a cmd box before trying a printer driver via lpr.

Re: howto use printer

Posted: 22. Jun 2009, 23:01
by docmccoy
i didn't solve ipconfig issue, and how can i solve it?) it is really strange problem, why ip does not show on fresh-installed guest windows machine... Maybe there is existing another way for checking those ip's? I remember that in VMWare there were no problems with this, but if i chose VirtualBox, i'd rather try to follow it. So great, i have new problem - ip mystery. If someone know anything, please, share the information. Thanks

Re: howto use printer

Posted: 22. Jun 2009, 23:06
by vbox4me2
Run: [VBoxManage showvminfo "VMNAME"], and post results here.

Re: howto use printer

Posted: 22. Jun 2009, 23:21
by docmccoy
i typed in linux terminal following (with results) while guest system was running:

Code: Select all

[root@Baikal docmccoy]# VBoxManage showvminfo VisualStudio
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

ERROR: Could not find a registered machine named 'VisualStudio'
Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindMachine (Bstr(VMNameOrUuid), machine.asOutParam())" at line 1929 of file VBoxManageInfo.cpp

Re: howto use printer

Posted: 22. Jun 2009, 23:24
by baf
You are either not running VBoxManage as the same user as has the guest or you have spelled the machine name wrong.
Try

Code: Select all

VBoxManage list vms
To see what its name really is.

Re: howto use printer

Posted: 22. Jun 2009, 23:29
by docmccoy
What i see after last command is:

Code: Select all

[docmccoy@Baikal ~]$ VBoxManage list vms
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

"VisualStudio" {ca9c5649-8b5c-48bf-9490-dc7725451d33}
[docmccoy@Baikal ~]$

Re: howto use printer

Posted: 22. Jun 2009, 23:31
by vbox4me2
Try the UUID and whats this with a # first and then a $ ? forgot su?

Re: howto use printer

Posted: 22. Jun 2009, 23:33
by docmccoy
Yes, there is difference:

Code: Select all

[docmccoy@Baikal ~]$ VBoxManage list vms
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

"VisualStudio" {ca9c5649-8b5c-48bf-9490-dc7725451d33}
[docmccoy@Baikal ~]$ su
Password:
[root@Baikal docmccoy]# VBoxManage list vms
VirtualBox Command Line Management Interface Version 2.2.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

[root@Baikal docmccoy]#