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.
i'm installing qmail using the guide from qmailrocks.org, and i cant seem to run a the patch in step 2.
i'm a newbie in linux and i only know the REAL basic commands.. but i need to install qmail as one of the requirements in my class, so i'm following the guide from qmailrocks.org, since it seems to be very detailed.
ok, so i change the permission and run the command again.. and this time it showed a different result...
can't find file to patch at input line 4
perhaps you should have used the -p or --strip option?
the text leading up to this was:
skipping this file? [y]
3 out of 3 hunks ignored.
Then it just kept repeating, but changing the file..
i don't know if i should be happy or not ( this is making me feel really stupid!)
The message about patch being unable to find the source file suggests you are running patch at the wrong level of the QMail source tree. Basically, if you open up the patch file you will see paths to files in the QMail source tree. They are relative (as opposed to absolute) paths. According to my patch manpage, if you leave off the -p option, patch will just look for the file in the current directory, which is not what you want. If you're in the root of the QMail source tree, you probably want -p1 as the argument to patch (most patches are generated against the source of the tree). But try -p0 or -p1 just to be safe. Alternatively, when patch asks for for the location of the file to patch, you can tell it (the find command will come in useful here). Please consult man patch, particularly the -p option, for details. This can be somewhat confusing, so just relax and try to understand what's going on and how patch works. It sometimes takes me two or three tries to apply a patch until I get the level figured out (but one of -p0 or -p1 from the root of the QMail source should work).
The patch ought to have a .patch extension (this is the custom, at any rate) -- were you patching against this script file when you got the "can't find file to patch" error message? My guess is you're not giving it the patch file.
qmail_big_patches.script, (the script that i'm trying to execute) includes the following inside the script.
#So let's go... cd /usr/src/qmail/qmail-1.03
#Apply John Simpson's gigantic all-in-one qmail patch echo echo "Applying John Simpson's all in one qmail patch..."
patch < /downloads/qmailrocks/patches/qmail-1.03-jms1.5.patch
#Next, we will apply the forcetls patch echo echo "Applying Ryan Schlesinger's forcetls patch"
patch < /downloads/qmailrocks/patches/qmail-1.03-forcetls-20040703.patch
echo "All done!"
should i start over again?
if i just need to install qmail interface, do i really need to install the other additional qmail tools that comes with the instructions? things like q-trap, qms-analog and other things like that?
It looks like that file is a shell script that actually runs the patch command for you. So you just need to run the script and everything should work. It does try to cd to /usr/src/qmail/qmail-1.03 (see line 2, I hope that's just a formatting glitch and the cd is not commented out, if it is, you'll need to run patch from the qmail source directory) so you'll need to be sure that exists (or it may not matter, see previous note). You probably don't need to install all of these extras, but I'm not sure since I've never played with QMail. If you don't understand what they do or aren't sure, you might be better served just going on. You can always come back later and rebuild if something doesn't go quite right.
i quit using qmailrocks as a guide because i was losing hope.. i really need to install all of this by the end of the week. so basically, i need to have a running mail server in two days...
i decided to find another guide in the internet and i found life with qmail. i got a lot further in less than an hour than i ever did with qmailrocks.
now i have to configure qmail.. i cant understand the instructions so how do i do it?
do i really need multiple host names and virtual domains when its only a for a small LAN? it will only be used in a classroom.