Get Social

How to install and configure the simplemachines (smf) forum on Debian

1. Go to the official site and download the forum source here:
http://download.simplemachines.org/

and the language you need is here:
http://download.simplemachines.org/?smflanguages;lang=russian
(Only you need to be careful when choosing an archive with a language – there are different encodings)

2. Then, we place it all on our hosting.

3. Then, following the guidelines http://wiki.simplemachines.org/smf/Installing
create a database and a user (you can do this in the console, or – in phpmyadmin):

mysql -u root -p
CREATE DATABASE forumdb;
GRANT ALL PRIVILEGES ON forumdb.* TO "userdb"@"localhost" IDENTIFIED BY "pass";
FLUSH PRIVILEGES;
EXIT

4. Unpack the forum in the target folder on the server:
mkdir /var/www/forum.example.com
cd /var/www/forum.example.com
tar -xzvf smf_2-0-x_install.tar.gz
tar -xzvf smf_2-0-y_russian.tar.gz (or smf_2-0-y_russian-utf8.tar.gz)

5. Create and edit a configuration for Apache:
nano /etc/apache2/conf.d/forum.example.com.conf

<VirtualHost *:80>
ServerName forum.example.com
ServerAlias www.forum.example.com
DocumentRoot /var/www/forum.example.com
<Directory "/var/www/forum.example.com">
AllowOverride All
Order deny,allow
Allow from all
AddHandler application/x-httpd-php .php .html
</Directory>

6. Verify the configuration and start the installer:
We check whether the configuration file was made correctly:
apachectl configtest
if there are no critical errors – gently restart Apache:
apachectl graceful
Now open your forum in the browser:
http://forum.example.com/install.php

7. Next – follow the instructions of the web installer.

8. Done!

Free s/mime certificate from startssl

I wanted for my site to get free ssl to use https. A search on the net brought me here:https://www.startssl.com/. After registration, I got it, but it’s a completely different story … By the way, it turned out that it was very easy to get a s / mime certificate for your mail (no matter which domain).

How to get a free s/mime certificate?

First, in your account, you need to check your email with the Validations Wizard:

a notification will be sent to the email

After that in “Certificates Wizard” you can choose “S/MIME and Authentication Certificate” and get it.

It is saved in the browser automatically, and it needs to be imported for use in mail client.

p.s. to build a chain your mail client may need (for example, I have kmail / kleopatra) StartCom CA Certificates. It’s enough to go to the Toolbox tab and download everything that’s there and then import it into the mail client / certificate manager.

update. In 2016, there were problems with ssl from this company. Perhaps, it is better not to use them. In any case, it’s better to check everything.

Viber Desktop on Debian Lenny

Problem: Viber Desktop does not start on Debian Linux.

When we running the command /opt/viber/Viber in the terminal, we can see the error:

/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /opt/viber/Viber)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/Viber)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5Widgets.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /opt/viber/libQt5Network.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5Network.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5Sql.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5WebKit.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5WebKitWidgets.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5Declarative.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5DBus.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5OpenGL.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5Gui.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /opt/viber/libQt5Core.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5Core.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libicui18n.so.48)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libicuuc.so.48)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5Quick.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5Qml.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5PrintSupport.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5XmlPatterns.so.5)
/opt/viber/Viber: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/viber/libQt5Script.so.5)

what to do?

The idea was found on superuser.com:

go to packages.debian.org, download fakeroot and install from individual packages:

mkdir /opt/fakeroot
dpkg -x libc6_2.19-11_amd64.deb /opt/fakeroot
dpkg -x libc6-dev_2.19-11_amd64.deb /opt/fakeroot

Now, start with new command:
LD_LIBRARY_PATH=/opt/fakeroot/lib/x86_64-linux-gnu/ /opt/viber/Viber

Profit!