Fedora Linux Support Community & Resources Center
  #1  
Old 22nd March 2015, 12:23 AM
halftoe Offline
Registered User
 
Join Date: Mar 2015
Location: sacramento
Posts: 2
macosfirefox
How do i modify text in terminal?

So the internal disc drive/ burner on my 06 Imac took a crap. AGAIN. Replaced it bout a year ago ($$$) and this one as well stopped working.

Bought USB Superdrive external burner. Was guaranteed it would work on my Imac. It doesn't.

Found a work around online which has me screwing around in Terminal.

Never been in terminal before; wasn't aware of it's existence. Don't like being in it. This is new voodoo for me.

I'm trying to insert: mbasd=1 in between <string> and </string>

Not having any luck as normal keyboard commands don't seem to work in Terminal.

Mac "help" is useless.

Little help please. I've got this open Terminal window that I'm not comfortable having open whatsoever!

Thank you!
Reply With Quote
  #2  
Old 22nd March 2015, 12:48 AM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: In your closet
Posts: 15,499
linuxfedorafirefox
Re: How do i modify text in terminal?

Are you editing some sort of configuration file? nano is a simple, user friendly style text editor. You would probably be comfortable with it.
__________________
Glenn
The Bassinator
© ®
Reply With Quote
  #3  
Old 22nd March 2015, 12:50 AM
Eric F Offline
Registered User
 
Join Date: Feb 2015
Location: Sweden
Posts: 60
linuxfedorafirefox
Re: How do i modify text in terminal?

Instead of editing the file (com.apple.Boot.plist), try this one instead.

Code:
sudo nvram boot-args="mbasd=1"
__________________
[eric@...] ~$
Reply With Quote
  #4  
Old 22nd March 2015, 08:30 AM
halftoe Offline
Registered User
 
Join Date: Mar 2015
Location: sacramento
Posts: 2
macosfirefox
Re: How do i modify text in terminal?

Thanks for the reply guys.

Erik, where would I input that code? In Terminal? I wouldn't know the correct place to put it...

Glenzo: I'm just trying to insert: mbasd=1 in between <string> and </string> but when I hit enter it jumps to the top of the Terminal window, instead of where I'm trying to insert...
Reply With Quote
  #5  
Old 22nd March 2015, 08:43 AM
glennzo Offline
Un-Retired Administrator
 
Join Date: Mar 2004
Location: In your closet
Posts: 15,499
linuxfedorafirefox
Re: How do i modify text in terminal?

Can you provide a link to the online help that you're following?
__________________
Glenn
The Bassinator
© ®
Reply With Quote
  #6  
Old 22nd March 2015, 01:16 PM
Eric F Offline
Registered User
 
Join Date: Feb 2015
Location: Sweden
Posts: 60
linuxfedorafirefox
Re: How do i modify text in terminal?

Quote:
Originally Posted by halftoe View Post
Thanks for the reply guys.

Erik, where would I input that code? In Terminal? I wouldn't know the correct place to put it...

Glenzo: I'm just trying to insert: mbasd=1 in between <string> and </string> but when I hit enter it jumps to the top of the Terminal window, instead of where I'm trying to insert...
Yes, in Terminal... Run that command. Since it's starting with “sudo“ you will be asked to give you admin password. When you type that, it won't be visible, but type it and press enter again. You need to reboot for it to take effect.


If you're going to edit the file. Depending on what guide you're following they might tell you to do different things... But you can do that with “nano” in Terminal or with a good text editor. With nano, just type “sudo nano” in Terminal + a blank space, then drag'n'drop the file into Terminal's window and press enter.

Code:
# make a backup first (always backup files :))
sudo cp /Library/Preferences/SystemConfiguration/com.apple.Boot.plist{,.orig}

sudo nano /Library/Preferences/SystemConfiguration/com.apple.Boot.plist
Make the edits to:
HTML Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Kernel Flags</key>
        <string></string>
</dict>
</plist>
To save the file in nano. Press ^O (ctrl+o) + enter. To exit: ^X


Here's a guide: http://hints.macworld.com/article.ph...11107064435227 - 3'rd comment. They use TextEdit in the example, but use TextWrangler instead - the version you download from their site (not from AS). TextEdit is not good for editing these files, and you can't save a file owned by root with it, for example. TextWrangler will let you open/edit/save the file and will ask for the password when needed.


It's easier to just run the nvram-command in Terminal.
__________________
[eric@...] ~$
Reply With Quote
Reply

Tags
modify, terminal, text

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to modify text in Firefox search list? aboulien Using Fedora 4 20th May 2010 07:54 AM
Can't boot to text terminal screen Areal Person Hardware & Laptops 1 3rd December 2009 06:27 AM
What package do I modify to change grub text during install evangelinux Using Fedora 4 28th February 2008 02:18 PM
Pink text in SSH Terminal jvanv8 Using Fedora 1 24th January 2007 05:18 AM


Current GMT-time: 01:34 (Sunday, 26-03-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat