Menu

Remotebox 2.7 installation - pls help!!

2020-07-26
2020-10-13
  • Jakob Czapski

    Jakob Czapski - 2020-07-26

    Hello,

    i am struggling to install Remotebox.

    I tried it with the video, but the repository cannot be added...

    sudo wget http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb
    

    gives back:

    --2020-07-26 16:14:29--  http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb
    Resolving archive.getdeb.net (archive.getdeb.net)... 143.95.32.90
    Connecting to archive.getdeb.net (archive.getdeb.net)|143.95.32.90|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: http://www.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb [following]
    --2020-07-26 16:14:29--  http://www.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb
    Resolving www.getdeb.net (www.getdeb.net)... 143.95.32.90
    Reusing existing connection to archive.getdeb.net:80.
    HTTP request sent, awaiting response... 404 Not Found
    2020-07-26 16:14:30 ERROR 404: Not Found.
    

    So i downloaded the tarball and extracted the RemotBox 2.7 folder.
    Inside the folder i tried:

    sh remotebox
    

    ...it gives back:

    remotebox: 4: use: not found
    remotebox: 5: use: not found
    remotebox: 6: Syntax error: "(" unexpected
    

    OS: Ubuntu 20.04 64bit
    Remotebox Version: 2.7
    Virtualbox Version: 6.1.12r139181

    Please help, i want to migrate form phpvirtualbox (the seems to be no release candidate which is compatible with Virtualbox 6.1) to RemoteBox.

    Thanks in advance for your help!

     
    • Ian Chapman

      Ian Chapman - 2020-07-27

      Hi,

      Honestly, if you read the manual it tells you exactly what to do. Not only is it included in the archive, but available right here:

      http://remotebox.knobgoblin.org.uk/docs/remotebox.pdf

      But firstly, it's not a shell script but a perl script/

      ./remotebox

      is all you need if the dependencies are installed

       
      • Jakob Czapski

        Jakob Czapski - 2020-07-27

        Hi thx for your fast reply!

        I tried:

        ./remotebox
        Can't locate Gtk2.pm in @INC (you may need to install the Gtk2 module) (@INC contains: /home/hal9000/RemoteBox-2.7/share/remotebox /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /home/hal9000/RemoteBox-2.7/share/remotebox/rbox_gui_init.pl line 9.
        BEGIN failed--compilation aborted at /home/hal9000/RemoteBox-2.7/share/remotebox/rbox_gui_init.pl line 9.
        Compilation failed in require at ./remotebox line 22.
        

        i tried also to install also GTK2:

        sudo apt-get install gtk2.0
        

        it installed then 450MB of packeges and still:

        ./remotebox
        Can't locate Gtk2.pm in @INC (you may need to install the Gtk2 module) (@INC contains: /home/hal9000/RemoteBox-2.7/share/remotebox /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /home/hal9000/RemoteBox-2.7/share/remotebox/rbox_gui_init.pl line 9.
        BEGIN failed--compilation aborted at /home/hal9000/RemoteBox-2.7/share/remotebox/rbox_gui_init.pl line 9.
        Compilation failed in require at ./remotebox line 22.
        

        is the result of ./remotebox

        UPDATE:

        i managed to install the gtk2 by sudo apt-get install libgtk2-perl

        now i got:

         ./remotebox
        Gtk-WARNING **: cannot open display:  at /usr/lib/x86_64-linux-gnu/perl5/5.30/Gtk2.pm line 126.
        

        well i am running a headless server, but i guess that refers on the display remotebox whos when connecting via http://<ip>:18083</ip> right?

        Cheers

        Jakob

         

        Last edit: Jakob Czapski 2020-07-27
        • Ian Chapman

          Ian Chapman - 2020-07-28

          In general RemoteBox runs on the client machine and not the same machine that VirtualBox is on. I have no idea what you're trying to do there.

           
          • Jakob Czapski

            Jakob Czapski - 2020-08-01

            Damn!

            I must say you are completely right, my mindset totally followed the phpvirtualbox-logic...

            Thank you for the enlightment Ian, and please close this post.

             
            • Ian Chapman

              Ian Chapman - 2020-08-02

              Hi,

              No worries. :-)

               
      • Jakob Czapski

        Jakob Czapski - 2020-07-27

        Hi thx for your fast reply!

        I tried:

        ./remotebox
        Can't locate Gtk2.pm in @INC (you may need to install the Gtk2 module) (@INC contains: /home/hal9000/RemoteBox-2.7/share/remotebox /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /home/hal9000/RemoteBox-2.7/share/remotebox/rbox_gui_init.pl line 9.
        BEGIN failed--compilation aborted at /home/hal9000/RemoteBox-2.7/share/remotebox/rbox_gui_init.pl line 9.
        Compilation failed in require at ./remotebox line 22.
        

        i tried also to install also GTK2:

        sudo apt-get install gtk2.0
        

        it installed then 450MB of packeges and still:

        ./remotebox
        Can't locate Gtk2.pm in @INC (you may need to install the Gtk2 module) (@INC contains: /home/hal9000/RemoteBox-2.7/share/remotebox /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /home/hal9000/RemoteBox-2.7/share/remotebox/rbox_gui_init.pl line 9.
        BEGIN failed--compilation aborted at /home/hal9000/RemoteBox-2.7/share/remotebox/rbox_gui_init.pl line 9.
        Compilation failed in require at ./remotebox line 22.
        

        is the result of ./remotebox

         
        • Ian Chapman

          Ian Chapman - 2020-07-28

          And did you do

          apt-get install libgtk2-perl libsoap-lite-perl freerdp-x11 tigervnc-viewer

          as per the manual?

           
  • Jakob Czapski

    Jakob Czapski - 2020-07-26

    Update:

    i found an .rpm packag of remotebox amd installed it with "alien -i <package>"
    it confirmed being installed. </package>

    Then i followed:

    [this instruction from chapter 4 on] (http://knobgoblin.org.uk/docs/remotebox.pdf)

    The vboxweb-service is starting well:

    systemctl status vboxweb-service
     vboxweb-service.service
         Loaded: loaded (/usr/lib/virtualbox/vboxweb-service.sh; enabled; vendor preset: enabled)
         Active: active (exited) since Sun 2020-07-26 20:24:28 CEST; 6min ago
        Process: 6434 ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start (code=exited, status=0/SUC>
    
    Jul 26 20:24:28 hal9999 systemd[1]: Starting vboxweb-service.service...
    Jul 26 20:24:28 hal9999 systemd[1]: Started vboxweb-service.service.
    

    However connect attempt via

    http://<lan ip of the server>:18083/
    

    fails.

    netstat -lntp | grep 18083
    

    does not return any output.

     
  • Ian Chapman

    Ian Chapman - 2020-07-27

    What does your config file show?

    They changed the behaviour in recent editions of VirtualBox with regards to logfile writing. It might be that you're hitting. On your VirtualBox server try this instead

    Change the "virtual" user to be whatever you use...

    mkdir -l /var/log/vbox
    chown virtual:virtual /var/log/vbox

    Change the logfile as appropriate in your /etc/default/virtualbox file.

    VBOXWEB_LOGFILE="/var/log/vbox/vboxweb.log"

    Restart the web service

     
    • Jakob Czapski

      Jakob Czapski - 2020-07-27

      /etc/default/virtualbox

      shows:

      VBOXWEB_USER=virtual
      VBOXWEB_TIMEOUT=0
      VBOXWEB_HOST=localhost
      #VBOXWEB_HOST=127.0.0.1
      VBOXWEB_LOGFILE=/var/log/vboxwebservice.log
      VBOXAUTOSTART_DB=/var/lib/virtualbox-autostart
      VBOXAUTOSTART_CONFIG=/etc/default/vb-autostart-perms
      

      btw i assigned a user virtual but gave no passwd, should i do it?
      Stupid questions: do i need the quotes around the values?

      /etc/default/virtualbox

      changed to:

      VBOXWEB_USER=virtual
      VBOXWEB_TIMEOUT=0
      VBOXWEB_HOST=localhost
      VBOXWEB_LOGFILE="/var/log/vbox/vboxweb.log"
      VBOXAUTOSTART_DB=/var/lib/virtualbox-autostart
      VBOXAUTOSTART_CONFIG=/etc/default/vb-autostart-perms
      

      i stopped, restarted the vbox-web-service:

      systemctl status vboxweb-service.service

       vboxweb-service.service
           Loaded: loaded (/usr/lib/virtualbox/vboxweb-service.sh; enabled; vendor preset: enabled)
           Active: active (running) since Mon 2020-07-27 19:59:53 CEST; 6s ago
          Process: 54374 ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start (code=exited, status=0/SUCCESS)
            Tasks: 19 (limit: 18943)
           Memory: 37.2M
           CGroup: /system.slice/vboxweb-service.service
                   ├─54397 /usr/lib/virtualbox/vboxwebsrv --background -H localhost -t 0 -F /var/log/vbox/vboxweb.log
                   ├─54400 /usr/lib/virtualbox/VBoxXPCOMIPCD
                   └─54407 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
      
      Jul 27 19:59:53 hal9999 systemd[1]: Starting vboxweb-service.service...
      Jul 27 19:59:53 hal9999 vboxweb-service.sh[54374]: vboxweb-service.sh: Starting VirtualBox web service.
      Jul 27 19:59:53 hal9999 systemd[1]: Started vboxweb-service.service.
      
       

      Last edit: Jakob Czapski 2020-07-27
      • Ian Chapman

        Ian Chapman - 2020-07-28

        Looks OK to me. I don't think you need quotes unless you've got things like spaces in the filenames, but mine has quotes.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.