homematic-CCU ftp-server

diverse Zusatzsoftware

Moderator: Co-Administratoren

Benutzeravatar
a.krypthul
Beiträge: 41
Registriert: 27.01.2008, 13:51
Danksagung erhalten: 1 Mal

homematic-CCU ftp-server

Beitrag von a.krypthul » 09.02.2008, 19:51

Hi,

attached you find a tar-archive with the scripts and the software to install an ftp-daemon on your homematic.

This ftp-daemon is a cross-compiled version from the inetutils (version 1.5) [http://ftp.gnu.org/gnu/inetutils/]

The installation requires two steps:


1. Install the tar-file using "Zusatzsoftware installieren"
Just install the tar-archive - after installation an rebooting you can open a ftp-session (port 21) - but the login-authorization will fail!


2. Create a password for the user "root":

To be able to login to the ftp-server you have to create a password for your user (let´s assume root) - to do this you need a telnet access to your homematic:
[ remark: the setting of a password will NOT affect the passwordless-telnet-access]

after opening a telnet session - just enter "passwd" and follow the instructions !

-> reboot ... the ftpd will automatically start at bootup.

[ remark : I chose this ftp-deamon because it´s a simple way to access the filesystem of the homematic - it´s very stable but it´s not a daemon for a "public" ftp-access !!!
If you want further customizing of the ftp-daemon (welcome-message, user-policy...) read the documentation of the inetutils (man-pages) - the configuration directory is "etc/config".]

-----------------------------------------------

Attaching a USB-Disk or Flash-stick to your homematic

After having installed the ftp-daemon you might want to extend the file-system of the homematic by a usb-stick or a usb-disk.
This is possible : I managed to compile the necessary additional kernel modules and utilities to install (fdisk, format and mount) a disk with ext2-filesystem - so if there are interested users please give feedback - otherwise i will not waste my time creating a description (installation is easy but the creation of the disc requires some documentation - I need to write)


Have a lot of fun with your homematic-CCU

Alex

Benutzeravatar
kaju74
Beiträge: 2050
Registriert: 06.03.2007, 13:14
Danksagung erhalten: 19 Mal
Kontaktdaten:

Re: homematic-CCU ftp-server

Beitrag von kaju74 » 10.02.2008, 10:38

Hi...

It seems you're a HomeMatic Guru, he? Thank you very much for sharing this...would it be okay to make copy on my blog-site?

Regards,
kaju

chrispi
Beiträge: 131
Registriert: 25.12.2007, 21:34

Re: homematic-CCU ftp-server

Beitrag von chrispi » 10.02.2008, 12:39

so if there are interested users please give feedback
Nice work! I am very interested!

- Christoph

Lueghi
Beiträge: 630
Registriert: 01.11.2007, 21:45
System: Alternative CCU (auf Basis OCCU)
Wohnort: Siebengebirge (bei Bonn)
Hat sich bedankt: 18 Mal
Danksagung erhalten: 2 Mal

Re: homematic-CCU ftp-server

Beitrag von Lueghi » 10.02.2008, 13:10

kaju74 hat geschrieben:...
It seems you're a HomeMatic Guru, he?
...
I think he is very familar with linux. And linux is a well documented OS. So all the friends of windows can learn a new OS .... that's great! :wink: :lol: :lol: :lol:
Gruß Stefan

Benutzeravatar
a.krypthul
Beiträge: 41
Registriert: 27.01.2008, 13:51
Danksagung erhalten: 1 Mal

Re: homematic-CCU ftp-server

Beitrag von a.krypthul » 10.02.2008, 18:49

Sorry guys, :oops:

bad news - it seems I was a little bit too early - there are problems with the ftpd when downloading files from the homematic - very often they arrive with zero-length (the strange thing is, from the windows ftp-commandline it works fine :?: )
At the moment I have no idea where the problem is, this daemon works perfect on another embedded ARM-device.

To get rid of that defect program uninstall via telnet

delete the directory /etc/config/asoft
by
cd /etc/config/asoft
rm ftpd
cd ..
rmdir asoft
cd /etc/config/rc.d
rm ftpstart

I´m really sorry !

Alex

chrispi
Beiträge: 131
Registriert: 25.12.2007, 21:34

Re: homematic-CCU ftp-server

Beitrag von chrispi » 10.02.2008, 20:09

a.krypthul hat geschrieben:I´m really sorry !
No need to be sorry! Every access to the Linux system is try and error because of the lack in documentation.

- Christoph

Benutzeravatar
a.krypthul
Beiträge: 41
Registriert: 27.01.2008, 13:51
Danksagung erhalten: 1 Mal

Re: homematic-CCU ftp-server

Beitrag von a.krypthul » 10.02.2008, 20:58

Hi Christoph
Every access to the Linux system is try and error because of the lack in documentation.
you are absolutely right - the next problem is testing -costs a lot of time :P

But the good news are: I guess I found the problem - unsuccessfull call of a library-function, but no error message :roll:

So now it should work - any feedback is welcome !!
Dateianhänge
ftp.tar.gz
HomeMatic FTP-Daemon install
(30.66 KiB) 180-mal heruntergeladen

XYZ1234567899
Beiträge: 108
Registriert: 23.12.2007, 22:51

Re: homematic-CCU ftp-server

Beitrag von XYZ1234567899 » 10.02.2008, 23:10

Hi

Irgendwie geht das bei mir nicht,wenn ich mit passwd versuche das passwort vorzugeben
bekomme ich die Meldung:password ist changed.
Aber da ist nichts geändert,was mach ich falsch ??

MFG
Siegfried

Benutzeravatar
a.krypthul
Beiträge: 41
Registriert: 27.01.2008, 13:51
Danksagung erhalten: 1 Mal

Re: homematic-CCU ftp-server

Beitrag von a.krypthul » 11.02.2008, 09:07

Hi Siegfried,
XYZ1234567899 hat geschrieben:Irgendwie geht das bei mir nicht,wenn ich mit passwd versuche das passwort vorzugeben
bekomme ich die Meldung:password ist changed.
Aber da ist nichts geändert,was mach ich falsch ??
Fortunately my german reading skills are much better then (bad) writing or (worst) speaking :D

As far as I understand the changing of the root password did not work ???

When changing the password you should have a dialog like

Changing password for root
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
Enter new password:
Bad password: too simple.

Warning: weak password (continuing).
Re-enter new password:
Password changed.


or when using a strong password :

Changing password for root
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
Enter new password:
Re-enter new password:
Password changed.


enter : cd /etc/config

After there you should find 2 files

passwd
passwd-

enter: tail -n 100 passwd

will result in an output like

root:$1$$ugufphkkzPhGRrEH34KyG1:0:0:root:/root:/bin/sh
bin:x:1:1:bin:/bin:
daemon:x:2:2:daemon:/sbin:
adm:x:3:4:adm:/var/adm:
lp:x:4:7:lp:/var/spool/lpd:
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:
news:x:9:13:news:/var/spool/news:
uucp:x:10:14:uucp:/var/spool/uucp:
operator:x:11:0:operator:/root:
games:x:12:100:games:/usr/games:
gopher:x:13:30:gopher:/usr/lib/gopher-data:
ftp:x:14:50:FTP User:/home/ftp:
nobody:x:99:99:Nobody:/:
boa:x:1000:1000:BOA web server:/:


and there you see in the first line the crypted password after the entry root:

If you have the same state then the login to the ftp-daemon should do.

Bye Alex

belder
Beiträge: 14
Registriert: 11.02.2008, 10:53

Re: homematic-CCU ftp-server

Beitrag von belder » 11.02.2008, 11:09

Hi Alex,

I tested the new version of the ftpd
and it seems that everything works fine,
up and download of some files worked without any problems,
I used filezilla 3.0.6.

Regarding this password problem,
after deinstallation and reinstalling the new ftpd,
it was not necessary to go again through the password installation process.


fred

Antworten

Zurück zu „Sonstige Addons“