Tag: mac

  • Connecting to VNC Server from a Mac computer

    On Windows and Linux there are many free open source VNC clients available. For Mac, if you google, most VNC clients are paid. But you don’t need a VNC client on Mac.

    To connect to VNC server from Mac Computer, go to the terminal, run following command

    open vnc://SERVER_IP_ADDRESS_HERE:PORT_HERE
    

    Example

    open vnc://13.37.18.223:5901
    

    See Mac, VNC

  • Mac

    To list all packages installed with brew

    brew list
    

    To see if a specific package installed, run

    brew list | grep package_name
    

    List open ports

    netstat -apv TCP
    netstat -a | grep -i "listen"
    netstat -Waltn | grep LISTEN
    netstat -Waltn | grep tcp
    netstat -anp tcp
    sudo lsof  -n -P | grep LISTEN
    sudp lsof -iTCP -sTCP:LISTEN
    sudo netstat -tulpn
    nmap localhost
    

    Restart apache2

    sudo apachectl stop
    

    Disable Apache from starting on boot

    sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist
    

    Or

    System-Preferences > Users > Select your user > Start-Objects