Original HOWTO Install GNUsocial free social media software by-the-side of existing diaspora* pod on Debian8

Original HowTo by http://juboblo.gr #installingfreesome

  • #canworkwithoutsudo but this HowTo assumes #havesudo . Should be straightforward even #withoutsudo if existing LAMP (GNU/Linux, Apache or Nginx, MariaDB or MySQL and php) installed on the system. I used MariaDB and Nginx since the https://d.consumium.org #diaspora pod is configured to use that.
  • Normative instructions: https://git.gnu.io/gnu/gnu-social/blob/master/INSTALL

    GNU is GNU but GNU is not unikka but they do like each other a whole lot. Under Free Artist Licence – http://artlibre.org/licence/lal/en/ Click pic for credits
  • Also I read these slightly dated Debian specific instructions: https://levlaz.org/installing-gnu-social-on-a-debian-server/

Replacing MySQL with MariaDB

Following these instructions https://askubuntu.com/questions/531455/how-to-drop-in-replace-mysql-with-mariadb (written for Ubuntu14.04) blindly would have made a mess of this  but they still outline what you want to do. Since they wanted to remove the ruby specific stuff which I wanted to stay to retain diaspora* pod working.

So I shut down diaspora* processes the usual waya and MySQL with ‘mysqladmin -uroot -p stop’

The instructions say to

sudo apt-get remove --purge mysql-server mysql-client mysql-common

but I used instead

sudo apt-get remove --purge mysql-server mysql-client

Which left the ruby stuff in place which is a good idea since afaik MariaDB is binary  compatible with MySQL add-on stuff

followed by

sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get install mariadb-server

And MariaDB was up and running which I checked by ‘mysql -uroot -p’ so the downtime for the pod was only like 5 minutes for this step.

Installing the dependencies for GNUsocial

‘sudo aptitude install php5-curl php5-gd php5-gmp php5-intl php5-json php5-mysqlnd’

Installing optimizations / accelerators for GNUsocial

I went with this ‘ sudo aptitude install php5-xcache exif’

I’m not sure if php5-xcache (an opcode cache system) is what the official installation instructions refer to as ‘opcache’. At least /etc/php5/mods-available/ is showing a opcache.ini so I’m guess it was that.



Downloading GNUsocial code

‘sudo mkdir /var/www/gnusocial’

‘sudo chgrp www-data /var/www/gnusocial/’

‘sudo chmod g+w /var/www/gnusocial/’

‘sudo git clone https://git.gnu.io/gnu/gnu-social.git gnusocial/’

and you are done

Creating the database

From shell run

mysqladmin -u "root" -p create social
       GRANT ALL on social.*
       TO 'social'@'localhost'
       IDENTIFIED BY 'agoodpassword';

The command above is to be executed in the MariaDB client (start it with ‘mysql -uroot -p social’)

Get an SSL cert and key for your GNU social instance

I have not yet tried out https://letsencrypt.org/ but have heard good things about it and you cannot really beat the price of 0€. A few companies I am clientele of are supporting it financially. Mainly https://gandi.net – a very nice registrar. Good even if not the cheapest around. High sortiment of domain names and rock solid tek with the latest copyleft solutions.

Configure Apache/Nginx with the help of the example .conf files in the directory you cloned the social software into.

You can test the configuration file makes sense by

‘sudo nginx -t’

Remember to reload after editing.

‘sudo service nginx reload’

Finishing up

Once you have configured you httpd there is still one thing to do before proceeding to https://social.example.com/install.php

For some reason the installation guide did not mention that the default settings in the httpd.conf.example file expects unix:/var/run/php5-fpm.sock; to just be there.

install with

‘sudo aptitude php5-fpm’

This was how I got GNU social to work in the same box as the diaspora* pod.







Original HOWTO migrate GNU/Linux to bigger disk with clean install and grab all apt-gettable software, settings and files

#HowTo #ByJuho – How to install clean GNU/Linukka aka. GNU/Linux onto bigger laptop 2.5″ HDD and all your apt-get’table applications and document and configuration files from an older smaller disk to bigger?

Curious Tux
Curious Tux pic courtesy of https://pixabay.com/en/penguin-tux-animal-bird-cute-158551/

#needsudo not gonna work without sudo rights

#need $20 USB-to-SATA casing and a screwdriver

#alternative similar effect producing method is to use the casing and use dd  to move partitions around and Gparted to resize them.

# what it doesn’t do? It doesn’t move password file so this will no work for a system then one user. It does not move /root-directory contents in case there is something there and it does not move any server software set-up except for the apt-gettable software.


# Run in the old GNU/Linukka to get complete list of # ‘apt-get install’ed packages onto packages.list
‘dpkg –get-selections > packages.list’

Grab the confs ‘tar cvzf system-name-dot-dirs-YYYY-MM-DD.tar.gz .kde/ .config/ .bashrc .profile .gimp-2.8/ .ssh/’ and extract those to the new machine’s home directory so the installers detect the existing settings and should be happy with that. Another way to go about this would be to install the software first and then extract the confs over the default ones created by the installers but this would appear more prone to errors in my opinion.

# Move this packages.list file (no need to compress it. it is few tens of kilobytes long) to the

# Now you could try
‘sudo dpkg –set-selections < packages.list’
straight ahead but for me it complained about not finding obviously existing packages such as ‘apache2’ so I consulted the dpkg man page

# So first run
‘ sudo apt-get install dselect’
# and run
‘sudo dselect update’

# and you will get the latest fullest catalogue of apt-gettable software from the repositories

# Now you are ready to set dpkg (Debian PacKaGe management) selections from the file
‘sudo dpkg –set-selections < packages.list’

# now install all packages that were set in the previous command from packages.list. This is obviously going to take a some time but you’re almost there.

‘sudo apt-get dselect-upgrade’

# You can now use your favourite method of recovering your files stored in /home are restored

#I didn’t just mount the old /home partition. Instead I put it into a USB-to-SATA casing and used that to connect the HDD into the freshly installed system and copied them over.

# Alternatives are using a 3rd (removable) HDD to move the files or upload to server or cloud and download to new system.

# recursively copying all directories from the old /home partition

‘sudo cp /media/username/UUIDgoeshere /home -R’

Laptop temperature problem solved by high pressure air into the heatsink and some learnings of factors of heat management

System monitoring and control software for [K]ubuntu / copyleft

Resource Monitor
Resource Monitor seen in 2x high panel height

Resource Monitor is a KDE5 Plasma Plasmoid Widget companion to the System Monitor. Install instructions in Muon Discoverer. One dependancy must be installed. It sits in your panel and reports CPU load and frequency, RAM and swap usage  with tiny letters and numbers and graphics. Here seen in 2x high panel height

Psensor Psensor-rational-readingis a copyleft program, specifically GPL licensed  installable from the ubuntu repositories with ‘sudo apt install psensor’

Cpufrequtils (ThinkWiki entry for cpufrequtils)are installable from the Ubuntu repositories by typing ‘sudo apt install cpufrequtils’ and contains 2 commands:

  • cpufreq-info for querying the state of the cores and
  • cpufreq-set for setting parameters.

Thinkpad Fan Control is a fan RPM control software written in C for the Thinkpad series of laptops. Apparently the normal controller has a ceiling at 4,500RPM but according to the internets the fan can be instructed to go 5,500RPM raising the noise pitch and volume slightly.


System monitoring software for WindowsCore Temp screenshot

Core Temp is a freeware Windows program and reports real time temp sensor data ( prlly algorithmically smoothed but much more stable ) and real time CPU frequency multiplier and frequency reading.

CPU-Z by CPUID is another good free-of-charge CPU-Z screenshotWindows program that will give you lot of information about your system also including the frequency multiplier used at each time








Synopsis of the original problem

Psensor displaying problem temperature
Not like this. Psensor showing temperatures where the user is susceptible to system shutting down because of a trigger temperature has been reached or exceeded






Had a machine with a weird temperature problem here… It’s a 2011 Lenovo ThinkPad X201 with a 1st generation i5 known as Arrandale. CPU temperature control, maybe voltage control, maybe amp control is not working correctly in #Kubuntu. (UPDATE: Sandy Bridge, Ivy Bridge and newer intel systems should use the Intel P-State governor. Installation instructions for [K]ubunu here)

Temperature seems to be mostly dependent on the frequency of the CPU with some correation to load. Reported CPU fan rotation speed is 4,000-4,500 RPM and does not adequately respond to the heat situation.

(UPDATE: Directing high pressure pressurised air into the cooling elements while machine unpowered seems to have remedied the problem.)

#GNU/#Linukka heat shutdowns causing system being unusable. Before anyone starts about the GNU/Linukka treating the system and therefore the user more badly then a Microsoft Windows I must say that air conducts have not been cleaned and silicon heat paste has not been changed to fresh, new. I gonna get supplies to do that when I run into shop.

In Kubuntu15.10 GNU/Linukka burns the chip at ~ 90C ~ 2.0-2.5Ghz operating speed causing emergency shutdown because of temperature because the readings viewed in Psensor may flux 15-20C somewhat interdependent of CPU load. Windows 7 keeps the CPU ~ 1.5-2.0GHz quite independent from the load and the temps are in the acceptable ~ 70C zone with only 2-4C variance in the readings reported by CoreTemp.


* Bought a pressure air can and blasted the visible from exterior heat sink