Go to advanced search

by fbe
Sun Apr 28, 2019 1:52 pm
Forum: Beginners
Topic: Modifying the command prompt
Replies: 5
Views: 212

Re: Modifying the command prompt

/bin/bash is not the default shell for new users.

Code: Select all

echo $0
If the output is not "-bash"

Code: Select all

chsh -s /bin/bash
or edit /etc/password.
by fbe
Sun Apr 28, 2019 10:57 am
Forum: General discussion
Topic: USB disk size limits
Replies: 9
Views: 481

Re: USB disk size limits

LTolledo wrote:
Sun Apr 28, 2019 3:21 am
Am currently getting the 2.5" 4TB WD HDD for my RPi2B NAS, but will test it first for native USB boot on a RPi3B
You should be aware that MBR partitioning allows partition size up to 2TB. So even if it boots from your HDD you won't like it.
by fbe
Sat Apr 27, 2019 6:09 pm
Forum: General discussion
Topic: On Screen Keyboard on login screen on Stretch?
Replies: 4
Views: 774

Re: On Screen Keyboard on login screen on Stretch?

If you want to use the lightdm-gtk-greeter login screen you can remove the pi-greeter package.
by fbe
Fri Apr 26, 2019 6:21 pm
Forum: General discussion
Topic: autologin enabled by update?
Replies: 10
Views: 531

Re: autologin enabled by update?

There was a mod in November last year to set a user if not defined. Strange I’ve set up a few since then and updated more but never noticed. This may come from the wizard that runs on first start to configure localisation settings and password. It also does an upgrade of all packages. If you do the...
by fbe
Fri Apr 26, 2019 5:11 pm
Forum: General discussion
Topic: autologin enabled by update?
Replies: 10
Views: 531

Re: autologin enabled by update?

HankB wrote:
Thu Apr 25, 2019 10:31 pm
I really wish that whoever considered this to be a good idea would reconsider.

Thanks!
The pi-greeter package is the troublemaker.
by fbe
Thu Apr 25, 2019 6:03 pm
Forum: Advanced users
Topic: HOWTO: Install LAMP stack (on Raspbian Stretch June 2018)
Replies: 11
Views: 22073

Re: HOWTO: Install LAMP stack (on Raspbian Stretch June 2018)

It "works". But you should be aware that uses the mysql root user to run wordpress, it writes the mysql root password into wp-config.php and leaves it readable for anyone who can login to the server and it gives the webserver write access to the document root. The mysql_secure_installation is useles...
by fbe
Sun Apr 21, 2019 4:47 pm
Forum: General discussion
Topic: Change new user privileges
Replies: 13
Views: 592

Re: Change new user privileges

... And finally, add user john to /etc/polkit-1/localauthority.conf.d/60-desktop-policy.conf sudo nano /etc/polkit-1/localauthority.conf.d/60-desktop-policy.conf [Configuration] AdminIdentities=unix-user:pi;unix-user:0 ;unix-user:john ... Or replace unix-user:pi by unix-group:sudo [Configuration] A...
by fbe
Sun Apr 21, 2019 5:44 am
Forum: Networking and servers
Topic: Can't view mysql data on to a html page
Replies: 3
Views: 298

Re: Can't view mysql data on to a html page

Look into /var/log/apache2/error.log.
by fbe
Sat Apr 20, 2019 6:26 pm
Forum: For sale
Topic: Host Your Own Website : Looking for Beta Users
Replies: 8
Views: 1991

Re: Host Your Own Website : Looking for Beta Users

I couldn't find anything I could test without paying 99.99$.
by fbe
Fri Apr 19, 2019 9:40 am
Forum: Beginners
Topic: Delete pi user in Raspbian
Replies: 9
Views: 8808

Re: Delete pi user in Raspbian

Edit /etc/polkit-1/localauthority.conf.d/60-desktop-policy.conf

Hasn't got as much pi in it as pi egg sausage and pi, has it?

Replace "unix-user:pi" by "unix-group:sudo"

Code: Select all

AdminIdentities=unix-group:sudo;unix-user:0
by fbe
Wed Apr 17, 2019 5:20 pm
Forum: Networking and servers
Topic: [SOLVED]How to get a RDBMS server to "connect" with a web server?
Replies: 4
Views: 275

Re: How to get a RDBMS server to "connect" with a web server?

The server itself needs to listen for requests from the web server and you edit my.cnf and set the bind-address = 192.168.1.10 (again the IP address of the web server) Wrong. It needs to be an IP address of the machine, where MySQL/MariaDB server is running or 0.0.0.0 (what means that the server wi...
by fbe
Sun Apr 14, 2019 4:29 pm
Forum: Deutsch
Topic: Raspberrry Pi 3 Model B Plus, Ubuntu Mate installation error: "driver 'sdhost-bcm2835' already registered"
Replies: 9
Views: 859

Re: Raspberrry Pi 3 Model B Plus, Ubuntu Mate installation error: "driver 'sdhost-bcm2835' already registered"

Was mir zur Sache noch einfällt: Vermeide es, Reparaturversuchen zuzustimmen, die Windows Dir macht. Das Problem ist die Fehlermeldung "EXT4-fs (mmcblk0p2): error loading journal" Der Bootvorgang bricht ab, weil die zweite Partition auf der SD-Karte nicht geladen werden kann und die hat ein Dateisys...
by fbe
Sun Apr 14, 2019 2:50 pm
Forum: Deutsch
Topic: Raspberrry Pi 3 Model B Plus, Ubuntu Mate installation error: "driver 'sdhost-bcm2835' already registered"
Replies: 9
Views: 859

Re: Raspberrry Pi 3 Model B Plus, Ubuntu Mate installation error: "driver 'sdhost-bcm2835' already registered"

Wenn Vorurteile einmal in der Welt sind, hat man es schwer, das wieder auszuräumen. Ich würde nie auf die Idee kommen, dass ein Image, das ohne Dekomprimierung auf einen Datenträger geschrieben wird, überhaupt so weit bootet, dass man eine Fehlermeldung bekommt. Ein ISO-Image für den Raspberry Pi is...
by fbe
Thu Apr 11, 2019 5:46 pm
Forum: Networking and servers
Topic: LAMP Webserver Image
Replies: 5
Views: 384

Re: LAMP Webserver Image

DougieLawson wrote:
Thu Apr 11, 2019 10:44 am
Quickest route to a lamp stack is

sudo apt install apache2 phpmyadmin

That will pull in everything you need.
This installs LA-P only. phpmyadmin doesn't depend on mariadb-server.
by fbe
Sun Apr 07, 2019 9:20 pm
Forum: Beginners
Topic: Can't get a virtual keyboard to work at login with the official touchscreen
Replies: 4
Views: 466

Re: Can't get a virtual keyboard to work at login with the official touchscreen

... I've edited /etc/lightdm/lightdm-gtk-greeter.conf and added the following: show-indicators=~language;~a11y;~session;~power keyboard=florence And I still have zero keyboard at the login prompt. Tips? Ideas? sudo apt remove pi-greeter This removes the pi-greeter login screen and enables the light...
by fbe
Sat Apr 06, 2019 9:37 pm
Forum: Beginners
Topic: Installing MariaDB on Stretch
Replies: 7
Views: 524

Re: Installing MariaDB on Stretch

You can even omit the "-u root" option. sudo mysql should login you as root@localhost to your MariaDB server on your Raspberry Pi. Several web references said that during the install I would be prompted for the password for the MariaDB root user. That did not happen. Is there a good tutorial (MariaD...
by fbe
Wed Apr 03, 2019 8:13 pm
Forum: Deutsch
Topic: Problem: Virtuelle Tastatureingaben mit uinput
Replies: 7
Views: 688

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: 626

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: 3658

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: 508

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: 465

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: 1032

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: 275

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: 275

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: 518

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.

Go to advanced search