LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2014, 08:55 PM   #1
rstack13
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Rep: Reputation: Disabled
Vi - Interfaces


Hello,
I am trying to do something which I think is simple to do but nope. I have Ubuntu Server installed on a VM in VMware Workstation. First thing I am attempting to do is set a static IP. When I enter vi /etc/network/interfaces and go to type in the word "static" instead of dhcp, the s turns into a $. Then I type "static" then then the c turns into a capital C, so it looks like statiC. At this point if I hit c again the whole line disappears.

Any ideas what is going on?
Thanks
 
Old 09-14-2014, 09:23 PM   #2
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 353

Rep: Reputation: 89
On the command line type vimtutor, that should start a Vim tutorial that will walk you through some of the basics of using Vim. If you'd rather read online Vim tutorials, then just Google "vi tutorial" and you should find quite a few that will help you with the basics (cursor movement and editing text).
 
Old 09-14-2014, 09:46 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
i take it you have not learned how to use "vi"
VI is a FULL fledged WORD-PROCESSOR like "MS office" or "Openoffice" BUT IN THE TEXT TERMINAL ONLY

you need to really spend about 1 to 2 YEARS to learn to use it

it is not a simple text editor


for that

Use "nano"

nano is installed on most servers
and is in most repos
 
Old 09-14-2014, 09:53 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,268
Blog Entries: 1

Rep: Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303
You can - and should - learn to use vi as quickly and as simply as nano!

You do not have to learn anything more advanced than "i" is for insert, "esc" for escape to command mode and ":wq" for write and quit to open, edit save and close a file...

Work your way through the vimtutor for a slightly more complete intro.

Last edited by astrogeek; 09-14-2014 at 09:59 PM.
 
Old 09-14-2014, 10:13 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,268
Blog Entries: 1

Rep: Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303Reputation: 2303
As others posted above, open a terminal and type vimtutor to get to the built-in Vim tutorial. Grab your drink of choice and before the cup is empty you will be a solid basic Vim user and well on your way to becoming a power user!

Long ago I wrote my own simple "Quick start" guide for Vim that will get you past the "what the heck is happening?!" point very quickly, find it here. You might find it a good place to start as well.

Pay no attention to the "Vim is too hard!" FUD! Vim is among the most useful and easiest to learn tools you have on your computer! Learn it and use it! You will be glad you did!

Last edited by astrogeek; 09-14-2014 at 10:14 PM.
 
Old 09-14-2014, 10:27 PM   #6
rstack13
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Lightbulb Thanks

Thanks, for some reason I thought it was in insert mode since some of the letters were typing. Derp
 
  


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
ifup: couldn't read interfaces file "/etc/network/interfaces" dobharweim Linux - Networking 1 12-13-2013 11:20 AM
[SOLVED] /etc/network/interfaces configuration for virtual interfaces nonshatter Linux - Networking 4 10-25-2010 06:22 AM
ifup: couldn't read interfaces file "/etc/network/interfaces" debian lenny lorimer73 Linux - Networking 1 08-24-2010 03:47 PM
two interfaces msabaq Linux - Networking 5 05-04-2006 09:11 AM
2 inner interfaces d_kilshtein Linux - Networking 5 12-19-2004 08:06 AM


All times are GMT -5. The time now is 02:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration