To make it a little simpler, just substitute nano for vi The commands are listed at the bottom of the screen. I can see what the address, netmask, and network values are in OS X Lion: System Preferences->Internet & Wireless->Network->Advanced->TCP/IP. Then it says I've got to enter my address, netmask, network, broadcast, and gateway values. Last edited by howefield February 21st, 2012 at 09:51 PM.ġ) The How-To says to change "iface eth0 inet dhcp" to " iface eth0 inet static", which is easy enough. So please Ubuntu community, if you could help get this n00b's face out of his butt you would make someone really happy. I've come here because no amount of Googling has helped me. This will quit the editor, and write all changes you have made all changes to the document will be saved. The colon indicates that what follows is a Vim command. The cursor should reappear at the lower left corner of the screen beside a colon prompt. I've had to power off my virtual machine to reboot, and try again with just as much success. To exit with saving changes made: Press < Escape>.I've hit the enter button after making the changes, hit ESC, tried sudo exit commands, and basically went crazy all over my keyboard in a vain and pitiful attempt just to exit the freakin' 'sudo vi' configurations. Since Google hasn't helped (at all) in discovering HOW TO save or even exit 'sudo vi', I presume only the stupidest n00b on the face of the planet would have to ask. The How-To's I've been reading simply say to save and exit the network configuration settings in "sudo vi /etc/network/interfaces" discussed above, while moving on to the next step. If I must, how I do find out those addresses? I suppose you may need have OS X to help me out here.Ģ) Ok, so this is what's really frustrating me. I can see what the address, netmask, and network values are in OS X Lion: System Preferences->Internet & Wireless->Network->Advanced->TCP/IP.īut I don't know what to enter for broadcast and gateway, if those are necessary. I've got two questions:ġ) The How-To says to change "iface eth0 inet dhcp" to "iface eth0 inet static", which is easy enough. This writes (saves) your changes to the file and then quits Vim. Here are the most common methods: Save and exit: If you want to save your changes and exit Vim, you can use the :wq command. I'm trying to change my DHCP to a Static IP address, so I typed sudo vi /etc/network/interfaces as an internet How-To instructed me. There are several ways to exit Vim, depending on your current situation. write current contents to file named in original vi call. Let’s assume that you do create a file called practice to practice vi commands, and that you type in six lines of text. The command to quit and save edits is ZZ. read file named filename and insert after current line. You can quit working on a file at any time, save your edits, and return to the command prompt (if you’re running inside a terminal window). I'm running Ubuntu Server 11.10 圆4 bit using VirtualBox on my Mac OS X Lion. These commands permit you to input and output files other than the named file with which you are currently working. I'm a helpless Linux noob in desperate need of some common sense here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |