Fork me on GitHub

Vagrant share ssh agent between host and guests

Why?

In this way you can share from your host multiple ssh keys without copy/paste its on each VM. All ssh key are centralised and that's better when working with a lot of VM.

How to?

On the host side

In ~/.ssh/config:

#share ssh agentwith VM
Host *
 ForwardAgent yes 

On the guest side

In Vagrantfile:

config.ssh.forward_agent = true

Cool open source software for home

I spent many years to find a full and cool stack of open source softwares for home. Here is my personal open source software list, that I really enjoy.

OS

After testing several linux (fedora, opensuse, debian, ubuntu ...), I think the easiest for home are debian based OS:

System

Privacy

  • veracrypt: awesome. No more USB key or sensitive data without that
  • keepass: cannot live without that

Web browser

Filesharing

  • nextcloud: bye bye dropbox
  • rsync: backup your data at a friend house
  • ssh: connect to a friend house

GPS

  • viking: awesome for GPS tracking

Office

Text editor

  • vim: you must know that stuff
  • atom: bye bye sublime text

Image editor

  • pinta: for simple editing
  • gimp: for complex editing

Multimedia

  • vlc: this stuff reads and streams everything
  • audio-recorder: capture audio stream fpr your pc
  • kazam: cool screencasting
  • shutter: cool screenshoting
  • ffmpeg: converting video and audio has never been so easy.

Website

Installing Nextcloud on RPI device

Install Raspbian

Install OS

Basic configuration

  • enable SSH: sudo raspi-config > Interfacing Options > SSH
  • change default password running : passwd
  • change keyboard layout if needed

Install Nextcloud

Nextcloud Stack

The following script will install the full stack. Run it as follow:

    chmod +x nextcloud.sh
    ./nextcloud.sh

Provisioning script from github:

Tuning

Check settings here https://nextcloud.local/index.php/settings/admin/:

Enable PHP7.0 opcache

Add this in /etc/php/7.0/apache2/php.ini:

    opcache.enable=1
    opcache.enable_cli=1
    opcache.interned_strings_buffer=8
    opcache.max_accelerated_files=10000
    opcache.memory_consumption=128
    opcache.save_comments=1
    opcache.revalidate_freq=1

PHP7.0 apcu

    sudo apt-get install php7.0-apcu -y

Check this file exists:

    cat  /etc/php/7.0/mods-available/apcu.ini

Finally, add this in nextcloud/config/config.php:

    'memcache.local' => '\OC\Memcache\APCu',

USB drive

In this case, I have an usb external hard drive. I need to fix it mount point to be always the location in order to configure it in Nextcloud.

Edit  /etc/fstab:

/DEV/SDA1       /MEDIA/WESTERN-DIGITAL-1-TO     EXT4    DEFAULTS        0       0
sudo chown -R root:www-data /media/western-digital-1-to/
chmod g+rwx /media/western-digital-1-to/

Nextcloud trusted domains

Edit trusted_domains settings in /var/www/nextcloud/config if needed.

Enjoy

That was it! Nextcloud if now fully configured on your RPI, enjoy!