shared clipboard not working in VB 2.2.0? (Ubuntu & Debian)

Discussions related to using VirtualBox on Linux hosts.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: PUEL
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: shared clipboard not working in VB 2.2.0? (Ubuntu & Debian)

Post by baf »

From witin an X-session do:

Code: Select all

ps -auxww|grep VB
You should see something like:

Code: Select all

baf       3137  0.2  0.4   5580  1664 ?        Sl   21:04   0:07 /usr/bin/VBoxClient --clipboard
baf       3142  0.0  0.2   5580  1120 ?        Sl   21:04   0:00 /usr/bin/VBoxClient --autoresize
baf       3153  0.0  0.3   5580  1172 ?        Sl   21:04   0:00 /usr/bin/VBoxClient --seamless
username and numbers will differ.
If you don't see any lines like that try to hand start them
VBoxClient --clipboard and so on (for all three).
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
dpeirce
Posts: 27
Joined: 22. Apr 2009, 02:45
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: many various linux
Location: Central Texas

Re: shared clipboard not working in VB 2.2.0? (Ubuntu & Debian)

Post by dpeirce »

Here's the output:

Code: Select all

dave@dave-tower-antix-m8:~$ ps -auxww|grep VB
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
dave      4372  0.0  0.1   4168   672 pts/1    R+   18:48   0:00 grep VB
dave@dave-tower-antix-m8:~$ ps auxww|grep VB
dave      4374  0.0  0.1   4168   672 pts/1    R+   18:49   0:00 grep VB
dave@dave-tower-antix-m8:~$ su
Password: 
root@dave-tower-antix-m8:/home/dave# ps auxww|grep VB
root      4456  0.0  0.1   4168   668 pts/1    R+   18:50   0:00 grep VB
root@dave-tower-antix-m8:/home/dave# ps -auxww|grep VB
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4458  0.0  0.1   4168   668 pts/1    R+   18:50   0:00 grep VB
root@dave-tower-antix-m8:/home/dave# 
It didn't like the - before auxww. I tried the command as both root and user.

In faith, Dave
dpeirce
Posts: 27
Joined: 22. Apr 2009, 02:45
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: many various linux
Location: Central Texas

Re: shared clipboard not working in VB 2.2.0? (Ubuntu & Debian)

Post by dpeirce »

I'm really sorry: I was pretty sleepy and didn't notice your instructions for starting the processes. Now I've done that, and the VM window resizes and copy/paste works in both directions (I prefer not to use the seamless feature - it confuses me). Here is the new output:

Code: Select all

dave@dave-tower-antix-m8:~$ ps -auxww|grep VB
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      5216  0.0  0.3   7884  1772 ?        Sl   11:07   0:00 VBoxClient --clipboard
root      5222  0.0  0.2   7884  1216 ?        Sl   11:08   0:00 VBoxClient --autoresize
root      5246  0.0  0.2   7884  1260 ?        Sl   11:08   0:00 VBoxClient --seamless
dave      5335  0.0  0.0   1744   280 pts/1    R+   11:14   0:00 grep VB
dave@dave-tower-antix-m8:~$ 
Thank you very much. I wonder why the processes didn't start automatically like they did in the Mepis and PCLOS VMs?

In faith, Dave
Viva Texas
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: PUEL
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: shared clipboard not working in VB 2.2.0? (Ubuntu & Debian)

Post by baf »

Well different distros/Window managers has an irritating habit of putting startup scripts in different places. So unfortunately VirtualBox doesn't know where your combo wants to have it ( If it has such a location). But at least you have a workaround now.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
dpeirce
Posts: 27
Joined: 22. Apr 2009, 02:45
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: many various linux
Location: Central Texas

Re: shared clipboard not working in VB 2.2.0? (Ubuntu & Debian)

Post by dpeirce »

OK, if it continues to start crippled I'll know what to do. And I can try and devise a script, or some lines in ~/.bash.rc, to automate it.

Again, thanks for the help!

In faith, Dave
Viva Texas
dpeirce
Posts: 27
Joined: 22. Apr 2009, 02:45
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: many various linux
Location: Central Texas

Re: shared clipboard not working in VB 2.2.0? (Ubuntu & Debian)

Post by dpeirce »

For the info of anyone who might have this same problem:

I made a script to autostart the three necessary commands on bootup. Adding the commands to ~/.bashrc or /root/.bashrc didn't work. I'm using Fluxbox in this Antix-M8 guest, so I added the script (executable) to ~/.fluxbox/startup; you'll have to find where your distro/desktop puts its autostart files. The script runs as USER for me; running it as root isn't necessary.

The script -

Code: Select all

#!/bin/bash
# name = fixit

# script to be run as USER to fix crippled VM
# adds the autoresize, shared clipboard, and 
# seamless features.

# Tested in VirtualBox 2.2.2, Antix-M8 as host
# and also as guest.

VBoxClient --clipboard
VBoxClient --autoresize
VBoxClient --seamless

In faith, Dave
Viva Texas
misiu_mp
Posts: 2
Joined: 23. May 2009, 15:26
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: ubuntu

Re: shared clipboard not working in VB 2.2.0? (Ubuntu & Debian)

Post by misiu_mp »

Anybody tried this with a fedora host? I run VirtualBox 2.2.2 with Ubuntu 8.04 and 9.04 on Fedora 11 and the clipboard simply doesn't work.
The VBoxClient daemons are running, the log writes some things about activating clipboard services and threads, mouse integration and guest resizing work perfectly but middle-button clipboard still doesn't work.
.
reagle
Posts: 34
Joined: 5. May 2008, 23:33

Re: shared clipboard not working in VB 2.2.0? (Ubuntu & Debian)

Post by reagle »

So I've given up on VB 2* clipboard, so now just turn it off and use this Python based clipboard [1].

[1]:http://paste.pocoo.org/show/125742/
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: shared clipboard not working in VB 2.2.0? (Ubuntu & Debian)

Post by Sasquatch »

Strange stuff. I don't have those processes running at all, and I still have shared clipboard.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
tmkwork
Posts: 2
Joined: 1. Jul 2009, 22:16
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: XP

Re: shared clipboard not working in VB 2.2.0? (Ubuntu & Debian)

Post by tmkwork »

I have Ubuntu 9.04 as the host with VB2.2.4r47978 and guest MS XPsp2 and randomly my copy from host to guests also stops working. It may come back if I restart the guest but, on other occasionally i have to reboot the host also.
Post Reply