Go to advanced search

by fbe
Wed Apr 03, 2019 8:13 pm
Forum: Deutsch
Topic: Problem: Virtuelle Tastatureingaben mit uinput
Replies: 7
Views: 813

Re: Problem: Virtuelle Tastatureingaben mit uinput

Die Einrückungen sind schon da, werden aber nicht gezeigt. Mit code-tags ( [ code ] Dein code [ code/ ] ) würde das so aussehen. ... Hier mal das Script: import RPi.GPIO as GPIO import time import uinput import os GPIO.setmode(GPIO.BCM) GPIO.setup(19, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(20...
by fbe
Wed Mar 27, 2019 9:07 pm
Forum: Deutsch
Topic: Rasp verzögert ausschalten
Replies: 7
Views: 723

Re: Rasp verzögert ausschalten

Hab mal folgendes versucht:

Code: Select all

<html><body>
<?php
exec("(sleep 10; echo hello >> /var/www/test.log) > /dev/null &");
echo("OK");
?>
</body></html>
Blockiert nicht. www-data muss aber in /var/www/test.log schreiben können, damit man was sieht,
by fbe
Mon Mar 11, 2019 7:38 pm
Forum: Raspbian
Topic: Large partition sizes, Raspbian and Windows
Replies: 50
Views: 4016

Re: Large partition sizes, Raspbian and Windows

AirFiero wrote:
Mon Mar 11, 2019 7:12 pm
Another question, do we know the maximum size a boot partition can be under Raspbian?
The Limit is about 2TB. The boot partition should be on a drive with MBR partition table (GPT makes trouble) and must have a FAT32 filesystem (exFAT doesn't work).
by fbe
Mon Mar 11, 2019 6:49 pm
Forum: Deutsch
Topic: Raspian neu aufsetzen
Replies: 6
Views: 603

Re: Raspian neu aufsetzen

Gibt es alternativen zu Exagear womit ich meinen kleinen "Testserver" doch noch zum laufen bekomme? Kannst ja mal hier reinschauen: https://www.raspberrypi.org/forums/viewtopic.php?p=1389850 . Da scheint jemand was "wie ExaGear" zum Laufen bekommen zu haben. TS3 gibt es auch für Linux. QEMU ohne Wi...
by fbe
Sun Mar 10, 2019 11:34 am
Forum: Beginners
Topic: Talking to Rpi via SSH but Running pygame on rpi's HDMI screen
Replies: 6
Views: 515

Re: Talking to Rpi via SSH but Running pygame on rpi's HDMI screen

Maybe this works:

Code: Select all

sudo XAUTHORITY=/home/pi/.Xauthority DISPLAY=:0 /usr/bin/python3 PGen.py
But I wouldn't run games with root privileges.

And of course if the game needs input from keyboard or mouse, these have to be connected to your Raspberry Pi.
by fbe
Thu Mar 07, 2019 8:41 pm
Forum: Deutsch
Topic: Neuer Pi 3 B + / Kann nur Noobs auf die Karte Packen
Replies: 16
Views: 1227

Re: Neuer Pi 3 B + / Kann nur Noobs auf die Karte Packen

Hab die Version von KonstaKang zum laufen bekommen. ... Läuft "langsam" und träge :D Klär uns bitte mal auf. Suchst Du ein Betriebssystem für Deinen Raspberry Pi oder suchst Du ein Gerät auf dem Android läuft? Ist ja nicht so, dass wir hier Leute, die Android mögen, nicht haben wollen. Aber Android...
by fbe
Mon Mar 04, 2019 5:58 pm
Forum: General discussion
Topic: Help needed to run script at boot up...
Replies: 6
Views: 312

Re: Help needed to run script at boot up...

... and make sure that /home/user/openvpn/${host}.ovpn exists. (Replace "${host}" by the value, you assign to host). There is no other occurance of ${host}. If this is the whole script, you may skip the assignment statement and simply supply the configuration file name to the openvpn command. E.g. o...
by fbe
Mon Mar 04, 2019 5:29 pm
Forum: General discussion
Topic: Help needed to run script at boot up...
Replies: 6
Views: 312

Re: Help needed to run script at boot up...

Hasn't got as much sudo in it as sudo, egg, sausage and sudo, has it?
by fbe
Wed Feb 27, 2019 8:14 pm
Forum: Beginners
Topic: Play sound over PHP
Replies: 11
Views: 657

Re: Play sound over PHP

You should not execute long running commands from your webserver. Even if you are able to start mpg321 from apache, your browser will show an hourglass until the file or playlist is finished or a timeout error occurs. Your solution will only work for very short sounds. Don't use it for music playing.
by fbe
Tue Feb 26, 2019 9:08 pm
Forum: General discussion
Topic: Using the Keybord Logitech MK620
Replies: 2
Views: 104

Re: Using the Keybord Logitech MK620

... I3 Change Keyboard Layout Keyboard model: / Tastaturmodell: Select "Generic 105-key (Intl) PC" / "Generische Tastatur mit 105 Tasten (Intl)" <Return> Keyboard layout: / Tastaturbelegung: If no german layout is shown select "Other" / "Andere" <Return> Country of origin for the keyboard: Select "G...
by fbe
Tue Feb 26, 2019 7:07 pm
Forum: Beginners
Topic: Default Password for Cacti not working
Replies: 3
Views: 368

Re: Default Password for Cacti not working

"sudo" is needed if you have an unmodified MariaDB installation. "-u root -p" is not needed in this case.
by fbe
Tue Feb 26, 2019 6:51 pm
Forum: Deutsch
Topic: Putty verbindet sich nicht mehr
Replies: 23
Views: 1671

Re: Putty verbindet sich nicht mehr

Bekommst Du denn wenigstens ein ordentliches "abgelehnt", wenn Du im PuTTY einen falschen Benutzernamen oder ein falsches Passwort eingibst?
by fbe
Tue Feb 12, 2019 9:08 pm
Forum: Networking and servers
Topic: Wordpress website
Replies: 8
Views: 619

Re: Wordpress website

Apache2 should work out of the box on all network interfaces.
Did you somewhere use "localhost" in an URL for your dynamic contents?
by fbe
Mon Feb 11, 2019 8:06 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Will this trash my laptop?
Replies: 3
Views: 786

Re: Will this trash my laptop?

Last time, when I installed it, my HW-clock was set to UTC. This is not what Windows 10 expects by default.
by fbe
Sun Feb 10, 2019 6:41 am
Forum: Italiano
Topic: Upgrade
Replies: 1
Views: 590

Re: Upgrade

No
by fbe
Sat Feb 09, 2019 10:23 pm
Forum: Networking and servers
Topic: Accessing LAMP and WordPress remotely
Replies: 12
Views: 874

Re: Accessing LAMP and WordPress remotely

Is XX.XX.XX.XX the IP Address of your Raspberry Pi or the public IP Address of your router?
by fbe
Sat Feb 09, 2019 7:42 pm
Forum: Deutsch
Topic: .jar datei autostarten
Replies: 4
Views: 738

Re: .jar datei autostarten

"system/./sds.service" und "system/sds.service" sind das gleiche. Davon musst Du Dich nicht beirren lassen. Das "Executable path is not absolute" wird sich wohl auf "sudo" beziehen. Mit which sudo könntest Du Dir anzeigen lassen, was aufgerufrn wird, wenn du sudo ohne Pfadangabe an der Kommandozeile...
by fbe
Wed Feb 06, 2019 7:48 pm
Forum: Networking and servers
Topic: apache2 and python script
Replies: 14
Views: 992

Re: apache2 and python script

Enable cgi sudo a2enmod cgi sudo systemctl restart apache2 Write and install a CGI script cat > stepper_test.py << _EOF_ #!/usr/bin/python3 print ('Content-type:text/html\r\n\r\n') print ('<html><head><title>stepper test</title></head></html>') _EOF_ sudo install -m755 -oroot -groot stepper_test.py ...
by fbe
Mon Feb 04, 2019 8:45 pm
Forum: Advanced users
Topic: Stretch Lite image ... gpt/mbr wonky?
Replies: 3
Views: 325

Re: Stretch Lite image ... gpt/mbr wonky?

This may come from the misunderstanding that the first sector doesn't have index 1 but 0. If your partition starts at sector 1 and is 1 sector long, you need an image with 2 sectors size.
by fbe
Mon Feb 04, 2019 7:12 pm
Forum: Advanced users
Topic: Stretch Lite image ... gpt/mbr wonky?
Replies: 3
Views: 325

Re: Stretch Lite image ... gpt/mbr wonky?

gdisk reports "GPT: not present" and that there is no free space left for the "Secondary partition table" that needs to be created if you want to convert the image from MBR to GPT partitioning. This is no error message. Are you sure that you copied enough blocks when saving your customized image? As...
by fbe
Sun Feb 03, 2019 10:12 pm
Forum: Troubleshooting
Topic: mysql (mariadb) sends daily "error" emails
Replies: 10
Views: 680

Re: mysql (mariadb) sends daily "error" emails

On the "Set up your WordPress Database" you can omit the "sudo mysql_secure_installation". It does nothing. Even after "mysql_secure_installation" you can login without password: sudo mysql and if you login with sudo mysql -u root -p it doesn't matter what password you enter. This is what the "ident...
by fbe
Sun Feb 03, 2019 11:07 am
Forum: Deutsch
Topic: MySQL/MariaDB - Can't read from messagefile '/usr/share/mysql/english/errmsg.sys'
Replies: 2
Views: 963

Re: MySQL/MariaDB - Can't read from messagefile '/usr/share/mysql/english/errmsg.sys'

Code: Select all

sudo systemctl stop mariadb
sudo apt-get install mariadb-server-core-10.1 --reinstall
sudo systemctl start mariadb
Aber Du solltest Dir Sorgen machen, warum die Datei weg ist, falls das weiterhin beim Reboot schiefgeht.
by fbe
Thu Jan 31, 2019 8:14 pm
Forum: Troubleshooting
Topic: mysql (mariadb) sends daily "error" emails
Replies: 10
Views: 680

Re: mysql (mariadb) sends daily "error" emails

I set up by following the Foundation tutorial in https://projects.raspberrypi.org/en/projects/lamp-web-server-with-wordpress/7 If I can't get it working with the password I may give this a trial, but I can't be the only person to follow this. You (and not only you) definitely did something wrong. J...
by fbe
Wed Jan 30, 2019 7:04 pm
Forum: Troubleshooting
Topic: mysql (mariadb) sends daily "error" emails
Replies: 10
Views: 680

Re: mysql (mariadb) sends daily "error" emails

... or if you don't want to write the root password in plain text into a config file: grant all privileges on *.* to 'root'@'localhost' identified with 'unix_socket' with grant option; This removes the root password in MariaDB and allows login as root only if you are root. If wordpress stops working...

Go to advanced search