1) porteus on USB
2) when i boot, i wish that one folder is automatically also copied on desktop
3) this folder does not need to be at some special place on USB, it cam be in some werrz deep subfolder
Important is, that i have this folder on desktop later on every boot (boot copy2ram must be selected, coz i need speed)
why> i boot porteus on many computers and i do need some folder auto copied from same USB to desktop
THNX 4 help
[solved] copy 2 ram (copy 1 folder from USB to desktop)
-
- Black ninja
- Posts: 42
- Joined: 07 Jan 2013, 16:44
- Distribution: PORTEUS
- Location: slovenia
[solved] copy 2 ram (copy 1 folder from USB to desktop)
Last edited by testsforknowledge on 08 Mar 2013, 15:20, edited 1 time in total.
- rg66
- White ninja
- Posts: 9
- Joined: 21 Feb 2013, 20:49
- Distribution: Porteus 3.0 Xfce
- Location: Entebbe, Uganda
Re: copy 2 ram (copy 1 folder from USB to desktop)
This is probably best answered by someone with more experience but I'll give it a go anyway.
1. You could extract, as an example, the 0090-xfce.xzm and make a symlink in /root/Desktop to your folder on the usb drive and then re compress it. But, if your usb device is mnt/sdc1 on one comp it could be /mnt/sdd1 on another.
2. You could make a script that makes the symlink and put it in rootcopy in your porteus folder so the link is made at every boot. But, I think you would have the same /mnt issues. Although, someone with experience with scripts could possibly make this work.
3. Make a folder on your usb drive and access it through the file manager. This seems like the easiest way.
1. You could extract, as an example, the 0090-xfce.xzm and make a symlink in /root/Desktop to your folder on the usb drive and then re compress it. But, if your usb device is mnt/sdc1 on one comp it could be /mnt/sdd1 on another.
2. You could make a script that makes the symlink and put it in rootcopy in your porteus folder so the link is made at every boot. But, I think you would have the same /mnt issues. Although, someone with experience with scripts could possibly make this work.
3. Make a folder on your usb drive and access it through the file manager. This seems like the easiest way.
- Ahau
- King of Docs
- Posts: 1331
- Joined: 28 Dec 2010, 15:18
- Distribution: LXDE & Xfce 32/64-bit
- Location: USA
Re: copy 2 ram (copy 1 folder from USB to desktop)
rg66 is correct, and we have a tool to manage the linking of folders in the way I think you're after. It's called "magic folders". There's a howto doc here: http://www.porteus.org/component/conten ... lders.html
There's a wizard that sets up your magic folders, you can start it from Porteus Settings Centre. Just let us know if you run into any difficulties with it.
There's a wizard that sets up your magic folders, you can start it from Porteus Settings Centre. Just let us know if you run into any difficulties with it.
Please take a look at our online documentation, here. Suggestions are welcome!
-
- Black ninja
- Posts: 42
- Joined: 07 Jan 2013, 16:44
- Distribution: PORTEUS
- Location: slovenia
Re: copy 2 ram (copy 1 folder from USB to desktop)
still trying ... i have 1 folder on desktop. inside 1 pdf. i created on usb store.dat file in xcf file system. used magic folder and success linking. then asked if i wish to start recording or somewhat that it stores data to desktop. then i clicked yes. but on next boot, folder was not on desktop. i had also some errors last time, that shut down could not be done couse unmounting of usb was not possible. maybe it still recorded some data? do i need to stop this monitoring or recording?
- fanthom
- Moderator Team
- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: copy 2 ram (copy 1 folder from USB to desktop)
simplest solution:
create module containing your folder and move it to /porteus/modules
btw: i'll double check magic folders.
create module containing your folder and move it to /porteus/modules
Code: Select all
mkdir -p test/home/guest/Desktop
mv your_folder test/home/guest/Desktop
chown -R guest:guest /test/home/guest
dir2xzm test my_folder.xzm
Please add [Solved] to your thread title if the solution was found.
-
- Black ninja
- Posts: 42
- Joined: 07 Jan 2013, 16:44
- Distribution: PORTEUS
- Location: slovenia
Re: copy 2 ram (copy 1 folder from USB to desktop)
Fanthim, thank you. Success! But with one error:
mkdir -p test/home/guest/Desktop
mv your_folder test/home/guest/Desktop
chown -R guest:guest /test/home/guest <----------before test, without "/"
dir2xzm test my_folder.xzm
------
other test checked:
once you have XZM created, you can copy XZM to desktop,
extract so that you have folder on desktop,
add new files or replace if u need some,
convert back to xzm with right mouse click,
copy new XZM to porteus/modules and it works
thnx
mkdir -p test/home/guest/Desktop
mv your_folder test/home/guest/Desktop
chown -R guest:guest /test/home/guest <----------before test, without "/"
dir2xzm test my_folder.xzm
------
other test checked:
once you have XZM created, you can copy XZM to desktop,
extract so that you have folder on desktop,
add new files or replace if u need some,
convert back to xzm with right mouse click,
copy new XZM to porteus/modules and it works

thnx
-
- Black ninja
- Posts: 42
- Joined: 07 Jan 2013, 16:44
- Distribution: PORTEUS
- Location: slovenia
Re: copy 2 ram (copy 1 folder from USB to desktop)
Fanthom, Fanthom, i misstyped ... 
