- install hostapd
apt install hostapd
- configure hostapd
/etc/hostapd/hostapd.conf
# the interface used by the AP
interface=wlan0
#!/usr/bin/env python3 | |
# | |
# requires psutil (pip3 install psutil) | |
# | |
# This script runs ps_util.cpu_percent(interval=0.5) for each process to calc | |
# the cpu utilization percentage | |
# It does so concurrently as otherwise each calls sleeps 0.5 secs to sample the data | |
# to run it faster use more threads in ThreadPoolExecutor(max_worker=x or | |
# reduce the interval for cpu_percent(interval=x | |
# To make readings more 'accurate' use a longer interval e.g. 1.0 for 1s. |
#!/usr/bin/env python3 | |
#usage: sdimage-u-boot-patcher.py [-h] [--nobak] [--ignimgsize] [--bkname BKNAME] image uboot_bin | |
# | |
#patch u-boot binary into image | |
# | |
#positional arguments: | |
# image image file | |
# uboot_bin u-boot bin file | |
# | |
#options: |
apt install hostapd
# the interface used by the AP
interface=wlan0
These are some steps for building armbian using Ubuntu (jammy) in a systemd-nspawn container. This is an alternative for building armbian from a Linux system (as like docker containers).
However this method requires the PREFER_DOCKER=no build flag as docker engines cannot be run within a systemd-nspawn container.
/* | |
Copyright 2012-2013 University of Stavanger, Norway | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
# version 0 (alpha) | |
# | |
# This make file for stm32duino core and Marlin 2.0 is possibly *dangerous* | |
# i.e. it compiles the sources (in src, Marlin, Arduino_Core_STM32, variants and CMSIS_5) directory | |
# and overwrite all the stuff in $(out_dir) | |
# $(out_dir) is the binary directory where the object files are dumped there | |
# | |
# make clean *deletes* the *$(out_dir)* (coded here as build ) | |
# | |
# this is a relative path makefile |
# version 0 (alpha) | |
# this is only tested in linux | |
# this is for this board https://stm32-base.org/boards/STM32F407VET6-STM32-F4VE-V2.0.html | |
# | |
# This make file for stm32duino core is possibly *dangerous* | |
# i.e. it compiles the sources (in src and Arduino_Core_STM32) directory | |
# and overwrite all the stuff in $(out_dir) | |
# $(out_dir) is the binary directory where the object files are dumped there | |
# | |
# make clean *deletes* the *$(out_dir)* (coded here as build ) |
/****************************************************************************** | |
* The MIT License | |
* | |
* Copyright (c) 2010 LeafLabs LLC. | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without | |
* restriction, including without limitation the rights to use, copy, | |
* modify, merge, publish, distribute, sublicense, and/or sell copies |
curl --request PUT --upload-file webapp.war --basic --user user:password \ | |
http://hostname:port/manager/text/deploy?path=/web_path\&update=true |
/* distribution: MIT lic*/ | |
#include "Arduino.h" | |
#include <usb_serial.h> | |
#include <HardwareSerial.h> | |
#include <libmaple/usart.h> | |
#include <libmaple/usb_cdcacm.h> | |
void docmd(); | |
bool chkcmd(); | |
void setserial(); |