niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » NetBSD
vi editing mode & ip address on NetBSD3.0
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
Author Message
dfeustel@mindspring.com
*nix forums addict


Joined: 13 May 2006
Posts: 67

PostPosted: Wed Jun 07, 2006 3:57 pm    Post subject: Re: vi editing mode & ip address on NetBSD3.0 Reply with quote

lovecreatesbeauty <lovecreatesbeauty@gmail.com> wrote:
Quote:
1.
I change my user shell to ksh using chsh on NetBSD3.0, add following
settings at the bottom part of ~/.profile file:

#...
set -o vi
stty erase ^H
export PAGER=less

I think the ~/.profile works. The last line 'export ...' works, I can
see the correct PAGER value using env | grep PAGER.

But the settings for vi command-line editing mode doesn't work in
~/.profile. I should input the set -o vi command at command prompt
every time. Could you please help me on it?

Commands that affect the environment should be put in a file named ~/.kshrc
and the line "export ENV=~/.kshrc" should be added to .profile.
This combo will set up the shell environment each time a new ksh is invoked.
--
Using ( X | KDE ) with OpenBSD?
See Dave's OpenBSD | X | KDE corner at
http://dfeustel.home.mindspring.com !!!
Back to top
jpd
*nix forums Guru


Joined: 22 Feb 2005
Posts: 877

PostPosted: Fri Jun 02, 2006 7:33 pm    Post subject: Re: vi editing mode & ip address on NetBSD3.0 Reply with quote

Begin <1148960976.727527.102950@j73g2000cwa.googlegroups.com>
On 2006-05-30, lovecreatesbeauty <lovecreatesbeauty@gmail.com> wrote:
Quote:
I want to use putty to connect to the NetBSD system. But I get a
strange ip address value with ifconfig -a, like:

pcn0:
...
address: 00:0c:29:cf:49:ec
...

How can I connect to this address from putty? I get a human readable ip
value on Debian/Linux3.1 like 192.168.1.11 .

You have to remember that network interfaces can, and often do, support
multiple addressing families at the same time. It is up to you to make
sure the values you're using are suitable for the address family you're
working with. You're confusing them, which means that you have some more
learning to do.

The address you quoted is the ethernet MAC address of the card, which
the linux ifconfig would show just after ``HWaddr''. It is not the IP
address you said you wanted, which would be labeled `inet addr' or just
`inet', depending on your ifconfig.

You cannot directly feed ethernet (`hardware') addresses to putty. If
your NetBSD installation doesn't have an IP address configured on the
interface, you will need to give it a suitable one. What is suitable,
and whether you use a fixed address or DHCP depends, on what network
the interface is on and how it is setup.


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
This message was originally posted on Usenet in plain text.
Any other representation, additions, or changes do not have my
consent and may be a violation of international copyright law.
Back to top
Noud deBrouwer
*nix forums beginner


Joined: 31 May 2006
Posts: 1

PostPosted: Wed May 31, 2006 4:29 pm    Post subject: Re: vi editing mode & ip address on NetBSD3.0 Reply with quote

None wrote:
Quote:
telnet other servers within our LAN, but I still can not use ftp, such
as ftp ftp.gnu.org.

what's routing in what way??
maybe
export ftp_proxy=http://xxx.xxx.xxx.xxx:<port#>/

Quote:
no network. I still want to use a client such as putty to connect to

uncomment #telnet in /etc/inetd.conf
and
/etc/rc.d/inetd restart

Quote:
If I remember things right VMWare uses bridged networking, so you may
connect to NetBSD if you've set up networking.


I mean I install some UNIX/Linux on a stand-alone machine and there is
Frank's talking about ~virtual~ network, inside, between Win and NetBSD

at VMWare ..not the cables/hubs/switches.

Quote:
UNIX/Linux system, because the UNIX/Linux console is not so convenient

pkgsrc/meta-pkgs/gnome

Quote:
putty.
odd
--
Sincerely
2,

Noud
Quote:
lovecreatesbeauty
Back to top
lovecreatesbeauty
*nix forums Guru Wannabe


Joined: 21 Feb 2005
Posts: 193

PostPosted: Wed May 31, 2006 2:56 am    Post subject: Re: vi editing mode & ip address on NetBSD3.0 Reply with quote

Frank Lorenzen wrote:
Quote:
Try +o vi

Hello Frand, do you mean the command: $ set +o vi? I try set +o vi at
command line and ~/.profile, but it seems that it's not the same as set
-o vi. It can not enable ESC+j, ESC+k, ESC+\ for history command
editing and filename auto-completion. Could you be more detail?

Quote:
You can't. The address above is just the Hardware-address of the Card.
Nothing about TCP/IP here.
You need to configure the Card using ifconfig or /etc/ifconfig.if

I edit /etc/rc.conf and /etc/resolv.conf files, now I can get a static
ip address for my NetBSD system. Now I can ping internet sites and
telnet other servers within our LAN, but I still can not use ftp, such
as ftp ftp.gnu.org.

pcn0:
....
address: 192.168.1.31 netmask 0xffffff00 broadcast 192.168.1.255
....

The /etc/rc.conf:
....
#static ip
auto_ifconfig=YES
hostname=jhlNBSD
defaultroute="192.168.1.1"
ifconfig_pcn0="inet 192.168.1.31 netmask 255.255.255.0"
net_interfaces="pcn0"
....

The /etc/resolv.conf:
#x, xx means some digital value not suitable for being published.
nameserver x.x.x.x
nameserver xx.xx.xx.xx

Quote:
If I remember things right VMWare uses bridged networking, so you may
connect to NetBSD if you've set up networking.

I mean I install some UNIX/Linux on a stand-alone machine and there is
no network. I still want to use a client such as putty to connect to
UNIX/Linux system, because the UNIX/Linux console is not so convenient
putty.

--
Sincerely
lovecreatesbeauty
Back to top
Frank Lorenzen
*nix forums beginner


Joined: 30 May 2006
Posts: 1

PostPosted: Tue May 30, 2006 6:13 pm    Post subject: Re: vi editing mode & ip address on NetBSD3.0 Reply with quote

lovecreatesbeauty <lovecreatesbeauty@gmail.com> wrote:
Quote:
1.
I change my user shell to ksh using chsh on NetBSD3.0, add following
settings at the bottom part of ~/.profile file:

#...
set -o vi
stty erase ^H
export PAGER=less

I think the ~/.profile works. The last line 'export ...' works, I can
see the correct PAGER value using env | grep PAGER.

But the settings for vi command-line editing mode doesn't work in
~/.profile. I should input the set -o vi command at command prompt
every time. Could you please help me on it?

Try +o vi

Quote:
2.
I want to use putty to connect to the NetBSD system. But I get a
strange ip address value with ifconfig -a, like:

pcn0:
...
address: 00:0c:29:cf:49:ec
...

How can I connect to this address from putty? I get a human readable ip
value on Debian/Linux3.1 like 192.168.1.11 .

You can't. The address above is just the Hardware-address of the Card.
Nothing about TCP/IP here.
You need to configure the Card using ifconfig or /etc/ifconfig.if

Quote:
I install NetBSD3.0 on VMWare hosted in Windows. Can I use something
like putty to connect to NetBSD or other UNIX/Linux things on local
machine without a network (switch)?

If I remember things right VMWare uses bridged networking, so you may
connect to NetBSD if you've set up networking.

Quote:
Sincerely
lovecreatesbeauty


greetings
f
Back to top
lovecreatesbeauty
*nix forums Guru Wannabe


Joined: 21 Feb 2005
Posts: 193

PostPosted: Tue May 30, 2006 3:49 am    Post subject: vi editing mode & ip address on NetBSD3.0 Reply with quote

1.
I change my user shell to ksh using chsh on NetBSD3.0, add following
settings at the bottom part of ~/.profile file:

#...
set -o vi
stty erase ^H
export PAGER=less

I think the ~/.profile works. The last line 'export ...' works, I can
see the correct PAGER value using env | grep PAGER.

But the settings for vi command-line editing mode doesn't work in
~/.profile. I should input the set -o vi command at command prompt
every time. Could you please help me on it?

2.
I want to use putty to connect to the NetBSD system. But I get a
strange ip address value with ifconfig -a, like:

pcn0:
....
address: 00:0c:29:cf:49:ec
....

How can I connect to this address from putty? I get a human readable ip
value on Debian/Linux3.1 like 192.168.1.11 .

I install NetBSD3.0 on VMWare hosted in Windows. Can I use something
like putty to connect to NetBSD or other UNIX/Linux things on local
machine without a network (switch)?


--
Sincerely
lovecreatesbeauty
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [6 Posts] View previous topic :: View next topic
The time now is Wed Dec 03, 2008 7:35 pm | All times are GMT
navigation Forum index » *nix » BSD » NetBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix ldap and Rewriting sender email address endfx Postfix 2 Thu Apr 17, 2008 9:34 pm
No new posts recipient address restriction 3dd13 Postfix 0 Wed Mar 26, 2008 1:46 pm
No new posts need wget binary transfer mode victorfeng1973@yahoo.com Solaris 7 Thu Jul 20, 2006 9:03 pm
No new posts I need to configure DHCP server to force client to obtain... malazc@gmail.com networking 1 Thu Jul 20, 2006 8:44 pm
No new posts enforcing local users' sender address M. Nejat AYDIN Postfix 9 Thu Jul 20, 2006 12:07 pm

Bleach 149 . Bleach 150 | Agencia de turismo | Mortgages | Credit Cards | Credit Card Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2693s ][ Queries: 20 (0.1470s) ][ GZIP on - Debug on ]