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. |
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. |
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. |
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.
|
Quote:
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 :confused: 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? |
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> |
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. |
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. |
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.
|
All times are GMT -5. The time now is 07:10 PM. |