Vicente Osorio
01/23/2023, 8:53 PMHarald Pretl
01/23/2023, 9:38 PMVicente Osorio
01/23/2023, 10:00 PMHarald Pretl
01/24/2023, 8:06 AM2023.01
and latest
)
2. Start the VNC mode as root by using CONTAINER_USER=0 CONTAINER_GROUP=0 ./start_vnc.sh
3. Inside the VM, open a terminal, enter pip install jupyterlab
to install Jupyter Lab.
4. Then start it by typing jupyter-lab --allow-root
5. This will show you a prompt with the URL of your local Jupyter server.
6. Open the browser with this URL. Kindly note that we removed Firefox due to its heavy footprint (and only availability via Snap, which we refuse for our Docker VM) and installed surf
as a lightweight alternative to open a URL with surf type in a terminal surf <http://whatever.com>
I just tested this recipe, it works here on a Linux system. For Windows, you have to adapt step nr. 2.Vicente Osorio
01/24/2023, 5:26 PMHarald Pretl
01/24/2023, 5:35 PMdocker image rm hpretl/iic-osic-tools:latest
. When you then start the script, it will definitely pull the latest one.Vicente Osorio
01/24/2023, 6:03 PMHarald Pretl
01/24/2023, 6:06 PMgit pull
on the GitHub checkout? We had an issue with some crazy rights management in some Linux flavor earlier today, which we fixed. Maybe it helps with your issue as well.Vicente Osorio
01/24/2023, 7:22 PMgit pull
and made the same modification to the .bat
file, and now the connection is not refused but it can't find a file/directory.
I added a style file to see if the error was related to that, but it wasn't.Harald Pretl
01/25/2023, 9:26 AMGeorg Zachl
01/25/2023, 12:18 PMexport -n LIBGL_ALWAYS_INDIRECT
.
After this, you should be able to run the browser without crashing. At least that worked for me with the latest container.
The second workaround, which stongly recommend (except if you have security concerns): Open the jupyter notebook in a browser outside the container. This should work as follows:
First, check that you container is stopped and deleted. Then run DRY_RUN=1 CONTAINER_USER=0 CONTAINER_GROUP=0 ./start_vnc.sh
which outputs a start command like:
docker run -d --user 0:0 --security-opt seccomp=unconfined -p 80:80 -p 5901:5901 -v /home/georg/eda/designs:/foss/designs:rw --name iic-osic-tools_xvnc_uid_1000 hpretl/iic-osic-tools:latest
Now you need to add the port-forwarding for the Jupyter Lab/Notebook. Place -p 8888:8888
before hpretl/iic-osic-tools:latest
.
Then just follow Haralds install tutorial, but this time, start it with jupyter lab --no-browser --ip="0.0.0.0" --allow-root
and open the lab in a browser on your host system with the link Jupyter prints out (the token is important for authentication) (Tip: open VNC in a VNC-Client with a shared clipboard so you don't have to type the whole token).
A word of warning: this Jupyter Lab runs as root, which means, it is pretty dangerous to your container and probably to your host if the wrong person gets to it.Vicente Osorio
01/25/2023, 1:31 PMGeorg Zachl
01/25/2023, 2:24 PMVicente Osorio
01/25/2023, 11:11 PMGeorg Zachl
01/29/2023, 4:52 PMAlfonso Cortés
03/28/2023, 2:44 PM