Linux Magazine #1 2023: Pydio Cells: opensource filesharing

Listing 1: # Installeer MariaDB: apt-get install mariadb-server mariadb-client mysql_secure_installation # Gebruiker en database aanmaken: mysql -u root -p mysql CREATE USER ‘pydio’@’localhost’ IDENTIFIED BY ‘wachtwoord’; CREATE DATABASE cells DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; GRANT ALL PRIVILEGES ON cells.* to ‘pydio’@’localhost’; FLUSH PRIVILEGES; quit Listing 2 [Unit] Description=Pydio Cells [Service] Type=simple StandardOutput=journal ExecStart=/home/[usernaam]/cells start… Lees meer

Linux Magazine #1 2023: Deel je USB-apparaten over het netwerk met USB/IP

Kernmodule van usbip automatisch laden: server $ echo ‘usbip-host’ | sudo tee /etc/modules-load.d/usbip.conf Via de client opvragen welke apparaten de server deelt client $ usbip list –remote=192.168.0.237 Exportable USB devices ====================== – usbip.local 1-1.1: Realtek Semiconductor Corp. : RTL2838 DVB-T (0bda:2838) : /sys/devices/platform/soc/20980000.usb/usb1/1-1/1-1.1 : (Defined at Interface level) (00/00/00) Opvragen welke door usbip gedeelde apparaten… Lees meer

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 scsi2: local:iso/alpine-standard-3.16.2-aarch64.iso,media=cdrom,size=154862K scsihw: virtio-scsi-pci smbios1: uuid=f63a8105-b8a1-4f17-b6ce-ff0cfa222034 sockets: 1

Linux Magazine #6 2022: Visual Studio en Platform IO

Header file:   /* ArduinoTestIO Auteur : Henk Siewert Datum : 31 oktober 2022 Versie : 001 MCU : ATMega328 Language : Arduino C++ Compiler : Arduino 1.8.19 */ #include void setup() { // Initialize digital pin LED_BUILTIN as output. pinMode( LED_BUILTIN, OUTPUT ); Serial.begin( 115200 ); // Data to Serial port } void loop()… Lees meer

Linux Magazine #6 2022: Analoog meten met Raspberry Pi

Listing: /* Analoog meten Auteur : Henk Siewert Datum : 30 oktober 2022 Sensor : Potentiometer Versie : 001 MCU : ATMega328 Taal : Arduino C++ Compiler : Arduino 1.8.19 */ #define aref_voltage 4.9 // Controleer met een multimeter! #define tempPin A0 // De analoge pin die je gebruikt int AnalogReading; // Waarde gemeten op… 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} sudo cp /usr/lib/syslinux/modules/bios/* /srv/tftp/ Listing 3: default menu.c32 prompt 0 LABEL Reboot computer COM32 reboot.c32 LABEL Install Debian kernel debian/vmlinuz append vga=788 initrd=debian/initrd.gz LABEL Install… 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

Join Red Hat Open Innovation Labs to leapfrog your competition

Wondering how to leapfrog your competition in cloud-native development and operating models? Looking for scale and leveraging the latest good practices like GitOps and Team Topologies? Want to know how to reduce the cognitive load on your engineering team so they can focus on what differentiates their product? Join Red Hat Open Innovation Labs for… Lees meer

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) fig, axs = plt.subplots(2, 4, sharey=True) chickens = np.delete(eieren_tijd.columns.values, np.where(eieren_tijd.columns.values == ‘Vera’)).reshape(2, 4) for iy, ix in np.ndindex(chickens.shape): chicken = chickens[iy, ix] axs[iy, ix].set_title(chicken) x,… 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 connectport=443 connectaddress=$wsl_ip netsh advfirewall firewall add rule name=”Open Port 2222 for WSL2″ dir=in action=allow protocol=TCP localport=2222 netsh advfirewall firewall add rule name=”Open Port 80 for… Lees meer