![]() |
2009-12-30
, 12:45
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#42
|
mkdir /opt/local cd /usr ln -s local /opt/local
![]() |
2009-12-30
, 16:54
|
Posts: 62 |
Thanked: 18 times |
Joined on Dec 2009
@ Missouri, USA
|
#43
|
It should be possible to repackage it to use /opt more. I may take a stab at that in a few days (newyear's eve holiday).
I unpack and repack on my Linux desktop computer, which is Debian-based and thus has all the required tools.
The important ones are 'fakeroot' and 'dpkg-deb'. The latter is available also on the N900 itself, but the former is not. It may be possible to avoid needing it by actually being root while repackaging, but I haven't tried this. In any case, if you try this on the N900 itself (e.g. because of lack of a Debian Linux desktop/laptop environment) then you should do this on an ext3 partition, not vfat, otherwise the package will not be repackaged correctly. Oh, and remotely logging in to the N900 with a proper keyboard and screen would make it easier.
...
![]() |
2009-12-30
, 17:08
|
Posts: 62 |
Thanked: 18 times |
Joined on Dec 2009
@ Missouri, USA
|
#44
|
The Following User Says Thank You to DojwqIO For This Useful Post: | ||
![]() |
2009-12-30
, 17:13
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#45
|
@TA-t3:
I actually have Ubuntu for desktop. Should I install the SDK to get fakeroot and try all this instead of on the N900 directly?
I would like to try this and learn.
Thanks,
![]() |
2009-12-30
, 17:24
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#46
|
In principle the latex-suite also allows you to define a pdf viewer to be called while editing your document, but I don't know how to call the n900's pdf viewer from the command line.
![]() |
2010-01-01
, 19:18
|
Posts: 62 |
Thanked: 18 times |
Joined on Dec 2009
@ Missouri, USA
|
#47
|
However, there may be a much easier shortcut for pseudo-optifying this particular package:
1: Remove the installation: dpkg --remove maemotex
2: Make sure there's nothing left in /usr/local
3: Remove the original, leftover /usr/local: rmdir /usr/local
(NB: dpkg --remove may have removed it already.)
4: Make a symlink into /opt, like so:
5: Re-install maemotex.Code:mkdir /opt/local cd /usr ln -s local /opt/local
Now it'll still unpack and install in /usr/local, but that just happens to really be /opt/local.
![]() |
2010-01-01
, 20:34
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#48
|
Can the files in the maemotex package be moved from tmp/usr to a new folder tmp/opt, delete tmp/usr and edit the files in tmp/DEBIAN to change instances of usr/local to opt/local and then repackage?
![]() |
2010-01-01
, 20:47
|
Posts: 62 |
Thanked: 18 times |
Joined on Dec 2009
@ Missouri, USA
|
#49
|
Yes. Note, though, the part in the original package with the .path file which my original description said to copy to your /home/user/.profile file. You will want to edit and update that file (it's currently in usr/local/teTeX/) to make the setup consistent. And if you do, generate a new MD5sum and update DEBIAN/md5sums (actually, you will want to re-generate that file altogether because all the paths will be changed).
And finally, edit DEBIAN/postinstall
And be aware of potential issues with a re-installed version of your repackaged file, e.g. your existing edit of your .profile.
![]() |
2010-01-01
, 20:58
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#50
|
Also, in tmp/opt/local/teTeX there is symlink called share that points to /usr/local/meamotex/070802. I guess I should update that and updated it.
Thanks a lot for repackaging the maemotex deb. It seems to works great.
I have been reading this thread http://talk.maemo.org/showthread.php?t=33362 and other similar ones about the usage of the rootfs partition.
It seems that the maemotex package is not "optified" and it all gets installed in /usr/local/maemotex taking a lot of space in the rootfs partition. The whole of maemotex is about 16MB and my rootfs usage is now at 81%, with only a handful of other applications installed.
How one would go about "optfying" maemotex and repackaging to install it to /opt ? I don't have any idea of how to repackage deb files in the first place, but I would like to learn.