Samstag, 27. Dezember 2014

Rasperry PI Setup

OS
    $ cat /etc/issue.net | head -1
    Raspbian GNU/Linux 7

Updating Raspberry Firmware & Kernel Modules
    $ sudo rpi-update
    $ sudo reboot
-----
Updating Software
1. Update software catalog
    $ sudo apt-get update
2. Update installed packages
    $ sudo apt-get upgrade
    $ sudo reboot
(3.) Clean software catalog
    $ sudo apt-get autoclean
(4.) Remove unneeded packages
    $ sudo apt-get autoremove
-----
Issues I had:

HDMI of Rasperry PI not working
    RCA Video out was working
    Fix:
    # hdmi_safe=1
    Afterwarts HDMI worked fine.
-----
Upgrading OS from wheezy to jessie

1. Check OS Version
    $ cat /etc/issue.net | head -1
    Raspbian GNU/Linux 7 2. Backup your whole SD Memory card
3. Update your current wheezy OS, so it is up-2-date
    $ sudo apt-get update
    $ sudo apt-get upgrade
    $ sudo apt-get dist-upgrade
4. Edit /etc/apt/sources.list
    Change "wheezy" to "jessie".
5. Update & upgrade to "jessie"
    $ sudo apt-get update
    $ sudo apt-get upgrade
    $ sudo apt-get dist-upgrade
6. Reboot your OS.
    $ sudo reboot
7. Verify OS Version
    $ cat /etc/issue.net | head -1
    Raspbian GNU/Linux 8
8. Backup again.
    Good time to backup your upgraded system.
    I recomment to clone the whole SD Memory card, again.
9. Done.
-----
setting up X-Server on MAC OS
http://xquartz.macosforge.org/landing/
-----
Install  Oracle Java Embedded Suite 7.0
1. Download Software
http://www.oracle.com/technetwork/java/embedded/embedded-suite/downloads/index.html
2. Copy software to raspberry pi

scp USER@IP_OF_HOST:/Volumes/Macintosh_HD/Users/USER/Downloads/jes-7.0-ga-bin-b11-linux-arm-runtime-15_nov_2012.zip .

scp USER@IP_OF_HOST:/Volumes/Macintosh_HD/Users/USER/Downloads/ofm_oep_embedded_11_1_1_7_1_linux.zip

3. Unzip
sudo mkdir /opt/oracle
sudo chown pi /opt/oracle
sudo chmod 775 /opt/oracle
cd /opt/oracle/
mkdir java
cd java/
mkdir jes7.0/
cd jes7.0/
mkdir jre
cd jre/
unzip jes-7.0-ga-bin-b11-linux-arm-runtime-15_nov_2012.zip -d opt/oracle/java/jes7.0/jre
export JAVA_HOME=/opt/oracle/java/jes7.0/jre
java -version

java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode)

4. Install Java Embedded Suite

Samstag, 8. November 2014

Avahi fails on Oracle Linux startup

avahi-daemon fails on startup of Oracle Linux.

What is Avahi? - Please see here in wikipedia.

I decided to disable the daemon on my Oracle Linux Server:
 
service avahi-daemon stop 
chkconfig avahi-daemon off

Freitag, 31. Oktober 2014

Collection of needful Mac OS commands

  • disable. that draft documents will be stored in icloud
    •  defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false

Samstag, 8. Februar 2014

re-use of Oracle Linux VBox image

For every Linux distribution I have created an empty Oracle Linux image, containing all packages and kernel settings to quickly install Oracle Software.

Re-using this image needs some modifications to hostname, naming etc. This blog entry is mainly for me not to forget something.

1. Import Oracle Linux VM.
2. Update packages
    # yum update
    Afertwards reboot to start with updated kernel.
    # reboot
3. Upgrade VBox guest additions
4. Identify Oracle Linux Distribution
    # cat /etc/issue.net
5. Change Hostname
   a) Change Hostname in /etc/sysconfig/network
   b) Change Hostname in /etc/hosts
6. Changefixed IP address
   a) change in Menue -> Preferences -> Network Connections
   b) Change in /etc/hosts
7. Verify all changes during startup
    # reboot
    Hit the esc- button during startup to see detailed startup information.
    Verify that all services are ok.
8. Shrink VBox
    Finally it is good to shrink the image before exporting.
    See: http://fmw-deutsch.blogspot.de/2013/10/vbox-images-schrumpfen.html
    # dd if=/dev/zero of=zero.file
    When the comand has finished, delete the file and shutdown the VM:
    # rm zero.file
    # poweroff
    Navigat in a terminal to the *vdi file. Now shrink the file:
    VBoxManage modifyhd *.vdi --compact
9. Export the VM. Done.
    (Without shrinking my image size was 2.47GB, only 1.58GB after shrinking!)