How to make symbolic links in a frugal Puppy? (Solved)

Moderator: Forum moderators

Post Reply
tosim
Posts: 501
Joined: Thu Jul 23, 2020 1:13 pm
Has thanked: 950 times
Been thanked: 71 times

How to make symbolic links in a frugal Puppy? (Solved)

Post by tosim »

I've finally started using frugals and after lots of reading here on the forum,I couldn't find a direct (or even indirect) way to do what I'd like with the making of symbolic links. I'm setup with the 3 partitions on flash drive: sdb1 is the 300mg, sdb2 Frugals-several gbs with a few frugals, sdb3 Saved-several gbs. I'd like to make a directory within sdb3 called "SFS_PET", and place the sfs and pet files therein, for use by any of my frugals in sdb2.

Then, can (and HOW) do I make symbolic links to that directory? Also, where do I place the symbolic links? If all that can be done, it would sure save me all the work of installing same sfs' and pets to each frugal. Could I also place another directory, called "Apps" on sdb3, for the extra apps that I'd like to use on the frugals? I realize this thread may make me appear to be a newbie! Thank you, one and all, for any assistance with this.

Note: Ensure you have mounted the partition/directory in which appear to where your symbolic links point!

Last edited by tosim on Sat Jul 03, 2021 5:01 pm, edited 1 time in total.
dancytron
Posts: 757
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 552 times
Been thanked: 236 times

Re: Making Symbolic Links

Post by dancytron »

You can do it in Rox Filer by dragging and dropping and choosing "Link (relative)" instead of "copy".

Or at the command line using the "ln" command.

https://linuxize.com/post/how-to-create ... n-command/

User avatar
wiak
Posts: 4249
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 70 times
Been thanked: 1258 times
Contact:

Re: Making Symbolic Links

Post by wiak »

tosim wrote: Mon Feb 08, 2021 6:09 pm

I've finally started using frugals and after lots of reading here on the forum,I couldn't find a direct(or even indirect), way to do what I'd like to with the making of symbolic links.I'm setup with the 3 partitions on flash drive: sdb1 is the 300mg, sdb2 Frugals-several gbs with a few frugals, sdb3 Saved-several gbs. I'd like to make a directory within sdb3 called "SFS_PET", and place the sfs and pet files therein, for use by any of my frugals in sdb2.
Then, can (and HOW), I make symbolic links to that directory? Also, where do I place the symbolic links? If all that can be done, it would sure save me all the work of installing same sfs' and pets to each frugal. Could I also place another directory, called "Apps" on sdb3, for the extra apps that I'd like to use on the frugals? I realize this thread may make me appear to be a newbie! Thank you, one and all, for any assistance with this.

dotpets need to be installed, so you wouldn't, that I can imagine, be using symlinks for that case. SFS files don't need symlinks either - from Puppy you just locate the sfs wherever it is in your filesystem (just need to make sure the partition is mounted) and then right click and use sfs_load utility to load up the sfs. On subsequent boots I believe it will be loaded automatically. You can do similarly (i.e. sfs_load) from your other Pup frugal installs.

What you might use symlinks for would be for a case such as you untarred a copy of Firefox in some partition/directory somewhere (for example, in /mnt/home, which on Pup isn't in the save file/folder) and wanted to use that by any of your frugal installed distros. Then it's as dancytron suggests - though I'm not on Puppy so can't give exact example of making symlink to the Puppy desktop, but it is pretty simple to do.

wiak

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

tosim
Posts: 501
Joined: Thu Jul 23, 2020 1:13 pm
Has thanked: 950 times
Been thanked: 71 times

Re: How to make symbolic links in a frugal Puppy?

Post by tosim »

Thank you both for the replies.

tosim
Posts: 501
Joined: Thu Jul 23, 2020 1:13 pm
Has thanked: 950 times
Been thanked: 71 times

Re: How to make symbolic links in a frugal Puppy?

Post by tosim »

PLEASE-Where exactly do I place the symbolic link? Let's say I wish,on FossaPup64,frugal install on sdb1,with sdb2 used with a Save folder, make a symbolic link to /sda6/home/owner/Pictures? I've read all I can, and short of using the ln command, I'm
totally at point zero. I know there is a simple way, but whatever I try, does not get saved. Will somebody PLEASE show me the way? Thank you.

williwaw
Posts: 2038
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 182 times
Been thanked: 387 times

Re: Making Symbolic Links

Post by williwaw »

whatever I try, does not get saved.

it does not get saved or it is broken when you try to use it?
if your link is from one partition to another, then the partition with the original file needs to be mounted.

A more detailed example of what you are trying to do would help. are you linking from a sfs to a savefile?

the second case seems that you are linking to to? a directory with some pics?

tosim
Posts: 501
Joined: Thu Jul 23, 2020 1:13 pm
Has thanked: 950 times
Been thanked: 71 times

Re: How to make symbolic links in a frugal Puppy?

Post by tosim »

Williwaw-Thanks for the (very) quick reply. I understand re the mounting. And yes, I want to make that "Pictures" link(folder), in sda6 to SOMEWHERE??? in sdb1 or sdb2. Thanks again.

williwaw
Posts: 2038
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 182 times
Been thanked: 387 times

Re: How to make symbolic links in a frugal Puppy?

Post by williwaw »

open two rox windows. one with the pictures folder. one where you want the folder link to live.

drag folder to new location. choose link "relative" in the dialog window. if it does not work after a reboot, post a screenshot of the two windows.

Feek
Posts: 402
Joined: Sun Oct 18, 2020 8:48 am
Location: cze
Has thanked: 55 times
Been thanked: 90 times

Re: How to make symbolic links in a frugal Puppy?

Post by Feek »

tosim wrote: Thu Jul 01, 2021 7:05 pm

I want to make that "Pictures" link(folder), in sda6 to SOMEWHERE??? in sdb1 or sdb2.

tosim, you will not make the symlink in sdb1 or sdb2 directly. You will create it in running Puppy (the "new location" can be e.g. /root or other place you want in Puppy's file system).

Follow williwaw's suggestion and don't forget save session otherwise the symlink will not survive the reboot.

tosim
Posts: 501
Joined: Thu Jul 23, 2020 1:13 pm
Has thanked: 950 times
Been thanked: 71 times

Re: How to make symbolic links in a frugal Puppy?

Post by tosim »

Thank you both. Will try to get to it later, or tomorrow. Thanks again.

User avatar
mikewalsh
Moderator
Posts: 6347
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 876 times
Been thanked: 2071 times

Re: How to make symbolic links in a frugal Puppy?

Post by mikewalsh »

Feek wrote: Thu Jul 01, 2021 8:32 pm
tosim wrote: Thu Jul 01, 2021 7:05 pm

I want to make that "Pictures" link(folder), in sda6 to SOMEWHERE??? in sdb1 or sdb2.

tosim, you will not make the symlink in sdb1 or sdb2 directly. You will create it in running Puppy (the "new location" can be e.g. /root or other place you want in Puppy's file system).

Follow williwaw's suggestion and don't forget save session otherwise the symlink will not survive the reboot.

Depends if you're using a save-file or a save-folder. A save-folder, you can do it directly. I haven't run save-files for some time, so forget if you can mount the save-file, make the link, then unmount the save again. I don't remember if that survives, though I have a vague recollection that it does, IIRC.....

Mike. ;)

tosim
Posts: 501
Joined: Thu Jul 23, 2020 1:13 pm
Has thanked: 950 times
Been thanked: 71 times

Re: How to make symbolic links in a frugal Puppy?

Post by tosim »

Many, many THANKS to y'all who've offered your suggestions. AT LAST, I will be able to mark this SOLVED, because, this dummy (me), finally realized,
this morning, I needed to have mounted the partition to where the symbolic links point, in order for them to work. I've even placed a link on my desktop
to the ~/Links folder(which contains those symbolic links). THANKS AGAIN.

Feek
Posts: 402
Joined: Sun Oct 18, 2020 8:48 am
Location: cze
Has thanked: 55 times
Been thanked: 90 times

Re: How to make symbolic links in a frugal Puppy?

Post by Feek »

mikewalsh wrote: Fri Jul 02, 2021 11:39 pm
Feek wrote: Thu Jul 01, 2021 8:32 pm
tosim wrote: Thu Jul 01, 2021 7:05 pm

I want to make that "Pictures" link(folder), in sda6 to SOMEWHERE??? in sdb1 or sdb2.

tosim, you will not make the symlink in sdb1 or sdb2 directly. You will create it in running Puppy (the "new location" can be e.g. /root or other place you want in Puppy's file system).

Follow williwaw's suggestion and don't forget save session otherwise the symlink will not survive the reboot.

Depends if you're using a save-file or a save-folder. A save-folder, you can do it directly. I haven't run save-files for some time, so forget if you can mount the save-file, make the link, then unmount the save again. I don't remember if that survives, though I have a vague recollection that it does, IIRC.....

Mike. ;)

Mike, thanks for clarification. I didn't know that this way is possible too. :idea:

Post Reply

Return to “File Management”