Commit Graph

63 Commits

Author SHA1 Message Date
50a2390c3b treat as_root properly in check_service 2025-05-28 13:38:55 +02:00
f91bb1e725 boxweb page to be in box config
+ rename dil5_statemachine to dil5
2025-05-28 12:00:26 +02:00
99580aad78 introduce 'to_home' and systemd user services
- frappy is now a systemd user service
- add 'frappy' and 'boxweb' bash function
2025-05-28 11:54:21 +02:00
30369aff3c mkdir with proper owner
- using sudo only when not in user account
+ fix typo
2025-05-08 14:52:47 +02:00
f41b76633b make dir if needed 2025-05-08 14:50:27 +02:00
c284e97d53 show pip command if execution is needed 2025-04-28 14:59:59 +02:00
13210d987e do not execute pip when not needed 2025-04-28 14:29:22 +02:00
b3cd338a1e setuser: do not use LC_IDENTIFICATION anymore
rather allow GIT* env variables to pass through ssh
2025-04-28 13:31:49 +02:00
cf4706d1e2 mak box type more consistent and display it anyway
- 'rpi' instead of 'ionopi' for a simple raspberry pi
+ fix dirty flag when dhcp server is modified
2025-04-14 10:36:00 +02:00
75691c0ed5 fixes in write_when_new
- create files with g/o read
- fix superfluos remove of tmpfile
2025-04-09 15:46:52 +02:00
2dfc71001a do not consider network installs when not specified 2025-04-09 09:45:12 +02:00
89425d9ce4 NETWORK section is optional 2025-04-08 15:06:07 +02:00
ee5f9924f8 remove sudo in message about restart 2025-04-08 14:58:45 +02:00
0b3dacfb32 remove boxid from cfg file name 2025-04-08 14:50:50 +02:00
90776bfeef fix gitea.py 2025-04-08 09:45:38 +02:00
c2747e884d install.py: include fixing gitea repo 2025-04-08 09:41:42 +02:00
4c9ba0915f fix checking of box types
+ a bug (type)
2025-04-07 17:28:27 +02:00
570923497d install files to /home/l_samenv without sudo 2025-04-07 15:32:51 +02:00
6908908d13 fix dirpath issue
+ add again FallbackNTP in /etc/systemd/timesyncd.conf
2025-04-04 16:06:46 +02:00
e344108e51 make install work also for rpi boxes
- in addition to to_system, we have now to_<box> with every
  type of box
- install is not needed to run under sudo anymore
2025-04-04 15:41:11 +02:00
d69301a5c9 add dialout to l_samenv
+ remove superfluous call to pip command
2024-07-03 14:44:21 +02:00
248df0efa7 when no cfg file is there, create it 2024-03-20 13:53:43 +01:00
8fcbf477a9 improve install.py after problems with linse-gas10ka
- use --break-system-packages for pip
- rename box
- remove some unused stuff about display
2024-06-11 16:16:58 +02:00
l_samenv
7b1c63ac26 be tolerant when <boxtyp>_system does not exist 2024-05-14 11:43:57 +02:00
l_samenv
03162d43c1 split system files into to_system and <boxtyp>_system
- install.py checks for both
- fix hostname
2024-05-14 11:33:46 +02:00
l_samenv
1318666db0 boxtools on raspberry pi
- rename to_system to apu_system / cm3_system /cm4_system
- fixes in router
- firewall may be switched off
- firewall is a parameter of router, also used when no routing is configured.
2024-05-14 10:48:52 +02:00
l_samenv
4bed174abd use sorted when iterating over network interfaces
this helps for unneeded rewrites if dhcpd.conf
2024-03-20 13:25:37 +01:00
l_samenv
5dc4f8a984 fix boxtools for rpi
- remove to_cm4
- create replace_in_file
2024-03-20 12:10:14 +01:00
7f661bb314 fix issues with apu
rework: create utils.BoxInfo
2024-03-20 08:47:47 +01:00
9c9719bff4 change if names from enp*s0 to eth*
including all cfg files!
2024-03-19 15:56:53 +01:00
l_samenv
0a0009a096 wip unify rpitools with boxtools
install.py and router.py
2024-03-19 11:42:50 +01:00
ddedf67bf3 split out config file reading
+ improve ip and no 'network' on display
2024-03-06 11:48:41 +01:00
6f025880ce fix nftables (firewall) mechanism 2024-03-05 11:16:27 +01:00
l_samenv
e4e37eb049 moved from centos 7 to debian-bookworm
includes modifications in install.py and router.py
2024-03-05 08:03:00 +01:00
ae6ba7a031 improve display
- display config has only one line for startup text
- faster display daeomon startup
- added newer fonts (e.g. medium) to display.py
2024-01-15 11:34:03 +01:00
fe1303efdc revert prev. commit + wip fix 2024-01-15 09:58:03 +01:00
ef95e4e383 install.py: use class instead of global variables 2024-01-11 16:59:58 +01:00
73b1a9a97d wip temporary push 2024-01-11 13:08:36 +01:00
c88afce791 support setting startup
- in interactive mode, support setting startup
- standard startup shows ethernet address
- colored blinking dot
- need argument for running as daemon: python3 display.py -d
- interactive mode: python3 -i display.py
2024-01-11 08:44:52 +01:00
7f7993ef96 added first control box
- added python display daemon
- on control boxes, the uplink is the leftmost plug by default
2024-01-10 15:14:40 +01:00
fdef0b69cf add 'current' alias
showing installed state
2023-08-08 11:11:13 +02:00
68f0d30a54 fix MORE_INFO -> more_info 2023-08-07 08:46:35 +02:00
6e08f7277f fix handling wan with added subnets 2020-06-17 04:44:14 +02:00
8dc20ba2d5 cosmetic fix 2022-11-08 10:25:13 +01:00
c3c5f87da2 fix README.md, install.py, and add flame-mag 2022-11-07 10:19:06 +01:00
ac686ac066 fix missing argument in Show.newer and Show.replace 2022-09-20 11:49:05 +02:00
1deb91dbbb restart individual network interface on change
+ use prefix 24 instead of 31
2021-12-14 09:29:37 +01:00
bd0d697adc remove requirements file when pip install fails 2021-12-03 18:40:03 +01:00
2675616101 fix errors in requiements handling 2021-12-03 12:29:00 +01:00
cdedaf3ee3 add installing pip requirements 2021-12-03 12:04:57 +01:00