Linux Magazine #6 2022: Proxmox-virtualisatie op Raspberry Pi 4

Werkende gastconfiguratie listing:   agent: 1 bios: ovmf boot: order=scsi2 cores: 1 cpu: host memory: 512 meta: creation-qemu=6.0.0,ctime=1640393584 name: alpine net0: virtio=8A:FE:B5:A9:B6:84,bridge=vmbr0 numa: 0 onboot: 1 ostype: l26 scsi1: local:100/vm-100-disk-1.qcow2,size=8G… Lees meer

Linux Magazine #6 2022: Virtuele machines op Ubuntu met KVM

Listing 1: port=0 # DNS uitzetten dhcp-range=192.168.122.0,proxy # proxy op dit netwerk dhcp-boot=pxelinux.0 pxe-service=x86PC,”Network Boot”,pxelinux enable-tftp tftp-root=/srv/tftp   Listing 2: # Listing 2: directory-boom voor tftp sudo mkdir -p /srv/tftp/{pxelinux.cfg,debian,devuan,kali}… Lees meer

Linux Magazine #5 2022: Systemd-services naar je hand zetten

Webserver inperken listing:   [Service] PrivateDevices=true ProtectControlGroups=true ProtectHome=true ProtectKernelLogs=true ProtectKernelModules=true ProtectKernelTunables=true ProtectSystem=strict ReadWritePaths=/var/lib/caddy /var/log/caddy RestrictSUIDSGID=true CapabilityBoundingSet=CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_BIND_SERVICE NoNewPrivileges=true

Linux Magazine #4 2022: JupyterLab

CreĆ«ren van boxplots:   def predict_egg_weight(chicken): y = eieren_tijd[chicken].dropna() x = (y.index – y.index[0]).days.values.reshape(-1, 1) y = y.values linear_regressor = LinearRegression() linear_regressor.fit(x, y) y_pred = linear_regressor.predict(x) return (x, y, y_pred)… Lees meer

Linux Magazine #4 2022: Linux onder Windows

Listing 1:   $wsl_ip = (wsl hostname -I).trim() netsh interface portproxy add v4tov4 listenport=2222 connectport=2222 connectaddress=$wsl_ip netsh interface portproxy add v4tov4 listenport=80 connectport=80 connectaddress=$wsl_ip netsh interface portproxy add v4tov4 listenport=443… Lees meer