LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-13-2005, 04:37 AM   #1
eranb2
Member
 
Registered: Dec 2004
Location: israel
Distribution: centos
Posts: 41

Rep: Reputation: 15
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
 
Old 02-13-2005, 05:48 AM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
Hmm may be try as follows:

iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
 
Old 02-13-2005, 04:45 PM   #3
dimi
Member
 
Registered: May 2003
Location: Sydney, Australia
Distribution: Debian
Posts: 67

Rep: Reputation: 15
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
 
Old 02-14-2005, 08:27 AM   #4
eranb2
Member
 
Registered: Dec 2004
Location: israel
Distribution: centos
Posts: 41

Original Poster
Rep: Reputation: 15
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
 
Old 02-14-2005, 03:31 PM   #5
dimi
Member
 
Registered: May 2003
Location: Sydney, Australia
Distribution: Debian
Posts: 67

Rep: Reputation: 15
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
 
Old 02-15-2005, 06:33 AM   #6
eranb2
Member
 
Registered: Dec 2004
Location: israel
Distribution: centos
Posts: 41

Original Poster
Rep: Reputation: 15
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.
 
Old 02-15-2005, 09:40 AM   #7
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,560

Rep: Reputation: 208Reputation: 208Reputation: 208
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.
 
  


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
Debian Sarge 3.1 brisde Linux - Hardware 3 08-31-2005 02:45 PM
Debian sarge phoenix_wolf Linux - Newbie 4 12-05-2004 03:42 PM
DEBIAN SARGE :: now what? renderseven Debian 2 11-16-2004 11:24 PM
Debian, Sarge Little Dump Linux - General 1 09-29-2004 01:32 AM
What's with debian SARGE wesleywest Debian 18 09-04-2004 07:03 PM

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

All times are GMT -5. The time now is 06:43 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