Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Describe your file systems in /etc/fstab. All those entries will automatically be mounted by "boot -a", which runs at boot time, unless they explicitly have the "noauto" option. See fstab(5), mount(8).
In case you are very new, the last two are references to manual pages. Just type "man fstab" or "man mount". (They are in sections 5 (file formats) and 8 (administrative tools), respectively.)
Anomie is right. Assuming you need the Samba volume,
is all you need.
I don't have experience with automounters, but you might want to look at automount(8). It might be possible to automatically mount what you need, and get it unmouted automatically too, e.g., after 8 minutes of inactivity.
Your script will open an xterm, in which a shell will run, and you can do whatever you like. Only after you exit from that shell, the xterm itself will exit, and then mount will happen. Probably that's not what you want. What do you want to happen? What's the purpose of the xterm?
To make the mount happen in the xterm,
xterm -e "mount /filesrv; sleep 5"
The sleep command will give you a moment to see any error message. Otherwise, if there is a problem, the message disappears together with the xterm. (I'd avoid the xterm.) Once you know it works, you can take "; sleep 5" out.
What's the cursor option? Do you want to manipulate the mouse pointer in order to give the new window the keyboard focus? (A) The new xterm gets the focus anyway (at least in my setup, FC2). (B) Manipulating GUI stuff from a script is usually not necessary, and hardly ever desirable.