Linuxmag is onderdeel van Reshift Digital BV
Copyright © 2022
Linuxmag.nl is partner van The Linux Foundation
Listing 1: adduser gebruikersnaam usermod -aG sudo gebruikersnaam apt install nano Listing 2: ls -al ~/.ssh/id_* ssh-keygen -t rsa -b 4096 -C "linuxmag@domeinnaam.nl" ssh-copy-id gebruikersnaam@hostnaam ssh gebruikersnaam@hostnaam Listing 3: PasswordAuthentication...
Read more#include if (!IMU.begin()) { Serial.println("Failed to initialize IMU!"); while (1); } void loop() { ArduinoCloud.update(); // Your code here if (IMU.accelerationAvailable()) { IMU.readAcceleration(accX, accY, accZ); Serial.print("Accelerometer:\t"); Serial.print(accX); Serial.print('\t'); Serial.print(accY); Serial.print('\t');...
Read moreStandaard configuratie voor Prometheus: $ mkdir ~/prometheus $ cat >> prometheus/prometheus.yml << EOF global: scrape_interval: 15s evaluation_interval: 30s EOF Docker image van Prometheus: $ sudo docker run -d...
Read moreWaydroid repository: export DISTRO="focal" sudo curl https://repo.waydro.id/waydroid.gpg --output /usr/share/keyrings/waydroid.gpg echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ $DISTRO main" | sudo tee /etc/apt/sources.list.d/waydroid.list sudo apt update Android-image van LineageOS: $ sudo waydroid init [15:52:28]...
Read moresudo apt install apache2 mariadb-server php php-mysql sudo a2enmod rewrite sudo systemctl restart apache2 cd /tmp wget https://nl.wordpress.org/latest-nl_NL.tar.gz cd /var/www sudo mv html html-org sudo tar -xzvf /tmp/latest-nl_NL.tar.gz sudo mv...
Read moreimport os, sys from PIL import Image for invoer in sys.argv[1:]: map, bestand = os.path.split(invoer) uitvoer = 'output/' + bestand try: with Image.open(invoer) as afbeelding_in:...
Read more{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListAllMyBuckets" ], "Resource": "*" }, { "Effect": "Allow", ...
Read morefrom datetime import datetime from grove.adc import ADC from grove.button import Button from grove.display.jhd1802 import JHD1802 from grove.grove_ryb_led_button import GroveLedButton from math import ceil from time import sleep, time sensor_poort...
Read moreimport json import os import adafruit_bmp280 import board import busio import requests i2c = busio.I2C(board.SCL, board.SDA) bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x76) HOST = os.getenv("IOT_THINGSBOARD_URL") ACCESS_TOKEN = os.getenv("IOT_THINGSBOARD_ACCESS_TOKEN") URL = f"{HOST}/api/v1/{ACCESS_TOKEN}/telemetry" sensor_data...
Read moreserver { listen 80; server_name synapse.mixedcontent.net; return 301 https://$server_name$request_uri; } server { listen 443 ssl; listen [::]:443 ssl; server_name synapse.mixedcontent.net; ssl_certificate /etc/letsencrypt/live/synapse.mixedcontent.net/fullchain.pem; ...
Read more