Using the Linux alternatives command to manage multiple Arduino IDE versions

The Arduino package contains an IDE that can be used to develop and upload code to the micro-controller.

  • Install from the repositories:

    sudo yum -y install arduino

    Run the Arduino IDE and set your preferences, etc. and test that it works. Your user may need to be added to some groups (dialout and lock in Fedora 20) to have permissions to write to the serial interface on your computer.

    Optionally, install the alternatives graphical user interface. You can use this interface to switch between your options rather than using the command.

  • Fixed clamav logging error

    service clamd start
    Starting Clam AntiVirus Daemon: ERROR: Can't open /var/log/clamav/clamav.log in append mode (check permissions!).
    ERROR: Can't initialize the internal logger

    # grep clam /etc/selinux/targeted/contexts/files/file_contexts

    /var/log/clamav.* system_u:object_r:antivirus_log_t:s0

    # semanage fcontext -a -t antivirus_log_t "/var/log/clamav(/.*)?"
    # restorecon -R /var/log/clamav
    # chown clam:clam /var/log/clamav *log

    Installing Sun Java with Fedora/RedHat alternatives

    Download java:
    Install with rpm:
    rpm -Uvh jre-7u67-linux-x64.rpm
    Set alternatives:
    update-alternatives --install "/usr/bin/java" "java" "/usr/java/latest/bin/java" 1 \
    --slave "/usr/bin/keytool" "keytool" "/usr/java/latest/jre/bin/keytool" \
    --slave "/usr/bin/unpack200" "unpack200" "/usr/java/latest/bin/unpack200" \
    --slave "/usr/bin/pack200" "pack200" "/usr/java/latest/bin/pack200" \
    --slave "/usr/bin/rmid" "rmid" "/usr/java/latest/bin/rmid" \

    Fastest DNS

    Ran some tests and found these DNS entries for my router are faster:

  • However, they are managed by TimeWarner, and are not very reliable.
    So, maybe I go back to OpenDNS

  • or
    Google DNS

  • BeagleBone Black setup - lapdock

    Setup the BeagleBone Black with Motorola Atrix Lapdock
    Make a backup first; edit /boot/uboot/uEnv.txt
    Comment out optargs, then add a line:

    ## Graphics for Altrix
    optargs=quiet drm.debug=7 capemgr.disable_partno=BB-BONELT-HDMI video=HDMI-A-1:1360x768M@60

    Edit /etc/X11/xorg.conf (make a backup first)

    Section "Module"
    Load "extmod"
    Load "dbe"
    Load "glx"
    Load "freetype"
    Load "type1"
    Load "record"

    BeagleBone Black setup - wireless

    Run lsusb and make sure the dongle is registered.

    Bus 001 Device 005: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

    Create /etc/wpa_supplicant/wpa_supplicant.conf

    # WPA network
    # WPA network

    Edit /etc/network/interfaces

    New webcam server

    Zoneminder was running, and it does the job fine. But the server kept crashing. So I'm installing something simpler, after replacing the OS.
    CentOS 6.5
    Get epel, rpmforge repos
    Install Apache, php
    yum install ffmpeg
    Run ffserver

    GNOME 3 Nautilus sorting order

    I can't find the preferences menu for Nautilus in GNOME 3. But gsettings works.
    To set the default sort order:

    gsettings set org.gnome.nautilus.preferences default-sort-order name

    To show the directories first, before the files:

    gsettings set org.gnome.nautilus.preferences sort-directories-first true

    It works :-)

    Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer