Subject: new newbie questions
To: NetBSD -- Help <netbsd-help@netbsd.org>
From: =?Windows-1252?Q?Vir=E1gh_Barnab=E1s?= <bhs@ludens.elte.hu>
List: netbsd-help
Date: 11/06/2002 20:06:13
1.) I have a Siemens XpressLink UTP ADSL modem, connected to my /dev/rtk0
drive which is configured to be 192.168.1.40. I also have /dev/ne2 which is
192.168.0.2 (both with netmask 255.255.255.0).

- How to get the DNS server address from the ISP?
- How to make NetBSD to use a specific DNS server (not sending packets to
0.0.0.0)?
- How to disable IPv6 functions?
- Why is it, that I can not brows the net? Only a very few sites come in...
lynx, dillo, conqueror just get's in touch with server, and doesn't get any
HTTP data. Also SSH, FTP, TELNET connections can be estabilished, but after
a few kbytes, the connection breaks down. btw... I use ADSL flawlessly under
Win2000... Ping works, DNS works, just datas can not be transfered.. :(
- How to set up NetBSD to act as a gateway between my intranet (/dev/ne2)
and internet (/dev/rtk0 -> /dev/pppoe0)?

2.) How to set up NetBSD to shut down realy! To turn computer off? I know,
with the command "halt -p", or "shutdown -p now", but the /dev/apm device
can not be used... as you can see in my rc.conf, I have enabled to load
"apmd". But it print's out, that can not open that device... nor
/dev/apmctl... I have Abit KX7-333 Motherboard.

3.) Can NetBSD be suspended and/or hibernated anyway?

4.) Is there a good multi-layer-enabled + vektor enabled image editor for
NetBSD, like Paint Shop Pro for win, or at least like Photoshop?
5.) Is there a good HTML/PHP code editor for NetBSD, like Macromedia's
HomeSite?

besides these difficulties... I like this new OS! :)

--------------------
I bring up a new /dev/pppoe0 drive with the following script:
-- begin --
#!/bin/sh
ifconfig rtk0 up
ifconfig pppoe0 create
pppoectl -e rtk0 pppoe0
pppoectl pppoe0 myauthproto=pap myauthname=<userid> myauthsecret=<password>
hisauthproto=none
ifconfig pppoe0 0.0.0.0 0.0.0.1 up
echo Waiting to connect...
sleep 6
echo Connected.
route delete default
route add default <my ISP's gateway's IP>
named.restart
-- end --
ohh yes... I had to set up named to be a cacheing name server... It has to
be restarted, to listen on the new port as well. Especialy becouse the
default route is redirected to <my ISP's gateway's IP>, and the aplications
otherwised doesn't fined any kind of DNS server!

--------------------
"rc.conf" looks like this after the common codes:
-- begin --
wscons=YES
hostname="myhostname"
ifconfig_ne2="inet 192.168.0.2 netmask 255.255.255.0"
ifconfig_rtk0="inet 192.168.1.40 netmask 255.255.255.0"
routed=NO  routed_flags="-q"
gated=YES
#sleep 1
#route add default 127.0.0.1
apmd=YES  apmd_flags="-f /dev/apm"
ifwatchd=YES
named=YES  named_flags="-u named"
-- end --

--------------------
"ifconfig -a" printed me out the folowings, after bringing up the pppoe0
driver:
-- begin --
ne2: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 address: 00:c0:df:f5:23:91
 media: Ethernet autoselect (10base2)
 inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
 inet6 fe80::2c0:dfff:fef5:2391%ne2 prefixlen 64 scopeid 0x1
rtk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 address: 00:50:fc:6a:a0:eb
 media: Ethernet autoselect (none)
 status: active
 inet 192.168.1.40 netmask 0xffffff00 broadcast 192.168.1.255
 inet6 fe80::250:fcff:fe6a:a0eb%rtk0 prefixlen 64 scopeid 0x2
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33220
 inet 127.0.0.1 netmask 0xff000000
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
 inet6 ::1 prefixlen 128
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
 inet <my IP on the net> -> <my ISP's gateway's IP> netmask 0xff000000
 inet6 fe80::2c0:dfff:fef5:2391%pppoe0 -> :: prefixlen 64 scopeid 0xa
-- end --

--------------------
"route show" displays like this (without the IPv6 routes):
-- begin --
Destination       Gateway            Flags
default           <my ISP's gateway's IP>       UG
loopback          127.0.0.1          UGR
localhost         127.0.0.1          UH
192.168.0.0       link#1             U
192.168.1.0       link#2             U
<my ISP's gateway's IP> <my IP on the net>      UH
-- end --

It was quite hard to me to find out, how to have working the newly installed
KDE... Mainly I have to use FreeBSD's docs, because of the lack of NetBSD's
:(