LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-14-2005, 06:33 PM   #1
Eal
LQ Newbie
 
Registered: May 2005
Posts: 17

Rep: Reputation: 0
PPP Server


A few months ago my friend helped me install Debian. I know Very little about Linux Operating system. I have a friend who does not have an Internet connection and someone mentioned I could install PPP server on my Debian box and give access to my friend to dial in. I also have read about it and am excited to get it working. When I tried to follow the steps from howto ppp, I ran pppd and got the following error. Answer to both of the option suggested in the error came up with Negative reply. I have a feeling that I need to upgrade my kernel, but not sure which and how. Can someone please help?? Thanks!

pppd: This system lacks kernel support for PPP. This could be because
the PPP kernel module could not be loaded, or because PPP was not
included in the kernel configuration. If PPP was included as a
module, try `/sbin/modprobe -v ppp'. If that fails, check that
ppp.o exists in /lib/modules/`uname -r`/net.
See README.linux file in the ppp distribution for more details.
 
Old 05-15-2005, 04:32 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
This howto on setting up a ppp dialin server for Debian will help you get this going.

In order to complete the job you need to understand that the above merely allows the client to connect to your system. You will note that the client is assigned an IP address and therefore would be networked to you. In order to allow the client access to the internet you need then configure ip-masquerading. A very good guide on this and basic firewalling and NAT can be found here . You can also get a combined package in the form of MonMotha's firewall which you can find here . If you want details of how to set this up let me know as this what I use.

Last edited by TigerOC; 05-15-2005 at 04:51 AM.
 
Old 05-15-2005, 09:16 AM   #3
jamuz
Member
 
Registered: Jun 2004
Location: MD USA
Distribution: Kubuntu 18.04.3, Mint 18.3 KDE
Posts: 90

Rep: Reputation: 15
Eal, what kind of connection to the internet do you have?

If you mean to let your friend dial in to your box while it is dialed in to your ISP you will need two modems and two telephone lines.
 
Old 05-15-2005, 01:05 PM   #4
Eal
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Than you for repling. I have ADSL which means I dont dial in. Therefore, I should not need two modems, and I think my one modem is installed correct in Linux.
 
Old 05-15-2005, 01:37 PM   #5
Eal
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by TigerOC
This howto on setting up a ppp dialin server for Debian will help you get this going.

In order to complete the job you need to understand that the above merely allows the client to connect to your system. You will note that the client is assigned an IP address and therefore would be networked to you. In order to allow the client access to the internet you need then configure ip-masquerading. A very good guide on this and basic firewalling and NAT can be found here . You can also get a combined package in the form of MonMotha's firewall which you can find here . If you want details of how to set this up let me know as this what I use.
Thank you for your detailed reply and interest in helping figure this out for me. My friend had suggested to use the same howto as you mentioned and I had gone there and started to follow (that was before I came to this forum). However, at the very begining I got stuck when I tried this commamnd: whereis pppd: It came up with the message I initially posted....

Then I went and installed pppd anyways, and now it gives me this location to where is my ppp installed:

pppd: /usr/sbin/pppd /usr/lib/pppd /usr/share/man/man8/pppd.8.gz

Then I ran the command: whereis mgetty and it comes up with mgetty:

Which means it is not installed. So I ran the following command and got the following error message and I do not know where to go from here

sid:/home# apt-get install mgetty
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
mgetty-fax
The following NEW packages will be installed:
mgetty
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 169kB of archives.
After unpacking 397kB of additional disk space will be used.
Err http://mirrors.kernel.org sid/main mgetty 1.1.31-1
404 Not Found [IP: 204.152.191.7 80]
Failed to fetch http://mirrors.kernel.org/debian/poo....31-1_i386.deb 404 Not Found [IP: 204.152.191.7 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Last edited by Eal; 05-15-2005 at 01:39 PM.
 
Old 05-16-2005, 06:10 AM   #6
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
It looks like your apt may not be correctly setup. A second comment is that if you are in fact using sid (unstable) as newbie you may be in for a hard time. A lot of packages in sid are experimental and liable to have bugs. An experienced user may be able to work around this but a newbie won't. The lines in your /etc/apt/sources.list should look something like;

deb http://ftp.uk.debian.org/debian/ sarge main non-free contrib
deb-src http://ftp.uk.debian.org/debian/ sarge main non-free contrib

In the above if you intend using sid then change sarge to sid and change the country code "uk" to your own. Run apt-get update first then apt-get <package_name>
 
Old 05-16-2005, 11:09 PM   #7
Eal
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for your reply. I totally agree with you that sid is unstable. Actually my friend is good at Unix and he installed it on my machine the day after it was released. I did not know at that time that I will run into issues like this and now I do not have access to my friend, that is why I am stuck.

Could I just change the distribution from sid to say sarge easily? is it something you would recommend?

I tried to do as you had suggested and here is the detail of that.

New sources.list

deb http://ftp.ca.debian.org/debian/ sid main non-free contrib
deb-src http://ftp.ca.debian.org/debian/ sid main non-free contribdeb http://mi

deb ftp://mirrors.kernel.org/debian/ sid main non-free contrib
deb-src ftp://mirrors.kernel.org/debian/ sid main non-free contrib

#deb http://http.us.debian.org/debian/ sid main non-free contrib
#deb-src http://http.us.debian.org/debian/ sid main contrib non-free



Old sources.list

deb http://mirrors.kernel.org/debian/ sid main
deb-src http://mirrors.kernel.org/debian/ sid main

deb http://non-us.debian.org/ sid/non-US main contrib non-free
deb-src http://non-us.debian.org/ sid/non-US main contrib non-free

#deb http://http.us.debian.org/debian/ sid main non-free contrib
#deb-src http://http.us.debian.org/debian/ sid main contrib non-free

Then I tried to run the command: apt-get mgetty and ran into this error:

sid:/etc/apt# apt-get install mgetty
Reading Package Lists... Done
Building Dependency Tree... Done
W: Couldn't stat source package list http://ftp.ca.debian.org sid/main Packages(/var/lib/apt/lists/ftp.ca.debian.org_debian_dists_sid_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.ca.debian.org sid/non-free Packages (/var/lib/apt/lists/ftp.ca.debian.org_debian_dists_sid_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.ca.debian.org sid/contrib Packages (/var/lib/apt/lists/ftp.ca.debian.org_debian_dists_sid_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.ca.debian.org sid/main Packages(/var/lib/apt/lists/ftp.ca.debian.org_debian_dists_sid_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.ca.debian.org sid/non-free Packages (/var/lib/apt/lists/ftp.ca.debian.org_debian_dists_sid_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.ca.debian.org sid/contrib Packages (/var/lib/apt/lists/ftp.ca.debian.org_debian_dists_sid_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package mgetty

Then I tried to update the apt-get, and ran into these errors, it appears to me that I did not change the sources.list file properly?

sid:/etc/apt# apt-get update
Hit http://non-us.debian.org sid/non-US/main Packages
Hit http://non-us.debian.org sid/non-US/main Release
Hit http://non-us.debian.org sid/non-US/contrib Packages
Hit http://non-us.debian.org sid/non-US/contrib Release
Hit http://non-us.debian.org sid/non-US/non-free Packages
Hit http://non-us.debian.org sid/non-US/non-free Release
Hit http://non-us.debian.org sid/non-US/main Sources
Hit http://non-us.debian.org sid/non-US/main Release
Hit http://non-us.debian.org sid/non-US/contrib Sources
Hit http://non-us.debian.org sid/non-US/contrib Release
Hit http://non-us.debian.org sid/non-US/non-free Sources
Hit http://non-us.debian.org sid/non-US/non-free Release
Get:1 http://ftp.ca.debian.org sid/main Packages [3545kB]
Get:2 http://ftp.ca.debian.org sid/main Release [82B]
Get:3 http://ftp.ca.debian.org sid/non-free Packages [67.9kB]
Get:4 http://ftp.ca.debian.org sid/non-free Release [86B]
Get:5 http://ftp.ca.debian.org sid/contrib Packages [70.1kB]
Get:6 http://ftp.ca.debian.org sid/contrib Release [85B]
Get:7 http://ftp.ca.debian.org sid/main Sources [1404kB]
Get:8 http://ftp.ca.debian.org sid/main Release [84B]
Get:9 http://ftp.ca.debian.org sid/non-free Sources [26.8kB]
Get:10 http://ftp.ca.debian.org sid/non-free Release [88B]
Err http://ftp.ca.debian.org sid/contribdeb Sources
404 Not Found [IP: 208.185.25.35 80]
Ign http://ftp.ca.debian.org sid/contribdeb Release
Err http://ftp.ca.debian.org sid/http://mirrors.kernel.org/debian Sources
404 Not Found [IP: 208.185.25.35 80]
Ign http://ftp.ca.debian.org sid/http://mirrors.kernel.org/debian Release
Err http://ftp.ca.debian.org sid/sid Sources
404 Not Found [IP: 208.185.25.35 80]
Ign http://ftp.ca.debian.org sid/sid Release
Get:11 http://ftp.ca.debian.org sid/main Sources [1404kB]
Get:12 http://ftp.ca.debian.org sid/main Release [84B]
99% [11 Sources gzip 0] 150kB/s 0s
gzip: stdin: Resource temporarily unavailable
Err http://ftp.ca.debian.org sid/main Sources
Could not open file /var/lib/apt/lists/partial/ftp.ca.debian.org_debian_dists_sid_main_source_Sources - open (2 No such file or directory)
Fetched 5114kB in 38s (134kB/s)
Failed to fetch http://ftp.ca.debian.org/debian/dist...rce/Sources.gz 404 Not Found [IP: 208.185.25.35 80]
Failed to fetch http://ftp.ca.debian.org/debian/dist...rce/Sources.gz 404 Not Found [IP: 208.185.25.35 80]
Failed to fetch http://ftp.ca.debian.org/debian/dist...rce/Sources.gz 404 Not Found [IP: 208.185.25.35 80]
Failed to fetch http://ftp.ca.debian.org/debian/dist...rce/Sources.gz Could not open file /var/lib/apt/lists/partial/ftp.ca.debian.org_debian_dists_sid_main_source_Sources - open (2 No such file or directory)
Reading Package Lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
 
Old 05-17-2005, 06:45 AM   #8
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Down grading is not recommended. If you want/wish to go to testing (sarge until the end of May) then you would need to re-install. I suggest the netinstall verison
There does not appear to be a Canadian Debian repository and therefore deb http://ftp.ca will not work but you can find the mirrors here . You can set one of these in your sources.list then try again.
 
Old 05-19-2005, 02:22 AM   #9
Eal
LQ Newbie
 
Registered: May 2005
Posts: 17

Original Poster
Rep: Reputation: 0
I was able to sucessfully install the server, however, I do not know if it does actually work!! I will try that soon and post here. Thanks for all your help.

Last edited by Eal; 05-19-2005 at 03:01 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to link linux ppp client to windows ppp server? cyz Linux - Networking 2 12-11-2008 06:01 AM
PPP Server d00msweek Linux - Newbie 1 06-27-2004 04:46 AM
PPP Server d00msweek Slackware 1 06-27-2004 02:10 AM
ppp server problems chankunchan Linux - Networking 0 03-10-2004 09:16 AM
PPP server aaa General 4 09-27-2003 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration