User:Lars
(New page: == Random N900/MAEMO Tips == I'm going to be using this page to jot down some notes about doing stuff on the N900 that I've just gotten. Maybe someone else will find this useful. __TOC__ ...) |
(→Set up mDNS (aka Bonjour, aka Rendezvous)) |
||
(4 intermediate revisions not shown) | |||
Line 3: | Line 3: | ||
__TOC__ | __TOC__ | ||
+ | |||
=== Speed up the Application Manager === | === Speed up the Application Manager === | ||
- | The application manager uses apt-get, and the default network-related timeouts are rather long. Add this to the end of your /etc/apt/apt.conf.d/00maemo to speed things up when servers are unreachable: | + | The application manager uses apt-get, and the default network-related timeouts are rather long. Add this to the end of your <tt>/etc/apt/apt.conf.d/00maemo</tt> file to speed things up when servers are unreachable: |
<pre> | <pre> | ||
// Be more aggressive in timing out stuck network connection attempts. | // Be more aggressive in timing out stuck network connection attempts. | ||
Line 14: | Line 15: | ||
Acquire::https::Timeout "3"; | Acquire::https::Timeout "3"; | ||
Acquire::ftp::Timeout "3"; | Acquire::ftp::Timeout "3"; | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | === Set up mDNS (aka Bonjour, aka Rendezvous) === | ||
+ | |||
+ | As described [http://thpmaemo.blogspot.com/2008/11/get-avahi-working-on-maemo.html here], you can install [http://avahi.org/ avahi], an open-source mDNS client. | ||
+ | |||
+ | Since the N900 uses upstart, the information [http://thpmaemo.blogspot.com/2008/11/get-avahi-working-on-maemo.html here] about changing the service startup order is no longer relevant. Instead, you need to create two files for upstart as follows: | ||
+ | |||
+ | ==== /etc/event.d/avahi-daemon ==== | ||
+ | <pre> | ||
+ | start on started dbus | ||
+ | console output | ||
+ | respawn | ||
+ | exec /usr/sbin/avahi-daemon -D | ||
+ | </pre> | ||
+ | |||
+ | ==== /etc/event.d/avahi-dnsconfd ==== | ||
+ | <pre> | ||
+ | start on started dbus | ||
+ | console output | ||
+ | respawn | ||
+ | exec /usr/sbin/avahi-dnsconfd -D | ||
+ | </pre> | ||
+ | |||
+ | If you're running an SSH service on the N900, you can announce it via mDNS by creating the following file: | ||
+ | |||
+ | ==== /etc/avahi/services/ssh.service ==== | ||
+ | <pre> | ||
+ | <?xml version="1.0" standalone='no'?> | ||
+ | <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | ||
+ | <service-group> | ||
+ | <name replace-wildcards="yes">%h</name> | ||
+ | <service> | ||
+ | <type>_ssh._tcp</type> | ||
+ | <port>22</port> | ||
+ | </service> | ||
+ | </service-group> | ||
</pre> | </pre> |
Latest revision as of 12:22, 25 November 2009
[edit] Random N900/MAEMO Tips
I'm going to be using this page to jot down some notes about doing stuff on the N900 that I've just gotten. Maybe someone else will find this useful.
Contents |
[edit] Speed up the Application Manager
The application manager uses apt-get, and the default network-related timeouts are rather long. Add this to the end of your /etc/apt/apt.conf.d/00maemo file to speed things up when servers are unreachable:
// Be more aggressive in timing out stuck network connection attempts. // Acquire::Retries "1"; Acquire::http::Timeout "3"; Acquire::https::Timeout "3"; Acquire::ftp::Timeout "3";
[edit] Set up mDNS (aka Bonjour, aka Rendezvous)
As described here, you can install avahi, an open-source mDNS client.
Since the N900 uses upstart, the information here about changing the service startup order is no longer relevant. Instead, you need to create two files for upstart as follows:
[edit] /etc/event.d/avahi-daemon
start on started dbus console output respawn exec /usr/sbin/avahi-daemon -D
[edit] /etc/event.d/avahi-dnsconfd
start on started dbus console output respawn exec /usr/sbin/avahi-dnsconfd -D
If you're running an SSH service on the N900, you can announce it via mDNS by creating the following file:
[edit] /etc/avahi/services/ssh.service
<?xml version="1.0" standalone='no'?> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <name replace-wildcards="yes">%h</name> <service> <type>_ssh._tcp</type> <port>22</port> </service> </service-group>
- This page was last modified on 25 November 2009, at 12:22.
- This page has been accessed 327 times.