Freetz questions in english

faina09

Neuer User
Mitglied seit
3 Mrz 2010
Beiträge
39
Punkte für Reaktionen
0
Punkte
0
It was very hard to build the Freetz using the german instruction, but I'm sure it's worthwhile!!
But I have a question unresolved, so I try to ask in english.

I have a FRITZ!Box Fon WLAN 7270 Firmware version 54.04.76 English.
I have compiled Freetz in a Vmware ubuntu-server-9.10 machine.
It was a looong porcess, because the stable version fritz-1.1.2 was unable to find some files for the Fritz!Box7270:
ftp://ftp.avm.de/fritz.box/fritzbox.wlan_3270/x_misc/opensrc/GPL-Fritz_Box_3270.tar.gz
does not exists; I tryed modify \freetz-1.1.2\make\avm-gpl\avm-gpl.mk
Line 14: AVM_SOURCE__3270_04.76:=$(AVM_SITE__AVM_3270)/GPL-Fritz_Box_3270.tar.gz
to point to:
ftp://ftp.avm.de/fritz.box/fritzbox...itz_box_wlan_3270_source _files .04.80.tar.gz
but other problems arised, so I decided to get from svn the revision 4409 (http://svn.freetz.org/trunk/) and compile it.
Everythink was ok, I flashed the firmware and after some delay..... pointing my browser to
http://fritz.box
I got the usual login page.
The menu displays correctly, and the Fritzbox displays: Firmware version 54.04.76freetz-devel-4401.
There is a new! menu "Freetz"!! I was very excited, but the corresponding link to
http://fritz.box:81
return only "unable to connect".
I verified that the original link corresponding to the menu "Freetz" is indeed:
http://192.168.178.1/cgi-bin/freetz_status
and send for about 1 second to a page that redirects to http://fritz.box:81
ALL the old features of the fritzbox are normally working...
Do I need to build the Freetz firmware including some features?
(I build a basic version, with only "transmission").
Do I need to do something special?
Is it a bug?
Please help me, I am *so close* to the final!!
 
I think there is some mud in your /var/flash/debug.cfg? Perhaps you can try to delete it.

Regards
Oliver
 
First you should build an image with a bare minimum configuration. So remove the file ".config", execute "make menuconfig" and just select your box type.

Using other files than intended may or may not work, often it will not work.

It is intended that the link for the Freetz page redirects to port 81. There should be a web server listening on that port. Is it possible that you have a firewall or proxy that prevents the connection to port 81? You can also try a telnet to port 81 to see whether it is open.

If your minimum image also doesn't work, you should enable the telnet server on your box and try to find out why the web server is not running.
 
olistudent was rigth!:);)
I delete all the lines in my /var/flash/debug.cfg (I was unable to rm the file itself !!?? it was alway here again after a reboot..) and the interface at fritz.box:81 showed up.
Now I go to sleep :eek: because tomorrow I have to work :???: but in the evening I'll perform more tests!!

THANKS a lot for the help.
 
Now I have Freetz up and running on my Fritz!Box7270 (54.04.76freetz-devel-4413), but some behaviours are still wrong.
I try to search in the wiki and here in the forum, but as I can understand very little German, I found no answers.
So I can only hope to have answers here, from some patient and kind "geek-freetzer" :)
My preliminary question is about the language: does exists a section in the forum dedicate to English questions? I opened this one; is it ok?
Thanks in advance to anyone that will eventually answer me!!
And now more questions...:

#1 transmission:
I have this nice bittorrent client with web interface up and running, but I notice that the "bittorrent" user cannot manage correctly the directories dedicated to him. I changed manually (telnet as root) the permissions and added some subdirs to have transmission working.
A more serious problem is about the port used by transmission (54321 in my case). I do not know how to open this port, that appear to be closed from external access (tested using http://www.canyouseeme.org/).
If I use a torrent client on a pc in the network I add a port forward in Internet->PermitAccess->PortForwarding menu to the original Fritzbox firmware for both TCP and UDP to Computer IP hosting the torrent client and everything goes ok. But I do not know WHICH is the IP used by transmission.
I tried to use also AVM-Firewall without success.

#2 Apache:
In the wiki is stated something about the fact that the image is not included and must be do something to have Apache and PHP up and running... but it is in German and I didn't really understand. I did some trials but I cannot "see" the Apache server anywhere...

#3 Storage (NAS)
I can no longer access to my online storage by means of Fritz!Box.
I have the same confiuration that is working with the original firmware, whit an USB stick of capacity greater than that online storage.
In the start menu is stated:
"Storage (NAS) Online storageconnected."
but the I am unable to see it in FTP ftp://192.168.178.1/Online-Speicher
 
Hi.

1. There are examples for portforwardings with AVM-Firewall. That should be no problem. Perhaps you provide a screenshot of you tries.
2. What's about lighttpd? It's better integrated.
3. Online Storage isn't working with Freetz 1.1.x, only with trunk

Regards
Oliver
 
thank you, you are so fast!!
1. I saw it but... I have to forward the port to WHICH ip? I means, on which ip is transmitter working??
2. ok, I'll try lighttpd now. But I did not know anythink about this webserver, hope it works with php.
3. I'm currently using trunk, Rev4413
 
1. 0.0.0.0 ?
2. Yes, it does.
3. Uh. Is there a moun.davfs process runinng? Syslog? .config?

Regards
Oliver
 
1. 0.0.0.0 "is not valid" ip address. I tried 127.0.0.1 192.168.178.25x (some edition of transmission use this) but no luck..

2. I see, it's in the configuration ;-).
But lighttpd won't start. May be a problem of user's rights? (as for "bittorrent" user)? I am unable to determinate ;-(

3. yes there is
/var/mod/root # ps | grep -i dav
1825 root 3156 S N /sbin/mount.davfs -o conf=/var/tmp/davfs2.conf -o dir
1826 root 3156 S N /sbin/mount.davfs -o conf=/var/tmp/davfs2.conf -o dir
1832 root 3156 S N /sbin/mount.davfs -o conf=/var/tmp/davfs2.conf -o dir
syslog does not report anythig.
where is .config located? what is it suppose to contain? are there other debug tool I can use?
thank you
 
1. I attached a picture for you (freetz webif->avm firewall)
2. Perhaps. Do you use chroot? Do you know how to use it?
3. Output of "mount"?

Please search the trac wiki for .config.

Regards
Oliver
 

Anhänge

  • forwarding.png
    forwarding.png
    15.6 KB · Aufrufe: 34
still following 3 threads...;)

#1 transmission:
thanks to olistudent and RalfFriedl I correctly open up the TCP port 54321 to 0.0.0.0 for transmissions.. it seems to be ok, the check by way of http://www.canyouseeme.org/ now reports it as open.
I still have a "general" problem using USB storage (that for the torrents is a must! ;))
When torrents starts it try to take ownership of the directories but it fails:

Starting transmission daemon... chown: /var/media/ftp/uStor01/bittorrent/download/incomplete: Operation not permitted

I tryed using FREETZMOUNT without success...
I use chmod 777 but it is not enough;(
May be that the use of chroot can solve the problem, I still don't know how to use this command, I'll search the web... or wait for an hint!

#2 web server:
I swap to lighttpt and using default configuration and directories it starts and works well, but when I try to enable PHP (that is installed), it reports:
Code:
2010-03-06 16:24:51: (log.c.166) server started 
2010-03-06 16:24:51: (mod_fastcgi.c.1104) the fastcgi-backend /usr/bin/php-cgi failed to start: 
2010-03-06 16:24:51: (mod_fastcgi.c.1108) child exited with status 2 /usr/bin/php-cgi 
2010-03-06 16:24:51: (mod_fastcgi.c.1111) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.
If this is PHP on Gentoo, add 'fastcgi' to the USE flags. 
2010-03-06 16:24:51: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed. 
2010-03-06 16:24:51: (server.c.931) Configuration of plugins failed. Going down.
I solved setting "No chroot" on lighttpd web configuration page.

I would like also to use USB as storage for site contents but I found again the problems about rights.

....and I want even more, sqlite support. But where can I found info about supported commands to sqlite by php?? I found and tried:
$database = new SQLiteDatabase('myDatabase.sqlite', 0666, $error);
$dbhandle = sqlite_open('phptest.sqlite');
but neither these syntaxes are recognized...


#3 Storage (NAS)
was my fault: I didn't realized that now I can access the URL
\\fritz.box\Online-Speicher
that works!!
But I have an authorization error when I try to login using FTP:
ftp://192.168.178.1/Online-Speicher/
I don't know which username/password to enter...
 
Zuletzt bearbeitet:
still following 3 threads...;)

#1 transmission:
Starting transmission daemon... chown: /var/media/ftp/uStor01/bittorrent/download/incomplete: Operation not permitted
I tryed using FREETZMOUNT without success...
I use chmod 777 but it is not enough;(
Probably I cannot use a FAT partition. Must I repartitioning USB with an ext2 or ext3 partition? There are no other solutions?

#2 web server:
....and I want even more, sqlite support. But where can I found info about supported commands to sqlite by php?? I found and tried:
$database = new SQLiteDatabase('myDatabase.sqlite', 0666, $error);
$dbhandle = sqlite_open('phptest.sqlite');
but neither these syntaxes are recognized...
Found, I must use PDO!
$dbh = new PDO("sqlite:/var/www/htdocs/websites/prova/myDatabase.sqlite");
A good PDO introduction and examples are in:
http://www.phpro.org/tutorials/Introduction-to-PHP-PDO.html

#3 Storage (NAS)
I have an authorization error when I try to login using FTP:
ftp://192.168.178.1/Online-Speicher/
I don't know which username/password to enter...

I imagine that user "ftp" has no password, because /etc/shadow has the row:
Code:
ftp:!:14677:0:99999:7:::
but no password didn't work. I "passwd ftp" and use a know password but again didn't works...:confused:
 
Regarding the FTP user, if you use the AVM FTP Server, you may have to put the password into /etc7passwd and not info /etc/shadow. Also the '!' doesn't mean that there is no password.
 
the file /etc/passwd contains the rows:
Code:
root:x:0:0:root:/mod/root:/bin/sh
ftpuser:x:100:1:ftp user:/var/media/ftp:/bin/false
ftp:x:101:1:FTP account:/home/ftp:/bin/false
in linux I readed that the "x" means that the password is stored in /etc/shadow
Anyway I use the command "passwd ftp" to set the password but any try to access
ftp://192.168.178.1/
asks for a user and returns "530 Login incorrect"
 
AVM FTP only works with passwords in /etc/passwd because AVM remove shadow support. You have to move your ftpuser password from shadow to passwd.

Regards
Oliver
 
olistudent: but shouldn't the password be automatically in the passwd as soon as I enter one for the ftpuser in the AVM-WebIF ?!
 
libfreetz blocks AVMs password functions as you could see with your labor firmware where it didn't.

Regards
Oliver
 

Neueste Beiträge

Statistik des Forums

Themen
244,879
Beiträge
2,220,030
Mitglieder
371,604
Neuestes Mitglied
broekar
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.