Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: personal directories on dsl, am I doin it right< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 05 2006,15:45 QUOTE

You are, of course, free to do what you like, but as I see it there's very little reason to boot into root unless your session will be solely for administrative tasks.  There are sudo and su commands for lending normal users temporary root power.
That said, use the boot option "dsl 2" to boot as root.
If your second drive is formatted with a linux filesystem, you can create a directory on that partition owned by dsl.staff.  This will allow you to save to that partition as dsl.

I don't know of any limitation in the number of icons that can be used.  I assume it would at least be limited by available memory and screen resolution.  I don't understand what you're asking in relation to the added directory.  Anything is possible, but i'd need a better picture of what you want to do before i try to help.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
lovdsl Offline





Group: Members
Posts: 359
Joined: Feb. 2006
Posted: Mar. 06 2006,02:13 QUOTE

thanks mikshaw..you are a wealth of valuable information to a newbie and it is much appreciated....regardless what may appear in text..I get a little excited..Yes I have recently discovered the sudo command and used it to create a shortcut in drawer to pppdial amoung others..
I am most interested in the dsl.staff directory for my  partition on the second drive as I accumulate a lot of notes and would like to save them directly to that partition..how is this done?  just make a directory called dsl.staff? ..will the directory show in the save dialog beaver opens when I click save? need some more on that.if you will.... with regard to the creation of directories inside dsl directories..likely a non issue just a little unfamiliar still and wondering about limitation....which brings to mind the file size limitations in beaver..I have a lot of gutenburg files that may be nice to add but wonder if there is a size to watch..I have this issue with several win freeware text readers and notepads.and sometimes the clipboard. thanks again
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 06 2006,03:35 QUOTE

To create a directory on any linux partition, which is writeable by dsl:

1) Become root.  In DSL, this can usually be done by opening up a terminal and typing "sudo su".
2) Mount the storage partition.  For the sake of this post, we'll call the partition hda2:
Code Sample
mount /dev/hda2

3) Create a directory on that partition:
Code Sample
mkdir /mnt/hda2/whatever_you_want

4) change ownership of that directory to dsl:
Code Sample
chown dsl.staff /mnt/hda2/whatever_you_want


At this point you can save anything you want as user dsl to /mnt/hda2/whatever_you_want.  If you happen to use a persistent directory on that partition, the partition will automatically be mounted.  Otherwise you will need to mount the partition when you boot, either manually or maybe by adding a mount command to /opt/bootlocal.sh

NOTE: if this is a Windows partition (fat), it probably won't work, since Windows doesn't know how to deal with *nix file permissions.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
lovdsl Offline





Group: Members
Posts: 359
Joined: Feb. 2006
Posted: Mar. 06 2006,07:21 QUOTE

ahh...chown dsl.staff..that's it..perfect..I can now save bever files to /mnt/hdc1/archive1...yes I have been mounting via the slit button for hdc1 for a few..to copy programs to a storage directory on that partition..how do I make a persistant directory so the partition will auto mount at boot....oh.. this is so excellent..thanks
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 06 2006,15:41 QUOTE

In most Linux distros you could simply modify /etc/fstab to have it mount automatically.  In these distros, the persistence of mountpoints would also give you the ability to make the mountpoint writeable by dsl. However, fstab and mountpoints are rebuilt each time you boot in DSL, so it would be complicated to do this.
One thing you could do is add a mount command to /opt/bootlocal.sh, if you are using backup/restore.  If not, you could add a sudo mount command to your persistent $HOME/.bash_profile, if you've decided to use persistent home. If you are using it, and it's also on hdc1, then the partition should already be mounted.  

You can also make a symlink in $HOME which points to /mnt/hdc1/archive1, for faster access to it:
Code Sample
ln -s /mnt/hdc1/archive1 /home/dsl/


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
12 replies since Mar. 04 2006,03:44 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: personal directories on dsl

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code