Author Topic: Where Did .profile Go?  (Read 4577 times)

niv

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Where Did .profile Go?
« on: June 30, 2005, 08:44:32 pm »
hi all,
well I am starting to really dig the zaurus :-)
Now I did a fresh flashing (after getting stock tring to run mozilla)
to install the programs I seek I use this method:
1. ssh from a pc to it
2. open ipkgfind in my web browser and hunt down the dependencies.

something that I learned is that the path must include /media/card if I am insatlling to SD.

two questions:

1. how to set a path for the libraries, so /media/card/package/usr/lib/somelib.so will work?
2. I remember that I had .profile and .bashrc in my home dir. now they are gone? I didn't erease them. where are they?

ken

  • Sr. Member
  • ****
  • Posts: 274
    • View Profile
Where Did .profile Go?
« Reply #1 on: June 30, 2005, 09:22:16 pm »
The normal user is zaurus, so it'd be:

/home/zaurus/.profile
SL-6000L Sharp ROM 1.12 - 1G SD (RiDATA) - 2G Microdrive (Hitachi)
TRENDnet TE-CF100 10/100 (no drivers needed) AmbiCom CF56M-EZ modem (no drivers needed)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Where Did .profile Go?
« Reply #2 on: July 01, 2005, 05:42:38 am »
Quote
The normal user is zaurus, so it'd be:

No, this is OpenZaurus not the Sharp ROM.

Quote
2. I remember that I had .profile and .bashrc in my home dir. now they are gone? I didn't erease them. where are they?

If you didn't erase them, then they should still be there. Did you use the -a switch with ls to show hidden files? 'ls -a'

Quote
something that I learned is that the path must include /media/card if I am insatlling to SD.

Sounds dubious, and I think I know why:

Quote
1. how to set a path for the libraries, so /media/card/package/usr/lib/somelib.so will work?

You don't need to do this. After you've installed a package to a storage card (or any dest other than root in fact), run 'ipkg-link add <package-name>' or 'ipkg-link mount /mount/point/path' to link all of the files on a given dest.

e.g.:

ipkg-link add opie-console
ipkg-link mount /media/card/packages

This way you don't have to mess about with altering paths, etc.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

niv

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Where Did .profile Go?
« Reply #3 on: July 01, 2005, 07:53:53 am »
10x Si
« Last Edit: July 01, 2005, 07:54:34 am by niv »

HeavyWeaponDude

  • Newbie
  • *
  • Posts: 37
    • View Profile
Where Did .profile Go?
« Reply #4 on: July 01, 2005, 11:01:53 am »
I'm still unable to make additional applications to run on my Z.
I've tried to install opie-calculator and dosfstools. Since I'm on 3.5.2 I've downloaded
them from the feed folder in the 3.5.2 tree.

I've tried to setup opie-calculator with the package manager, and dosfstools with the
line command
Code: [Select]
ipkg -d sd install dosfstools_2.10-r0_arm.ipk
They've both installed without pain.

However, "ipkg-link add opie-calculator" (the same with dosfstools) keeps telling me
"Package "opie-calculator" not found. Nor I get better results if I reboot the Z or if I try
Code: [Select]
ipkg-link mount /mnt/card1

Actually, is "card1" instead of "card" because I've partitioned my SD (first part FAT16; second EXT2) following this howto:

https://www.oesf.org/index.php?title=Multip..._a_CF_/_SD_card

Of course I've altered my ipkg.conf file to reflect that: I've changed
dest cf /mnt/card    to    dest cf /mnt/card1

Applications create the right paths in the card. All dosfstools are under /mnt/card1/usr/sbin, and are linked in /mnt/card1/usr/lib/ipkg/info.
Similarly everything right about opie-calculator (everything is in /mnt/card1/opt/QtPalmtop/...).

If I use "ipkg -list" dosfstools shows up (butt not opie-calculator).

Still, it seems I'm unable to link installed software.
I'm missing something? I've done something wrong? Maybe all of this is because of my partitioning?
Zaurus SL-5500
OpenZaurus 3.5.3 + Opie 1.2 (Hentges ROM T3)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Where Did .profile Go?
« Reply #5 on: July 02, 2005, 07:23:42 am »
Quote
However, "ipkg-link add opie-calculator" (the same with dosfstools) keeps telling me
"Package "opie-calculator" not found. Nor I get better results if I reboot the Z or if I try

It may be called something else - opie-calc for example.

Try 'ipkg list_installed *calc*' (something like that) to find out the name, or 'ipkg-link list /mnt/card1' to see everything installed to that dest, or just do 'ipkg-link mount /mnt/card1' to symlink everything you've installed to that dest.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

HeavyWeaponDude

  • Newbie
  • *
  • Posts: 37
    • View Profile
Where Did .profile Go?
« Reply #6 on: July 04, 2005, 05:51:03 am »
Thanks for the answer, but as I said, I've already tried with ipkg-link mount /mnt/card1 and I didn't get any result. I've also checked the location
of the installed files in the right subfolders, and the name of the installed applications. I have also the same problem with dosfstools.
Which is the way to link everything manually? I know the command (ln -s I suppose), but I don't know the location where to link. That way I can create a script at least which will do the job until I understand wht ipkg-link refuses to work.
Zaurus SL-5500
OpenZaurus 3.5.3 + Opie 1.2 (Hentges ROM T3)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Where Did .profile Go?
« Reply #7 on: July 04, 2005, 03:14:11 pm »
Two things:

1. Is it named /mnt or /media in ipkg.conf as this is what it searches iirc,

2. I forgot, you need to tack a packages on the end:

ipkg-link mount /media/card1/packages

should do the trick,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

HeavyWeaponDude

  • Newbie
  • *
  • Posts: 37
    • View Profile
Where Did .profile Go?
« Reply #8 on: July 07, 2005, 03:38:54 pm »
In my ipkg.conf it is /mnt/card1. And that is correct, it is the actual location where the card is mounted.

ipkg-link mount /mnt/card1/packages gives the following error:

*** Command: mount
ls: /mnt/card1/packages/usr/lib/ipkg/info/*.list: No such file or directory
*** Done.

A rapid check on /mnt/card1 shows that the actual location of the list files is on the following path: /mnt/card1/usr/lib/ipkg/info/ (where I think it is supposed to be).

That way I used:
ipkg-link mount /mnt/card1

and here's the result:

*** Command: mount
*** Command: add
*** Locating package
Package "dosfstools" not found.
*** Command: mount
*** Command: add
*** Locating package
Package "opie-calculator" not found.
*** Done.

It seems to me that the command is able to find the list files, read'em and learn which packages are installed. The problem is that the "add" command won't work,
as it won't work if I issue the direct command: ipkg-link add $PACKETNAMEHERE.
I really don't know how to overcome this. Maybe try to update ipkg? I don't think the partitions are the source of the problem, but maybe I'm wrong, even iof I do not understand why...  I'm going to reformat the SD card and make it just one partition, to see how things will work out that way.
Zaurus SL-5500
OpenZaurus 3.5.3 + Opie 1.2 (Hentges ROM T3)

HeavyWeaponDude

  • Newbie
  • *
  • Posts: 37
    • View Profile
Where Did .profile Go?
« Reply #9 on: July 07, 2005, 07:22:05 pm »
Yep, as I suspected. Making the SD card in just a big ext2 partition solves the problem. Still, I can't understand why...
Zaurus SL-5500
OpenZaurus 3.5.3 + Opie 1.2 (Hentges ROM T3)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Where Did .profile Go?
« Reply #10 on: July 08, 2005, 06:59:54 am »
Was the initial partition ext2?

Have a look at ipkg-link (it's just a script) and see if you can track down the problem - I imagine that others will have the same problem and would appreciate it being fixed,

Cheers,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

HeavyWeaponDude

  • Newbie
  • *
  • Posts: 37
    • View Profile
Where Did .profile Go?
« Reply #11 on: July 08, 2005, 04:17:25 pm »
Yep, all the occourences in the "ipkg-link" are related to /mnt/card, so it's very likely that changing them to /mnt/card1 is going to give good results. I'll soon test this and report here. In the meantime thanks!
Zaurus SL-5500
OpenZaurus 3.5.3 + Opie 1.2 (Hentges ROM T3)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Where Did .profile Go?
« Reply #12 on: July 09, 2005, 11:07:28 am »
Ah, you're running an old version of OZ, I didn't notice that.

Try installing ipkg-link from the current feed (ignore any deps it asks for) as it now actually parses the contents of /etc/ipkg.conf to find dest entries.

Sorry I didn't spot this earlier,


Si
« Last Edit: July 09, 2005, 11:08:27 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

HeavyWeaponDude

  • Newbie
  • *
  • Posts: 37
    • View Profile
Where Did .profile Go?
« Reply #13 on: July 09, 2005, 11:58:38 am »
Is it generally possible to install content from a newer feed on older OZ versions? Is it safe?

I've done a quick test editing ipkg-link.
But problem is elsewhere, and I think I've spotted where it is: the second partition of the SD card is not mounted properly. I've of course added the line to the /etc/fstab file (/dev/mmcda2    /mnt/card1 auto   defaults,noauto,noatime,user,exec,suid   0 0) and created the mountpoint directory. As a test I've tried to create a file on the two mount folders (with the card inserted in). The file is created, but just that on /mnt/card (the first partition) actually is on the card. /mnt/card1 is just a local folder. If I touch a file in it, when I remove the card the file is still there.

I suppose this is the trouble to manage to get a two partition SD to work properly.
Zaurus SL-5500
OpenZaurus 3.5.3 + Opie 1.2 (Hentges ROM T3)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Where Did .profile Go?
« Reply #14 on: July 09, 2005, 12:03:18 pm »
I understand that mounting two partitions from an SD/CF card is now supported in 3.5.3 - requiring a change to sdcontrol iirc.

Quote
Is it generally possible to install content from a newer feed on older OZ versions? Is it safe?

It depends what it is - ipkg-link is just a script, it should have no lib deps, so it's fine, other stuff may not work as expected if APIs have changed or library functions have been removed.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva