nach reboot user pi access denied

Begonnen von DanqerClose, 30 Dezember 2017, 13:57:52

Vorheriges Thema - Nächstes Thema

DanqerClose

Neuer Tag, neue Probleme.

Hallo erstmal,
habe es endlich geschafft Geräte in ALexa hinzuzufügen und sie werden auch erfolgreich über Alexa geschaltet.
Nach einiger Zeit ist die Verbindung zwischen Putty und dem Raspberry abgebrochen und Fhem war nicht mehr erreichbar.
Ich kann mich nicht mehr als "pi" anmelden. Es kommt immer die Meldung "Access denied".
Kann mich nur noch als root anmelden.
Habe versucht das passwort von Pi mit sudo passwd pi zu ändern welches auch akzeptiert wird.
Wenn ich mich dann als nutzer pi anmelde wird pi aber nicht in grün sondern wie der rootbenutzer in grau angezeigt.
Wenn ich nun sudo reboot mache kann ich mich mit pi nicht mehr anmelden...
Fhem startet auch nicht mehr automatisch muss ich mit sudo service fhem start als root selber starten.
Hat jemand eine Idee?



#edit1

Konnte mich als root anmelden und dann zum benutzer pi wechseln und so wieder fhem und alexa-fhem starten.
Habe dann auch mein Passwort via sudo raspi-config geändert, welches nach ausloggen und wieder einloggen auch funktioniert.
Nach einem restart ist aber wieder das selbe Problem....
user pi: access denied..

Amenophis86

Das Problem würde ich eher versuchen über Google bzw. Linux Foren zu lösen. Weiterhin wäre die Frage was du geändert hast, das es dazu gekommen ist. Ich kann mir vorstellen, dass in der visudo Datei etwas geändert wurde und das nicht mehr stimmt. Aber ohne weitere Hinweise wird das schwer. Kannst auch mal ins log schauen, ob da was drinnen steht.
Aktuell dabei unser neues Haus mit KNX am einrichten. Im nächsten Schritt dann KNX mit FHEM verbinden. Allein zwei Dinge sind dabei selten: Zeit und Geld...

DanqerClose

meine visudo sieht aus wie folgt:  :'(
geändert eigentlich nichts wie gesagt habe nur alexa-fhem installiert laut wiki Anleitung ._.




# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d




Otto123

#3
Hi,

hätte ich mir nie träumen lassen, dass ich als Windows Fuzzy mal was über Linux klar stellen darf:  ;D
visudo ist der Editor mit Prüfung zum Editieren der Datei /etc/sudoers

Deine Datei ist "Original" an der liegt es nicht.

Ich habe allerdings auch keine rechte Vorstellung woran das liegt. Das Pi nicht grün sondern grau angezeigt wird liegt nach meinen Recherchen eventuell an der Datei ~/.bashrc

Hast Du das HomdeDir von Pi verbogen/beschädigt/gelöscht?

Nach wiki Anleitung alexa installieren - ich glaube da kann für den Unwissenden alles dabei passieren :) zumindest die Anleitung die ich da vor einiger Zeit gelesen habe. Ich weiß bis heute nicht warum das bei dem Kumpel, dem ich geholfen habe, anschließend funktioniert hat  :D ::)

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

Amenophis86

Zitat von: Otto123 am 30 Dezember 2017, 19:20:17
hätte ich mir nie träumen lassen, dass ich als Windows Fuzzy mal was über Linux klar stellen darf:
visudo ist der Editor mit Prüfung zum Editieren der Datei /etc/sudoers

Das ist natürlich richtig, meinte die sudoers Datei und ja, die sieht ok aus. Was bei der Installation nach dem Wiki schiefgegangen ist kann ich dir auch net sagen. Ich würde vorschlagen die Schritte nochmal durchzugehen und zu schauen, ob du alles richtig gemacht hast. Alternativ das Thema ins Board Einplatinencomputer verschieben und hoffen, dass einer der Linux Leute dir helfen kann, oder wie bereits gesagt über Goolge und Linux-Foren Hilfe suchen.
Aktuell dabei unser neues Haus mit KNX am einrichten. Im nächsten Schritt dann KNX mit FHEM verbinden. Allein zwei Dinge sind dabei selten: Zeit und Geld...

MadMax-FHEM

bei neueren Installationen (auf jeden Fall für Stretch) stehen die Infos für pi hier:

/etc/sudoers.d/

Man könnte ja auch mal in der /home/pi/.bash_history nachsehen was denn alles so ausgeführt wurde ;)

Allerdings kann ich mir jetzt nicht vorstellen was denn bei der Installation von alexa-fhem ALLEINE nach Wiki (ohne irgendwelche Dinge die man so liest/hört bei evtl. Problemen einfach mal "einzutippen") passieren kann, das so ein Verhalten hervorruft...

Daher: bevor man irgendwelche Dinge eintippt mal "googeln" was dahinter steckt und sich überlegen was evtl. Konsequenzen sind/sein könnten...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

DanqerClose

#6
Ich hab keine Ahnung.
Also hab es installiert mit folgenden Anleitungen:

https://haus-automatisierung.com/hardware/fhem/2017/01/14/fhem-tutorial-reihe-part-23-amazon-echo-alexa-fhem-steuern.html

und eben

https://wiki.fhem.de/wiki/Alexa-Fhem


Ich denke das Verzeichnis ist in Ordnung weil ich kann mich ja als root anmelden und mit "su pi" als pi user anmelden x: verzeichnis sieht aus wie folgt

https://imgur.com/a/qaz5k



und ja das mit der Datei naja... war ein langer Tag. :D solange wir uns verstehen ist doch alles gut ^^

und danke für die antworten



#edit1:
habe keine sudoers.d - Datei unter /etc/ o: nur eine sudoers -datei

#edit2

sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y autoremove && sudo reboot
service dbus start
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y autoremove && sudo reboot
sudo apt-get -y install libjson-perl libdatetime-format-strptime-perl
cd /opt/fhem/log
ls -la
sudo shutdown -h 0
ping hausautomatisierung.fhem-albert.de
sudo update
sudo get-apt update
sudo apt-get update
sudo apt-get upgrade
cd /opt
sudo git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto certonly --rsa-key-size 4096 -d hausautomatisierung.fhem-albert.de
sudo ln -s /opt/bitnami/apache2/bin/apachectl /usr/bin/apache2ctl
./letsencrypt-auto certonly --rsa-key-size 4096 -d hausautomatisierung.fhem-albert.de
sudo a2enmod proxy proxy_http
cd
sudo apt-get install apache2
sudo a2enmod proxy proxy_http
systemctl restart apache2
clear
sudo a2enmod proxy proxy_http
sudo service apache2 restart
cd /etc/apache2/sites-available/
sudo nano hausautomatisierung.fhem-albert.de.conf
sudo apt-get install libapache2-mod-proxy-html
sudo a2enmod proxy_html
systemctl restart apache2
cd /etc/apache2/sites-enabled
sudo ln -s ../sites-available/hausautomatisierung.fhem-albert.de.conf .
cd
clear
sudo htpasswd -c -s /etc/fhem-htpasswd frank
sudo a2enmod ssl proxy_html
sudo sudo a2enmod ssl proxy_html
sudo apachectl configtest
sudo service apache2 restart
sudo apachectl configtest
sudo a2enmod ssl proxy_html
sudo apachectl configtest
sudo nano /etc/apache2/apache2.conf
sudo nano /etc/apache2/sites-enabled/hausautomatisierung.fhem-albert.conf
sudo nano /etc/apache2/sites-enabled/hausautomatisierung.fhem-albert.de.conf
sudo apachectl configtest
sudo nano /etc/apache2/sites-enabled/hausautomatisierung.fhem-albert.de.conf
clear
sudo nano /etc/letsencrypt/options-ssl-apache.conf
sudo nano /etc/apache2/sites-enabled/hausautomatisierung.fhem-albert.de.conf
sudo apachectl configtest
sudo nano /etc/apache2/apache2.conf
ln -s /etc/apache2/conf-available/mysite.conf /etc/apache2/conf-enabled/mysite.conf
sudo ln -s /etc/apache2/conf-available/mysite.conf /etc/apache2/conf-enabled/mysite.conf
sudo apachectl configtest
sudo ln -s /etc/apache2/conf-available/hausautomatisierung.fhem-albert.de.conf /etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
sudo apachectl configtest
sudo ln -s /etc/apache2/conf-available/hausautomatisierung.fhem-albert.de.conf /etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
sudo apachectl configtest
cd /etc/apache2/
cd /conf-available
cd /conf-available/
cd conf-available/
ls -la
sudo nano hausautomatisierung.fhem-albert.de.conf
sudo apachectl configtest
sudo nano /etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
a2enmod ssl
a2ensite ryogasp.com-ssl
a2ensite hausautomatisierung.fhem-albert.de-ssl
cd /etc/apache2/sites-available/
sudo nano hausautomatisierung.fhem-albert.de-ssl.conf
a2ensite hausautomatisierung.fhem-albert.de-ssl
sudo a2ensite hausautomatisierung.fhem-albert.de-ssl
service apache2 reload
sudo a2dissite 000-default.conf
sudo systemctl restart apache2
cd
sudo so
sudo su
sudo apachectl configtest
cd /opt
sudo cd letsencrypt
cd letsencrypt
./letsencrypt-auto certonly --rsa-key-size 4096 -d
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
cd /etc/apache2/sites-available/
sudo nano smarthome2.fhem-albert.de.conf
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
cd /etc/apache2/sites-available/
cd letsencrypt
cd /opt/letsencrypt/
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
sudo nano /etc/apache2/conf-enabled/hausaotomatisierung.fhem-albert.conf
sudo nano /etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.conf
/etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
sudo nano /etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
sudo service apache2 stop && /opt/letsencrypt/letsencrypt-auto renew && sudo service apache2 start
sudo apachectl configtest
sudo nano /etc/apache2/sites-available/smarthome2.fhem-albert.de-https.conf
sudo a2ensite your-domain.com-https.conf
sudo a2ensite sudo a2ensite your-domain.com-https.conf-https.conf
sudo a2ensite smarthome2.fhem-albert.de-https.conf
sudo systemctl reload apache2
sudo systemctl start  apache2
sudo systemctl start apache2
sudo start apache2
sudo startservice  apache2
sudo start service  apache2
sudo start service apache2
sudo service start  apache2
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 restart
sudo a2ensite smarthome2.fhem-albert.de-https.conf
sudo htpasswd -c -s /etc/fhem-htpasswd frank
sudo a2enmod ssl proxy_html
sudo apachectl configtest
sudo nano ////etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
sudo nano /etc/apache2/apache2.conf
sudo apachectl configtest
sudo nano /etc/apache2/apache2.conf
sudo apachectl configtest
sudo nano /etc/apache2/apache2.conf
sudo nano ////etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
sudo apachectl configtest
sudo nano /etc/apache2/apache2.conf
sudo nano /etc/apache2/conf-available/smarthome2.fhem-albert.de.conf
cd
/etc/apache2/conf-enabled
cd /etc/apache2/conf-enabled
ln -s /etc/apache2/conf-available/smarthome2.fhem-albert.de.conf .
sudo ln -s /etc/apache2/conf-available/smarthome2.fhem-albert.de.conf .
service apache2 restart
sudo apachectl configtest
sudo service apache2 restart
cd /etc/apache2/conf-enabled
cd /opt
cd letsencrypt
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
sudo service apache2 stop
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
sudo service apache2 start
sudo service apache2 restart
sudo apachectl configtest
~sudo htpasswd -c -s /etc/fhem-htpasswd frank
sudo htpasswd -c -s /etc/fhem-htpasswd frank
sudo apt-get install libapache2-mod-proxy-html
cd /etc/apache2/sites-enabled
sudo ln -s ../sites-available/smarthome2.fhem-albert.de.conf .
0 23 * * * sudo service apache2 stop && /opt/letsencrypt/letsencrypt-auto renew && sudo service apache2 start
cd
0 23 * * * sudo service apache2 stop && /opt/letsencrypt/letsencrypt-auto renew && sudo service apache2 start
crontab -e
sudo nano smarthome2.fhem-albert.de.conf
sudo apachectl configtest
sudo apachectl configtestsudo a2enmod ssl proxy_html
~
sudo a2enmod ssl proxy_html
sudo apachectl configtest
sudo service apache2 restart
sudo nano /etc/apache2/apache2.conf
sudo service apache2 restart
systemctl status apache2.service
sudo nano /etc/apache2/apache2.conf
systemctl status apache2.service
sudo nano /etc/apache2/conf-enabled/mysite.conf:~
sudo nano /etc/apache2/conf-enabled/mysite.conf:
sudo nano /etc/apache2/conf-enabled/mysite.conf
sudo service apache2 restart
sudo apachectl configtest
sudo apt-get update
sudo apt-get upgrade
cd
sudo apt-get update
sudo apt-get upgrade
sudo apt-get update
sudo apt-get upgrade
ls -la
cd /etc/ssh/
ls -la
sudo nano sshd_config
service ssh restart
cd /etc/ssh/
sudo nano sshd_config
service ssh restart
sudo restart
sudo reboot
sudo su
ls -la
tar -xzf alexa-fhem-0.4.4.tgz
mv package alexa-fhem
cd alexa-fhem
npm install
ls -la
npm install
cd
sudo apt-get install build-essential libssl-dev
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
cd alexa-fhem
nom install
npm install
./createKey.sh
ls -la
ls -la
ls -la | grep pem
cd
clear
mkdir ~/.alexa
cd alexa-fhem/
cp config-sample.json ~/.alexa/config.json
sudo nano ~/.alexa/config.json
./bin/alexa
sudo nano ~/.alexa/config.json
./bin/alexa
sudo nano ~/.alexa/config.json
./bin/alexa
sudo restart
sudo reboot
cd alexa-fhem/
./bin/alexa
./bin/alexa --debug
sudo shutdown
cdc
cd alexa-fhem/
./bin/alexa


IRGENDWO AB HIER GABS DANN DIE PROBLEME.



ls -la
sudo reboot
sudo service fhem start
cd alexa-fhem/
sudo alexa-fhem
sudo cd alexa-fhem
sudo cd /alexa-fhem
cd alexa-fhem
cd alexa-fhem
sudo cd alexa-fhem
sudo visudo
raspi-config
./bin/alexa
sudo ./bin/alexa
cd
sudo raspi-config
exit
cd /alexa-fhem
cd alexa-fhem
./bin/alexa --debug
sudo reboot
cd
sudo nano boot.config.txt
sudo nano /boot/config.txt
sudo service fhem start
cd alexa-fhem
./bin/alexa
sudo visudo
sudo visudo
sudo reboot
cd
sudo service fhem start
cd alexa-fhem
./bin/alexa
sudo reboot
cd
sudo service fhem start
cd alexa-fhem
./bin/alexa
./bin/alexa
./bin/alexa
sudo reboot
cd
cd alexa-fhem
./bin/alexa
sudo reboot
cd
sudo service fhem start
cd alexa-ghem
cd alexa-fhem
./bin/alexa
sudo shutdown -h 0
cd
sudo service fhem start
cd alexa-fhem
./bin/alexa
cd

Otto123

Wie Joachim schon sagt: Es gibt ein Verzeichnis /etc/sudoers.d/
Dort gibt es eine Datei 010_pi-nopasswd

Aber an dem ganzen sudoers Kram liegt es nicht - das Problem mit der Anmeldung
Zeig doch  mal die Ausgabe von ls -a /home/piund
cat /etc/passwd |grep pi
Aber wie gesagt ich fische im Trüben ...

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

DanqerClose

Ausgabe von 010_pi-nopasswd

GNU nano 2.7.4                Datei: 010_pi-nopasswd

pi ALL=(ALL) NOPASSWD: ALL




Ausgabe von ls -a /home/pi

pi@raspberrypi:/etc/sudoers.d$ cd
pi@raspberrypi:~$ ls -a /home/pi
.                     .config       Music         .selected_editor
..                    .dbus         .nano         smarthome2.fhem-albert.de.conf
.alexa                Desktop       .npm          Templates
alexa-fhem            Documents     Pictures      .themes
alexa-fhem-0.4.4.tgz  Downloads     .profile      Videos
.bash_history         fhem-5.8.deb  Public        .Xauthority
.bash_logout          .gnupg        python_games  .xsession-errors
.cache                .local        .rnd          .xsession-errors.old
pi@raspberrypi:~$


und Ausgabe von cat /etc/passwd |grep pi

pi@raspberrypi:~$ cat /etc/passwd |grep pi
pi:x:1000:1000:,,,:/home/pi:/bin/bash


das letzte hab ich ja noch nie gehört x:
was macht der Befehl?
mfg



MadMax-FHEM

vielleicht besser:

ls -la /home/pi

Und
cat /etc/passwd |grep pi

zeigt in deinem Fall zu welchen Gruppen pi gehört, welches "home-Verzeichins" und ob bzw. welche "Login-Shell" der User hat, bei dir: /bin/bash

Sieht auch erst mal unauffälig aus...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

DanqerClose

Tolle Erklärung  :)

Und hallo Joachim.
Ich glaube du wirst mich nieeee wieder los  :D
Finde nichts im FHEM - Forum was einigermaßen mit meinem Problem übereinstimmt.
Nach jedem reboot wirft es mein Passwort für pi raus und startet die dienste Fhem und fhem-alexa nicht mehr.
Vielleicht nochmal die Kernaussage aus meinem Problem  ;D

MadMax-FHEM

Bevor du aber noch mehr Eingaben machst evtl. mal den Inhalt von /home/pi/.bash_history posten:

cat /home/pi/.bash_history

Damit sieht man was du alles so eingetippt hast, evtl. fällt ja da was auf...

Oder zumindest mal "wegsichern":

cat /home/pi/.bash_history > /home/pi/eingabensicherung

Und evtl. überlegen (parallel) in einem Linux-Forum nachzufragen...
...scheint ein nicht so simples Linux-Problem zu sein...

Oder hier zu Einplatinencomputer (oder gibt es ein besseres/passenderes Unterforum?) verschieben?

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

MadMax-FHEM

Das Problem zumindest bzgl. alexa-fhem ist (wahrscheinlich): alexa-fhem wird durch User pi gestartet?

Also:

su - "pi" -c

im Startscript!?

Da ja User pi nicht eingeloggt werden kann -> kein Start...

Bzgl. fhem ist allerdings eigenartig...

Wer weiß was da "verbogen" ist...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

DanqerClose

also backup gemacht und hier die Ausgabe von /home/pi/bash_history:

pi@raspberrypi:~/alexa-fhem$ cat /home/pi/.bash_history
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y autoremove && sudo reboot
service dbus start
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y autoremove && sudo reboot
sudo apt-get -y install libjson-perl libdatetime-format-strptime-perl
cd /opt/fhem/log
ls -la
sudo shutdown -h 0
ping hausautomatisierung.fhem-albert.de
sudo update
sudo get-apt update
sudo apt-get update
sudo apt-get upgrade
cd /opt
sudo git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto certonly --rsa-key-size 4096 -d hausautomatisierung.fhem-albert.de
sudo ln -s /opt/bitnami/apache2/bin/apachectl /usr/bin/apache2ctl
./letsencrypt-auto certonly --rsa-key-size 4096 -d hausautomatisierung.fhem-albert.de
sudo a2enmod proxy proxy_http
cd
sudo apt-get install apache2
sudo a2enmod proxy proxy_http
systemctl restart apache2
clear
sudo a2enmod proxy proxy_http
sudo service apache2 restart
cd /etc/apache2/sites-available/
sudo nano hausautomatisierung.fhem-albert.de.conf
sudo apt-get install libapache2-mod-proxy-html
sudo a2enmod proxy_html
systemctl restart apache2
cd /etc/apache2/sites-enabled
sudo ln -s ../sites-available/hausautomatisierung.fhem-albert.de.conf .
cd
clear
sudo htpasswd -c -s /etc/fhem-htpasswd frank
sudo a2enmod ssl proxy_html
sudo sudo a2enmod ssl proxy_html
sudo apachectl configtest
sudo service apache2 restart
sudo apachectl configtest
sudo a2enmod ssl proxy_html
sudo apachectl configtest
sudo nano /etc/apache2/apache2.conf
sudo nano /etc/apache2/sites-enabled/hausautomatisierung.fhem-albert.conf
sudo nano /etc/apache2/sites-enabled/hausautomatisierung.fhem-albert.de.conf
sudo apachectl configtest
sudo nano /etc/apache2/sites-enabled/hausautomatisierung.fhem-albert.de.conf
clear
sudo nano /etc/letsencrypt/options-ssl-apache.conf
sudo nano /etc/apache2/sites-enabled/hausautomatisierung.fhem-albert.de.conf
sudo apachectl configtest
sudo nano /etc/apache2/apache2.conf
ln -s /etc/apache2/conf-available/mysite.conf /etc/apache2/conf-enabled/mysite.conf
sudo ln -s /etc/apache2/conf-available/mysite.conf /etc/apache2/conf-enabled/mysite.conf
sudo apachectl configtest
sudo ln -s /etc/apache2/conf-available/hausautomatisierung.fhem-albert.de.conf /etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
sudo apachectl configtest
cd /etc/apache2/
cd /conf-available
cd /conf-available/
cd conf-available/
ls -la
sudo nano hausautomatisierung.fhem-albert.de.conf
sudo apachectl configtest
sudo nano /etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
a2enmod ssl
a2ensite ryogasp.com-ssl
a2ensite hausautomatisierung.fhem-albert.de-ssl
cd /etc/apache2/sites-available/
sudo nano hausautomatisierung.fhem-albert.de-ssl.conf
a2ensite hausautomatisierung.fhem-albert.de-ssl
sudo a2ensite hausautomatisierung.fhem-albert.de-ssl
service apache2 reload
sudo a2dissite 000-default.conf
sudo systemctl restart apache2
cd
sudo so
sudo su
sudo apachectl configtest
cd /opt
sudo cd letsencrypt
cd letsencrypt
./letsencrypt-auto certonly --rsa-key-size 4096 -d
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
cd /etc/apache2/sites-available/
sudo nano smarthome2.fhem-albert.de.conf
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
cd /etc/apache2/sites-available/
cd letsencrypt
cd /opt/letsencrypt/
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
sudo nano /etc/apache2/conf-enabled/hausaotomatisierung.fhem-albert.conf
sudo nano /etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.conf
/etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
sudo nano /etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
sudo service apache2 stop && /opt/letsencrypt/letsencrypt-auto renew && sudo service apache2 start
sudo apachectl configtest
sudo nano /etc/apache2/sites-available/smarthome2.fhem-albert.de-https.conf
sudo a2ensite your-domain.com-https.conf
sudo a2ensite sudo a2ensite your-domain.com-https.conf-https.conf
sudo a2ensite smarthome2.fhem-albert.de-https.conf
sudo systemctl reload apache2
sudo systemctl start  apache2
sudo systemctl start apache2
sudo start apache2
sudo startservice  apache2
sudo start service  apache2
sudo start service apache2
sudo service start  apache2
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 restart
sudo a2ensite smarthome2.fhem-albert.de-https.conf
sudo htpasswd -c -s /etc/fhem-htpasswd frank
sudo a2enmod ssl proxy_html
sudo apachectl configtest
sudo nano ////etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
sudo nano /etc/apache2/apache2.conf
sudo apachectl configtest
sudo nano /etc/apache2/apache2.conf
sudo apachectl configtest
sudo nano /etc/apache2/apache2.conf
sudo nano ////etc/apache2/conf-enabled/hausautomatisierung.fhem-albert.de.conf
sudo apachectl configtest
sudo nano /etc/apache2/apache2.conf
sudo nano /etc/apache2/conf-available/smarthome2.fhem-albert.de.conf
cd
/etc/apache2/conf-enabled
cd /etc/apache2/conf-enabled
ln -s /etc/apache2/conf-available/smarthome2.fhem-albert.de.conf .
sudo ln -s /etc/apache2/conf-available/smarthome2.fhem-albert.de.conf .
service apache2 restart
sudo apachectl configtest
sudo service apache2 restart
cd /etc/apache2/conf-enabled
cd /opt
cd letsencrypt
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
sudo service apache2 stop
./letsencrypt-auto certonly --rsa-key-size 4096 -d smarthome2.fhem-albert.de
sudo service apache2 start
sudo service apache2 restart
sudo apachectl configtest
~sudo htpasswd -c -s /etc/fhem-htpasswd frank
sudo htpasswd -c -s /etc/fhem-htpasswd frank
sudo apt-get install libapache2-mod-proxy-html
cd /etc/apache2/sites-enabled
sudo ln -s ../sites-available/smarthome2.fhem-albert.de.conf .
0 23 * * * sudo service apache2 stop && /opt/letsencrypt/letsencrypt-auto renew && sudo service apache2 start
cd
0 23 * * * sudo service apache2 stop && /opt/letsencrypt/letsencrypt-auto renew && sudo service apache2 start
crontab -e
sudo nano smarthome2.fhem-albert.de.conf
sudo apachectl configtest
sudo apachectl configtestsudo a2enmod ssl proxy_html
~
sudo a2enmod ssl proxy_html
sudo apachectl configtest
sudo service apache2 restart
sudo nano /etc/apache2/apache2.conf
sudo service apache2 restart
systemctl status apache2.service
sudo nano /etc/apache2/apache2.conf
systemctl status apache2.service
sudo nano /etc/apache2/conf-enabled/mysite.conf:~
sudo nano /etc/apache2/conf-enabled/mysite.conf:
sudo nano /etc/apache2/conf-enabled/mysite.conf
sudo service apache2 restart
sudo apachectl configtest
sudo apt-get update
sudo apt-get upgrade
cd
sudo apt-get update
sudo apt-get upgrade
sudo apt-get update
sudo apt-get upgrade
ls -la
cd /etc/ssh/
ls -la
sudo nano sshd_config
service ssh restart
cd /etc/ssh/
sudo nano sshd_config
service ssh restart
sudo restart
sudo reboot
sudo su
ls -la
tar -xzf alexa-fhem-0.4.4.tgz
mv package alexa-fhem
cd alexa-fhem
npm install
ls -la
npm install
cd
sudo apt-get install build-essential libssl-dev
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
cd alexa-fhem
nom install
npm install
./createKey.sh
ls -la
ls -la
ls -la | grep pem
cd
clear
mkdir ~/.alexa
cd alexa-fhem/
cp config-sample.json ~/.alexa/config.json
sudo nano ~/.alexa/config.json
./bin/alexa
sudo nano ~/.alexa/config.json
./bin/alexa
sudo nano ~/.alexa/config.json
./bin/alexa
sudo restart
sudo reboot
cd alexa-fhem/
./bin/alexa
./bin/alexa --debug
sudo shutdown
cdc
cd alexa-fhem/
./bin/alexa
ls -la
sudo reboot
sudo service fhem start
cd alexa-fhem/
sudo alexa-fhem
sudo cd alexa-fhem
sudo cd /alexa-fhem
cd alexa-fhem
cd alexa-fhem
sudo cd alexa-fhem
sudo visudo
raspi-config
./bin/alexa
sudo ./bin/alexa
cd
sudo raspi-config
exit
cd /alexa-fhem
cd alexa-fhem
./bin/alexa --debug
sudo reboot
cd
sudo nano boot.config.txt
sudo nano /boot/config.txt
sudo service fhem start
cd alexa-fhem
./bin/alexa
sudo visudo
sudo visudo
sudo reboot
cd
sudo service fhem start
cd alexa-fhem
./bin/alexa
sudo reboot
cd
sudo service fhem start
cd alexa-fhem
./bin/alexa
./bin/alexa
./bin/alexa
sudo reboot
cd
cd alexa-fhem
./bin/alexa
sudo reboot
cd
sudo service fhem start
cd alexa-ghem
cd alexa-fhem
./bin/alexa
sudo shutdown -h 0
cd
sudo service fhem start
cd alexa-fhem
./bin/alexa
cd
cd alexa-fhem
./bin/alexa
su pi
su pi
sudo reboot
cd
sudo service fhem start
cd alexa-fhem
./bin/alexa
sudo visudo
./bin/alexa
cd
ls -la
cd alexa-fhem
./bin/alexa
sudo nano /etc/sudoers.d/
cd
cd etc
cd /etc
cd /etc/
ls -la
cd
ls -la
su root

Otto123

die Datei /home/pi/.bashrc fehlt - erklärt zumindest das fehlende grün  ;)
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz