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.
Hi. I´m a *somewhat* newbie, having run linux for a grand total of 2 weeks now. I have two current questions:
1. I start up Gftp, put in my site, log on, and everything´s good. However, should I try to edit a file, everything is read only. The same way, if I try to go up a directory by click ¨..¨ in the directory list, I get the error message ¨Operation not permitted¨ How do I fix this?
2. Every time I restart my PC I have to log in as root to remount my Windows partition. This involves editing fstab ( add ¨/dev/hda5 /media/win_d vfat blah blah¨), making the directory /media/win, and mounting the drive. It´s getting annoying.
Also I should mention because of this I´ve been using root as my main login.
Now, as far as I know, FTP is meant for transferring data, not editing them on the fly.. So, cant you just download the file, make the modifications and transfer it back?
The directory up thing is probably a problem in the server's configuration. Perhaps you dont have access to the parent directory. Have you tried cd:ing into a directory, and then coming back with ..?
Onto the partition thing. Do you mean the mountpoint gets deleted, and the fstab entry revoked upon every boot? Can even RH be that odd I wonder.. Now, one could be doing something like this, if this realy is the case.
mkdir -p /media/win_d
grep -iv "hda5" /etc/fstab > /tmp/fstab # to make _absolutely_ sure we dont get multiple lines
echo "/dev/hda5 /media/win_d vfat rw,umask=0000,exec 1 0" >> /tmp/fstab
mv /tmp/fstab /etc/fstab
mount /media/win_d && echo "Mounted succesfully"
This is a shellscript that will automate the process you just described. Just enter this in an editor, and save it under /sbin/mount_win.sh
Now, when you boot up your computer, you log in as a normal user and fire up a terminal. Type:
su -c "/sbin/mount_win.sh"
# <enter your root password>
This will run the script as root, mounting the partition so that it is usable also as your user.
Now, this is a bubblegum solution, but atleast you wont have to use root as your user, that is _really_ insecure and not advisable. I find it very strange that RH would rewrite the fstab upon boot, but if that truly is the case, this will make your life easier and more secure. Let me know how it goes.. (:
Distribution: SuSE 9.3 Pro / Slackware 10.1 / WBEL 3
Just a thought that you might want to check. When editing the fstab file are you using Vim? If so, after making your modifications are you using :wq to save your changes and exit? If you go back in after saving it and your modifications are gone, try using :wq! The ! will force linux to make the change to the file. The only time I've ever really see Linux disregard a change is when you try modifying a read-only file, or a file you don't have proper access to.
Like I said this is totally a n00b thing to check, but at least it eliminates the possiblity of overlooking the obvious.
Ok, rather than beat the dead horse with a new thread I'm bringing this thread back up.
The problem with mounting the HD is fixed. No problem there, just needed a more mainstream route for editing fstab.
However, I am still not capable of a decent FTP session. In GFTP, I can connect, upload, and download, but I can not go up directories since GFTP uses relative directories instead of absolute ones, IE, using /dir/dir2/.. to go up a directory instead of just going to /dir/. Also, when I try to edit a file, I can open it, edit it, save it, and then close gedit and watch gftp do absolutely nothing.
I installed KBear, and it won't even connect to an FTP server.
I Installed IglooFTP (The static free version) and it gives me this error:
"IglooFTP: symbol lookup error: /usr/lib/libgdk-1.2.so.0: undefined symbol: XList InputDevices"
Are there any more free FTP programs out there, or is there any way to fix Kbear, Gftp, or IglooFTP?
I've been doing IT for some time now. "On the fly" editing is a very necessary thing for me. My local virtual server is different from my Web Site's server, and I usually end up making some on the fly adjustments as necessary.
Anyhoo, I've been trying unsuccessfully to figure this out, with no luck, naturally. So I'm still screwed.
Well, I gotta admit that sometimes that feature would be nifty.. The thing is, most linux ftp clients suck.. bigtime.. There is no development in them because ftp is allready so good for the basic purpose ftp is for, transferring with high rates. ssh, scp and sftp are the ones meant for more "interactive" usage.. I myself allways make the small adjustments over ssh, directly on the server. You could allways use rsync to replace only the changed parts, but it would still be file syncing, not editing a file over ftp.
On the directory issue.. Im running proftpd and the cd .. works fine.. You still havnt answered a few questions about the problem. If you make a ftp connection to for eg user@site:/home/user/ and then try to cd .. you cannot, correct? Whatabout if you first cd to a directory allready existing there, and then cd back up with cd ..? Does this work / fail / fail with the same error? Do you have enough access rights to the directories involved? Does this happen with just one server, or multiple? Can you accomplish the cd .. with normal ftp clients like ftp or ncftp? I still think the problem is with the ftpd itself, go ahead and try the same thing at ftp.kernel.org
Its been a long time, but incase you have the subscription still on, ive stumbled upon a solution.. (; A fto client kalled kpad does exactly what youre looking for: direct working via ftp on files.. I hope this helps incase you didnt find a free solution: http://patriot.net/~gary/
Google loves me. =) I decided to take another shot at figuring out how to take care of this. Lo and behold, my thread is on Google!
I've downloaded Kpad and am now trying very hard to figure out how to compile it.
Alternatively, according to my sources If the text editor isn't run on the foreground, GFTP won't detect it exiting. So, I could also figure out how to make gedit run as a foreground only application. That could work, too.