How to fix changes in Terminal due to blocked Facebook in Vietnam

Hello, all.
I recently went on a trip to Vietnam where access to Facebook is blocked by the government. I googled how to get around the blocks and came across this website:
http://www.travelfish.org/blogs/vietnam/2011/05/18/accessing-facebook-in-vietnam -for-mac/
After applying the changes as directed I was still unable to access Facebook, presumably because the loophole had already been closed by the government.
Now that I am back in Thailand, where I live, I am still unable to access Facebook. I get a "Network Error" message along with this description:
"A communication error occured: 'connection reset by peer.' The web server may be down, busy, or experiencing other problems preventing it from responding to requests."
I figured that the easiest way to fix the problem would be to go into Terminal and simply delete the changes I have made. However, whenever I input "sudo nano/etc/hosts I get the following message:
"sudo: nano/private/etc/hosts: command not found"
I would really appreciate if someone could help me fix this problem as I need to access Facebook to promote my business.
Thanks in advance for taking the time to respond.

The host file has been modified by someone (you?). Whatever application that was used to modify the file  left Window's line endings (CRLF). If you are not comfortable using a unix text editor then download TextWrangler.
The following is an unmodified host file.
# Host Database
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost
You can attempt to replace the modified host file with the text above or re-install the operating system.

Similar Messages

  • How do i change my terminal and text edit privileges

    How do i change my privileges in terminal and text edit?
    Every time i try to drag something from text edit to terminal it says this;  "The file “server.command” could not be executed because you do not have appropriate access privileges.To view or change access privileges, select the file in the Finder and choose File > Get Info''
    and when i go to "Get Info" it says read&write is on!?
    Can somebody help me please??

    Hi Taysia_b,
    The convention that I have always used was to copy (Command-C) from the editor, and paste (Command-V) in the terminal and it has worked for me thus far.
    Found keyboard commands faster to work with, than trackpad stuff.
    Have fun
    Leo

  • How can I change the termination character (Hex 00) in LabVIEW?

    I'm talking to a 3rd party device over USB where I make function calls to their DLL. I send and receive Hex commands as Strings data type. I can send without problem however when I read back a string that should be Hex "FF 00 FF", I get back "FF" because LabVIEW sees 00 as a termination character so I don't get any data past the 00.  Likewise if I'm supposed to read "00 FF", I get back nothing!   The following KB linked below explains that LabVIEW sees 00 as a termination character.  It shows where using Serial to change the termination character to something else.  I don't have this option using my 3rd party USB device.  Is there a way to change what LabVIEW sees as it's termination character?
     http://digital.ni.com/public.nsf/allkb/9A3589A05F21A1B186256CE9006448D4

    That article is talking about two things. The first has to do with the fact that in C strings are terminated using 0x00. The second part has to do with a serial port read terminating once it sees 0x00. Based on what you described, I don't believe the second part does not apply to you since you are calling a third-party DLL, so it's doing the serial port read. Is this correct? Or, are you actually doing the serial port read yourself using VISA functions? If you are just calling their DLL, then the issue has to do with the string being passed back from the DLL to LabVIEW. You're probably passing in a string datatype. You should simply change this to a byte array so you get all the values.

  • How to fix the search problem due to timezone?

    I live in GMT+8 timzone. I just migrated a site from SP2010 to SP2013. After migrated when I search for a managed property (datetime) all results return is 1 day later.
    To troubleshoot the problem, I setup a new managed property using "Text" datatype. In refinement panel for that managed property I found the refinement are all looks like 2013/12/11 16:00:00. (which should be 2013/12/12 00:00:00)
    The old server is running in GMT+8. The only different is SP2010 and SP2013.I have changed the web application -> general settings -> timezone to GMT+8 and the site collection settings as well. We did not enable "My site" so there
    is no personal regional settings. What else I can check?  What should I check and how can I make the search work as expected?

    Once a document is stored and uploaded it has the UTC time stamp on it. Now this timestamp cannot be changed.
    So you either use timezone when the document was uploaded or use it the same way. 
    BTW what difference does it make with the time it shows?
    The field in question is designed to store a "Date" value only not the "Time". The time is always 00:00:00.
    In the old farm, users search for 2013/12/31 will get the results with field value 2013/12/31. Now in the new farm, with the timezone problem, search for 2013/12/31 will get the results with field value 2014/1/1

  • How to fix the Log4j error due to old version of log4j jar bundled with jre

    Hi,
    We have a webstart application which budles the latest log4j.jar (ver 15), but for some users at startup after the app is downloaded the newer version of the log4j jar is not loaded - We get a NoSuchMethodError when we try to use the trace() method of log4j. Question is how do we ensure that our app always picks up the newer version of log4j jar bundled with the app and not the one in the lib/ext folder of the jre,
    thanks

    I think we both have similar issue Thread
    Do anyone knows why this is happening?

  • How to fix window boot manager has been blocked by the current security policy on acerv5window 8.1

    Hi..  When do you xactly get this error message?Are you trying  to boot your computer using a cd?Are you trying to load another operating system?  Secure Boot is a feature designed to prevent malicious software and unauthorized media from loading during the boot process. This option is enabled by default, but can be turned off in UEFI / BIOS. Select your Windows 8 device and use the following steps to change the Secure Boot setting:Completely shut down the computer.Power on the system. As soon as the first logo screen appears, immediately press F2 to enter the BIOS.Use the right arrow key to select Security.Use the down arrow key to highlight Set Supervisor Password and press Enter.Create a password and press Enter. Retype the password to confirm and press Enter again.Use the right arrow key to select Boot.Press the down arrow key to select Secure Boot and press Enter.With the arrow key, highlight Disabled and press Enter.Press the F10 key and select Yes to save the changes and exit the BIOSWe suggest removing the supervisor password immediately after enabling Secure Boot. If you choose not to remove your supervisor password, make sure you write it down for future use. 

    I fixed this issue when I realised I had set a passoword many months ago when I was in Windows 8.1 If you found that your BIOS is locked, use a password you've used for other 'important' things. Cheers, Dave  I have an Acer Aspire E1-571 I'm having the same problem - however when I press F2 it goes to a blue security box saying: Enter Current Password: I don't have a password. It was set by the factory, I bought it new. How do I get around this. The last hard drive is trapped - I can't fix it, even with Microsoft's chat help when they accessed my computer remotely.I bought a new hard drive, and have the Windows 7 Professional DVD in the drive - but it can't access it under the current Security Settings - only to find it has a Password - thus my visit to this forum today. Any help you can offer would be gratefully accepted.

  • How can I change the language of a block of text

    Hi,
    Working in a bilingual environment, I am constantly switching languages as I write e-mail. Using Mail 3.5, if I forget to change the dictionary language before I start writing, Mail logically marks most words as spelled incorrectly. After having written a paragraph, I'd like to be able to change dictionary language, and then continue writing.
    But Mail doesn't seem to change the language for the text that was already entered -- the words that were "misspelled" according to the old dictionary language are still underlined in red after the new dictionary is chosen, and after I've told it to "Check document now".
    How can I get it to re-evaluate the text as now being in the language of the dictionary, so that all those incorrect red underlines will disappear?
    Thanks,
    Eric Peters

    "It's not a bug or a feature; it's just something you can't do..."
    Phooey! I accept that Mail is limited to one language at a time. I don't accept that the spell checking fails to work if I switch which dictionary is in use after having already written some text.
    "I know of no email client for Mac than can do it, either."
    Er, I hate to say it... MS Entourage does do it, perfectly.
    I recently gave up Entourage and switched to Mail, because I decided to stick to all Apple software so that syncing would be smoother. The syncing does work much better now that I've eliminated Entourage from the equation...
    ...but why can't I switch languages and get the dictionary to evaluate the text in the language I've chosen?! Otherwise, can someone explain to me the meaning of allowing the user to select a new language from the popup in the "Show Spelling and Grammar" dialog, if that new language won't then be used for spell-checking, whether for all the text, or the selected text? What is the purpose of allowing use of an interface control which doesn't then do what it obviously is supposed to do? It seems like Apple has broken its own HIG here.
    Thanks for listening... maybe someday it will work as it obviously should!
    Eric Peters

  • I can no longer access my verizon email account from my ipad-says there is a blocker and won't accept my password ?? how to fix

    I can no longer access my verizon email account from my IPad - kicks my password out and says there is a blocker??how to fix?

    Says there is a blocker?
    Please provide the exact wording of the error message.
    Any "blocker" would be on Verizon's end.
    Any change after deleting and recreating the account on your iPad?

  • Whenever I open a post on Facebook I can't close it without closing also the site. How can I change that ?, Whenever I open a post on Facebook I can't close it without closing also the site. How can I change that ?

    Since I got OS X Mavericks whenever I open a post on Facebook I can't close it without having to close the whole site also. How can I change that ?, Whenever I open a post on Facebook I can't close it without closing also the site. How can I change that ? Thanks.

    What does FaceBook have to say about that?
    Repeating yourself four times was such a great help, not.

  • Hi any 1 here no how to fix warcommander game on face book its stuck 99% loading 2 months now

    any 1 here know how to fix warcommander game

    You'd need to check Facebook support. It's their game.

  • Can't use time machine due to corruptness even after reinstalling snow lepoard how to fix?

    Yes, someone stole my original apple id in 2009. Now i bought another iphone in late 2012 , Created another apple id due to Apple not being able to help me access my original apple id. Which now since 2 months ago someone or company, or bank stole my second apple id. My iphone 4s with Sprint has no celluar connection supossedly due to no internet  that is what sprint said but I looked it up on apple and it stated that there is a cellluar block on my iphone4s.
    So I guess I will have to go in person to Sprint so they can explain that to me and why I was lied to on the phone earlier.  Back to my 2nd stolen apple id that I registered  my macbook,airport express router, and iphone4s and apple TV. So who ever stole this apple id obviously took over all my mac products I had registered to it. Enough about that back to trying to use time machine....Everytime i do,  my macbook just starts acting all screwed up.  I bought a WD external drive for Mac but I believe someone must have claimed it too.  Since there is 75gb on it that I can't access.  Kind of like my Macbook stating I can't save or have access to the Root .  That is another thing after reinstalling snow lepoard  which works great until I update it.  Which is a problem because everytime I update it to  10.6.8  All the permissions are changed the graphics look horrible and I get redirected so bad its not funny. The email account is a joke.   Also I notice my stationary for email is in Spanish not sure why and on Iworks the document samples are also in spanish. Now I dont speak any other language except ENGLISH AND HAVE LIVED IN UNITEDSTATES MY ENTIRE LIFE.  But my internet provider Fibrant which swears they are local  shows it is in the UK also when i try to access my email for that account it states it is not safe , certificate is expired and someone might be trying to impersonate my server.  Needless to say it is getting old. I had this same problem with Timewarner and Att except att would just remove my ethernet driver then laugh when i would call and ask what the problem was.  Then later I find out when I had DSL that somehow the phone number they had listed was  change to being a digit off from my DSL account which again they laughed and thought it was funny.     Enough about that.  I need to know how to get access to my Apple id.  I gave up on the first one but the second one I did have access to until I registered all my apple products.  What is up with every thing I have with a usb port being corrupt.  I have also notice anywhere in town where I live my phone is English until I come home it is arabic,hebrew , spanish any language except English.  Shouldn't I be safer in my home???????????????  But I am not I am safer in town or anywhere but my home.  EVerything states international  in my home and this has been going on since 2009.....No one can tell me why.  My power from Duke reads that OTHER Is costing me the most $$ every month what ????? This is a joke.    But yet no one can tell me why or how to fix the problem.  Going on 5 years , I have been cut off from everyone I know.  Can't keep contacts on a phone or email accts. They all disappear.  All so I am in Eastern time zone but all my computers and tv seems to think I am in pacific timezone.  No one can fix this problem either.   So if anyone has any suggestions on how to fix at least one of my 5 year problems I would be grateful.  I try to create a new email account but either I am locked out right after or someone turns it into an alias account which doesn't help me.  When I was layed off in 2009-2010  I went back to school/college.  Needless to say they took my School email acct too. 
    Back to my iphone 4s problem.  My icloud email account gets alot of spam starting about 2 months ago and I can't stop it. I try to foward it to Spam @ me but it hasn't helped.My iphone can only connect to the internet with wifi.  Sprint swears that there is not a block but according to apple there is.
    About my macbook and apple ID how can I upgrade my Macbook from 10.6.3 to 10.6.8 with out all the permissions being changed and corrupt?? I have tried several times and it is always the same. I won't to connect my iphone to itunes to try to restore it but it states I  have to update it to 10.6.8. When I do that my computer is alot worse off.  Also how can I use TimeMachine with out my Macbook getting messed up?  Something in my house has taken over anything with a usb port actually years ago and probably now something kept turning all my computers and phones or any electronic I owned it to a printer.  I actually can't even use a printer in my home thats the funny thing.  When I try to connect one when I used windows it stated I had no rights to it and couldn't use it.  Since I switch to Mac not much better.  When I try to print a test page it is all crooked and too small of half off the page.   So it is upsetting that I can't use  a printer but something keeps turning all my electronics into printers.  If anyone knows how to fix this problem that would be great or to stop all this international stuff going on in my home that would  be wonderful.  I try to buy brand new pcs but soon as I start them up something had already taken over. This is with nothing electronic in my home on. Turn everything that a power switch off or unplugged it.  Still I lost rights and access to anything in my home. Now if I am away from my home and try to use one of my laptops they look completely different and almost usable.   Unfortunately I can't afford to move. I thought about it but I am still in bankruptcy and don't have the money.  In the last 4 years I have not been able to reinstall in backups that I have created.  Not sure why oh wait it states I have no rights to do that.  My macbook I lost access to a week after I bought it and connected my iphone too.  You don't know how many times I wish I had never backed my iphone 4s to my Macbook.  Right after I could not log into it.  Even used the disk to reset the password nope still couldn't log into it.   Try to type the formula for resetting the password and nope it didn't work either.
    Any suggestions would be appreciated---Need to gain access to my apple Id that would be a great start
    Thanks, Suzanne
    UnitedSTates
    Eastern timezone

    Didn't really read much at all of your post. Much, much too long, irrelevant details and & no paragraphs.
    Can't use time machine due to corruptness
    Post over here -> Mac OS X v10.6 - Snow Leopard forum
    About my macbook and apple ID how can I upgrade my Macbook from 10.6.3 to 10.6.8 with out all the permissions being changed and corrupt??
    Same as above. Post in the correct forum.
    Need to gain access to my apple Id that would be a great start
    -> http://support.apple.com/kb/HT5625

  • My PDF export has been terminated due to invalid former credit card. how

    My PDF Export has been terminated due to invalid former credit card. How I can continue by means of pay by new credit card?.

    you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
    You might then need to log out of your account on any iOS devices that you have by tapping on your id in Settings > iTunes & App Store (Settings > Store on iOS 5 and below) and then log back in so as to 'refresh' the account on them
    If that doesn't fix it then contact iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Does anyone know how to fix an error in cc photoshop on Win8 that says puppet warp could not complete request due to program error?

    Does anyone know how to fix an error in cc photoshop on Win8 that says puppet warp could not complete request due to program error?

    Questions on using a specific program should go in that program forum
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • How to fix my Apple ID from not being disabled? I have changed the password many times already and it still wont let me update apps or download apps

    How to fix my Apple ID from not being disabled? I have changed the password many times already and it still wont let me update apps or download apps

    Apple ID disabled
    http://support.apple.com/kb/TS2446
    If you still have problem, contact iTune Support
    https://ssl.apple.com/emea/support/itunes/contact.html

  • Can someone plz confirm me that how i can change or update the security questions related to my apple id? as i have been never put them since i create my apple id but now due to some security reasons its asking me again and again the answers. i am unable

    can someone plz confirm me that how i can change or update the security questions related to my apple id? as i have been never put them since i create my apple id but now due to some security reasons its asking me again and again the answers. i am unable to go through the process. thanks.

    Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities

Maybe you are looking for

  • How to Rewind a slide (not a module) on click of a button in Captivate 8

    Hi, I am creating an elearning module in Captivate 8. the module is of 30 slides. I have added a custom Rewind button on each slide of the module. I want a slide to Rewind on click of the Rewind button on that slide. Now when I am clicking on the but

  • How to get the properties of application anywhere in the project?

    Hello, Application      |__Component1                |___Component2                              |___Component3 -----> Component4 ( as Popup) this is the actal scenario in my flex application.. Do you know any best way to access the properties on the

  • When I have firefox to remember History to remeber passwords all the images on websites are broken or blocked?

    When I have Firefox set to Never remember history all the websites that I visit all have there images & videos working properly but the cons is that I always have to put in my password every time I open firefox up. So to solve this problem I had fire

  • VBox.setAlignment has no effect?

    I want to align a bunch of nodes along their right edge. I tried putting them in a VBox and doing vbox.setAlignment(Pos.TOP_RIGHT); but it seems no matter what I use for the alignment they are always aligned to the left edge. I'm using build 42. Is t

  • Prompt problem in BO6.1

    Hello, I am using BO 6.1. I have some questions: 1. Suppose I created a prompt for countries. At run time it will show all 50 countries. How can I make it show only 10 countries? I could not make @Prompt function working. I am still unsure how can I