RaspberryPi 3 and earlier
To rotate the screen on a RaspberryPi 3 and earlier add the following line to /boot/config.txt
:
display_hdmi_rotate=0
Replace the 0 with the desired rotation:
int |
rotation |
0 |
normal |
1 |
90° |
2 |
180° |
3 |
270° |
Reboot your system to apply the changes.
RaspberryPi 4
On a RaspberryPi 4 you can use the xrandr
command:
DISPLAY=:0 xrandr --output HDMI-1 --rotate normal
DISPLAY=:0 xrandr --output HDMI-1 --rotate left
DISPLAY=:0 xrandr --output HDMI-1 --rotate right
DISPLAY=:0 xrandr --output HDMI-1 --rotate inverted
arg |
rotation |
normal |
normal |
left |
90° |
right |
180° |
inverted |
270° |
#raspberry #pi #display
Weiterlesen...
Finally I found the time to test WriteFreely.
After the first hours playing around I can say: I like it!
Some features are missing – like an auto-generated page with all tags -, but this project seems to be very promising.
Weiterlesen...
Since netstat
became obsolote, it was replaced by the newer ss
command.
manual: debian manpage
Weiterlesen...
If you want to use wine
on a headless server, you probably need a virtual desktop.
Luckily there's Xvfb 🤓
Weiterlesen...
From their website:
This is a free software web service that allows you to generate maps of cities using OpenStreetMap data. The generated maps are available in PNG, PDF and SVG formats and are ready to be printed.
As the data used to generate maps is coming from OpenStreetMap, you can freely reuse, sell, or modify the generated maps under the terms of the OpenStreetMap license.
Great tool with lots of customization options. Can't wait to print a DIN A0 map and put it on the wall!
#opensource #tool #osm
Recipe for a newly interpretation of the classic Mojito with champagne.
Weiterlesen...
remove all stopped containers
docker ps -a -q -f status=exited | xargs docker rm
remove all dangling images
docker images -f "dangling=true" -q | xargs docker rmi
remove unused volumes
WARNING: Please be extra cautious, since you could loose precious data!
docker volumes prune
#unix #sysop #docker
# 1. create the designated file:
sudo fallocate -l 1G /swapfile
# 2. restrict access:
sudo chmod 600 /swapfile
# 3. define file as swap area:
sudo mkswap /swapfile
# 4. activate the swap:
sudo swapon /swapfile
######################################
# deactivate swap and remove file:
sudo swapoff /swapfile && sudo rm /swapfile
#unix #sysop #memory