Author Archives: Daniel Sobrinho

How to update the Deepin Kernel

To update the Deepin kernel there is the possibility of using the Ubuntu kernel made available by Canonical. I write here i use this procedure to be able to keep my Deepin updated more often. I have never had any problems, but I say that the responsibility for the act is individual, I do not make a recommendation here, I just inform the procedure and I am not responsible for any error. It's worth it to me!

If you ask me: What do I get from the Kernel update?
Resetting: I've seen in practice improved hardware performance, reduced processor/gpu (Intel) heating, increased network performance… anyway, update is for this.

Here are the steps:
1) Access Ubuntu's kernel base: https://kernel.ubuntu.com/~kernel-ppa/mainline/

2) Look for the version that interests you and access. Today the most stable version is 4.19.11 > https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.11/

3) Search the files according to the architecture of your processor, I will exemplify using the 64 bits:

> Download the files and install in the following sequence:

1st – linux-modules

2nd – linux-image-unsigned

3rd – linux-headers……...._all.deb

4th – linux-headers

** I do not use lowlatency versions and in another article I explain the characteristic of it. You do not need to download and install it.

> Install the files using Deepin's own graphical manager or dpkg.

> After the 4 files are installed, speak the GRUB update and verify that the Kernel version has been added as a boot option:

I hope I helped you who is also more relaxed having the system up to time.

PhpMyAdmin count() error

If you are identifying this error when opening the phpMyAdmin screen, just when you display the screen of any of the tables, as below, the solution follows:

Warning in ./libraries/sql.lib.php#601
count(): Parameter must be an array or an object that implements

Backtrace

./libraries/sql.lib.php#2038: PMA_isRememberSortingOrder(array)
./libraries/sql.lib.php#1984: PMA_executeQueryAndGetQueryResponse(...

Above part of the error and below the solution:
Edit the file:
'/usr/share/phpmyadmin/libraries/sql.l
ib.php'
Replacing as below:
(count($analyzed_sql_result['select_expr']s == 1
)
by:
(count($analyzed_sql_results['select_expr']) == 1

How to reinstall Apache2 on Ubuntu

First uninstall and completely delete apache2 settings. It is important to remember that virtual host settings will be lost, but nothing will occur with the server file folder ("/var/www/html" or "htdocs")…

sudo apt removes apache2 && sudo apt purge apache2

Now reinstall Apache2:

sudo apt install apache2
sudo s
ystemctl start apache2

It will start without errors, route accesses to the host folder but will not interpret PHP, right? For this to regularize, install apache lib for php:

sudo apt install libapache2-mod-phpX.XX considering XXX as being your version of PHP
su
do systemctl restart apache2

We're all set!