Autor Tópico: Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro  (Lida 21876 vezes)

Offline selvaking

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 1.171
  • Parque Anchieta - Rio de Janeiro - RJ
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #15 Online: 08 de Dezembro de 2017, 13:48 »
Outra informação não pedida anteriormente.
Código: [Selecionar]
apt search virtualbox | grep installed
Dê-me um computador com o Tux que movo o mundo!

Linux User #323049

Offline mtorresmbr

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #16 Online: 11 de Dezembro de 2017, 02:52 »
Outra informação não pedida anteriormente.
Código: [Selecionar]
apt search virtualbox | grep installed

misael@misael-desktop:~$ apt search virtualbox | grep installed

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

unity-scope-virtualbox/xenial,xenial,now 0.1+13.10.20130723-0ubuntu1 all [installed]
virtualbox-5.2/now 5.2.2-119230~Ubuntu~xenial amd64 [installed,local]

Offline selvaking

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 1.171
  • Parque Anchieta - Rio de Janeiro - RJ
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #17 Online: 12 de Dezembro de 2017, 02:29 »
Use os comandos abaixo, vc vai precisar de uma conexão com a internet ativa:

Código: [Selecionar]
wget http://download.virtualbox.org/virtualbox/5.2.2/Oracle_VM_VirtualBox_Extension_Pack-5.2.2-119230.vbox-extpack
Código: [Selecionar]
vboxmanage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-5.2.2-119230.vbox-extpack
Dê-me um computador com o Tux que movo o mundo!

Linux User #323049

Offline mtorresmbr

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #18 Online: 12 de Dezembro de 2017, 02:43 »
Use os comandos abaixo, vc vai precisar de uma conexão com a internet ativa:

Código: [Selecionar]
wget http://download.virtualbox.org/virtualbox/5.2.2/Oracle_VM_VirtualBox_Extension_Pack-5.2.2-119230.vbox-extpack
Código: [Selecionar]
vboxmanage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-5.2.2-119230.vbox-extpack

Fiz, mas infelizmente não resolveu.  :'(

Offline selvaking

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 1.171
  • Parque Anchieta - Rio de Janeiro - RJ
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #19 Online: 12 de Dezembro de 2017, 11:18 »
Fiz, mas infelizmente não resolveu.  :'(

Calma! Não era pra resolver nada mesmo. Era só pra criar o ambiente que queremos.

Importante era vc ter colocado a saída dos comandos pra eu saber se eles terminaram com exito.
Toda vez que vc não colocar a saída, tenho que colocar novos comandos pra saber se o que eu quis fazer deu certo. Entendeu?

coloca a saída do comando:

Código: [Selecionar]
vboxmanage list extpacks
Dê-me um computador com o Tux que movo o mundo!

Linux User #323049

Offline mtorresmbr

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #20 Online: 12 de Dezembro de 2017, 11:23 »
Para o código " wget http://download.virtualbox.org/virtualbox/5.2.2/Oracle_VM_VirtualBox_Extension_Pack-5.2.2-119230.vbox-extpack " a saída foi:

misael@misael-desktop:~$ wget http://download.virtualbox.org/virtualbox/5.2.2/Oracle_VM_VirtualBox_Extension_Pack-5.2.2-119230.vbox-extpack
--2017-12-12 10:23:16--  http://download.virtualbox.org/virtualbox/5.2.2/Oracle_VM_VirtualBox_Extension_Pack-5.2.2-119230.vbox-extpack
Resolvendo download.virtualbox.org (download.virtualbox.org)... 187.18.184.138, 187.18.184.137
Conectando-se a download.virtualbox.org (download.virtualbox.org)|187.18.184.138|:80... conectado.
A requisição HTTP foi enviada, aguardando resposta... 200 OK
Tamanho: 19504049 (19M) [text/plain]
Salvando em: “Oracle_VM_VirtualBox_Extension_Pack-5.2.2-119230.vbox-extpack.1”

Oracle_VM_VirtualBo 100%[===================>]  18,60M  1,54MB/s    in 13s     

2017-12-12 10:23:29 (1,43 MB/s) - “Oracle_VM_VirtualBox_Extension_Pack-5.2.2-119230.vbox-extpack.1” salvo [19504049/19504049]

Offline mtorresmbr

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #21 Online: 12 de Dezembro de 2017, 11:26 »
Para o código " vboxmanage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-5.2.2-119230.vbox-extpack " a saída foi:

misael@misael-desktop:~$ vboxmanage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-5.2.2-119230.vbox-extpack
VirtualBox Extension Pack Personal Use and Evaluation License (PUEL)

License version 10, 20 July 2017

PLEASE READ THE FOLLOWING ORACLE VM VIRTUALBOX EXTENSION PACK PERSONAL
USE AND EVALUATION LICENSE CAREFULLY BEFORE DOWNLOADING OR USING THE
ORACLE SOFTWARE. THESE TERMS AND CONDITIONS CONSTITUTE A LEGAL AGREEMENT
BETWEEN YOU AND ORACLE.

ORACLE AMERICA, INC. ("ORACLE") IS WILLING TO LICENSE THE PRODUCT DEFINED
IN SECTION 1 BELOW ONLY ON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS
CONTAINED IN THIS VIRTUALBOX EXTENSION PACK PERSONAL USE AND EVALUATION
LICENSE AGREEMENT ("AGREEMENT").

IF YOU ARE AGREEING TO THIS LICENSE ON BEHALF OF AN ENTITY (RATHER THAN
AS AN INDIVIDUAL HUMAN BEING), YOU REPRESENT THAT YOU HAVE THE APPROPRIATE
AUTHORITY TO ACCEPT THESE TERMS AND CONDITIONS ON BEHALF OF SUCH ENTITY.

1 SUBJECT OF AGREEMENT. This Agreement governs your use of the binary
software package called "Oracle VM VirtualBox Extension Pack" (the
"Product"), which contains a set of additional features for "Oracle
VM VirtualBox" that enhance the operation of multiple virtual machines
("Guest Computers") on a single physical computer ("Host Computer"). The
Product consists of executable files in machine code, script files,
data files, and all documentation and updates provided to You by Oracle.

2 GRANT OF LICENSE. Oracle grants you a personal, non-exclusive,
non-transferable, limited license without fees to reproduce, install,
execute, and use internally the Product on Host Computers for
your Personal Use, Educational Use, or Evaluation. "Personal Use"
is noncommercial use solely by the person downloading the Product
from Oracle on a single Host Computer, provided that no more than one
client or remote computer is connected to that Host Computer and that
client or remote computer is used solely to remotely view the Guest
Computer(s). "Educational Use" is any use by teachers or students in
an academic institution (schools, colleges and universities) as part of
the institution's educational curriculum. "Evaluation" means testing the
Product for up to thirty (30) days; after expiry of that term, you are
no longer permitted to use the Product. Personal Use and/or Educational
Use expressly exclude any use of the Product for commercial purposes or
to operate, run, or act on behalf of or for the benefit of a business,
organization, governmental organization, or educational institution.

Oracle reserves all rights not expressly granted in this license.

3 RESTRICTIONS AND RESERVATION OF RIGHTS.

(1) The Product and copies thereof provided to you under this Agreement
are copyrighted and licensed, not sold, to you by Oracle.

(2) You may not do any of the following: (a) modify any part of the
Product, except to the extent allowed in the documentation accompanying
the Product; (b) rent, lease, lend, re-distribute, or encumber the
Product; (c) remove or alter any proprietary legends or notices contained
in the Product; or (d) decompile, or reverse engineer the Product
(except to the extent permitted by applicable law).

(3) The Product is not designed, licensed or intended for use in the
design, construction, operation or maintenance of any nuclear facility
and Oracle and its licensors disclaim any express or implied warranty
of fitness for such uses.

(4) No right, title or interest in or to any trademark, service mark, logo
or trade name of Oracle or its licensors is granted under this Agreement.

4 TERMINATION. The Agreement is effective on the date you receive the
Product and remains effective until terminated. Your rights under this
Agreement will terminate immediately without notice from Oracle if
you materially breach it or take any action in derogation of Oracle's
and/or its licensors' rights to the Product. Oracle may terminate this
Agreement immediately should any part of the Product become or in Oracle's
reasonable opinion likely to become the subject of a claim of intellectual
property infringement or trade secret misappropriation. Upon termination,
you will cease use of and destroy all copies of the Product under your
control and confirm compliance in writing to Oracle. Sections 3-9,
inclusive, will survive termination of the Agreement.

5 DISCLAIMER OF WARRANTY. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW,
ORACLE PROVIDES THE PRODUCT "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED. WITHOUT LIMITING THE FOREGOING, ORACLE SPECIFICALLY
DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT. The entire risk as
to the quality and performance of the Product is with you. Should it
prove defective, you assume the cost of all necessary servicing, repair,
or correction.

6 LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW,
IN NO EVENT WILL ORACLE OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE,
PROFIT, DATA, OR DATA USE, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL,
INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED REGARDLESS OF THE THEORY
OF LIABILITY, ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO
USE THE PRODUCT, EVEN IF ORACLE HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES. In no event will Oracle's liability to you, whether in
contract, tort (including negligence), or otherwise, exceed the amount
paid by you for the Product under this Agreement.

7 SEPARATELY LICENSED THIRD PARTY TECHNOLOGY. The Product may contain
or require the use of third party technology that is provided with
the Product. Oracle may provide certain notices to you in the Product's
documentation, readmes or notice files in connection with such third party
technology. Third party technology will be licensed to you either under
the terms of this Agreement or, if specified in the documentation, readmes
or notice files, under Separate Terms. Your rights to use Separately
Licensed Third Party Technology under Separate Terms are not restricted
in any way by this Agreement. However, for clarity, notwithstanding the
existence of a notice, third party technology that is not Separately
Licensed Third Party Technology shall be deemed part of the Product and
is licensed to You under the terms of this Agreement. "Separate Terms"
refers to separate license terms that are specified in the Product's
documentation, readmes or notice files and that apply to Separately
Licensed Third Party Technology. "Separately Licensed Third Party
Technology" refers to third party technology that is licensed under
Separate Terms and not under the terms of this Agreement.

8 EXPORT. Export laws and regulations of the United States and any other
relevant local export laws and regulations apply to the Product. You
agree that such export laws govern your use of the Product (including
technical data) provided under this Agreement, and you agree to comply
with all such export laws and regulations (including "deemed export" and
"deemed re-export" regulations). You agree that no data, information,
and/or Product (or direct product thereof) will be exported, directly or
indirectly, in violation of these laws, or will be used for any purpose
prohibited by these laws including, without limitation, nuclear, chemical,
or biological weapons proliferation, or development of missile technology.

9 U.S. GOVERNMENT END USERS. Oracle programs, including the Product,
any operating system, integrated software, any programs installed on
hardware, and/or documentation, delivered to U.S. Government end users
are "commercial computer software" pursuant to the applicable Federal
Acquisition Regulation and agency-specific supplemental regulations. As
such, use, duplication, disclosure, modification, and adaptation of
the programs, including any operating system, integrated software,
any programs installed on the hardware, and/or documentation, shall
be subject to license terms and license restrictions applicable to the
programs. No other rights are granted to the U.S. Government.

10 MISCELLANEOUS. This Agreement is the entire agreement between you
and Oracle relating to its subject matter. It supersedes all prior or
contemporaneous oral or written communications, proposals, representations
and warranties and prevails over any conflicting or additional terms
of any quote, order, acknowledgment, or other communication between
the parties relating to its subject matter during the term of this
Agreement. No modification of this Agreement will be binding, unless in
writing and signed by an authorized representative of each party. If any
provision of this Agreement is held to be unenforceable, this Agreement
will remain in effect with the provision omitted, unless omission would
frustrate the intent of the parties, in which case this Agreement will
immediately terminate. This Agreement is governed by the laws of the
State of California, USA, and you and Oracle agree to submit to the
exclusive jurisdiction of, and venue in, the courts of San Francisco
or Santa Clara counties in California in any dispute arising out of or
relating to this Agreement.

Do you agree to these license terms and conditions (y/n)? y

License accepted. For batch installaltion add
--accept-license=56be48f923303c8cababb0bb4c478284b688ed23f16d775d729b89a2e8e5f9eb
to the VBoxManage command line.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".




Offline mtorresmbr

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #22 Online: 12 de Dezembro de 2017, 11:30 »
Fiz, mas infelizmente não resolveu.  :'(

Calma! Não era pra resolver nada mesmo. Era só pra criar o ambiente que queremos.

Importante era vc ter colocado a saída dos comandos pra eu saber se eles terminaram com exito.
Toda vez que vc não colocar a saída, tenho que colocar novos comandos pra saber se o que eu quis fazer deu certo. Entendeu?

coloca a saída do comando:

Código: [Selecionar]
vboxmanage list extpacks

misael@misael-desktop:~$ vboxmanage list extpacks
Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      5.2.2
Revision:     119230
Edition:     
Description:  USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe.
VRDE Module:  VBoxVRDP
Usable:       true
Why unusable:

Offline selvaking

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 1.171
  • Parque Anchieta - Rio de Janeiro - RJ
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #23 Online: 12 de Dezembro de 2017, 12:46 »
Inicie sua máquina virtual do Windows e no menu da máquina virtual selecione "Dispositivos" e no menu suspenso que se abre selecione "Inserir imagem de CD dos Adicionais para Convidado..."
Após fazer isso o Windows da maquina virtual vai entrar num processo de instalação que vc vai clicar pra instalar e next.

Após instalado e reiniciado a máquina virtual vai aparecer no menu da máquina virtual em "Dispositivos", os dispositivos USB conectados a máquina real que podem ser transferidos para a máquina virtual. Aparecendo a impressora marque ela que ela vai mudar da máquina real pra máquina virtual. Vc vai ter que instalar ela na máquina virtual pra que ela possa imprimir.
Dê-me um computador com o Tux que movo o mundo!

Linux User #323049

Offline mtorresmbr

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #24 Online: 12 de Dezembro de 2017, 13:42 »
Inicie sua máquina virtual do Windows e no menu da máquina virtual selecione "Dispositivos" e no menu suspenso que se abre selecione "Inserir imagem de CD dos Adicionais para Convidado..."
Após fazer isso o Windows da maquina virtual vai entrar num processo de instalação que vc vai clicar pra instalar e next.

Após instalado e reiniciado a máquina virtual vai aparecer no menu da máquina virtual em "Dispositivos", os dispositivos USB conectados a máquina real que podem ser transferidos para a máquina virtual. Aparecendo a impressora marque ela que ela vai mudar da máquina real pra máquina virtual. Vc vai ter que instalar ela na máquina virtual pra que ela possa imprimir.

Fiz tudo isso, com a impressora ligada, mas ela não foi detectada.

Offline selvaking

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 1.171
  • Parque Anchieta - Rio de Janeiro - RJ
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #25 Online: 12 de Dezembro de 2017, 14:10 »
saida do comando abaixo:
Código: [Selecionar]
lsusb
Dê-me um computador com o Tux que movo o mundo!

Linux User #323049

Offline mtorresmbr

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #26 Online: 12 de Dezembro de 2017, 14:40 »
saida do comando abaixo:
Código: [Selecionar]
lsusb

Com a impressora ligada, coloquei o comando e deu:

misael@misael-desktop:~$ lsusb
Bus 002 Device 005: ID 1a2c:2124 China Resource Semico Co., Ltd
Bus 002 Device 003: ID 1bcf:0005 Sunplus Innovation Technology Inc. Optical Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 011: ID 03f0:c111 Hewlett-Packard Deskjet 1510
Bus 001 Device 003: ID 148f:2070 Ralink Technology, Corp. RT2070 Wireless Adapter
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Offline selvaking

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 1.171
  • Parque Anchieta - Rio de Janeiro - RJ
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #27 Online: 12 de Dezembro de 2017, 15:15 »
Ok!
Ela aparece na listagem do linux.
Bus 001 Device 011: ID 03f0:c111 Hewlett-Packard Deskjet 1510

O que acontece quando vc seleciona o item "Dispositivo/USB" no menu da máquina virtual do Windows? A impressora aparece na lista?
Dê-me um computador com o Tux que movo o mundo!

Linux User #323049

Offline mtorresmbr

  • Usuário Ubuntu
  • *
  • Mensagens: 25
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #28 Online: 12 de Dezembro de 2017, 15:37 »
Ok!
Ela aparece na listagem do linux.
Bus 001 Device 011: ID 03f0:c111 Hewlett-Packard Deskjet 1510

O que acontece quando vc seleciona o item "Dispositivo/USB" no menu da máquina virtual do Windows? A impressora aparece na lista?

"Nenhum dispositivo USB concectado"

Offline selvaking

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 1.171
  • Parque Anchieta - Rio de Janeiro - RJ
    • Ver perfil
Re:Instalar impressora no Virtual Box 5.2.0 tendo Ubuntu 16.04 como hospedeiro
« Resposta #29 Online: 12 de Dezembro de 2017, 16:00 »
Execute o comando abaixo e reinicie seu Ubuntu.

Código: [Selecionar]
sudo usermod -G vboxusers -a misael
Dê-me um computador com o Tux que movo o mundo!

Linux User #323049