Beiträge von marcel280396

    Super vielen Dank Thomas für die ausführliche Anleitung.
    Ich hab Samba jetzt zum Laufen bekommen, nach deiner config gab es noch einige Rechte zu verteilen und jetzt läuft der samba wieder :)

    Ob er auch wirklich funktioniert teste ich heute Abend, wenn ich wieder zuhause bin. Das ist etwas doof über VPN :)

    Vielen Dank
    lg Marcel

    Ich hab mir die default conf von diesem Pfad kopiert, ich dachte das wäre die Default vom Betreiber: [font="Ubuntu Mono, monospace"]/usr/share/samba/smb.conf[/font]
    [font="Ubuntu Mono, monospace"]Diese sieht so aus:

    Code
    #[/font][/color]# Sample configuration file for the Samba suite for Debian GNU/Linux.### This is the main Samba configuration file. You should read the# smb.conf(5) manual page in order to understand the options listed# here. Samba has a huge number of configurable options most of which # are not shown in this example## Some options that are often worth tuning have been included as# commented-out examples in this file.#  - When such options are commented with ";", the proposed setting#    differs from the default Samba behaviour#  - When commented with "#", the proposed setting is the default#    behaviour of Samba but the option is considered important#    enough to be mentioned here## NOTE: Whenever you modify this file you should run the command# "testparm" to check that you have not made any basic syntactic # errors. #======================= Global Settings =======================[global]## Browsing/Identification #### Change this to the workgroup/NT-domain name your Samba server will part of   workgroup = WORKGROUP# Windows Internet Name Serving Support Section:# WINS Support - Tells the NMBD component of Samba to enable its WINS Server#   wins support = no# WINS Server - Tells the NMBD components of Samba to be a WINS Client# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both;   wins server = w.x.y.z# This will prevent nmbd to search for NetBIOS names through DNS.   dns proxy = no#### Networking ##### The specific set of interfaces / networks to bind to# This can be either the interface name or an IP address/netmask;# interface names are normally preferred;   interfaces = 127.0.0.0/8 eth0# Only bind to the named interfaces and/or networks; you must use the# 'interfaces' option above to use this.# It is recommended that you enable this feature if your Samba machine is# not protected by a firewall or is a firewall itself.  However, this# option cannot handle dynamic or non-broadcast interfaces correctly.;   bind interfaces only = yes#### Debugging/Accounting ##### This tells Samba to use a separate log file for each machine# that connects   log file = /var/log/samba/log.%m# Cap the size of the individual log files (in KiB).   max log size = 1000# If you want Samba to only log through syslog then set the following# parameter to 'yes'.#   syslog only = no# We want Samba to log a minimum amount of information to syslog. Everything# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log# through syslog you should set the following parameter to something higher.   syslog = 0# Do something sensible when Samba crashes: mail the admin a backtrace   panic action = /usr/share/samba/panic-action %d####### Authentication ######## Server role. Defines in which mode Samba will operate. Possible# values are "standalone server", "member server", "classic primary# domain controller", "classic backup domain controller", "active# directory domain controller". ## Most people will want "standalone sever" or "member server".# Running as "active directory domain controller" will require first# running "samba-tool domain provision" to wipe databases and create a# new domain.   server role = standalone server# If you are using encrypted passwords, Samba will need to know what# password database type you are using.     passdb backend = tdbsam   obey pam restrictions = yes# This boolean parameter controls whether Samba attempts to sync the Unix# password with the SMB password when the encrypted SMB password in the# passdb is changed.   unix password sync = yes# For Unix password sync to work on a Debian GNU/Linux system, the following# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for# sending the correct chat script for the passwd program in Debian Sarge).   passwd program = /usr/bin/passwd %u   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .# This boolean controls whether PAM will be used for password changes# when requested by an SMB client instead of the program listed in# 'passwd program'. The default is 'no'.   pam password change = yes# This option controls how unsuccessful authentication attempts are mapped# to anonymous connections   map to guest = bad user########## Domains ############# The following settings only takes effect if 'server role = primary# classic domain controller', 'server role = backup domain controller'# or 'domain logons' is set ## It specifies the location of the user's# profile directory from the client point of view) The following# required a [profiles] share to be setup on the samba server (see# below);   logon path = \\%N\profiles\%U# Another common choice is storing the profile in the user's home directory# (this is Samba's default)#   logon path = \\%N\%U\profile# The following setting only takes effect if 'domain logons' is set# It specifies the location of a user's home directory (from the client# point of view);   logon drive = H:#   logon home = \\%N\%U# The following setting only takes effect if 'domain logons' is set# It specifies the script to run during logon. The script must be stored# in the [netlogon] share# NOTE: Must be store in 'DOS' file format convention;   logon script = logon.cmd# This allows Unix users to be created on the domain controller via the SAMR# RPC pipe.  The example command creates a user account with a disabled Unix# password; please adapt to your needs; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u# This allows machine accounts to be created on the domain controller via the # SAMR RPC pipe.  # The following assumes a "machines" group exists on the system; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u# This allows Unix groups to be created on the domain controller via the SAMR# RPC pipe.  ; add group script = /usr/sbin/addgroup --force-badname %g############ Misc ############# Using the following line enables you to customise your configuration# on a per machine basis. The %m gets replaced with the netbios name# of the machine that is connecting;   include = /home/samba/etc/smb.conf.%m# Some defaults for winbind (make sure you're not using the ranges# for something else.);   idmap uid = 10000-20000;   idmap gid = 10000-20000;   template shell = /bin/bash# Setup usershare options to enable non-root users to share folders# with the net usershare command.# Maximum number of usershare. 0 (default) means that usershare is disabled.;   usershare max shares = 100# Allow users who've been granted usershare privileges to create# public shares, not just authenticated ones   usershare allow guests = yes#======================= Share Definitions =======================[homes]   comment = Home Directories   browseable = no# By default, the home directories are exported read-only. Change the# next parameter to 'no' if you want to be able to write to them.   read only = yes# File creation mask is set to 0700 for security reasons. If you want to# create files with group=rw permissions, set next parameter to 0775.   create mask = 0700# Directory creation mask is set to 0700 for security reasons. If you want to# create dirs. with group=rw permissions, set next parameter to 0775.   directory mask = 0700# By default, \\server\username shares can be connected to by anyone# with access to the samba server.# The following parameter makes sure that only "username" can connect# to \\server\username# This might need tweaking when using external authentication schemes   valid users = %S# Un-comment the following and create the netlogon directory for Domain Logons# (you need to configure Samba to act as a domain controller too.);[netlogon];   comment = Network Logon Service;   path = /home/samba/netlogon;   guest ok = yes;   read only = yes# Un-comment the following and create the profiles directory to store# users profiles (see the "logon path" option above)# (you need to configure Samba to act as a domain controller too.)# The path below should be writable by all users so that their# profile directory may be created the first time they log on;[profiles];   comment = Users profiles;   path = /home/samba/profiles;   guest ok = no;   browseable = no;   create mask = 0600;   directory mask = 0700[printers]   comment = All Printers   browseable = no   path = /var/spool/samba   printable = yes   guest ok = no   read only = yes   create mask = 0700# Windows clients look for this share name as a source of downloadable# printer drivers[print$]   comment = Printer Drivers   path = /var/lib/samba/printers   browseable = yes   read only = yes   guest ok = no# Uncomment to allow remote administration of Windows print drivers.# You may need to replace 'lpadmin' with the name of the group your# admin users are members of.# Please note that you also need to set appropriate Unix permissions# to the drivers directory for these users to have write rights in it[color=#000000][font="Ubuntu Mono, monospace"];   write list = root, @lpadmin

    [/font][/color]

    [font="Ubuntu Mono, monospace"]Ich habe [/font][font="Ubuntu Mono, monospace"]leider[/font][font="Ubuntu Mono, monospace"] die alte nicht mehr, sie ist beim ersten neu installieren verloren gegangen aber das war auch jene, die per Default installiert wird. [/font]
    [font="Ubuntu Mono, monospace"]Und in Richtung Anpassung hab ich nichts gemacht, weil ich keine Ahnung was ich rausschmeißen kann und was nicht.Im Prinzip brauche ich nur einen simplen Samba Share für meine Sonos Anlage. [/font]

    Ja hab ich.
    Ich hab alle Rechte der Ordner so eingestellt, wie die Warnung fordert, also auf 0755 bzw. 0700.

    Testparam liefert jetzt:

    Code
    Load smb config files from /etc/samba/smb.conf
    Processing section "[homes]"
    Processing section "[printers]"
    Processing section "[print$]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    
    
    Press enter to see a dump of your service definitions
    ^C

    Die anderen Fehler bleiben die gleichen:

    Code
    sudo /etc/init.d/samba restart
    [....] Restarting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed. See 'systemctl status nmbd.service' and 'journalctl -xn' for details.
    failed!

    Sorry ich wusste nicht, dass die Ausgabe unterschiedlich ist.

    Hier nochmal die Ausgabe von sudo systemctl status nmbd.service:

    Code
    nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd)
      Loaded: loaded (/etc/init.d/nmbd)
      Active: inactive (dead)

    und von sudo service smbd restart

    Code
    Job for smbd.service failed. See 'systemctl status smbd.service' and 'journalctl -xn' for details.

    von sudo service nmbd start

    Code
    Job for nmbd.service failed. See 'systemctl status nmbd.service' and 'journalctl -xn' for details.

    sudo service smbd status liefert:

    Code
    smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
      Loaded: loaded (/etc/init.d/smbd)
      Active: failed (Result: exit-code) since Tue 2016-10-25 11:23:10 CEST; 51s ago
     Process: 8136 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)
    
    
    Oct 25 11:23:10 raspberrypi smbd[8136]: Starting SMB/CIFS daemon: smbd failed!
    Oct 25 11:23:10 raspberrypi systemd[1]: smbd.service: control process exited, code=exited status=1
    Oct 25 11:23:10 raspberrypi systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
    Oct 25 11:23:10 raspberrypi systemd[1]: Unit smbd.service entered failed state.

    und sudo service nmbd status gibt:

    Also [font="Source Sans Pro, Tahoma, Helvetica Neue, Arial, sans-serif"]testparm[/font] liefet:

    [font="Menlo"]smbstatus liefert:[/font]

    Und nein Samba startet überhaupt nicht. Ich habe die mehrfach die default config kopiert und es geht nichts.
    Heir aber auch nochmal die config:


    Vielen Dank

    Liebes Forum,

    ich hab seit einiger Zeit Probleme mit meinem samba. Er startet nicht mehr, ich habe schon alle Google Treffer ausprobiert, kann das Problem jedoch einfach nicht finden. Ich hab samba schon dutzende Male gepurgt, neu installiert mit verschiedenen configs. etc.. Das ganze läuft auf einem Pi 3 mit der neusten Version von Jessie.

    Die Fehlermeldungen sind:

    Code
    sudo /etc/init.d/samba restart
    [....] Restarting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed. See 'systemctl status nmbd.service' and 'journalctl -xn' for details.
    failed!

    systemctl status nmbd.service liefert:

    Code
    systemctl status nmbd.service
    ● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd)
      Loaded: loaded (/etc/init.d/nmbd)
      Active: failed (Result: exit-code) since Mon 2016-10-24 16:10:03 CEST; 33s ago
     Process: 21960 ExecStart=/etc/init.d/nmbd start (code=exited, status=1/FAILURE)

    journalctl -xn liefert:

    Code
    journalctl -xn
    
    
    No journal files were found.

    Ich hoffe Ihr könnt mir helfen :)

    Vielen Dank
    lg Marcel

    Hallo liebes Forum,

    ich bin die Tage mal wieder auf eine Idee gekommen: Ich möchte gerne per Gesten verschiedene Sachen steuern, hauptsächlich Musik und Lichter.

    Nun habe ich mit verschieden System experimentiert Leap Motion und Kinect. Das Problem beide sind teuer und laufen nicht wirklich über den Pi, benötigen also immer noch einen PC/Mac und verbrauchen viel Strom, dazu ist die Reichweite bescheiden.

    Ich bin dann im Internet auf diesen Chip gestoßen, der 6 verschiedene Gesten und dazu noch Farben und Abstände erkennen kann. Die Daten gibt der Chip per I2C weiter und kann mit der vorhanden Arduino Library verarbeitet werden.

    Ich habe überlegt mir das ganze, als eine Art Uhr ans Handgelenk zu montieren oder wenigsten kabellos zu machen. Da habe ich allerdings folgendes Problem, ich habe zwar 433 MHz Sender/Empfänger [Anzeige] aber wie bekomme ich die I2C Daten in den Sender und am anderen Ende raus, da es sich ja nicht nur um High/Low Daten handelt. Gibt es da einen IC, der das für mich übernimmt oder muss einen Arduino dazwischen geschaltet werden. Für das Handgelenk würde sich natürlich Gemma empfehlen oder auch ein Nano, wenn der Platz weniger wichtig ist. Aber das alles verbraucht natürlich wieder mehr Strom und hält somit kürzer.

    Wenn das ganze am Handgelenk sein soll, würde ich gerne einen Knopf einbauen, der kurz bevor man die Geste macht gedrückt wird. Meine Idee dazu: Ein Schalter der die Stromversorgung zum Sensor/Sender/IC oder Arduino öffnet und dann diese nach 10 Sekunden wieder schließt. Allerdings auch hier die Frage, wie mache ich das? Gibt es Schalter mit einer "Zeitverzögerung" oder auch eine IC. Können die Bauteile kaputt gehen, wenn man ihnen dauernd den Strom entzieht?

    Ich bin leider Hardware mäßig sehr unerfahren. Natürlich könnte man dies auch per Software erledigen aber so wäre der ganze Komplex dauernd eingeschaltet und man bräuchte zwingend einen Controller, das zieht natürlich auch an der Batterie, wobei ich bei meiner letzen Frage wäre: Nehme ich lieber einen Akku oder ein Batterie?

    Ich habe natürlich versucht mich im Internet schlau zumachen, bin aber hauptsächlich daran gescheitert was ich in Google eingeben soll. Bei "I2C via 433MhZ" z.B. kam nichts vielversprechendes heraus.

    Vielen Dank schonmal
    Marcel

    Wir haben die alte Anlage ersetzt, weil viele der Reed Sensoren nicht mehr gehen und sie einfach nicht mehr zuverlässig ausgelöst hat. Aber die Bewegungssensorien Funktionen halt noch und ich dachte man könnte die nutzen.

    Ist aber auch nicht schlimm, falls nicht.

    Ich dachte nicht, dass man sich die Verschlüsselung irgendwo herunterladen kann, sondern vielleicht eher mit einem Programm auslesen kann.

    Aber wie gesagt, ich weiß nicht wie ich das machen soll. Es ist halt schade die alten Sensoren wegzuschmeißen, kann man diese vielleicht irgendwie umrüsten und die Verschlüsselung raus nehmen?

    lg Marcel

    Hallo liebes Forum,

    wir haben bei uns zuhause vor einiger Zeit die Alarmanlage ersetzt. Nun gibt von der alten Anlage (ELV FAZ-3000) noch zahlreiche Reed und Bewegungssensoren. Ich würde diese gerne an den Pi anschließen, bzw. damit auslesen können.

    Allerdings habe ich kaum eine Ahnung wie. Ich konnte schon rausfinden das die Anlage über 868 Mhz bidirektional sendet. Nun reicht es ja nicht einfach einen 868 Receiver anzuschließen. Wie decodiere ich das Signal, ich konnte leider keine hilfreichen Antworten im Internet finden.


    Vielleicht habt ihr ja auch weiterführende Links, denn ich bin wohl kaum der erste der sowas versuchen will.

    Vielen Dank
    Marcel

    So das Problem ist gelöst :bravo2:

    Vielen vielen Dank für die vielen und schnellen Antworten. Das ist wirklich ein Top-Forum hier. Ich weiß nicht ob es die Rechte, das php oder der wget-Aufruf war, wahrscheinlich war es die Kombination.

    Also für die Nachwelt.

    Schreiben.php funktioniert so:

    und zum empfangen:

    Code
    variable=$(wget -qO - http://hostname/Zustände/Wecker/Sonne.txt)

    Ich habe dem ganzen Ordner die Rechte 777 gegeben. Das hat funktioniert

    Vielen Dank :danke_ATDE:
    lg Marcel

    Also das mit dem Bettt war nur ein Kopierfehler von mir, daran liegt es leider nicht.

    Ich habe laut wget -V die Version GNU Wget 1.13.4

    Die Datei die ich ändern will liegt auf einem anderen Server, also nicht auf dem Apache des Pi´s und wie gesagt, rufe ich den Schreiben.php Script über den Browser auf klappt alles.

    lg Marcel

    Er gibt das aus:

    Aber in die Bett-Datei wird nichts geschrieben, sie ist immer noch leer und ist auch nicht geschützt oder so, hat alle alle Rechte 755.

    Und mit dem Befehlt habe ich das Problem, dass er mir eine Sicherungsdatei anlegt, wenn der Script im Hintergrund läuft und dann habe ich zehntausende von diesen Dateien.
    :danke_ATDE:

    Ich schicke das ihn den Hintergrund, damit der nicht Tausende Speicherdatein anlegt.
    Die Umlaute habe ich schon lange drin und es hat vorher auch funktioniert.
    IP habe ich auch schon probiert, funktioniert nicht. Der Pi löst den Hostname aber auch auf.

    Das php hab ich aus dem php-Handbuch und daran liegt es nicht, denn es klappt ja wenn ich es manuell und nicht über den Pi Aufrufe


    lg Marcel

    Hallo meigrafd,
    danke für die schnelle Antwort.
    Der genaue Aufruf ist:

    Code
    wget -qO- "http://marcels-mbp/Schreiben.php?datei=/LED/Bett&zustand=0" &> /dev/null

    Schreiben.php ist:
    [code=php]<?php

    $datei=$_GET["datei"];
    $zustand = $_GET["zustand"];


    $datei = ("Zustände/".$datei.".txt");

    fclose(fopen($datei, 'w'));

    $dateihandle = fopen($datei,"w");
    fwrite($dateihandle, $zustand);
    echo($datei);
    ?>[/php]

    Was meinst du mit LAN IPs?

    Ich hatte die Zeile nur aus einem TestScript rauskopiert, deswegen die 10 :)

    lg Marcel

    Hallo liebes Forum,
    ich habe seit einigen Tagen ein Problem mit wget, dass ich nicht lösen kann aber muss ;)

    Leider konnte Google auch nichts passendes ausspucken, wenn es auch daran liegen, dass ich nicht weiß ich eingeben soll.

    Also folgendes. Ein Script auf einem Pi (einmal B und einmal B+) soll einen php-Scritp auf dem lokalen Server (MAMP) meines MacBooks aufrufen, dieser Script ändert dann den Inhalt einer Textdatei (dient dazu, um den Zustand einer Lampe o.ä. zu speichern, 0-> Aus und 1->An).
    Bis vor einigen Tagen hat das alles wunderbar geklappt aber plötzlich gehts nicht mehr, die Textdatei wird komplett geleert, also würde dem php-Schreibe-Scripts nichts übergeben werden. Wenn ich allerdings die url, die der pi-Scirpt aufruft, über den Browser meines Macs oder anderen Geräten im Netzwerk aufrufe, klappt alles.
    Vielleicht ein Hinweis. Immer wenn ich einen entsprechenden Script auf dem Pi aufrufe erscheint der Name der Text, bzw. der Pfad zu ihr (also die Übergabe an den php-Script) in der Konsole rechts neben dem pi@raspberrypi ~. Ich logge mich über die Terminal App über ssh ein.

    Hier mal der Code-Schnipsel:

    wget http:/hostname/Schreiben.php?datei=RolloLinks&zustand=10

    Ich habe es auch mit curl probiert. Normalerweise habe ich noch -qO- davor und &> /dev/null dahinter, um die Speicherdatei zu umgehen aber an diesen Ergänzungen liegt es auch nicht.


    Hat irgendjemand eine Idee?
    Wäre super. :bravo2:
    Danke
    Marcel

    Ja die sieht auch gut. In meinem Fall funktioniert der Pi nicht mehr, weil ich zu heiß gelötet habe und einige Leiterbahnen zerstört habe. Ein Freund hat mich erst im Nachhinein über die entsprechenden Gradzahlen etc. aufgeklärt. =(