Linux media conversion

sudo apt install libav-tools webm to mp4 http://askubuntu.com/questions/323944/convert-webm-to-other-formats ffmpeg -i “Jurjak – Bucuresti.webm” -qscale 0 “Jurjak – Bucuresti.mp4” ffmpeg -fflags +genpts -i “Jurjak – Bucuresti.webm” -r 24 “Jurjak – Bucuresti1.mp4” -> change to 24 FPS ffmpeg -i “Jurjak – Bucuresti.webm” […]

Linux youtube downloader errors

first, let’s see the youtube-dl error youtube-dl https://www.youtube.com/playlist?list=PLEmVsSEEP5HDTSik5ZSyOWz0qsS1tPos_ [youtube:playlist] PLEmVsSEEP5HDTSik5ZSyOWz0qsS1tPos_: Downloading webpage [download] Downloading playlist: cantece pt copii in germana [youtube:playlist] playlist cantece pt copii in germana: Downloading 6 videos [download] Downloading video 1 of 6 [youtube] dtZ7U7csvcw: Downloading webpage […]

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 […]

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 […]

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 […]

ssh, http and https multiplexing

This is about how to have the ssh and http(s) server share the same port (e.g. 80 or 443 port). This is really cool :). # Used sources: # http://yalis.fr/cms/index.php/post/2014/02/22/Multiplex-SSH-and-HTTPS-on-a-single-port # http://blog.cppse.nl/apache-proxytunnel-ssh-tunnel # http://serverfault.com/questions/355271/ssh-over-https-with-proxytunnel-and-nginx # http://tyy.host-ed.me/pluxml/article4/port-443-for-https-ssh-and-ssh-over-ssl-and-more # http://ipset.netfilter.org/iptables.man.html # http://ipset.netfilter.org/iptables-extensions.man.html […]

Ubuntu and Oracle

see also https://wiki.centos.org/HowTos/Oracle12onCentos7 # see also https://adrhc.go.ro/wordpress/centos-and-oracle/ # Follow this (works with Ubuntu 16.04 too): # http://www.techienote.com/install-oracle-12c-on-ubuntu/ # systemd oracle.service (working when only one db is automatically started with /etc/oratab) [Unit] Description=Oracle 12c After=local-fs.target Wants=local-fs.target [Service] Type=forking User=oracle Group=oinstall […]

Oracle and systemd

http://docs.oracle.com/database/121/index.htm # https://172.16.148.137:5500/em/login # start db: [oracle@redhat7 ~]$ sqlplus / AS SYSDBA STARTUP # start TNS listener [oracle@redhat7 ~]$ lsnrctl start # TNS listener status [oracle@redhat7 ~]$ lsnrctl status cat /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora # stop TNS listener [oracle@redhat7 ~]$ lsnrctl stop […]