User:Rasmus

(N900 setup)
 
(11 intermediate revisions not shown)
Line 1: Line 1:
-
TODO add colons
 
-
 
unfinished notes below,
unfinished notes below,
non-user-specific parts to be merged with general pages when more complete.
non-user-specific parts to be merged with general pages when more complete.
-
== N900 setup ==
+
= Configuration checklist  =
-
=== Install debian ===
+
* danish keyboard (english language)
-
increase partition
+
* uninstall amazon, ap news, documents to go, facebook, foreca, tutorial
-
* append zeroes to image file
+
* install openssh server/client
-
* ext2 resize
+
* repartion, restore backups
-
=== Enable bluetooth keyboard ===
+
* increase number of ptys: edit /etc/init.d/rcS  ( /proc/sys/kernel/pty/max )
-
[[Fremantle Unsupported Bluetooth Profiles]]
+
* restrict trackerd - /home/user/.config/tracker/tracker.cfg followed by tracker-processes --hard-reset
-
==== keyboard remapping ====
+
* <tt>ln /usr/bin/vi /bin/vi</tt>  - needed for visudo to work
-
setup
+
* visudo ( user ALL = NOPASSWD: ALL )
-
* get the current keyboard setup with xkbcomp 0.0 filename.xkb
+
-
* edit filename.xkb as desired
+
-
enable
+
-
* xkbcomp filename.xkb 0.0
+
-
* kill wildrunning maemo-xinput-sound
+
-
=== Increase number of ptys ===
+
 
-
https://bugs.maemo.org/show_bug.cgi?id=5824
+
== Repartitioning ==
-
=== Setup openvpn ===
+
Done via sfdisk, ie.:
 +
<pre>
 +
sfdisk > parttable
 +
vi parttable
 +
sfdisk --force < parttable
 +
</pre>
 +
see http://linux.die.net/man/8/sfdisk
 +
 
 +
Use <tt>mkfs</tt>.* as usual.
 +
 
 +
Nokia autogenerates <tt>/etc/fstab</tt>, so edit
 +
<tt>/etc/event.d/rcS-late</tt>, or make the partitioning conform to that one.
 +
 
 +
 
 +
==== Default setup ====
 +
<pre>
 +
Disk /dev/mmcblk0: 977024 cylinders, 4 heads, 16 sectors/track
 +
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0
 +
 
 +
  Device Boot Start    End  #cyls    #blocks  Id  System
 +
/dev/mmcblk0p1          1  884864  884864  28315648    c  W95 FAT32 (LBA)
 +
/dev/mmcblk0p2    884865  950400  65536    2097152  83  Linux
 +
/dev/mmcblk0p3    950401  974976  24576    786432  82  Linux swap / Solaris
 +
/dev/mmcblk0p4          0      -      0          0    0  Empty
 +
</pre>
 +
 
 +
sfdisk parttable
 +
<pre>
 +
# partition table of /dev/mmcblk0
 +
unit: sectors
 +
 
 +
/dev/mmcblk0p1 : start=      64, size= 56631296, Id= c
 +
/dev/mmcblk0p2 : start= 56631360, size=  4194304, Id=83
 +
/dev/mmcblk0p3 : start= 60825664, size=  1572864, Id=82
 +
/dev/mmcblk0p4 : start=        0, size=        0, Id= 0
 +
</pre>
 +
 
 +
== Setup openvpn ==
   apt-get install openvpn
   apt-get install openvpn
   update-rc.d -f openvpn remove
   update-rc.d -f openvpn remove
Line 27: Line 57:
   172.16.4.25 rje
   172.16.4.25 rje
to hosts
to hosts
 +
 +
== Files in default homedir ==
 +
<pre>
 +
.                            .cache                      .gnome2                      .maemosec-secure            .osso                        .pulse-cookie
 +
..                          .calendar                    .gstreamer-0.10              .maesync                    .osso-abook                  .rtcom-accounts
 +
.backgrounds                .clock                      .hildon-application-manager  .mafw.db                    .osso-cud-scripts            .rtcom-eventlogger
 +
.bookmarks                  .clockd.conf                .intellisyncd                .modest                      .osso_rss_feed_reader        .ssh
 +
.browser                    .config                      .local                      .mozilla                    .profiled                    .thumbnails
 +
.browser_typed_urls          .dbus                        .maemosec-certs              .obex-root                  .pulse                      MyDocs
 +
</pre>
 +
= Remote access =
 +
keepalive:
 +
<pre>
 +
sudo ping -f -s 0.1  address
 +
</pre>

Latest revision as of 14:30, 13 February 2010

unfinished notes below, non-user-specific parts to be merged with general pages when more complete.

Contents

[edit] Configuration checklist

  • danish keyboard (english language)
  • uninstall amazon, ap news, documents to go, facebook, foreca, tutorial
  • install openssh server/client
  • repartion, restore backups
  • increase number of ptys: edit /etc/init.d/rcS ( /proc/sys/kernel/pty/max )
  • restrict trackerd - /home/user/.config/tracker/tracker.cfg followed by tracker-processes --hard-reset
  • ln /usr/bin/vi /bin/vi - needed for visudo to work
  • visudo ( user ALL = NOPASSWD: ALL )


[edit] Repartitioning

Done via sfdisk, ie.:

sfdisk > parttable
vi parttable
sfdisk --force < parttable

see http://linux.die.net/man/8/sfdisk

Use mkfs.* as usual.

Nokia autogenerates /etc/fstab, so edit /etc/event.d/rcS-late, or make the partitioning conform to that one.


[edit] Default setup

Disk /dev/mmcblk0: 977024 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/mmcblk0p1          1  884864  884864   28315648    c  W95 FAT32 (LBA)
/dev/mmcblk0p2     884865  950400   65536    2097152   83  Linux
/dev/mmcblk0p3     950401  974976   24576     786432   82  Linux swap / Solaris
/dev/mmcblk0p4          0       -       0          0    0  Empty

sfdisk parttable

# partition table of /dev/mmcblk0
unit: sectors

/dev/mmcblk0p1 : start=       64, size= 56631296, Id= c
/dev/mmcblk0p2 : start= 56631360, size=  4194304, Id=83
/dev/mmcblk0p3 : start= 60825664, size=  1572864, Id=82
/dev/mmcblk0p4 : start=        0, size=        0, Id= 0

[edit] Setup openvpn

 apt-get install openvpn
 update-rc.d -f openvpn remove

extract keys in /etc/openvpn and add

 172.17.20.31 plan
 172.16.4.25 rje

to hosts

[edit] Files in default homedir

.                            .cache                       .gnome2                      .maemosec-secure             .osso                        .pulse-cookie
..                           .calendar                    .gstreamer-0.10              .maesync                     .osso-abook                  .rtcom-accounts
.backgrounds                 .clock                       .hildon-application-manager  .mafw.db                     .osso-cud-scripts            .rtcom-eventlogger
.bookmarks                   .clockd.conf                 .intellisyncd                .modest                      .osso_rss_feed_reader        .ssh
.browser                     .config                      .local                       .mozilla                     .profiled                    .thumbnails
.browser_typed_urls          .dbus                        .maemosec-certs              .obex-root                   .pulse                       MyDocs

[edit] Remote access

keepalive:

sudo ping -f -s 0.1  address