That time after you changed to Linux and you really need windows...
Trying to root my new server :( Don't know why can only use USB1 on my VirtualBox VM... Fuck man

  • 2
    Did you install the extension pack?
  • 0
    Yes but on settings it says it isn't installed and don't let me run the vm :(
    Gonna steel my father's laptop, since I gave him one better (a friend gave it to me as damaged... Changed batery and it's good now) he doesn't use the old one...
    But... I don't have space...
  • 1
    Ok I got a problem here.
    Installed Apache2 trough termux on my phone...
    Now... How can I use it? (where do I place my files) and how can I stop it?
    @Condor, @linuxxx
  • 4
    No idea, I never had any need to run Apache in Termux. As you know I'm against this "server" use of phones. Probably you'd be better off getting yourself a Raspberry Pi.

    Also the USB issue is indeed resolvable by installing the extension pack. I was unable to mount a USB 3.0 external hard drive to my Arch host in VBox, installed extension pack and added the USB drive to the VM's configuration. After that I could cryptsetup luksOpen and mount it as usual, as if the Windows host (which doesn't understand LUKS) wasn't there to begin with. Quite nice!
  • 2
    @Condor Man... I must be doing something wrong, as I installed the extension pack and can only use USB 1.1, didn't have the same problem in Windows 10, virtualizing windows xp.

    As for apache... I tried it if it worked... and now I have a server permanently running on the background lol
  • 2
    Anyhow, I'll just recreate my windows installation in an empty driver and have dual-boot. When I need to use windows for something I'll just chance.

    Thought I would prefer to use VMs instead of rebooting.

    Isn't there Any virtualizer better then vbox for linux? I hate the fact we can only use 128mb for the graphics and they look like shit. Would be nice to be able to play my games in a VM with good quality.
  • 3
    @GyroGearloose On Linux I'd go with QEMU any day. It's far better than VirtualBox in so many ways, and when you're running custom kernels (like I do on most of my machines) you start to realize just how large a clusterfuck VirtualBox really is... But Windows doesn't support KVM (which QEMU very heavily relies on instead of VT-x) and VMware is far too expensive.. so VirtualBox it is :/ a clusterfuck hypervisor on a clusterfuck OS, not a bad match now that I think of it!
  • 1
    @Condor lol loved the comparison. Too bad, VirtualBox really sucks for games, and If I figure out this USB problem I don't even need to dual-boot. can Live without games.
  • 1
    @GyroGearloose service apache2 restart doesn't work?
  • 3
    For VBox and 128mb video RAM: If you have a recent system with VT-d, xou may PCI passthough, but it requires a bit more work.

    For the USB problem: Is you user in the correct group?

    For Termux' Apache:
    - Config dir: /data/data/com.termux/files/usr/etc/apache2
    - Start/stop: apachectl start/stop (for a dirty shutdown: killall httpd)
    - Webroot: /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/
  • 5
    Regarding VirtualBox by the way, I'm encountering piss poor performance in its Linux guests on a Windows host (yeah hate me all you want, blame Nvidia). Hardware-accelerated virtualization is enabled, VRAM has been expanded to 256MB through VBoxManage and the RAM is 1GB and 2GB with 2 and 4 vcores on the Arch and Ubuntu VM's respectively. Especially when moving windows around in Mate or Gnome (or any kind of compositing really) it lags significantly, and stresses the host CPU too. No idea why but it's irritating as fuck :/
    Are you having this issue in VBox too, or do you know some sort of resolution for it?
  • 1
    @linuxxx Nope, apache2 doesn't run, must use apachectl but won't accept restart or stop
  • 3
    @sbiewald Thank you, you are a life savior... I would keep it, now that I know the root, but probably is a security risk...
  • 2
    @Condor Hm, never had this problem, for me VirtualBox works fluent on Windows and Linux with both guests (and FUCK YOU NVIDIA!).
    I only remember to have performance problems while using 32-bit guests.
  • 2
    @Condor Hey, never had such problems with any host. It lags a lot with games and movies but not with the system.

    Btw, thanks for the "VBoxManage" tip

    do you think I can assign 1Gb from my 2Gb card?
  • 1
    apachectl stop gives an error, AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Set the 'Server Name' directive globally to suppress this message

    httpd (no pid file) not running
  • 4
    @sbiewald Host and guest are 64-bit and both guests also have VirtualBox guest additions installed :/
    @GyroGearloose I don't think that it's possible to go beyond 256MB. It should be possible in QEMU though :)
  • 1
    Ahhh almost got the solution by myself, except for the restart since I can't use commands from apache2.

    restarted the phone, lets see if I got it right
  • 1
    @sbiewald @Condor @linuxxx

    Silly me...

    apt purge apache2

  • 1
    @Condor Are you using Scale Factor?

    That happened to me when using the Scale Factor...
  • 2
    And got my VM with 256mb and now I know how to do it, Thanks
  • 4
    @GyroGearloose that command (apt purge apache2) uninstalls Apache and removes all its config files... Not sure if that was what you wanted to do :')
    Also no I'm not using Scale Factor.
  • 0
    @Condor Well... don't know how don't know why but the server is up after a purge and autoremove...

    I hope it isn't open to the outside... :p Oh well.

    Need a little more learning
  • 2
    @GyroGearloose You can kill apache with 'killall httpd' from termux.
  • 3
    @GyroGearloose what does "nc -vzw1 80" (edit: replace port 80 with whatever port Termux runs the httpd on) return? Or a "su -c netstat -tnlp" if you're rooted. I highly doubt that an apt purge would allow the httpd to remain functional, and unless apt has gone full retard (which in case of Debian software can't be excluded I guess) its service should've been disabled during removal. Perhaps there's still processes in RAM (which you can check with "pidof httpd") but I doubt that those would remain functional after removal from disk, and certainly wouldn't persist across reboots.
  • 2
    Well... It's good now lol

    The webpage was on cash and I didn't refresh lol So apache was uninstalled after all...

    Thank you all for your help @Condor and @sbiewald
Your Job Suck?
Get a Better Job
Add Comment