User:Lars

[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>