Unix Computing

Everything in my (computing) world has a little unix within. Here are related survival tips:

Unix (desktop and servers)

  • Servers
  • FreeBSD
  • Package Updates
    • Package management systems will generally make the management of software tools close to automatic. On FreeBSD and macOS, there is pkg and homebrew respectively. Here is a list of typical update commands that keep all the tools up-to-date.
      • FreeBSD package: pkg update  ; pkg upgrade
      • macOS homebrew:  brew update ; brew upgrade
    • The "pkg" tool itself is ready to use on FreeBSD but you need to manually install the "brew" tool on macOS (see setup instructions below)
  • Thinking BSD Unix with Linux
    • Linux systems have package management built-in but, if you want a BSD type experience, then "homebrew for Linux" is recommended. The one-line install command is at brew.sh
    • The "brew" command is equivalent to the FreeBSD "pkg" command
    • You will gain convenient access to all the usual compiler tools (and easy selection of versions etc.)
  • Using Unix with macOS
    • The essentials are homebrew and XQuartz ... 
    • macOS Workspace Setup by Nenad Novaković covers the basic install of Xcode (command line tools), the package manager homebrew (with great hints for brew command use for common unix tools and also macOS GUI tools), and support services like up-to-date Apache httpd, dnsmasq, php, etc. (written July 2018). From Nenad's article, just 4 shell commands entered in a Terminal window get you the basic setup for new users:
        xcode-select --install
        ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
        brew upgrade && brew update
        brew install cask
      The above commands install the software build system (compilers etc.), then uses ruby to install homebrew, then uses homebrew to update itself, and then uses brew to install a component that allows you to also manage the macOS type GUI apps.
    • A handler for "command not found" can be triggered in recent versions of shells like zsh, bash, etc. The Homebrew Command Not Found handler can automatically suggest how to install a command using brew if checking shows that it exists.
    • From Unix to Mac OS-X, by Tom Loredo at Cornell, is an excellent introduction to OS-X for FreeBSD users. New users should at least skim this documentation, right through to the end, where you will find a link to the very thorough Unix and OS X: The Absolute Essentials from UCSC Scott Lab. (updated April 2017)
  • OS-X/macOS hacks
  • Wine Bottler is a macOS tool that automates the repackaging of Windows apps into standalone macOS apps (essentially packages them with all necessary WINE run-time components). This can be very useful in restricted engineering teaching environments.
  • Embedded FreeBSD
    • Panasonic Viera HDTV
      • No system hacks required. Note that the optional external disk is formatted with a UFS file system (FreeBSD-5).
      • Configuration quirks: the Panasonic user interface removes menu options relevant to external devices like AV Receivers when such devices are not attached or fully configured. In a catch-22, this can lead to much confusion when attempting to configure the link to such devices. To make use (or at least some sense) of ARC in HDMI between a Viera HDTV and Yamaha AV Receiver, try this sequence:
        • AV Receiver: enable HDMI control and ARC options;
        • Connect and power up TV and AV Receiver;
        • On the TV remote control: press menu button->Setup->Viera Link Settings-> enable all HDMI or Viera options (or at least set to auto);
        • On the TV remote control: press VIERALink button-> set control to Player, set sound to Cinema Surround (this latter menu option only becomes visible if external equipment is detected to have ARC enabled, and is critical).
        Testing: TV remote power up should cause both units to power up, either remote audio volume adjust should trigger TV CinemaVolume adjust message. Debugging: if the TV switches to using its own speakers, revisit the VIERALink setting and select Cinema Surround sound.



    Links back to:  R&D Home   Home