Note-taking and file sharing with Syncthing and Joplin

You can find many note-taking services, like, Evernote, Google Keep, Notion, Obsidian and online storage services such as, Dropbox, Google Drive, OneDrive, iCloud. They are easy to use and secure. But, secure is not equal to private! A way to keep privacy is host private services by self. Edward Snowden’s Privacy Tips: “Get Rid Of Dropbox,” Avoid Facebook And Google This is how I share/edit notes and files with different devices which service providers are unable to peek and analyze my private contents. Joplin and Syncthing in grey are optional in the diagram, for example notes can be written on the Raspberry Pi through the terminal Joplin application, files can share between the Phone and the PC directly but my Raspberry Pi is online 24/7. ...

June 5, 2022 · 4 min · oopsmonk

RaspberryPi3: GLMark2 using weston with DRM backend

How to use weston with DRM backend in Raspbian, and gets benchmark score by GLMark2. With regards to hardware acceleration, We can enable VC4 driver through raspi-config. # update system and raspi-config script $ sudo apt-get update && sudo apt-get upgrade $ sudo apt-get install raspi-config # enable Broadcom VC4 driver $ sudo raspi-config Advanced Options -> GL Driver -> GL (Full KMS) Test environment: 2017-04-10-raspbian-jessie-lite HDMI 1080P 60Hz CPU/GPU use default settings(no overclock) Test packages: ...

June 5, 2017 · 7 min · oopsmonk

LibCEC on Raspberry Pi

Install requirements sudo apt-get install build-essential autoconf liblockdev1-dev \ libudev-dev git libtool pkg-config cmake libxrandr-dev -y Python and Swing support (Optional) sudo apt-get install python-dev swig -y Checkout and build libcec source code The current version is libcec-3.0.1, but I got an error as follows: make[2]: *** No rule to make target '1', needed by 'src/libcec/libcec.so.3.0.1'. Stop. Using libcec-3.0.0 instead of libcec-3.0.1, it’s work properly. git clone https://github.com/Pulse-Eight/libcec.git cd libcec git checkout libcec-3.0.0 -b cec3.0.0 Checkout platform source ...

November 3, 2015 · 11 min · oopsmonk

New Feature: Real-Time Monitoring

Real-Time Monitor for rpi-monitor: Update system status every 5 seconds. Two HTML layouts: change different layout via click Real-Time on navigation bar. Project on github: rpi-monitor Layout 1(default): Layout 2:

July 4, 2015 · 1 min · oopsmonk

Build A Blog with Jekyll and GitHub on Raspberry Pi

I recently switched my blog from Google Blogger to GitHub Pages, here is how I built my blog. I’ll go through the following: Install Jekyll on Raspberry Pi Setup Jekyll Theme Post a new article Images minimization Commit to GitHub Using Jekyll and Minimal Mistake build a blog and host on GitHub and Raspberry Pi(or Ubuntu). Requirements: Raspberry Pi(or Ubuntu) GitHub account Jekyll 2.2+ Minimal Mistake Grunt If you have no idea with these things, here are useful resources: How Jekyll Works Jekyll Installation Minimal Mistake Theme Setup GitHub Pages Getting started - Grunt ...

March 5, 2015 · 4 min · oopsmonk

Raspberry Pi Monitor

Use RRDTool monitor Raspberry Pi, include CPU temperture, Memory usage, Disk I/O, Network I/O… Install install packages $sudo apt-get install libcairo2-dev libpango1.0-dev libglib2.0-dev libxml2-dev \ librrd-dev python2.7-dev rrdtool python-rrdtool $wget https://pypi.python.org/packages/source/p/psutil/psutil-2.1.1.tar.gz $tar xf psutil-2.1.1.tar.gz $cd psutil-2.1.1 $sudo python setup.py install Download or clone rpi-monitor on github https://github.com/oopsmonk/rpi-monitor Setup Crontab By defualt, the cron.log is disabled in Raspbian. To enable it: sudo vi /etc/rsyslog.conf find the line and uncomment it. # cron.* /var/log/cron.log Restart rsyslog via: ...

July 21, 2014 · 1 min · oopsmonk

Building MOC

clone MOC svn repository to github Ref: Converting a Subversion repository to Git $ sudo apt-get install subversion git-svn $ mkdir moc-svn $ cd moc-svn $ svn co svn://daper.net/moc/trunk $ svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > authors-transform.txt $ cd .. $ mkdir moc-git $ git svn clone svn://daper.net/moc/trunk --no-metadata -A ./moc-svn/authors-transform.txt ./moc-git $ cd moc-git $ git svn show-ignore > .gitignore $ git add -f .gitignore $ git commit -m "Convert svn:ignore to .gitignore." $ mkdir ../moc-bare $ git clone --bare ../moc-bare $ cd ../moc-bare/moc-git.git #Create empty repository on GitHub. $ git push --mirror https://github.com/oopsmonk/moc-git.git install develop package for MOC (Ubuntu) $ sudo apt-get install build-essential libdb-dev gettext Optional libraries: Sound driver: ALSA - libasound2-dev JACK - libjack-dev Decoder: FLAC - libflac-dev MP3 - libmad0-dev, libid3tag0-dev sndfile, vorbis - libsndfile1-dev Network: libcurl4-gnutls-dev RCC: librcc-dev Resample : libsamplerate0-dev MIME magic: libmagic-dev After release 2.5 MOC will require libpopt. $ sudo apt-get install libasound2-dev libjack-dev \ libflac-dev libmad0-dev libid3tag0-dev libsndfile1-dev $ sudo apt-get install libcurl4-gnutls-dev librcc-dev \ libsamplerate0-dev libmagic-dev libpopt ----------------------------------------------------------------------- MOC will be compiled with: Decoder plugins: flac mp3 sndfile vorbis Sound Drivers: OSS ALSA JACK DEBUG: yes RCC: yes Network streams: yes Resampling: yes MIME magic: yes ----------------------------------------------------------------------- install develop package for MOC (Raspberry Pi) $ sudo apt-get install build-essential autoconf automake libtool $ sudo apt-get install libncurses5-dev libdb-dev gettext $ sudo apt-get install libasound2-dev libjack-dev libflac-dev \ libmad0-dev libid3tag0-dev libsndfile1-dev $ sudo apt-get install libcurl4-gnutls-dev librcc-dev libsamplerate0-dev libmagic-dev Build libpopt $ wget http://rpm5.org/files/popt/popt-1.16.tar.gz $ tar xf popt-1.16.tar.gz $ cd popt-1.16 $ autoreconf $ ./configure --prefix=/usr/lib --enable-shared $ make $ sudo make install check out from repository $ svn co svn://daper.net/moc/trunk moc-svn Build step $ cd moc-svn $ autoreconf $ ./configure --enable-debug --perfix=/path/to/dev $ make && make install Debugging $cd /path/to/dev $ ./bin/mocp --debug

August 23, 2013 · 2 min · oopsmonk