LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   open-vm-tools.SlackBuild correct install. (https://www.linuxquestions.org/questions/slackware-14/open-vm-tools-slackbuild-correct-install-4175620786/)

lagavulin16 01-03-2018 09:17 AM

open-vm-tools.SlackBuild correct install.
 
Happy New Year, dear folks!
open-vm-tools installed correctly (https://slackbuilds.org/repository/1...open-vm-tools/) and I'm trying to find the right way to start it. There's only one rc.vmtoolsd starting script for it, but there are a lot more binaries under /usr/bin that needs to be running for correct functioning (resizing, drag'n'drop). Can they be added in rc.local like shell-scripts? Or there can be another way?

lagavulin16 01-03-2018 12:52 PM

Nobody knows?

bassmadrigal 01-03-2018 03:00 PM

Quote:

Originally Posted by lagavulin16 (Post 5801227)
Nobody knows?

It's been on the forum for less than 4 hours. This is an international forum with members from all over the world. Somebody who may have the answer may have not logged in since you posted your request.

I've never used this program, so take what I say with a grain of salt... but are you sure they need to be run? If so, you may want to contact the SlackBuild maintainer to have them added to the rc script so they're started when the rc script is run. That being said, you can add anything that needs to be run during startup to rc.local. That's what it is there for :) I would ensure these commands are added after the command to start rc.vmtoolsd to ensure that it is running before those commands are ran (if that is a requirement).

janas03 01-03-2018 06:15 PM

Right now I am in bed without access to my computer but if noone is faster I will post the solution tomorrow cause I had to patch the Slackbuilds.org script and source in order to get it working. After these modifications it is working as expected on vmware workstation 12.x.

EDIT:
At work my host system is Windows 7 64bit and guest is Slackware64 14.2. I am using VMware Workstation Pro 12.1.1 and open-vm-tools-10.1.15-6677369. I saw that there is new release but haven't build it yet. So in order to enable screen resizing, drag&drop you must:
1. Download open-vm-tools from slackbuilds.org
2. Download open-vm-tools source (my tested version click)
3. Download and install dependencies from SBo: libmspack, xml-security-c, libdnet and xerces-c
4. Edit open-vm-tools.SlackBuild and change configure section to
Code:

./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --without-pam \
  --with-x \
  --build=$ARCH-slackware-linux

5. Build and install resulting package
6. Make sure that the /etc/rc.d/rc.vmtoolsd file has 755 permissions
7. Optionally reboot or if you don't want to reboot just start /etc/rc.d/rc.vmtoolsd

In order to enable X Window features (like screen resize, drag&drop, copy&paste) run (as a regular user)
Code:

$ vmware-user-suid-wrapper
I don't have automatic startup script as I seldom shutdown my VMs. I usually suspend them. But if I need to reboot or shutdown I run this suid wrapper command once I log in into X. You can make it start automatically if you want to.

Notice:
The VMware package has static versions of libs included. I tried to get rid of them by using --disable-static and --enable-static=no but with no effect. I know I could just delete them before the actual package is created but decided to leave it as it is. Maybe I should email maintainer?

lagavulin16 01-04-2018 05:42 PM

Quote:

Originally Posted by janas03 (Post 5801380)
In order to enable X Window features (like screen resize, drag&drop, copy&paste) run (as a regular user)
Code:

$ vmware-user-suid-wrapper
I don't have automatic startup script as I seldom shutdown my VMs. I usually suspend them. But if I need to reboot or shutdown I run this suid wrapper command once I log in into X. You can make it start automatically if you want to.

Notice:
The VMware package has static versions of libs included. I tried to get rid of them by using --disable-static and --enable-static=no but with no effect. I know I could just delete them before the actual package is created but decided to leave it as it is. Maybe I should email maintainer?

Thanks a lot, I will try it. By the way, i emailed the maintainer two days ago, he's keeping silence.

slalik 01-05-2018 04:44 AM

A few days ago I compiled the fresh version https://github.com/vmware/open-vm-to.../stable-10.2.0. I used the same configure section as above, but I had to add the line
Code:

LIBS=-lcrypt \
just before configure to get rid of the "undefined reference to `crypt'" error. I wrote to the maintainer and he answered that he will care of this asap.

I use open-vm-tools in a server on a vps hosted on vmware. The hosting provides a template for Debian, which I studied before changing to Slackware. On Debian they run vmtoolsd and VGAuthService.

lagavulin16 01-05-2018 08:18 AM

Quote:

Originally Posted by slalik (Post 5802299)
A few days ago I compiled the fresh version https://github.com/vmware/open-vm-to.../stable-10.2.0. I used the same configure section as above, but I had to add the line
Code:

LIBS=-lcrypt \
just before configure to get rid of the "undefined reference to `crypt'" error. I wrote to the maintainer and he answered that he will care of this asap.

I use open-vm-tools in a server on a vps hosted on vmware. The hosting provides a template for Debian, which I studied before changing to Slackware. On Debian they run vmtoolsd and VGAuthService.

I have edited SlackBuild according to your instructions - and it compiles and works like a charm! With the fresh 10.2.0 version I didn't even need to edit rc.vmtoolsd or start services manually, fullscreen resizing and drag'n'drop work out of the box after upgrading package! I noticed there are two processes called "vmtoolsd" after upgrade and there was the only one before. I think that the cause of error was:

--without-x \

Anyway, thank a lot to all!


All times are GMT -5. The time now is 03:41 PM.