The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for the ‘MacBook-Air’ Category

When you believe that you have a keylogger or some sort trojan | Official Apple Support Communities

Posted by jpluimers on 2017/10/16

We thought one of our Macs was compromised, but it wasn’t: it had too many web browsers open so it was crawling like a snake.

The below terminal commands and EtreCheck [Source: etresoft/EtreCheck: Source code for EtreCheck] helped to find out what was running:

kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'  

sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}'  

launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'  
 
ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null  

osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null  

Source: [WayBackI believe that I have a keylogger or some sort … | Official Apple Support Communities

–jeroen

Posted in Apple, Mac, MacBook, MacBook-Air, Power User | Leave a Comment »

Mac OS X – Hardware Monitor Help: remove com.bresink.driver.BRESINKx86Monitoring

Posted by jpluimers on 2017/10/13

Just in case you have this driver installed:

$ kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
com.bresink.driver.BRESINKx86Monitoring (9.0)

[WayBackHardware Monitor Help shows how to remove it:

  1. Ensure you are logged in as user with administrative rights.
  2. Use the Finder to open the folder Library at the topmost level of your system volume, and inside it, the folder StartupItems. If the driver is still installed, you will see the folder BRESINKx86Monitoring at this location.
  3. Drag the folder BRESINKx86Monitoring to the Trash. OS X may ask for your administrator password.

–jeroen

Posted in Apple, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, macOS 10.12 Sierra, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User | Leave a Comment »

How-To: Automatically change your Mac’s display resolution when running specific apps [Video] – via: 9to5Mac

Posted by jpluimers on 2017/08/11

Yet another reason I love SwitchResX: : How-To: Automatically change your Mac’s display resolution when running specific apps [Video] | 9to5Mac

A few years ago, SwitchResX helped me switch my Mac machine to 1360×768 and 1888×1062 « The Wiert Corner – irregular stream of stuff

–jeroen

Posted in Apple, iMac, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks | Leave a Comment »

sleep wake – Macbook Air – battery drains while sleeping (but not when shut down) – via: Ask Different

Posted by jpluimers on 2017/08/07

I had the same issue as in sleep wake – Macbook Air – battery drains while sleeping (but not when shut down) – Ask Different which suddenly introduced itself in April 2016 after I had been running El Capitan (OS X 10.11) for a while.

The Mac didn’t have PowerNap active as I verified using How Power Nap works on your Mac – Apple Support

At first it looked like an SMC reset worked as explained by Reset the System Management Controller (SMC) on your Mac – Apple Support and mentioned in Mac Air loses 90% of battery overnight when in … | Apple Support Communities.

The Mac is indeed running Chrome, but I don’t like to turn that off before sleeping.

Executing pmset -g would show hibernatemode 3.

So I opted for the hibernate option as mentioned in the first link:

sudo pmset -a hibernatemode 25

This will take a bit longer to restore the memory from hibernate state, but saves a lot of frustration.

–jeroen

Posted in Apple, Mac, MacBook, MacBook-Air, Power User | Leave a Comment »

The strange case of some applications not being able to copy/paste on the Mac OS X clipboard

Posted by jpluimers on 2017/07/19

I’ve not tracked down the cause yet, but these seem to be related:

  1. The Mac OS X build of Atom IO
  2. WinBox v 3.4 WineBottle version from Winbox for Mac in an embedded Wine environment – Joshaven.com
  3. pbcopy / pbpaste that allow command-line copy/pasting
  4. none of these being able to copy/paste any more and return error level 1 like terminal – pbcopy exits code 1, no error message – Ask Different but not even running tmux or screen which means this solution does not apply: ChrisJohnsen/tmux-MacOSX-pasteboard: Notes and workarounds for accessing the Mac OS X pasteboard in tmux sessions.
  5. I didn’t have Mouse Keys turned on
  6. Other applications (Chrome, FireFox, TextEdit, Finder, etc) still being able to copy/paste between each other

I’ve “fixed” 4. by doing this as recommended at osx – Copy and Cut sometimes don’t work – Ask Different:

launchctl list | grep com.apple.pboard

If the pboard daemon is running, then stop and start it. If it’s not running, start it:

launchctl stop com.apple.pboard
launchctl start com.apple.pboard

Now 4. works again if I restart each application, 6. still works, but these applications still cannot copy/paste to 1. 2. and 3.

What does work is a full reboot, but that takes a while (especially Chrome re-loading lots of Windows: I need to get more organised here).

It might be that I need to restart each application in 6.

Grrr…..

–jeroen

Posted in *nix, *nix-tools, Apple, atom editor, Hardware, iMac, Internet, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MikroTik, Network-and-equipment, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User, routers, Text Editors, tmux | 4 Comments »

munki/createOSXinstallPkg: Tools for packaging OS X installers – upgrade Mac OS X from InstallESD.dmg

Posted by jpluimers on 2017/06/12

You can use this package to install OS X on an empty partition, but perhaps more interestingly, you can also use it to upgrade existing OS X installations to a newer version of the OS X. There are many tools and workflows that support the installation of Apple packages; you can use these together with an OS X installation package to upgrade machines to the latest version of OS X.This is especially interesting when used with tools like Munki — you can automate the upgrade of a group of machines while still preserving user data, or offer an upgrade as a “Self-Service”-type option where a user can initiate an OS X upgrade themselves without needing to have administrative rights.

I will probably need this one day.

Source: munki/createOSXinstallPkg: Tools for packaging OS X installers

–jeroen

Posted in Apple, iMac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User | Leave a Comment »

Mac OS X: “fzsftp could not be started” when connecting over SFTP

Posted by jpluimers on 2017/06/02

A while ago I had a “fzsftp could not be started” error using FileZilla on Mac OS X.

From the search results, it wasn’t exactly clear what I did wrong, as the “Show Package Contents” context menu showed “…/Contents/MacOS/fzsftp”

Then I remembered I got a bit confused with all the FileZilla updates coming out and renaming it to contain a version number (I do that with many applications so I can keep old versions allowing me to quickly revert to an older version if there are version compatibilities).

Renaming FileZilla.3.16.x.app back to FileZilla.app solved the issue: apparently FileZilla has a hardcoded dependency on exactly that name. I got there because of the hint about spaces in directories from this thread: fzsftp could not be started – FileZilla Forums

This was before Mac OS X El Capitan; with that version you have to set permissions correctly as well: fzsftp could not be started – Kruyswijk-ICT BV

–jeroen

 

Posted in Apple, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.8 Mountain Lion, Power User, Security | Leave a Comment »

Mac OS X: restarting Tunnelblick when it isn’t responding any more

Posted by jpluimers on 2017/03/31

In addition to my post about Mac OS X: restarting Google Drive when it shows a spinning wheel, restarting a hanging Tunnelblick is even easier:

killall Tunnelblick
open -a Tunnelblick

–jeroen

Posted in Apple, bash, Development, iMac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User, Scripting, Software Development | Leave a Comment »

Mac OS X – serial communication programs

Posted by jpluimers on 2017/03/30

Some links that helped me getting FTDI USB serial communication to Raspberry Pi systems going:

–jeroen

Posted in Apple, Communications Development, Development, Hardware Development, Hardware Interfacing, iMac, Legacy Ports: COM, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.9 Mavericks, Power User, Raspberry Pi, USB | Leave a Comment »

Mac OS X: restarting Google Drive when it shows a spinning wheel

Posted by jpluimers on 2017/03/29

Every now and then, Google Drive on Mac OS X gets confused and starts showing the spinning wheel when hovering over the menu bar icon similar to for instance DropBox does every once in a while.

This is how to terminate and restart Google Drive from the terminal (no need for su):

killall -v -SIGKILL Google\ Drive
open -a Google\ Drive

Alternatively you can start Google Drive using this:

/Applications/Google\ Drive.app/Contents/MacOS/Google\ Drive &

I found this executable through osx – Find all executable files within a folder in terminal – Ask Different

Note that this won’t kill Google Drive as it sends the TERM signal (SIGTERM):

killall -v Google\ Drive

–jeroen

Posted in Apple, bash, Development, Google, GoogleDrive, iMac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Scripting, Software Development | 1 Comment »