<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Photon on csegura</title><link>http://blog.romheat.net/tags/photon/</link><description>Recent content in Photon on csegura</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 25 Sep 2023 00:00:00 +0100</lastBuildDate><atom:link href="http://blog.romheat.net/tags/photon/index.xml" rel="self" type="application/rss+xml"/><item><title>Photon (work notes)</title><link>http://blog.romheat.net/posts/2023/23_09_25_photon/</link><pubDate>Mon, 25 Sep 2023 00:00:00 +0100</pubDate><guid>http://blog.romheat.net/posts/2023/23_09_25_photon/</guid><description>&lt;h1 id="photon-misc">PHOTON MISC&lt;/h1>
&lt;h3 id="enabledisable-docker">enable/disable docker&lt;/h3>
&lt;pre tabindex="0">&lt;code>systemctl start docker
systemctl enable docker
&lt;/code>&lt;/pre>&lt;h3 id="install-packages">install packages&lt;/h3>
&lt;pre tabindex="0">&lt;code>tdnf install git
tdnf install github-cli
tdnf install zsh
tdnf install wget
tdnf install docker-compose
tdnf install nfs-tools
tdnf install nfs-utils
tdnf install tar
&lt;/code>&lt;/pre>&lt;h3 id="keyboard">keyboard&lt;/h3>
&lt;pre tabindex="0">&lt;code>localectl
localectl list-keymaps
tdnf install kbd
localectl list-keymaps
localectl set-keymap es
reboot
&lt;/code>&lt;/pre>&lt;h3 id="sshd-root-access">sshd root access&lt;/h3>
&lt;pre tabindex="0">&lt;code>cat &amp;gt; /etc/systemd/network/10-static-en.network &amp;lt;&amp;lt; &amp;#34;EOF&amp;#34;
[Match]
Name=eth0
[Network]
Address=192.168.1.200/24
Gateway=192.168.1.1
&lt;/code>&lt;/pre>&lt;p>&lt;code>chmod 644 10-static-en.network&lt;/code>&lt;/p>
&lt;h3 id="install-docker-compose-check-versions-on-github-">install docker-compose (check versions on github &lt;a href="https://github.com/docker/compose/releases" target="_blank">https://github.com/docker/compose/releases&lt;/a>)&lt;/h3>
&lt;pre tabindex="0">&lt;code>curl -L https://github.com/docker/compose/releases/download/v2.9.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose
&lt;/code>&lt;/pre>&lt;h3 id="install-portainer---expose-port-9000">install portainer - expose port 9000&lt;/h3>
&lt;pre tabindex="0">&lt;code>docker volume create portainer_data
ls -la
docker run -d -p 9000:9000 --name Portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

docker run -d -p 8000:8000 -p 9443:9443 --name rh_portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
&lt;/code>&lt;/pre>&lt;h3 id="iptables---open-docker-expose-ports">iptables - open docker expose ports&lt;/h3>
&lt;pre tabindex="0">&lt;code>iptables -L (list rules)
iptables -nL (show port numbers)
# open port 9000
iptables -I INPUT 4 -p tcp --dport 9000 -j ACCEPT
&lt;/code>&lt;/pre>&lt;h3 id="save-iptables">save iptables&lt;/h3>
&lt;p>add -I INPUT 4 -p tcp &amp;ndash;dport 9000 -j ACCEPT&lt;/p></description></item><item><title>NVidia Install (work notes)</title><link>http://blog.romheat.net/posts/2023/23_09_23_nvidia_install/</link><pubDate>Sat, 23 Sep 2023 07:07:07 +0100</pubDate><guid>http://blog.romheat.net/posts/2023/23_09_23_nvidia_install/</guid><description>&lt;h1 id="nvidia-install">NVIDIA Install&lt;/h1>
&lt;p>&lt;a href="https://communities.vmware.com/t5/Photon-OS-Discussions/NVidia-Triton-on-Photon-OS/m-p/2926221" target="_blank">https://communities.vmware.com/t5/Photon-OS-Discussions/NVidia-Triton-on-Photon-OS/m-p/2926221&lt;/a>
&lt;a href="https://plmlab.math.cnrs.fr/plmshift/gpu_driver/-/blob/master/photon3.0/Dockerfile" target="_blank">https://plmlab.math.cnrs.fr/plmshift/gpu_driver/-/blob/master/photon3.0/Dockerfile&lt;/a>&lt;/p>
&lt;pre tabindex="0">&lt;code>nvidia_binary_version=&amp;#34;515.76&amp;#34;
nvidia_binary=&amp;#34;NVIDIA-Linux-x86_64-${nvidia_binary_version}.run&amp;#34;
mkdir tmp
cd tmp
wget -q https://us.download.nvidia.com/XFree86/Linux-x86_64/${nvidia_binary_version}/${nvidia_binary}
chmod +x ${nvidia_binary}
./${nvidia_binary} --accept-license --ui=none --no-kernel-module --no-questions
nvidia-smi
&lt;/code>&lt;/pre>&lt;pre tabindex="0">&lt;code># required
tdnf install tar
tdnf install -y build-essential wget tar
tdnf install -y linux-esx-devel

nvidia_binary_version=&amp;#34;470.57.02&amp;#34;
nvidia_binary=&amp;#34;NVIDIA-Linux-x86_64-${nvidia_binary_version}.run&amp;#34;
wget -q https://us.download.nvidia.com/XFree86/Linux-x86_64/${nvidia_binary_version}/${nvidia_binary} 
chmod +x ${nvidia_binary}

./${nvidia_binary} --kernel-source-path=/usr/lib/modules/`uname -r`/build --ui=none --no-questions --accept-license


Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 470.57.02.....

Welcome to the NVIDIA Software Installer for Unix/Linux

Detected 32 CPUs online; setting concurrency level to 32.
Installing NVIDIA driver version 470.57.02.
There appears to already be a driver installed on your system (version: 470.57.02). As part of installing this driver (version:
470.57.02), the existing driver will be uninstalled. Are you sure you want to continue? (Answer: Continue installation)
Performing CC sanity check with CC=&amp;#34;/usr/bin/cc&amp;#34;.
Performing CC check.
Using the kernel source path &amp;#39;/usr/lib/modules/5.10.132-1.ph4-esx/build&amp;#39; as specified by the &amp;#39;--kernel-source-path&amp;#39; commandline
option.
Kernel source path: &amp;#39;/usr/lib/modules/5.10.132-1.ph4-esx/build&amp;#39;
Kernel output path: &amp;#39;/usr/lib/modules/5.10.132-1.ph4-esx/build&amp;#39;
Performing Compiler check.
Performing Dom0 check.
Performing Xen check.
Performing PREEMPT_RT check.
Performing vgpu_kvm check.
Cleaning kernel module build directory.
Building kernel modules
 : [##############################] 100%
Kernel module compilation complete.
Unable to determine if Secure Boot is enabled: No such file or directory
Kernel messages:
[ 18.636632] IPv6: ADDRCONF(NETDEV_CHANGE): veth9f70f59: link becomes ready
[ 18.636662] br-ff0ee4ab2a87: port 1(veth9f70f59) entered blocking state
[ 18.636663] br-ff0ee4ab2a87: port 1(veth9f70f59) entered forwarding state
[ 19.117388] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[ 19.117393] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld &amp;lt;Jason@zx2c4.com&amp;gt;. All Rights Reserved.
[ 75.562344] kauditd_printk_skb: 62 callbacks suppressed
[ 75.562348] audit: type=1006 audit(1662044975.583:97): pid=1653 uid=0 subj==unconfined old-auid=4294967295 auid=0 tty=(none)
old-ses=4294967295 ses=1 res=1
[ 75.647052] audit: type=1006 audit(1662044975.667:98): pid=1643 uid=0 subj==unconfined old-auid=4294967295 auid=0 tty=(none)
old-ses=4294967295 ses=2 res=1
[ 814.633125] nvidia: loading out-of-tree module taints kernel.
[ 814.633137] nvidia: module license &amp;#39;NVIDIA&amp;#39; taints kernel.
[ 814.633138] Disabling lock debugging due to kernel taint
[ 814.665314] nvidia-nvlink: Nvlink Core is being initialized, major device number 246

[ 814.666286] nvidia 0000:1b:00.0: enabling device (0000 -&amp;gt; 0003)
[ 814.667559] nvidia 0000:1b:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 814.712479] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 470.57.02 Tue Jul 13 16:14:05 UTC 2021
[ 814.728936] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[ 814.732612] nvidia-uvm: Loaded the UVM driver, major device number 244.
[ 814.737822] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 470.57.02 Tue Jul 13 16:06:24 UTC
2021
[ 814.740363] [drm] [nvidia-drm] [GPU ID 0x00001b00] Loading driver
[ 814.740365] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:1b:00.0 on minor 1
[ 814.745448] [drm] [nvidia-drm] [GPU ID 0x00001b00] Unloading driver
[ 814.748380] nvidia-modeset: Unloading
[ 814.753086] nvidia-uvm: Unloaded the UVM driver.
[ 814.756718] nvidia-nvlink: Unregistered the Nvlink Core, major device number 246

WARNING: nvidia-installer was forced to guess the X library path &amp;#39;/usr/lib64&amp;#39; and X module path &amp;#39;/usr/lib64/xorg/modules&amp;#39;; these
 paths were not queryable from the system. If X fails to find the NVIDIA X driver module, please install the `pkg-config`
 utility and the X.Org SDK/development package for your distribution and reinstall the driver.


WARNING: Unable to find a suitable destination to install 32-bit compatibility libraries. Your system may not be set up for 32-bit
 compatibility. 32-bit compatibility files will not be installed; if you wish to install them, re-run the installation and
 set a valid directory with the --compat32-libdir option.

Uninstalling the previous installation with /usr/bin/nvidia-uninstall.
Searching for conflicting files:
 Searching: [##############################] 100%
Installing &amp;#39;NVIDIA Accelerated Graphics Driver for Linux-x86_64&amp;#39; (470.57.02):
 Installing: [##############################] 100%
Driver file installation is complete.
Running post-install sanity check:
 Checking: [##############################] 100%
Post-install sanity check passed.
Running runtime sanity check:
 Checking: [##############################] 100%
Runtime sanity check passed.
Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver
will be used when you restart X? Any pre-existing X configuration file will be backed up. (Answer: No)

Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 470.57.02) is now complete. Please update your
xorg.conf file as appropriate; see the file /usr/share/doc/NVIDIA_GLX-1.0/README.txt for details.


nvidia-smi
Thu Sep 1 15:24:11 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.57.02 Driver Version: 470.57.02 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:1B:00.0 Off | N/A |
| 0% 62C P0 1W / 200W | 0MiB / 7982MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
&lt;/code>&lt;/pre>&lt;h1 id="nvidia-container-toolkit">nvidia-container-toolkit&lt;/h1>
&lt;p>&lt;a href="https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html" target="_blank">https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html&lt;/a>
&lt;a href="https://github.com/NVIDIA/nvidia-docker" target="_blank">https://github.com/NVIDIA/nvidia-docker&lt;/a>&lt;/p></description></item></channel></rss>