Blog: 2023-08-11

From razwiki
Jump to navigation Jump to search

I got vagrant running on wsl using virtualbox as a provider - the problem was my firewall

Disabling the firewall entirely worked, so then I figured I'd try the powershell script to only modify the virtualbox one. but then I got an error about vagrant versions differing on windows and wsl, which is weird to me since I imagine it shouldn't matter which side has which virtualbox version.

I briefly looked into bumping the version of vagrant that ubuntu has, and got as far as cloning the ubuntu packaging repository:

git clone ubuntu-vagrant

Once I opened that, I noticed the commit referenced `git-ubuntu import`. Not sure what this is, and hard to google

Ok much hacking later, working on getting a ronin box going. While waiting for a machine, remembered THC root machines, and tried to ssh:

ssh [email protected]

It prompts for a password, which is simply "segfault", but I don't want to type that. Googling around gave this great pexpect script

#!/usr/bin/expect -f
#  ./ssh.exp password id
set pass [lrange $argv 0 0]
set server [lrange $argv 1 1]
set name [lrange $argv 2 2]

spawn ssh $name@$server
match_max 100000
expect "*?assword:*"
send -- "$pass\r"
send -- "\r"

Works great!

Meanwhile in the weave world, picking apart the dockerfile, I got as far as this command:

pipenv install --ignore-pipfile --deploy

But it fails, no surprise. Need to do some dependency version picking. And upgrade a bunch of stuff - ubuntu, python, nodejs... perhaps. Also want to have a working example using sqlite as the database backend; should work fine.

Saw this cool looking dool udocker which apparently lets you run docker commands without a proper docker daemon, but I haven't figured it out yet.

Now back to installing docker on wsl, and maybe docker desktop on windows again.