Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
btw, I seem to remember you regretted that Linux doesn't have more Graphical apps to assist in tasks like this one. If you had installed Fedora instead of Debian, that's precisely what you would have had to set up NFS.. Fedora is just far more graphical on the whole.
The 192.168.0.0 address is just an example; replace with the actual address of your client computer. The address is followed by a series of options: rw means the client can read and write, sync concerns data integrity (async is faster but can lead to data loss), no_root_squash means that root on the client computer can access the share too (root_squash means he can't)).
Now start the required services on the server by using these commands:
It might sound funny but I only have one computer... what I want to achieve is to "share" a folder (like in windows) under a chosen "name" (i right clicked the folder to share it and I got the message regarding NFS and SAMBA). So what will then be the server and what the client if I only have one computer... sounds confusing to me...
Hehehe, it's been a while since I last used Windows so I haven't got a clue what you are talking about. Let me get this straight: you want to make a directory called music; then you want that directory to "contain" all your music files, even those which are in a different directory. Is that it?
NFS and Samba, btw, are used on networks. You shouldn't need them if you have only one computer.
when I use windows my computer has a name (say John) and I can "share" a folder under a chosen name (say Jane). Then I can access any file in that folder by the path //John/Jane/filename. This way I can always access a specific file by that path (//John/Jane/filename) even if later I decide to move the folder in any another location (as long as the "share" stays the same). I thought that I can do the same in Linux (share any folder by a chosen name and then access by the path).. Or maybe there is an easier way ?
Oh yes, now I remember. I did use that on a couple of occasions but I wasn't aware one could move folders from the share to a different location.
Well, I'm thinking hard but I just can't seem to find a Linux equivalent. I think the closest alternative is to use symlinks. Here's an example:
is a directory that contains all artist names starting with an A. You want the directory to be accessible from elsewhere, for example from your home directory. You would do this:
ln -s /music/A/ /home/stefan/
That would create a symbolic A folder in your home directory: the contents are still where they were originally but they can now be accessed both from your home directory and the original folder; if you click on the link in your home dir, you see the files that are actually under /music/A.
Or if you have a folder in your home directory (say /home/stefan/B/) that you want to add to /music:
ln -s /home/stefan/B/ /music/
If you then do
you will see a list of the files that are actually in your home/stefan/B directory.
This may seem a bit confusing at first but it's really quite easy.
Thanks for the tip.. I already tried the symlinks and it works good (in graphical mode doesn't work on ntfs volume but as long as it works as command line it is ok). By the way... SAMBA works now but I don't need it (-: for now...
As I understand it, he wants to able to place his files about anywhere, scattered all over the pc - and yet be able to access them from a single path. Using a share partition wouldn't be helpful in that case.