![]() |
OpenSSH, Avahi, Modifying files in /etc/rc*.d/
I have installed OpenSSH (server + client) on my N900 to login from my laptop and it works when I use the IP address. To make it a little easier to login, i started playing with avahi-daemon to be able to login with a hostname instead of the ip address. After googling a bit i found this page: http://thpmaemo.blogspot.com/2008/11...-on-maemo.html. It says that, by default, Avahi doesn't seem to work because it is started before D-Bus (the article says that both D-Bus and avahi start with an S20-script, but on my N900 avahi is started with an S14 script, while D-Bus with S20). After i manually started the avahi-daemon (with /etc/init.d/avahi-daemon start), i could remotely login with SSH by using the hostname instead of the ip-address.
So now i'm thinking about renaming S14avahi-daemon to S21avahi-daemon so it is started after D-Bus. I have also modified /etc/init.d/avahi/avahi-daemon.conf to change the hostname to something easier to remember, instead of the default Nokia-N90051-1. However, on http://wiki.maemo.org/OTA_to_PR1.1_troubleshooting, I read about the possibilities of breaking OTA updates. Are changes like safe to do or will they help to break the future OTA updates? I'm also wondering how heavy it is to run OpenSSH and avahi (on battery). If i just let the services run during one day without connecting/using them during that day, will it reduce my battery life with hours, or rather just a few minutes? |
Re: OpenSSH, Avahi, Modifying files in /etc/rc*.d/
I haven't gotten avahi to work correctly on my n900, yet, but have avahi on my n8x0 tablets...
Yes, rename the S14 and ?S16? avahi scripts to S21 (that is what worked on my tablets). I don't think that I ever modified the avahi...conf file, just my hosts and hostname to give the tablets friendly names -- I don't recall if avahi propagated it... Never noticed a significant battery drain from avahi/ssh (once again on the tablets). |
Re: OpenSSH, Avahi, Modifying files in /etc/rc*.d/
Quote:
|
Re: OpenSSH, Avahi, Modifying files in /etc/rc*.d/
Sorry for the bump, but...
Did anyone ever figure avahi on the N900? I've been trying different setups for the past couple hours now, and I can't really get it to work. My computer sees the phone's .local hostname, but the phone doesn't see the computer. Pinging Nokia-N900.local from my computer works, but pinging computer.local, or even nokia-n900.local itself from the N900 gives me a "bad address" error. |
Re: OpenSSH, Avahi, Modifying files in /etc/rc*.d/
Hi fwrnando,
it seems to be working for me here in my N900, but I had to:
No no more need to manually look up or hardcode ips in my DHCP server. |
Re: OpenSSH, Avahi, Modifying files in /etc/rc*.d/
Thanks for the reply! I got it working now, didn't even have to edit nsswitch.conf as was already installed like that.
Makes me wonder why libnss-mdns isn't in the repositories, or already bundled with maemo, for that matter. |
All times are GMT. The time now is 14:02. |
vBulletin® Version 3.8.8