|
|
10.4: Accessing older SMB servers
I followed the steps. But, how exactly to I save this entry in vi?
10.4: Accessing older SMB servers
Ouch! Good point, the parent post probably should have used a different text editor.
Try using pico in stead of vi. Pico used to be installed with OS X and it shows you the basic commands right at the bottom of the screen. (control-o to save and control-x to quit) But, as to your question about vi. Vi works in two modes, insert mode where anything you type appears on the screen and edit mode where everything you type is a command. So, to quit vi after you've typed your stuff, press the escape key to switch to edit mode. (press the letter i to switch back to insert mode if you desire) Once in edit mode, type :wq Yes, that's right, you need the colon followed by the w to save followed by the q to quit. OR type ZZ Yes, that's two capital Z's without any colons. That command saves and quits as well. (One last note about :wq vs ZZ is that :wq will show up at the bottom of the screen because typing : enters a 'command line editing' mode while typing ZZ will just save and quit without showing you anything. ) But like I said, if pico is available use that. I used pico for several years with OS X and other unix/linux os's until I came to my current job where I was told I should learn vi, and it's a great program, but if you don't need a powerful text editor, stick with pico. To delete the nsmb.conf file type cd /etc sudo rm nsmb.conf Again, to anyone reading this, please note that pico is GOOD. And, nsmb.conf has the letter 'N' in front. (Not that I know what the nsmb.conf file is, but I do know that you wouldn't want to delete your smb.conf file when you meant your nsmb.conf file) To anyone who wants to learn more about vi, the version installed on mac os x jaguar and newer is VIM. So go to www.vim.org and look around. vi is the old school program, while VIM is Vi IMproved, and improved it is, with lots of neat plugins and features.
10.4: Accessing older SMB servers
Thanks attackwolf. You are right, pico - for the novice anyway - was much easier. Worked like a champ. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|