SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using the firewall script taken from online generation at "http://www.slackware.com/~alien/efg/".
I am getting the following error:
/etc/rc.d/rc.inet2: /etc/rc.d/rc.firewall: \
bin/sh^M: bad interpretor: No such file of \
directory
Why I am getting this error?
I have done chmod +x on this script as given in the beginnig of this file.
I think, that this is problem with "windows-like" end of line. Do you copy and paste it in windows?
Just delete that "^M" mark and the end of /bin/sh, and watch all you rules to delete this mark.
Since the firewall script is more than 25000 words, I am unable to post it due this restriction imposed at LQ.
I did check that ther were no ^M characters in the firewall content as seen on Slacware box. But still I will apply the equation to remove those if they were somehow invisible. I shall come back withthe result.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.