raspi: install/configure owncloud

installation process as in this link. just change one step: download the newest owncloud client from their website.

to reset the admin password: sudo -u www-data php /var/www/owncloud/occ user:resetpassword admin

background knowledge: nginx is the webserver which forwards incoming traffic to the php backend by fastcgi (php5-fpm) .

Mint: install and configure MATLAB

installation:

  1. installation
    1. download matlab iso files
    2. mount first cd
    3. run the installer (install.sh or similar) from within $HOME: $ cd $HOME; /path/to/cd1/install.sh
    4. choose the install path: /opt/MATLAB
    5. when asked for second cd one has to unmount cd1 and mount cd2 to the same path
  2. put matlab in your $PATH:
    1. usually this is done in the installation process, but just in case
    2. $ sudo ln -s /opt/MATLAB/R2017a/bin/matlab /usr/local/bin/matlab
  3. get the desktop file for matlab (somewhere in the opt/matlab folder?)
    1. $ cat /usr/share/app-install/desktop/matlab-support:matlab.desktop
      [Desktop Entry]
      X-AppInstall-Package=matlab-support
      X-AppInstall-Popcon=4
      X-AppInstall-Section=multiverse
      
      Version=1.0
      Type=Application
      Terminal=false
      Exec=matlab -desktop
      Name=MATLAB
      Icon=/usr/share/icons/matlab.png
      Categories=Development;Math;Science
      Comment=Scientific computing environment
      StartupNotify=true
      StartupWMClass=com-mathworks-util-PostVMInit
      
      X-Ubuntu-Gettext-Domain=app-install-data
      
      
  4. for updating matlab
    1. install as in step 1
    2. change the link path from step 2
    3. done
  5. change the default start of matlab by creating a custom startup.m:
    1. print the path inside of the matlab gui: >> path
    2. choose a good path for your file (usually: /opt/MATLAB/R2017a/toolbox/local/startup.m )
    3. insert some matlab code. example:
      fname='/some/path';
      addpath(genpath(fname));
      cd(fname);
      clear fname;
      

raspi: mount usb drives on bootup

to auto mount usb drives on bootup one can simply add some lines to the /etc/fstab file:

UUID=e0a4c8da-67d1-423d-939c-4dc8249079f0 /mnt/small btrfs rw,defaults,nofail 0 0

you need to change the following:

  • the UUID you can find out through: ls -l /dev/disk/by-uuid/
  • change the mount point
  • change the file system
  • pay attention: the nofail option will mount the drive only if it is plugged in

SL7: enable EPEL repos

there is a vast repo for packages not (officially?) maintainted by redhat. to enable this repo (called EPEL) the following steps are needed:

  1. get and install the epel rpm file:
    $ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm
    $ rpm -ivh epel-release-7-9.noarch.rpm
    
  2. get the gpg key for epel:
    1. download key: $ wget https://getfedora.org/static/352C64E5.txt
    2. check fingerprint:
      1. get official fingerprint from website: https://getfedora.org/keys/
      2. compare to value from: $ gpg --with-fingerprint 352C64E5.txt
    3. import key: $ rpm --import 352C64E5.txt

src: tecmint.com, web-vision.de (german)