Macbook Air noob

Discussion in 'MacBook Air' started by Linuxpro, Feb 19, 2015.

  1. Linuxpro macrumors regular

    Joined:
    Jan 31, 2015
    Location:
    Singapore
    #1
    The "Stork" (DHL) delivered by MacBook Air (11", 256Gb, 8Gb). I am still learning my way around it.

    I come from a long Unix/Linux background. Ok, I also develop Windows apps in C++ (no comment).

    The first things I did:
    Turned off iMessage (I have no patience for problems).
    Enabled root
    Removed Garage Band, and its associated directories.
    Installed Chrome.
    Installed Microsoft 365.

    Next:
    Install development tools.
    Install dreamweaver.

    How can I get Safari, and Chrome to never keep history other than using incognito mode? My employer is not "mac friendly" and that is why I bought my own. I am required to turn off history for security reasons.

    My Cannon EOS writes to memory cards in Windows format. The mac is not happy with that. Suggestions? Maybe just get the bluetooth adapter for my camera?

    Thanx :apple:
     
  2. Gav2k macrumors G3

    Gav2k

    Joined:
    Jul 24, 2009
    #2
    Are you plugging the camera in or the memory card into a reader?
     
  3. Linuxpro thread starter macrumors regular

    Joined:
    Jan 31, 2015
    Location:
    Singapore
    #3
    Just the memory card. The EOS M has no USB port.

    I just noticed that it does not support the Cannon Bluetooth adapter.

    I just tried it again. It worked. I guess the filesystem is supported.

    Thanx
     
  4. motrek macrumors 68020

    Joined:
    Sep 14, 2012
    #4
    Good story bro.

    I see that your laptop took 9 days to arrive and not the 3-4 weeks you assumed.
     
  5. Gav2k macrumors G3

    Gav2k

    Joined:
    Jul 24, 2009
    #5
    http://macscripter.net/viewtopic.php?id=38244

    Look at the link above. It offers a solution for you to clear the history etc when you quit safari.
     
  6. joshlalonde macrumors 6502

    joshlalonde

    Joined:
    Jul 12, 2014
    Location:
    Canada
    #6
    I would recommend getting rid of Chrome. Unlike on Windows, it runs worse than the native browser. Also, Safari is pretty good..

    What windows format exactly? It should be FAT which is compatible with OS X and Windows.

    You should be fine to just take the SD Card out and put it in the Mac, and then open up iPhoto.

    Since you're a programmer, let me recommend some code editors.
    Xcode (duh)
    Atom.io (general purpose, configurable)
    Brackets (mostly meant for web dev)
    Xamarin (C# mono with .net)

    Also, you should get Github for OS X if you do use Github.

    Lastly, I recommend running Windows in a VM using VirtualBox which is free. Since you have 8GB, you're good to go. Luckily you got the 256GB so you have enough space to use it too.

    Using virtual box is nice, you can swipe back and forth like any other space.

    Oh, and another thing, use the gestures. Your touchpad will be your best friend. Two-finger scrolling, three-finger swiping left/right, etc. They will make things nice for you.

    Something I had to figure out. Tap Space to preview a file without opening it, Press Enter to rename it.

    Good luck.

    Oh and last thing, since you come from a Linux background you should be familiar with G++. Once you install Xcode, you can use G++/GCC. Also python and mysql are installed by default. Do not update them though as OS X relies on them being the version they are.

    Oh, and to access the shell, you use the terminal of course... but I figured you know that much.
    Okay, hopefully i didn't tell you tons of stuff you already knew.
     
  7. displaced macrumors 65816

    displaced

    Joined:
    Jun 23, 2003
    Location:
    Gravesend, United Kingdom
    #7
    This is meant honestly: it's your computer and you can absolutely do whatever you like, naturally.

    I'm just wondering what the need is for enabling the root login? Any account designated as an admin can use sudo to execute commands as root.

    As a Linux admin, it's my preference never to log in as root on any machine.

    Like I say though -- I'm just curious, not judge-y :)
     
  8. Linuxpro thread starter macrumors regular

    Joined:
    Jan 31, 2015
    Location:
    Singapore
    #8
    Thank you

    I just wanted to be able to su - root from my user account, then exit rather than sudo. I am an old school, Unix then Linux person. Using sudo is considered bad practice.

    My new Mac replaced my old Linux laptop. I always kept one terminal window running as root. I never use the GUI as root.
     
  9. b0fh666 macrumors 6502a

    b0fh666

    Joined:
    Oct 12, 2012
    Location:
    south
    #9
    when was using sudo considered a bad practice?

    anyways, on any 'admin' account on OSX 'sudo su -' and the password will give you the root prompt to play with.

    cheers
     
  10. displaced macrumors 65816

    displaced

    Joined:
    Jun 23, 2003
    Location:
    Gravesend, United Kingdom
    #10
    Ah, I getcha.

    Would a sudo -s or sudo -i work?

    Not that enabling the root account is necessarily risky. Although I've not checked the default configs of stuff like sshd to make sure they're sane. I suppose if you're enabling root then you're more than capable of auditing each service's configuration to check that they don't permit root logins (e.g. sshd's PermitRootLogin directive)
     
  11. b0fh666 macrumors 6502a

    b0fh666

    Joined:
    Oct 12, 2012
    Location:
    south
    #11
    yup, both work.

    I would not trust appel to have secured the system with root logins allowed, given the MESS that is yosemite :)
     
  12. displaced macrumors 65816

    displaced

    Joined:
    Jun 23, 2003
    Location:
    Gravesend, United Kingdom
    #12
    Meh. I don't trust Apple any more than I trust Canonical or anyone else. It's all about layers of protection. I don't run the services I don't need, I don't let things run as a superuser, I don't allow services to accept root logins, and I don't enable the root login.

    OS X is doesn't need it enabled, so I don't enable it -- just use sudo for individual commands or sudo -i when I need a shell.
     
  13. motrek macrumors 68020

    Joined:
    Sep 14, 2012
    #13
    Best practice is to not run anything as root unless it's necessary, so using sudo is good practice, not bad practice. Not sure where you got your information but it's backwards.
     
  14. displaced macrumors 65816

    displaced

    Joined:
    Jun 23, 2003
    Location:
    Gravesend, United Kingdom
    #14
    Hehe. My unix systems prof. at university taught me a memorable lesson about root shells. I turned my back for five minutes with a root shell left open. When I turned back, the box was sitting at a login prompt and none of my known accounts would work.

    She'd quickly hopped on the system and reset every user account's password without me knowing, then logged out.

    She wouldn't give me the password until I'd signed a fake contract to only ever use sudo and if... if I ever, ever had a root shell prompt, I'd never leave it unattended.

    I was told not to take it too personally -- she said she'd get someone with that trick every time the course ran. :)

    (edit: I've even been taught to set the HISTIGNORE variable in bash to prevent sudo'd commands from being kept in the history and to clear the screen so that use of sudo cannot be seen. It's the next-best-thing to disabling sudo's grace period for not needing a password on subsequent invocations during a short time window, which is rather convenient when doing admin-heavy tasks)
     
  15. dyt1983, Feb 20, 2015
    Last edited: Jun 1, 2015

    dyt1983 macrumors 65816

    Joined:
    May 6, 2014
    Location:
    USA USA USA
    #15
    edit: To remove personally identifying information not relevant to the thread.
     
  16. Dweez macrumors 65816

    Dweez

    Joined:
    Jun 13, 2011
    Location:
    Down by the river
    #16
    Congrats on the new laptop - it's a pretty capable box.

    My preference is "sudo su -". I'm also an old school unix guy, cut my teeth on bsd 4.1.

    And I disagree with a previous poster regarding Chrome, as it's the only browser I really make use of. Safari is good, but I use chrome across multiple platforms and the user experience remains constant. It may be a resource hog, but that doesn't bother me much.
     

Share This Page