Go to advanced search

by fbe
Fri Mar 23, 2018 9:25 pm
Forum: General discussion
Topic: RPI 3B+ MSD boot failure. Updated instructions?
Replies: 8
Views: 2391

Re: RPI 3B+ MSD boot failure. Updated instructions?

Please could we have clear concise updated instructions for use of the USB boot capability on the 3B+ vs the 3B? Instructions for USB mass storage boot are here https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md For the 3B+ the OTP Bit for booting from USB is set alread...
by fbe
Wed Mar 21, 2018 6:37 pm
Forum: Troubleshooting
Topic: errors after update raspbian stretch
Replies: 1
Views: 385

Re: errors after update raspbian stretch

Code: Select all

pi@raspberrypi:~ $ which python
/usr/bin/python
pi@raspberrypi:~ $ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 9 Jan 24  2017 /usr/bin/python -> python2.7
pi@raspberrypi:~ $
Compare it with your output.
by fbe
Wed Mar 21, 2018 6:11 pm
Forum: Beginners
Topic: SD card storrage
Replies: 8
Views: 782

Re: SD card storrage

It should work if you use the most recent Raspbian image https://www.raspberrypi.org/downloads/raspbian/ and Etcher.

If you are trying to use NOOBS you may get trouble because standard tools create an exFAT filesystem on SD cards with that size.
by fbe
Wed Mar 21, 2018 5:20 pm
Forum: General discussion
Topic: Ownership and permission for file
Replies: 8
Views: 2157

Re: Ownership and permission for file

Don't make www-data to the owner of anything in /var/www/html. It doesn't do anything good. If you have problems to control a LED, I suppose www-data hasn't the permission to access the gpio. The ownership on index.php doesn't change that. mfa298 is right. Give pi the ownership on index.php to edit ...
by fbe
Tue Mar 20, 2018 10:51 pm
Forum: Troubleshooting
Topic: Loose access to internet when I setup static IP
Replies: 19
Views: 3088

Re: Loose access to internet when I setup static IP

You should add /24 to your ip address
You must replace the komma by a dot in the domain_name_servers ip address
by fbe
Tue Mar 20, 2018 9:39 pm
Forum: Troubleshooting
Topic: Bluetooth Speaker On Raspberry Pi
Replies: 2
Views: 468

Re: Bluetooth Speaker On Raspberry Pi

IddoB wrote:
Tue Mar 20, 2018 9:25 pm
*I am using Raspbain
... with Desktop? Did you right-click on the speaker symbol on the taskbar and select your bluetooth speaker?
by fbe
Mon Mar 19, 2018 10:00 pm
Forum: Deutsch
Topic: Programme auf externer Festplatte installieren
Replies: 39
Views: 3531

Re: Programme auf externer Festplatte installieren

Bei einem Raspberry Pi sind alle Festplatten extern. Das ist ja erst mal kein Makel. Ich würde aber nichts auf einer Festplatte installieren, deren Mountpoint davon abhängt, welcher Benutzer gerade am Desktop angemeldet ist. Es ist normal, dass ein Anfänger Fragen hat. Und fragen ist einfacher als i...
by fbe
Sun Mar 18, 2018 11:23 pm
Forum: Advanced users
Topic: SSH IP Filter
Replies: 3
Views: 707

Re: SSH IP Filter

https://www.raspberrypi.org/documentati ... ecurity.md
Section "Install a firewall" could be what you are looking for.
by fbe
Sun Mar 18, 2018 7:55 pm
Forum: Deutsch
Topic: Programme auf externer Festplatte installieren
Replies: 39
Views: 3531

Re: Programme auf externer Festplatte installieren

Das hilft dabei, das sudo-Kommando nur dann einzusetzen, wenn man es wirklich braucht.
by fbe
Sun Mar 18, 2018 7:46 pm
Forum: Deutsch
Topic: Programme auf externer Festplatte installieren
Replies: 39
Views: 3531

Re: Programme auf externer Festplatte installieren

sudo merkt sich 15 Minuten lang, dass Du Dein Kennwort angegeben hast. Danach wirst Du erneut nach dem Kennwort gefragt. Nach einem reboot oder einer Abmeldung ist das Gedächtnis sofort weg.
by fbe
Sun Mar 18, 2018 7:00 pm
Forum: Deutsch
Topic: Programme auf externer Festplatte installieren
Replies: 39
Views: 3531

Re: Programme auf externer Festplatte installieren

Prüf mal, welche Shell (Kommandozeileninterpreter) Dir als Standard eingerichtet wurde. Es müsste eigentlich /bin/sh sein. Angenehmer arbeitet es sich mit /bin/bash . Dann hättest Du z.B. eine automatische Vorschläge zur Vervollständigung wenn Du an der Kommandozeile die Tab-Taste drückst und auch d...
by fbe
Sun Mar 18, 2018 4:52 pm
Forum: Deutsch
Topic: Programme auf externer Festplatte installieren
Replies: 39
Views: 3531

Re: Programme auf externer Festplatte installieren

Ich denke, die Benutzereinrichtung ist noch nicht ganz fertig. Schau mal, ob die Icons für Netzwerk, Bluetooth und Audio in der Desktopleiste funktionieren. Ich denke, nein. Das liegt daran, dass michi10 noch einigen Benutzergruppen hinzugefügt werden muss, um bestimmte Berechtigungen zu bekommen. W...
by fbe
Sun Mar 18, 2018 3:34 pm
Forum: Deutsch
Topic: Programme auf externer Festplatte installieren
Replies: 39
Views: 3531

Re: Programme auf externer Festplatte installieren

Fangen wir mal mit Fragen 1 und 3 an. Über das Hauptmenü / Einstellungen / Raspberry Pi Konfiguration das Häkchen in "Als Benutzer 'pi' anmelden" entfernen. Dann musst Du Dich im Desktop abmelden. Also im Hauptmenü "Shutdown" und im folgenden Dialog "Abmelden" wählen. Dann bekommst Du einen Anmelded...
by fbe
Sat Mar 17, 2018 6:03 pm
Forum: General discussion
Topic: Running a bash script via PHP
Replies: 4
Views: 4450

Re: Running a bash script via PHP

You don't need to be pi (sudo -u pi...) to ssh into your remote Pi (Minecraft_Pi) as pi. Generate a key pair for www-data on your local machine as you did for pi and add the public key to /home/pi/.ssh/authorized_keys on your remote machine. if the PATH matters you should set it to PATH=$PATH:/usr/l...
by fbe
Sat Mar 17, 2018 9:51 am
Forum: Beginners
Topic: Clone SD card on Windows but multiple devices appear
Replies: 24
Views: 21582

Re: Clone SD card on Windows but multiple devices appear

-- piclone I can launch it when i'm pi but it can't access disk (lack of permissions) I can't launch it (sudo or as root) ----- root@raspberrypi:~# piclone No protocol specified (piclone:1202): Gtk-WARNING **: cannot open display: :10.0 --- Note that from menu it"s unresponsive Regards, Xavier See:...
by fbe
Sat Mar 17, 2018 9:27 am
Forum: Raspberry Pi OS
Topic: Add www-data to gpio group, safety issue?
Replies: 8
Views: 1444

Re: Add www-data to gpio group, safety issue?

Maybe there is no safety issue with that but if you give your webserver write access to the gpio you enable concurrent access to it. Your code first writes and then after a certain delay reads. No other process or thread should do that at the same time.
by fbe
Fri Mar 16, 2018 10:33 pm
Forum: General discussion
Topic: Running a bash script via PHP
Replies: 4
Views: 4450

Re: Running a bash script via PHP

Look into the error log of your webserver (/var/log/nginx/error.log?) or try something like <?php $error = Array(); exec("/home/pi/scripts/minecraft 2>&1", $error); var_dump($error); ?> to debug it. If your php file is executed by a webserver I would guess that ~/server1 is not a valid directory bec...
by fbe
Thu Mar 15, 2018 10:09 pm
Forum: Troubleshooting
Topic: Can't access all boot options
Replies: 3
Views: 515

Re: Can't access all boot options

Raspbian or Ubuntu MATE?
by fbe
Thu Mar 15, 2018 9:24 pm
Forum: General discussion
Topic: Problem writing rootfs on external HD
Replies: 1
Views: 258

Re: Problem writing rootfs on external HD

If your pi boots but the root filesystem is readonly most likely the /etc/fstab is wrong. The original raspbian line is:

Code: Select all

PARTUUID=3a6347c3-02  /               ext4    defaults,noatime  0       1
use

Code: Select all

lsblk -o NAME,PARTUUID,MOUNTPOINT,FSTYPE
to identify the PARTUUID of your root partition.
by fbe
Tue Mar 13, 2018 10:04 pm
Forum: Deutsch
Topic: Ich bin mit dem Raspberry pi 3 ein Totaler anfänger
Replies: 10
Views: 2300

Re: Help with raspbian am beginner

You asked too much questions at once and your questions are hard to understand. Do you want your Raspberry Pi to boot without SD card from your USB drive? Start here https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md Ask again if you need further instructions. If you're ...
by fbe
Tue Mar 13, 2018 7:27 pm
Forum: Beginners
Topic: Create file in /var/www/html/ using chromium?
Replies: 2
Views: 820

Re: Create file in /var/www/html/ using chromium?

The PHP file is not executed by chromium (the web client) but by apache (the web server). The server is started by user www-data. www-data hasn't got the privilege to use sudo. Create a directory where the user www-data has write privileges and let your PHP-code create the file in this directory wit...
by fbe
Mon Mar 12, 2018 7:28 pm
Forum: Troubleshooting
Topic: How to get root access
Replies: 3
Views: 727

Re: How to get root access

... finally run

Code: Select all

chown -R pi:pi /home/pi
It's not needed but it looks better if your files belong to you.

Maybe I'll try it for curiousity. Will the MariaDB installation create a database user 'pi' instead of 'root' with unix_socket authentication?
by fbe
Tue Mar 06, 2018 7:20 pm
Forum: General discussion
Topic: Sending a display from SSH
Replies: 14
Views: 8097

Re: Sending a display from SSH

Code: Select all

DISPLAY=:0 chromium-browser
It works if you ssh into the Pi as user pi and your Pi boots into desktop with automatic login as user pi (which is the default).
by fbe
Mon Mar 05, 2018 7:09 pm
Forum: General discussion
Topic: Problem with print server
Replies: 6
Views: 930

Re: Problem with print server

Why do you connect the printer to the Raspberry Pi? Is its ethernet port broken?

If you want your Windows machines to print via CUPS on your Raspberrry Pi you should configure a raw printer queue for them.
by fbe
Sat Mar 03, 2018 6:31 am
Forum: Raspberry Pi OS
Topic: Remote desktop (xrdp) on stretch: Some menu items do not work
Replies: 52
Views: 32745

Re: Remote desktop (xrdp) on stretch: Some menu items do not work

env SUDO_ASKPASS=/usr/bin/pwdpic.sh sudo -AE dbus-launch piclone was my cheap workaround in another thread. Good enough for SD Card Copier but it may have surprising side effects. The wanted side effect is, that ~/.Xauthority is found as HOME is still /home/pi when running your command as root. If ...

Go to advanced search