LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   new to debian sarge need help (https://www.linuxquestions.org/questions/debian-26/new-to-debian-sarge-need-help-289577/)

eranb2 02-13-2005 04:37 AM

new to debian sarge need help
 
Hi

finally i decided to finish with redhat and go to sarge.
installation went very nice , it was with net install not direct to internet modem
but through my second centos router (net) gave ip address and gateway and
all was amazingly ok.

but i now wont to stop iptables , got to /etc/init.d and nothing there.
find / -name iptables gives
/sbin/iptables-save
/sbin/iptables-restore
/sbin/iptables

but no stop script. how can i do it?

another question, how to open kde ?
when i startx i see some old x not like kde in centos machine.



Thank
Eran

nixcraft 02-13-2005 05:48 AM

Hmm may be try as follows:

iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD

dimi 02-13-2005 04:45 PM

it should be in /etc/init.d/ as iptables

You should be able to do iptable stop, clear, halt and many more commands. If u set to iptables clear, this will remove all rules and set default policy to ACCEPT.

To start KDE, set ur default desktop manager to KDE on the login manager. On most of the login managers, actually all the longin managers i've used gives u the option to choose ur preferred desktop manager.

Good luck
D

eranb2 02-14-2005 08:27 AM

Thanks for replying.

there is now iptables in /etc/init.d like redhat.

how can I connect sarge to internet with cables modem?
the script i have works good with redhat , any reason?

Eran

dimi 02-14-2005 03:31 PM

how do u connect to the cable modem? is it via ethernet port or usb port? make sure u machine recognise the modem, secondly check the ip address, gateway and the rest are given correctly to access ur cable modem. If i'm not mistaken cable modem works as a router, so u have to configure the LAN on the modem and then configure the machines connecting to the modem accordingly. Also make sure iptable rules are set to ACCEPT.

If u can post the script u use to connect that might be quite helpful too.

D

eranb2 02-15-2005 06:33 AM

this script works perfect with redhat9/centos



#!/bin/bash


USERNAME="$1"

IFACE="$2"

PPTPS=cable.netvision.net.il


ifdown $IFACE

ifup $IFACE


NVGW=$(host $PPTPS | cut -d" " -f4 | cut -f3 | tail -1)

CABLEGW=$(ip r l | grep default | cut -d" " -f3)


route add -host $NVGW gw $CABLEGW dev $IFACE


./pptp $NVGW debug user $USERNAME mtu 1380 mru 1380 defaultroute persist nobsdcomp usepeerdns

sleep 7


NEWGW=$(ifconfig ppp0 | grep inet | cut -d":" -f3 | tail -1 | cut -d" " -f1)


route add default gw $NEWGW
route del default gw $CABLEGW


echo nameserver 194.90.1.5 > /etc/resolv.conf



-----------------------------------------------------------------------------------------------------


pptp client came with the script and on the same directory as well.
its a mototrola cable modem.

when i ifconfig i dont see ppp0 , also a massage say so.

mark_alfred 02-15-2005 09:40 AM

KDE
 
For KDE, I suggest having an initial welcome screen such as gdm (gnome display manager) or kdm present. This way, you will not need to "startx", and the welcome screen will give all sorts of options such as either gnome or kde. To install, type "apt-get install gdm", then reboot.


All times are GMT -5. The time now is 03:07 PM.