Try to leverage IPOL computation server #82

Open
opened 2024-06-06 11:40:25 +02:00 by Benjamin_Loison · 6 comments

The server address is:

-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdANCmSf8dYFxGGSyNxmUsA7zJM7eTC9pzGEUKKlUJa0zUw
uOATzvzsbwLAyIgYGlF3LkxC0XRijwXk0znbyi1frMz4X+1qwE8GCjzjEZyT0kgp
0lABD6ey+BaB2dNw+FY20svYBWxHCFAZZF4+Hrwprkv7z8cmSYYxEiBCACHKCfyN
fWNZiI8l2HSB6MWndZTtNUqm2c6xTDKs/JaY/y0f7PVhxA==
=Nc2L
-----END PGP MESSAGE-----

Following #53.

This machine is really not up-to-date and make using it very difficult, Jammy was published on 23 April 2020 for instance while it is still on Bionic which was published on 26 April 2018.

See:

From /home/:

find -maxdepth 2 -name '.bash_history'

to see how people use this machine to try to mimic how people use it.

Well when I try to use:

find -maxdepth 2 -name '.bash_history' -exec wc -l {} \;

or

find -maxdepth 2 -name '.bash_history' -exec cat {} \;

I get Permission denied.

docker is installed.

docker run hello-world
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.

https://docs.docker.com/engine/security/rootless/

virtualbox and virt-manager are not installed.

Using Benjamin_Loison/apt/issues/6#note_495873 with virtualbox-qt:

./usr/bin/virtualbox
WARNING: The character device /dev/vboxdrv does not exist.
	 Please install the virtualbox-dkms package and the appropriate
	 headers, most likely linux-headers-generic.

	 You will not be able to start VMs until this problem is fixed.
./usr/bin/virtualbox: 56: exec: /usr/lib/virtualbox/VirtualBox: not found

The Unix Stack Exchanger answer 14147 seems to show the need of root to install virtualbox.

./usr/bin/virt-manager
./usr/bin/virt-manager: 3: exec: /usr/share/virt-manager/virt-manager: not found

https://github.com/Gregwar/notroot does not seem to accept custom sources.

groups only returns bloison.

The server address is: ``` -----BEGIN PGP MESSAGE----- hF4DTQa9Wom5MBgSAQdANCmSf8dYFxGGSyNxmUsA7zJM7eTC9pzGEUKKlUJa0zUw uOATzvzsbwLAyIgYGlF3LkxC0XRijwXk0znbyi1frMz4X+1qwE8GCjzjEZyT0kgp 0lABD6ey+BaB2dNw+FY20svYBWxHCFAZZF4+Hrwprkv7z8cmSYYxEiBCACHKCfyN fWNZiI8l2HSB6MWndZTtNUqm2c6xTDKs/JaY/y0f7PVhxA== =Nc2L -----END PGP MESSAGE----- ``` Following #53. This machine is really not up-to-date and make using it very difficult, Jammy was published on 23 April 2020 for instance while it is still on Bionic which was published on 26 April 2018. See: - [Benjamin_Loison/git/issues/56](https://codeberg.org/Benjamin_Loison/git/issues/56) - [Benjamin-Loison/cpython/issues/26](https://github.com/Benjamin-Loison/cpython/issues/26) From `/home/`: ```bash find -maxdepth 2 -name '.bash_history' ``` to see how people use this machine to try to mimic how people use it. Well when I try to use: ```bash find -maxdepth 2 -name '.bash_history' -exec wc -l {} \; ``` or ```bash find -maxdepth 2 -name '.bash_history' -exec cat {} \; ``` I get `Permission denied`. `docker` is installed. ```bash docker run hello-world ``` ``` docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'. ``` https://docs.docker.com/engine/security/rootless/ `virtualbox` and `virt-manager` are not installed. Using [Benjamin_Loison/apt/issues/6#note_495873](https://salsa.debian.org/Benjamin_Loison/apt/-/issues/6#note_495873) with `virtualbox-qt`: ```bash ./usr/bin/virtualbox ``` ``` WARNING: The character device /dev/vboxdrv does not exist. Please install the virtualbox-dkms package and the appropriate headers, most likely linux-headers-generic. You will not be able to start VMs until this problem is fixed. ./usr/bin/virtualbox: 56: exec: /usr/lib/virtualbox/VirtualBox: not found ``` [The Unix Stack Exchanger answer 14147](https://unix.stackexchange.com/a/14147) seems to show the need of `root` to install `virtualbox`. ```bash ./usr/bin/virt-manager ``` ``` ./usr/bin/virt-manager: 3: exec: /usr/share/virt-manager/virt-manager: not found ``` https://github.com/Gregwar/notroot does not seem to accept custom sources. `groups` only returns `bloison`.
Author
Owner

Miniconda makes my Python scripts work fine.

Nix usage solved this issue more generally.

Miniconda makes my Python scripts work fine. Nix usage solved this issue more generally.
Author
Owner

Related to Benjamin_Loison/nix/issues/{1,3,4,5}.

Related to Benjamin_Loison/nix/issues/{[1](https://codeberg.org/Benjamin_Loison/nix/issues/1),[3](https://codeberg.org/Benjamin_Loison/nix/issues/3),[4](https://codeberg.org/Benjamin_Loison/nix/issues/4),[5](https://codeberg.org/Benjamin_Loison/nix/issues/5)}.
Author
Owner

bash.rc:

./nix-user-chroot ~/.nix .nix-profile/bin/nix-shell

shell.nix:

let
  nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05";
  pkgs = import nixpkgs { config = {}; overlays = []; };
in

pkgs.mkShellNoCC {
  packages = with pkgs; [
    git
    python3
  ];

  shellHook = ''
    . .venv/bin/activate
  '';
}

.nix/libs.nix:

let pkgs = import (builtins.getFlake "nixpkgs") { };
in [
  pkgs.gcc.cc
  pkgs.glibc
  pkgs.zlib
  pkgs.stdenv.cc.cc.lib
]
./fix-python --venv .venv --libs .nix/libs.nix

To avoid:

./fix-python: line 97: nix: command not found

used:

export PATH=$PATH:/home/bloison/.nix/store/6sfq258683sg0idsm9c5877pfm3q4y27-nix-2.22.1/bin
`bash.rc`: ``` ./nix-user-chroot ~/.nix .nix-profile/bin/nix-shell ``` `shell.nix`: ```nix let nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05"; pkgs = import nixpkgs { config = {}; overlays = []; }; in pkgs.mkShellNoCC { packages = with pkgs; [ git python3 ]; shellHook = '' . .venv/bin/activate ''; } ``` `.nix/libs.nix`: ```nix let pkgs = import (builtins.getFlake "nixpkgs") { }; in [ pkgs.gcc.cc pkgs.glibc pkgs.zlib pkgs.stdenv.cc.cc.lib ] ``` ```bash ./fix-python --venv .venv --libs .nix/libs.nix ``` To avoid: ``` ./fix-python: line 97: nix: command not found ``` used: ```bash export PATH=$PATH:/home/bloison/.nix/store/6sfq258683sg0idsm9c5877pfm3q4y27-nix-2.22.1/bin ```
Author
Owner
Related to [Benjamin_Loison/PRNU_extraction/issues/12](https://codeberg.org/Benjamin_Loison/PRNU_extraction/issues/12).
Author
Owner
#!/usr/bin/env python

import matplotlib.pyplot as plt

plt.plot(range(3))
plt.show()

returns in Nix:

UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown
  plt.show()

outside Nix:

UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
  plt.show()

Tracked at Benjamin_Loison/matplotlib/issues/26.

```python #!/usr/bin/env python import matplotlib.pyplot as plt plt.plot(range(3)) plt.show() ``` returns in Nix: ``` UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown plt.show() ``` outside Nix: ``` UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. plt.show() ``` Tracked at [Benjamin_Loison/matplotlib/issues/26](https://codeberg.org/Benjamin_Loison/matplotlib/issues/26).
Author
Owner
Related to [Benjamin-Loison/matrix-commander-rs/issues/6](https://github.com/Benjamin-Loison/matrix-commander-rs/issues/6).
Sign in to join this conversation.
No description provided.