Posts by Grimson


    @Grimson
    It's quite interesting to read that you logged the user/pass variations. Is it hard to achieve? I'm running a Banana Pi Seafile server and would also like to have this kind of logs after reading your post. Is there a guide/tutorial you could recommend (for linux noobs who can follow guides)?


    There is no guide I'm aware of, you will need coding experience:


    First you'll need to modify the OpenSSH (or whatever ssh daemon you use) source code to log the passwords on failed attempts, then you'll have the log data in "/var/log/auth.log". Some ssh daemons might log the passwords in high debug log levels, but this will likely explode the size of your log file, so editing the source to log the passwords in the normal log level is always advised.


    From there it's up to you on how you handle it. I've created a file parser in PHP, that is called by cron and writes the failed attempts into a mysql database. From there I can easily manage the data and display statistics and search for specific entries in a custom PHP based web interface. You don't have to use PHP for this, but I personally prefer it when working with mysql and simple file operations.


    Has the whole storage partition become readonly too? Because that would be a pretty good magic trick. :)


    Not really magic. If the kernel detects write errors on a partition (filling it completely will cause write errors) it switches the partition to read only, to prevent data corruption.


    Boot your box with a live linux from SD/USB, clean the crap from the storage partition and run an fsck. This will give you a chance to recover most of it.


    May the NTFS be a culprit of this slow speed? If yes, even then it is weird that read from HDD is 80-90MB/s and write is only 20-30MB/s.
    And will I have access to that HDD from win10 over LAN if I reformat it to ext3 ? I think yes, because of Samba will handle it, but rather ask for sure :-)


    The free NTFS driver in Linux is quite crappy, so it's quite possible. Of course you can still access it over samba.


    I tried everything in the samba.conf, "write list", "read list", and much more. but I came to "passdb backend = smbpasswd" in the samba.conf.sample and do not understand how users are handled in LE. "smbpasswd" can be executed but fails to create new user due to readonly file system and I do not find a samba user db......


    That's because LE is not designed as a multi-user system, plain and simple.



    What are the valid build-in samba users that I can use to log in and then link write/read rights to in samba.conf??
    I am confused! Somebody can help me ?


    If you want more users you'll have to compile LE yourself and change the build system to generate more users at build time.


    Thank you for your suggestion.
    I was wondering if you could recommend a good combination of OS and mysql solution!?
    I have a spare RPi3 that I could make as a server. Isn't best to compile the mysql myself on an OS, like OSMC, or should I run LibreELEC and install vpeter 's LAMP addon?!


    Thank you in advance.


    Raspbian Lite or Snappy Ubuntu Core work quite well. As for the database, either MySQL or MariaDB is fine.


    If you want to manage the database through your browser instead of the command line you can install a web server (like Apache) and PHP, then use for example phpMyAdmin.


    Quote from Simorgh


    Can you run MYSQL server on one machine and that does not have kodi, and manage the kodi database on another machine?!


    Sure, it's just a run of the mill database server.

    • On the board: Pi2 has Raspberry Pi 2 printed on the board near the GPIO connector – and mine has this.
    • CPU: What CPU does it have.The site indicated that Pi B+ has BCM2835, whereas Pi2 & Pi3 have BCM2836 or higher. My Pi CPU is a BCM2837.


    Looks like you have an Pi2+ (see here: http://forum.kodi.tv/showthread.php?tid=269814&pid=2420617#pid2420617), so try one of the current Milhouse builds or an LE alpha build. The firmware in LE 7.0.2 doesn't support the Pi2+.


    - copy between directories through KODI's file manager on internal HDD in htpc PC running LE 7.0.2 fresh install - speed was about 25-35MB/s


    As this is copying locally: SMB, even the whole network, isn't involved. So it's either a slow HDD or an compatibility/driver issue with the SATA chipset.


    AFAIK the am1h-itx has 4 SATA ports, two controlled by the boards AMD chipset, two controlled by an ASMedia chip. So I would suggest to try the HDD on a different SATA port, for example if it's currently connected to a port controlled by the ASMedia chip use one controlled by the AMD chipset and vice versa.


    so...why I can copy from HTPC to windows pc with minimal speed of 60MB/s, but writing is only about 20-30MB/s, even on libreelec?


    Because the read speed on HDDs is usually much higher than the write speed.