|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have done my first 'ln' to make for easy access to my /windows/Data-W/docs directory (ntfs, elsewhere on the disk). There seem to be a number of ways to make this link permanent-ish:
1. write a small script with the ln command in it 2. modify/create a udev script in /etc/init.d 3. something else related to the initial mapping of directories to partitions...??? I am unsure of the correct dir/file location to use in 1. Woulld it run if non-root user logs in? The udev route is daunting - new syntax, new pitfalls - although it seems the most 'professonal'. Reading http://www.reactivated.net/writing_u...s.html#builtin was interesting but I'm still not confident. This seems such a basic issue but no SuSE 10.3 solutions reward my searching. |
|
|||
|
You could place the command to start ln in the /etc/profile.local file. It should then run that command at login for every user.
Just create and open up the file as root - Get root access Code:
su Code:
touch /etc/profile.local Code:
gedit /etc/profile.local Code:
kate /etc/profile.local There are doubtlessly countless ways to start up a script in SUSE - Linux is dauntingly and endlessly configurable - but this is the way I would personally do it and which seems to be the most popular option. If /etc/profile.local doesn't work for you, /etc/profile certainly will, but could possibly be overwritten in the future. EDITL Might want to research /etc/initscript as well. |
|
|||
|
Say you have a directory called /export/mass/music and you want to see this in your home area.
Code:
cd Code:
ln -s /export/mass/music |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|