My Notes

Categories: Computers, Games, Hardware, Linux, Programming

Super useful articles on how to configure VNC server on Linux

How to Install and Configure VNC on Ubuntu 18.04

Hint: after each editing /etc/systemd/system/vncserver@.service do both commands:

sudo systemctl daemon-reload
sudo systemctl restart vncserver@1.service

A hint for applying your .profile in the VNC server (make sure to set xstartup interpeter to /usr/bin/bash).

Also, a handy VNC client list.

PHP function to read friends-only LiveJournal posts through RSS

The code is pretty self-explanatory. The only know-how is the combination of the options which works with LJ.
The global variables $digest_username and $digest_password should be set to your LiveJournal username and password, respectievely.
The $url should like like:

UPD: (The Russian version):
PHP-код для чтения закрытых постов в ЖЖ через RSS
Ищу способ снова читать ЖЖ и массу других блогов в одном централизованном приложении. Естественно, это возможно только через RSS. Как оказалось, у ЖЖ есть возможность читать защищённые записи через RSS, но не всё так просто, т.к. отдавалка RSS требует определённых уговоров и, например, Tiny Tiny RSS не справляется с получением защищённых фидов. В интернетах также нет работающего в настоящий момент примера кода, поэтому я решил запостить результат своих изысканий. Код тривиальный, фишка только в наборе параметров cURL.
$digest_username, $digest_password - глобальные переменные с вашим логином и паролем в ЖЖ.
URL защищённого фида:
(Замените tl1 на произвольный %USERNAME% ЖЖ.)
Вы получите RSS с записями пользователя, включая приватные, которые он открыл вам.

·· [Read more · Читать дальше] ·· »»»

My & 2GIS Open-Source Repos Migrated to GitLab (Qt for Android and other stuff)

Since is going to be shut down within 1.5 months the open-source repos have been moved here:

This includes Qt 4.8 and patched Qt 5 for Android (grym-android-lighthouse, grym-qt, grym-qt5), ex qtandroidoffscreenviews and related stuff.

Ubuntu 11.10 Distro Upgrade Oops

Yesterday I was upgrading a computer from Ubuntu 11.10 (Oneiric) Linux to 12.04 and 'sudo do-release-upgrade' was crashing with an error message in the script.
To make it update to 12.04 simply remove the 'print' statement from lines 91-92 in /usr/bin/do-release-upgrade and run it again.

Stallman's Opinion About Steve Jobs

Steve Jobs, the pioneer of the computer as a jail made cool, designed to sever fools from their freedom, has died.
As Chicago Mayor Harold Washington said of the corrupt former Mayor Daley, "I'm not glad he's dead, but I'm glad he's gone." Nobody deserves to have to die - not Jobs, not Mr. Bill, not even people guilty of bigger evils than theirs. But we all deserve the end of Jobs' malign influence on people's computing.
Unfortunately, that influence continues despite his absence. We can only hope his successors, as they attempt to carry on his legacy, will be less effective.



© Sergey A. Galin, 1998-2021