ubuntu bnet
Moderator/ica: Moderatori/ce
ubuntu bnet
ovako..problem je spajanje na bnet preko ubunte..vidia sam da ima tu na forumu tema i rjesenja o tom ali pise i da "2.kreirati fajl /etc/ppp/peears/MetroCARNet" :problem je kako kreirati taj fajl??? ako u peers folderu kliknem desnom tipkom create mije svjetlo sivo i nemoze se kliknut...ima ko kakvih uputa?
- Suko
- Site Admin
- Postovi: 16079
- Pridružen/a: 03 tra 2008, 18:09
- Spol: M
- OS: Mint 17 Cinnamon
- Lokacija: Svugdi me ima. Slavonija uglavnom.
Re: ubuntu bnet
Moraš biti root da bi mijenjao /etc foldere.
Otvori Nautilus sa
I onda možeš kreirati folder.
Otvori Nautilus sa
Kod: Označi sve
sudo nautilusRe: ubuntu bnet
kako bit root? sto nije da ubuntu nema root?
Re: ubuntu bnet
Dodas ispred naredbe sudo, znaci za primjergbegonja je napisao/la:kako bit root? sto nije da ubuntu nema root?
Kod: Označi sve
sudo nautilusKod: Označi sve
sudo gedit /etc/ppp/peears/MetroCARNetNije teško biti toliko nesrećan da bi čovek počeo da pije. Ljude treba odvikavati od nesreće, a ne od alkohola. Nesreća je veći porok.
Re: ubuntu bnet
1. Instalirao ovaj paket:
pptp-linux_1.7.0-2ubuntu2_i386.deb
2.kreirati fajl /etc/ppp/peears/bnetcarnet
U njemu napisati sljedece:
pty "pptp zg.xcarnet.xnet.hr --nolaunchpppd"
file /etc/ppp/options.pptp
remotename PPTP
#persist
#defaultroute
nodefaultroute
usepeerdns
#debug
name gbegonja@grad.hr
ipparam bnetcarnet
3. U fjalu /etc/ppp/options.pptp treba dodat znak ljestve "#" ispred require-mppe-128.
Ovo je moj options.pptp :
###############################################################################
# $Id: options.pptp,v 1.1 2005/02/18 01:40:23 quozl Exp $
#
# Sample PPTP PPP options file /etc/ppp/options.pptp
# Options used by PPP when a connection is made by a PPTP client.
# This file can be referred to by an /etc/ppp/peers file for the tunnel.
# Changes are effective on the next connection. See "man pppd".
#
# You are expected to change this file to suit your system. As
# packaged, it requires PPP 2.4.2 or later from http://ppp.samba.org/
# and the kernel MPPE module available from the CVS repository also on
# http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe.
###############################################################################
# Lock the port
lock
# Authentication
# We don't need the tunnel server to authenticate itself
noauth
# We won't do EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
refuse-eap
refuse-chap
refuse-mschap
# Compression
# Turn off compression protocols we know won't be used
nobsdcomp
nodeflate
# Encryption
# (There have been multiple versions of PPP with encryption support,
# choose with of the following sections you will use. Note that MPPE
# requires the use of MSCHAP-V2 during authentication)
# http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras
# ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o
# {{{
# Require MPPE 128-bit encryption
#require-mppe-128
# }}}
# http://polbox.com/h/hs001/ fork from PPP project by Jan Dubiec
# ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o
# {{{
# Require MPPE 128-bit encryption
#mppe required,stateless
# }}}
4. u fajlu /etc/ppp/pap-secrets napisati na kraju svoje korisnicko ime i lozinku ovako nekako:
gbegonja@grad.hr PPTP lozinka
5. kreirati fajl(skriptu) /etc/ppp/ip-up.d/rutiraj
Iz terminala pokrenuo naredbu: sudo chmod +x /etc/ppp/ip-up.d/rutiraj
U njoj napisao sljedece:
route del -host $5 gw 0.0.0.0 dev $1
route add -host $5 gw 127.0.0.1 dev eth0
route add default gw $4
route del default gw 127.0.0.1
6. kreirati fajl(skriptu) /etc/ppp/ip-down.d/vrati-staro
Iz terminala pokrenuti naredbu: sudo chmod +x /etc/ppp/ip-down.d/vrati-staro
U njoj napisao sljedece:
route del -host $5 gw 127.0.0.1 dev eth0
route add default gw 127.0.0.1
7. Iz terminala pokrenuo naredbu: sudo pon bnetcarnet
I izađe mi ovo:
/usr/sbin/pppd: In file /etc/ppp/peers/bnetcarnet: unrecognized option ' '
Problem????
pptp-linux_1.7.0-2ubuntu2_i386.deb
2.kreirati fajl /etc/ppp/peears/bnetcarnet
U njemu napisati sljedece:
pty "pptp zg.xcarnet.xnet.hr --nolaunchpppd"
file /etc/ppp/options.pptp
remotename PPTP
#persist
#defaultroute
nodefaultroute
usepeerdns
#debug
name gbegonja@grad.hr
ipparam bnetcarnet
3. U fjalu /etc/ppp/options.pptp treba dodat znak ljestve "#" ispred require-mppe-128.
Ovo je moj options.pptp :
###############################################################################
# $Id: options.pptp,v 1.1 2005/02/18 01:40:23 quozl Exp $
#
# Sample PPTP PPP options file /etc/ppp/options.pptp
# Options used by PPP when a connection is made by a PPTP client.
# This file can be referred to by an /etc/ppp/peers file for the tunnel.
# Changes are effective on the next connection. See "man pppd".
#
# You are expected to change this file to suit your system. As
# packaged, it requires PPP 2.4.2 or later from http://ppp.samba.org/
# and the kernel MPPE module available from the CVS repository also on
# http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe.
###############################################################################
# Lock the port
lock
# Authentication
# We don't need the tunnel server to authenticate itself
noauth
# We won't do EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
refuse-eap
refuse-chap
refuse-mschap
# Compression
# Turn off compression protocols we know won't be used
nobsdcomp
nodeflate
# Encryption
# (There have been multiple versions of PPP with encryption support,
# choose with of the following sections you will use. Note that MPPE
# requires the use of MSCHAP-V2 during authentication)
# http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras
# ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o
# {{{
# Require MPPE 128-bit encryption
#require-mppe-128
# }}}
# http://polbox.com/h/hs001/ fork from PPP project by Jan Dubiec
# ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o
# {{{
# Require MPPE 128-bit encryption
#mppe required,stateless
# }}}
4. u fajlu /etc/ppp/pap-secrets napisati na kraju svoje korisnicko ime i lozinku ovako nekako:
gbegonja@grad.hr PPTP lozinka
5. kreirati fajl(skriptu) /etc/ppp/ip-up.d/rutiraj
Iz terminala pokrenuo naredbu: sudo chmod +x /etc/ppp/ip-up.d/rutiraj
U njoj napisao sljedece:
route del -host $5 gw 0.0.0.0 dev $1
route add -host $5 gw 127.0.0.1 dev eth0
route add default gw $4
route del default gw 127.0.0.1
6. kreirati fajl(skriptu) /etc/ppp/ip-down.d/vrati-staro
Iz terminala pokrenuti naredbu: sudo chmod +x /etc/ppp/ip-down.d/vrati-staro
U njoj napisao sljedece:
route del -host $5 gw 127.0.0.1 dev eth0
route add default gw 127.0.0.1
7. Iz terminala pokrenuo naredbu: sudo pon bnetcarnet
I izađe mi ovo:
/usr/sbin/pppd: In file /etc/ppp/peers/bnetcarnet: unrecognized option ' '
Problem????