X server and related managers

See also # nice explanation about the entire startx workflow http://unix.stackexchange.com/questions/243195/what-desktop-environment-does-startx-run-and-how-can-i-change-it # explanation about sessions http://askubuntu.com/questions/62833/how-do-i-change-the-default-session-for-when-using-auto-logins # list available desktop environments ls -l /usr/share/xsessions # show current login/display manager cat /etc/X11/default-display-manager # see also lightdm-greeter from Alternatives Configurator: ls -l […]

Plex Transcoding with low cost slow CPU

I have Ubuntu 16.04.1 LTS on this low power SoC board Asrock N3150DC-ITX with N3150 CPU: http://ark.intel.com/products/87258/Intel-Celeron-Processor-N3150-2M-Cache-up-to-2_08-GHz According to https://support.plex.tv/hc/en-us/articles/201774043-What-kind-of-CPU-do-I-need-for-my-Server- (see The Guideline) I quote: Very roughly speaking, for a single full-transcode of a video, the following PassMark scores are […]

Transmission on Ubuntu

Important files /etc/init.d/transmission-daemon -> SysV service /etc/default/transmission-daemon -> run by /etc/init.d/transmission-daemon /********/.config/transmission-daemon -> CONFIG_DIR in /etc/default/transmission-daemon /********/.config/transmission-daemon/settings.json User and Group running transmission-daemon change to desired ones (e.g. USER=************) in /etc/init.d/transmission-daemon

Yahoo certificate error

ERROR (ubuntu + chromium) https://forums.yahoo.net/t5/Errors/NET-ERR-CERTIFICATE-TRANSPARENCY-REQUIRED-on-chromium-53/m-p/141922/highlight/true#M36857 ERR_CERTIFICATE_TRANSPARENCY_REQUIRED You cannot visit mail.yahoo.com right now because the website uses HSTS. SOLUTION (no logic here but working at 16 Nov 2016) https://www.quora.com/How-do-you-fix-the-privacy-error-in-Chrome-Your-connection-is-not-private On the page displaying this error, click anywhere on the page where […]

Boost website performance

install ab command sudo apt install apache2-utils ### configure /etc/sysctl.conf: # Uncomment the next line to enable TCP/IP SYN cookies # See http://lwn.net/Articles/277146/ # Note: This may impact IPv6 TCP sessions too net.ipv4.tcp_syncookies=0 # https://linux.die.net/man/5/proc # https://www.kernel.org/doc/Documentation/sysctl/fs.txt fs.file-max = 6815744 […]

Crossroads load balance and fail over utility

Original description Crossroads is an open source load balance and fail over utility for TCP based services. It is a daemon running in user space, and features extensive configurability, polling of back ends using ‘wakeup calls’, detailed status reporting, ‘hooks’ […]

Spring security with kerberos

What is a keytab, and how do I use one? Introduction to Kerberos for Managers Crash Course to Kerberos Appendix D. Troubleshooting JAAS authentication with Kerberos http://www.roguelynn.com/words/explain-like-im-5-kerberos/ KDC = Kerberos Key Distribution Center TGT = Ticket Granting Ticket TGS = […]

zoneminder

https://wiki.zoneminder.com/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.30.0_the_easy_way # when already have mysql do: sudo systemctl start mysql sudo apt-get install zoneminder sudo chmod +r /etc/zm/zm.conf sudo chmod g+rw /etc/php/7.0/apache2/php.ini # edit /etc/php/7.0/apache2/php.ini date.timezone = Europe/Bucharest # create mysql user zmuser/zmpass and mysql schema zm # grant […]

gitweb on apache

# projects web page will be: https://192.168.1.8/gitweb/ # Create a git project (e.g. testproject.git): # mkdir -p /opt/GITRepositories/testproject.git # cd /opt/GITRepositories/testproject.git # git init –bare –shared # cp -v /opt/GITRepositories/test.git/hooks/post-update.sample /opt/GITRepositories/test.git/hooks/post-update # now https://192.168.1.8/testproject.git is ready for cloning: # git […]

Angularjs 2

http://embed.plnkr.co/qZf6yv/ https://benmccormick.org/2015/09/14/es5-es6-es2016-es-next-whats-going-on-with-javascript-versioning/ http://onehungrymind.com/build-a-simple-website-with-angular-2/ http://blog.mgechev.com/2016/06/26/tree-shaking-angular2-production-build-rollup-javascript/ https://scotch.io/tutorials/use-the-angular-cli-for-faster-angular-2-projects https://www.smashingmagazine.com/2014/06/building-with-gulp/ compatibility https://angular.io/docs/ts/latest/guide/browser-support.html angular 2 project seed https://github.com/angularclass/awesome-angular2#current-browser-support-for-angular-2 https://angularclass.github.io/angular2-webpack-starter/ https://github.com/AngularClass/angular2-webpack-starter https://www.npmjs.com/package/angular2-webpack-starter https://github.com/mgechev/angular-seed https://github.com/NathanWalker/angular-seed-advanced http://www.devacron.com/angular2-github-boilerplate-repositories/ http://stackoverflow.com/questions/29649578/available-yeoman-generator-for-angular-2 webpack https://webpack.github.io/docs/ http://stackoverflow.com/questions/39548175/can-someone-explain-webpacks-commonschunkplugin https://blog.madewithlove.be/post/webpack-your-bags/ http://webpack.github.io/analyse/ webpack lazy loading not working for me https://github.com/Quramy/angular2-load-children-loader https://github.com/Quramy/ng2-lazy-load-demo rxjs http://blog.falafel.com/introduction-rxjs-angular2/ http://reactivex.io/rxjs/class/es6/Observable.js~Observable.html typings https://github.com/typings/typings https://neoheurist.wordpress.com/2016/06/20/definitely-typed/ […]

Ufw (uncomplicated firewall)

documentation https://help.ubuntu.com/lts/serverguide/firewall.html http://manpages.ubuntu.com/manpages/xenial/en/man8/ufw.8.html http://manpages.ubuntu.com/manpages/xenial/en/man8/ufw-framework.8.html important files /etc/ufw/user.rules Uncomplicated Firewall # https://help.ubuntu.com/community/UFW sudo ufw show added sudo ufw status verbose sudo ufw show listening sudo ufw limit ssh sudo ufw allow 80 sudo ufw allow 443 sudo ufw allow 32400 sudo […]