LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-16-2005, 10:28 AM   #1
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Rep: Reputation: 15
Lightbulb VPN from linux ( pptpconfig mppe)


I try to connect on a vpn server.. from pptpconfig .
and i get the following error:
'Fatal error: php-gtk: Could not open display in /usr/bin/pptpconfig.php on line31 '

I think it needs me to login as root ..
with 'su' i get the same problem..
and kde doesnt let me login as root ( 'Root log in not allowed')..
Any ideas????

Last edited by mfrangos79; 11-01-2005 at 08:33 PM.
 
Old 10-16-2005, 12:46 PM   #2
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Configure pptp again.

Code:
slackerlx@SuSE:~> su
Password:
SuSE:/home/slackerlx # pptp-command
1.) start
2.) stop
3.) setup
4.) quit
What task would you like to do?:
SuSE:/home/slackerlx #
 
Old 10-16-2005, 07:44 PM   #3
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
the only commands i have for pptp are :
pptp
pptpconfig and
pptpconfig.php ..

i cannot run any .

if i am not root and try pptpconfiq.php then i get a GUI ..but still the error
'Fatal error: php-gtk: Could not open display in /usr/bin/pptpconfig.php on line31 '
appears


(i use debian ,)

Any ideas ??
thks

Last edited by mfrangos79; 10-17-2005 at 07:38 PM.
 
Old 10-16-2005, 07:54 PM   #4
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
To run pptp-command you need pptp and pppoe packages installed. Install them fresh from Etch repositories
 
Old 10-17-2005, 07:37 PM   #5
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
Exclamation

I have the newst version of both pptp and ppoe..
but there is not such a thing as ' pptp-command ...
HELP!

ALSO: when i try pptpconfig.php without being su .. i get the following
'Warning: fopen(/etc/pptpconfig/lock): failed to open stream: Permission denied in /usr/bin/pptpconfig.php on line 238'

Last edited by mfrangos79; 10-17-2005 at 07:40 PM.
 
Old 11-01-2005, 08:25 PM   #6
mfrangos79
Member
 
Registered: Jun 2005
Posts: 53

Original Poster
Rep: Reputation: 15
Lightbulb HOW TO VPN FORM SUSE and DEBIAN

After all this time I figured out how to do this and i share it with you .

A) If you use SUSE the free version of suse 10.. has the mppe module installed on the kernel...
Open a shell and try :
Code:
xhost +
su
pptpconfig
and give a name eg. VPN..the right address of the server ..THE PASSWORD AND USERNAME should be given at this time. ALSO for routing for me it works if i click on ALL TO CHANNEL.

B) FOR DEBIAN :
The following can be found in
http://www.chiark.greenend.org.uk/~o...tp-debian.html
(I just added the codes)

"Build the PPP MPPE kernel module since DEBIAN doesnt have it by default:
Now we need to build a kernel module to do MPPE data encryption. A kernel patch is available in Debian unstable (sarge) in the kernel-patch-mppe package. Install that package.
Code:
apt-get install kernel-patch-mppe
It'll create some stuff in /usr/src/kernel-patches. Change directory to the top level of a kernel build tree
Code:
cd /usr/src/kernel-source-'version'
(for me version is : 2.6.8) and you should be able to apply the MPPE patch
Code:
/usr/src/kernel-patches/all/apply/mppe
Not quite there yet, though. Edit include/linux/ppp-comp.h
Code:
vim /usr/include/linux/ppp-comp.h
and search for CCP_MAX_OPTION_LENGTH. Setting it to 128 will avoid problems with data encryption later.
(If you don't know how to use vim ... search it on the internet ... but briefly Press 'i' to be able to write in the file... DONT USE MOUSE ..use arrows.. then after you finish the changes press the Esc button then ':' and 'wq' })
Now make modules and make modules_install to put your new modules in place.
Code:
make modules make modules_install
I just modprobe the thing in by hand.
Code:
modprobe   (the new modules)
{If you do kernel autoloading of modules you probably want to define an alias in /etc/modutils/aliases:
alias ppp-compress-18 ppp_mppe and run /sbin/update-modules. }"

Then do as in SUSE..part A)

Last edited by mfrangos79; 11-01-2005 at 08:31 PM.
 
Old 12-28-2005, 09:58 PM   #7
freealx
LQ Newbie
 
Registered: Mar 2005
Location: Montreal
Distribution: Slackware 11
Posts: 10

Rep: Reputation: 0
pptp

Hi man

I just prepared for my notebook this combination of SlackPacks:
Quote:
MPPE Patch
(from http://mppe-mppc.alphacron.de/ they arent ready yet, so I had builded myself)
linux-2.6.14.4-mppe-mppc-1.3.patch.gz

The client
pptp-1.7.0-i486-2stb.tgz

Configuration for console
pptp-extras-1.5.0.tar.gz
pptpconfig-20040722.tar.gz

Configuration/management for KDE
(without PHP, without GTK and at last without so bugy php-gtk dist)
kvpnc-0.8.2.1-i386-1.tgz (there was several mistakes but nomore)
libgcrypt-1.2.2-i386-1.tgz
libgpg-error-1.1-i386-1.tgz
Everything working nice, but you have Debian. So, I can send you kvpnc-0.8.2.1.tar.bz2 with corrections
and youŽll compile šet voilaš

Alex (icq 4432515)
 
  


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 On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration