Monday, May 23, 2022

Debian Bullseye (Debian 11): install mysql-workbench-community

Requirements:

  1. gnome-keyring
  2. libtinfo5
  3. libpython 2.7

Install all requirements packages:

# apt-get install seahorse gnome-keyring libtinfo5 libpython2.7

Change Default gnome-keyring using seahorse

$ seahorse

delete "Default keyring"

create new "Default keyring" and enter new password

Download from https://downloads.mysql.com/archives/workbench/

Choose Ubuntu Linux 18.04 (x86, 64-bit), DEB Package (mysql-workbench-community_8.0.22-1ubuntu18.04_amd64.deb)

# dpkg -i mysql-workbench-community_8.0.22-1ubuntu18.04_amd64.deb

Convension:

  • # run as root
  • $ run as user

 

Saturday, May 14, 2022

Windows 11: configure windows 11 on laptop without internet connection

 

Today, almost new laptop, equip with Windows 11. For the first time we turn it on, windows will force us to use any connection available, for example any wifi detected by system.

To bypass internet connection appear in wifi configuration, press Alt-F4, then restart your laptop.

After that, we can configure our windows without internet connection. windows will ask username and password (may blank), for local account. Later you can add your outlook account to access windows store.

Friday, March 11, 2022

Debian Bullseyes: installing & configure brightness control on Xfce4

 

You need to install:

  1. brightnessctl
  2. grub-customizer
  3. xfce4-power-manager   

# apt-get install brightnessctl grub-customizer xfce4-power-manager   

From Applications -> Settings -> Grub Customizer

  1. Open General settings
  2. At kernel parameters append acpi_backlight=video
    for example "quiet acpi_backlight=video"
  3. Save and restart.

You can choose only one from these options:

  • acpi_backlight=vendor
  • acpi_backlight=video
  • acpi_backlight=native
  • acpi_backlight=none

You can change your brightness from Power Manager Plugin in Xfce4.

Note: after make any change, restart your Debian

Tested on

  • Asus K45DR AMD A8 Series
  • Debian 11.2
  • linux-image 5.15.0-0.bpo.3-amd64

Tuesday, November 9, 2021

Debian Bullseyes: installing zoneminder (1.34.23-1)

 

Requirements:

  • MariaDB
  • Apache2

Installing packages

# apt-get install zoneminder apache2 mariadb-server-10.5 mariadb-client-10.5 php php7.4 libapache2-mod-php7.4 php7.4-mysql

# chown www-data:www-data /usr/share/zoneminder/ -R

# chown root:www-data /etc/zm/ -R

# a2enmod cgi

# a2enmod rewrite

# a2enconf zoneminder

Set root password (optional). For the first time after installation, password for mariadb root is blank.

# mysqladmin -u root -p password yournewpass

Create DB, User and Password. Omit option -p for mariadb root if you do not set password.

# mysql –u root –p

MariaDB [(none)]> CREATE USER 'zmuser' IDENTIFIED BY 'zmpass';

MariaDB [(none)]> CREATE DATABASE zm;

MariaDB [(none)]> GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'localhost';

Creating DB

# mysql -u zmuser -p < /usr/share/zoneminder/db/zm_create.sql

NOTE: if change user, password or database, you need to change file in /etc/zm/zm.conf

# ZoneMinder database name

ZM_DB_NAME=zm

# ZoneMinder database user

ZM_DB_USER=zmuser

# ZoneMinder database password

ZM_DB_PASS=zmpass

Restarting services

# systemctl restart apache2

# systemctl restart zoneminder

From browser open URL http://localhost/zm

References:

  • https://forums.zoneminder.com/viewtopic.php?t=29355
  • https://wiki.zoneminder.com/Debian_11_Bullseye_with_Zoneminder_1.36.x