But what does. Be specific. Are you prompted on the CLI or is there a pop-up window that you’re entering credentials into?
But what does. Be specific. Are you prompted on the CLI or is there a pop-up window that you’re entering credentials into?
What does “doesn’t allow sudo” mean? Did you get an error that provided a reason? What exactly did you do?
Don’t.
Why would they invest in individual stocks anyway? Wouldn’t it be better to pick mutual or index funds?
I’m not American, and I would’ve voted for the lesser of two evils if I were, so you’re preaching to the choir. I’m just a messenger.
That’s fair - comment retracted.
“I’m rubber, you’re glue…” 🤣 Fucking hell…
But also i find stopping a genocide does matter more than ending much smaller discriminations.
So do I. Was it stopped?
Well it’s a good thing the genocide was stopped. Because it would be awfully embarrassing to grandstand on that single issue and have no result while simultaneously making the lives of thousands of others worse.
“it can’t get worse tho…”
Russia’s foreign ministry … urging respect for international agreements.
I love the blatant hypocrisy in international politics. 😂
Difference for Palestinians,
The only people who matter it seems.
Any argument that begins with “So you’re trying to tell me” is being made by a person who is NOT, in fact, being told what they say they are.
Don’t make fun of a comment advovating for imposing real pressure on Israel if you don’t want to be accused to supporting it.
How to say you’re a moron without saying it…
Leftists have full on embraced it.
The only difference between the parties was in how fast and open it should happen
The only difference? Yeah? Democrats would have overturned roe? Liberals would be deporting people en mass? Kamala would be trying to overturn birthright citizenship? Democratic leaders world be promoting a non-democratic oligarch?
“marginally better?” Really? Guess when you’re just that far out everything on the horizon looks similar.
They know, the wanted to run xscreensaver though.
It’s really quite simple - but works pretty well. There are 3 components:
A simple systemd service that starts a kiosk script.
[Unit]
Description=Kiosk
Wants=graphical.target
After=graphical.target
[Service]
Environment=DISPLAY=:0.0
Environment=XAUTHORITY=/home/pi/.Xauthority
Type=simple
ExecStart=/bin/bash /home/pi/kiosk.sh
Restart=on-abort
User=pi
Group=pi
[Install]
WantedBy=graphical.target
The script in /home/pi/kiosk.sh just starts a web browser in full-screen mode pointed at my home assistant instance:
#!/bin/bash
xset s noblank
xset s off
xset -dpms
export DISPLAY=:0.0
echo 0 > /sys/class/backlight/rpi_backlight/bl_power
LANDING_PAGE="https://homeassistant.example.com/"
unclutter -idle 0.5 -root &
/usr/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk $LANDING_PAGE
I have a very simple python/flask service that runs and exposes an endpoint that lets you turn on/off the display. It’s called by a homeassistant automation for when the motion detector senses or hasn’t sensed movement.
Here’s the python - I have this started from another “kiosk.service” systemd service as well.
#!/usr/bin/env python3
import subprocess
from flask import Flask
from flask_restful import Api, Resource
def turn_off_display():
with(open(backlight_dev, 'w')) as dev:
dev.write("1")
def turn_on_display():
with(open(backlight_dev, 'w')) as dev:
dev.write("0")
class DisplayController(Resource):
def get(self, state):
if state == 'off':
turn_off_display()
elif state == 'on':
turn_on_display()
else:
return {'message': f'Unknown state {state} - should be off/on'}, 500
return {"message": "Success"}
def init():
turn_on_display()
if __name__ == "__main__":
init()
app = Flask(__name__)
api = Api(app)
api.add_resource(DisplayController, '/display/<string:state>')
app.run(debug=False, host='0.0.0.0', port=3000)
You can then have the HA rest action call this with “http://pidisplay:3000/display/on” or off.
It’s fair - we’re both coming from different starting assumptions.
Yes, the consumer pays the tariff, but it does impact the seller as their products will now be more expensive which will potentialy drive down demand and/or eat into profits.