The solution of the “System error 1231 has occurred” when connecting a network drive

I once needed to connect a network drive to make a backup copy of the system, but an error occurred when I executed the connection command:

C:\Users\Administrator>net use K:\\192.168.0.5\dir /persistent:no /user:name password
System error 1231 has occurred.
The network location cannot be reached. For information about network troublesho
oting, see Windows Help.

Later I determined that in the connection properties on the local network (also called Ethernet and Local Area Connection), the checkboxes for “Client for Microsoft Networks” and “File and Printer Sharing for Microsoft Networks” were removed.

After I ticked these components and applied, the disk successfully connected:

C:\Users\Administrator>net use K:\\192.168.0.5\dir /persistent:no /user:name password
The command completed successfully.

Error 1231 can also be displayed if, for example, the Netbios ports are blocked on the firewall or on the provider’s equipment so that users do not see the shared disks.

See also my article – Installing and Configuring Samba on Linux

Solving the problem of resetting the contrast after upgrading Windows 10

Once my Windows 10 installed another update, at the end of 2017, I did not remember which version the update was made on.
Immediately after the update, the computer rebooted and at startup I noticed that the screen became darker, the contrast increased, the black color became really black, almost like on Apple devices, but in fact the colors became not natural and it was not really possible to work with graphics.
For the test, I ran a few games and noticed that when moving a character to CS:GO for example, on some maps, the chart becomes so dark that you can forget about the game.
At that time, the Asus GeForce GTX 1060 Dual 6GB video card was installed on the computer, tried to switch color profiles in the NVIDIA panel, auto contrast correction turned off, but after restarting the computer the problem appeared again.
After I pulled out the video card, the integrated Intel® HD Graphics 630 had the same problem and setting parameters in the panel did not help.
Updating drivers for both video cards did not work either.

As it turned out, along with the update, Microsoft added Calibration Loader to the autorun via Task Scheduler, it just spoiled everything.

To solve the problem, I disabled it in the task scheduler.

You can find the “Calibration Loader” by clicking “Start” – “Task Scheduler”, go to \Microsoft\Windows\WindowsColorSystem, where I saw:

Name: Calibration Loader
Location: \Microsoft\Windows\WindowsColorSystem
Author: Microsoft Corporation
Description: This task uses color calibration options.

In the “Triggers” tab, you must disable both the “Log on” and “When connecting to a user session” flip-flops. This can be done by selecting the trigger, clicking the “Change” button below and unchecking the “Enabled” checkbox.

After that, without the Calibration Loader everything began to be displayed well.

Install Apache JMeter in Ubuntu

Apache JMeter — load testing tool.

For Apache JMeter you need to install Java, see my article – Installing Java on Linux.

For an example I’ll install Apache JMeter in Ubuntu Desktop 18.04.

After Java is installed, copy the link to the archive with the latest version of Apache JMeter from the official site http://jmeter.apache.org/download_jmeter.cgi and download it:

wget http://apache.volia.net//jmeter/binaries/apache-jmeter-4.0.tgz

Extract the archive:

tar -xf apache-jmeter-4.0.tgz

Run:

cd apache-jmeter-4.0/bin/
./jmeter

After the startup, a message was displayed that you can create tests in the Apache JMeter graphical mode, and you can execute them only from the terminal, for example:

jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]

By the way, Apache JMeter in Windows is run through the jmeter.bat file.

Loading and Unloading Modules in Linux

In this article I will give an example of manual and automatic loading/unloading models in Linux.

First, switch to root user if not under it, for example in Ubuntu it can be done like this:

sudo -i

Let’s see a list of the downloaded modules:

lsmod

To see if a particular module has been loaded so it can (where NAME is the module name):

lsmod | grep NAME

The following commands are used to load/unload a module:

modprobe NAME
modprobe -r NAME

When the module load command is executed, modprobe looks for it in the directory:

/lib/modules/$(uname -r)

You can see what it is like:

ls /lib/modules/$(uname -r)
ls /lib/modules/$(uname -r)/kernel/net/netfilter/

To load/unload a module from another directory, you can execute the following commands:

insmod /path/to/module/name.ko
rmmod /path/to/module/name.ko

View information about the module and the possible startup parameters as follows:

modinfo NAME

You can see specific information about the module, for example, where it is located:

modinfo --filename NAME

In order for the modules to start at the very beginning of the system startup, they must be written to the /etc/modules.conf file, and in order to start last when all services are started, the file is /etc/rc.local.
In addition to the file /etc/modules.conf there is also a directory /etc/modprobe.d/, where there are similar files with the extension .conf.

For example, in rc.local modules are written like this:

/sbin/modprobe NAME

The modules.conf file is written like this:

nf_nat_ftp

To prevent the module from loading, you can write the word blacklist before the module name:

blacklist NAME

Installing the Webuzo Control Panel

For an example I’ll install the Webuzo control panel in Ubuntu 16.04 LTS.

Switch to the root user:

sudo -i

Download the installation script:

wget -N http://files.webuzo.com/install.sh

Make the script file executable:

chmod 0755 install.sh

Run the installation script:

./install.sh

We will wait until the installation is complete.
When the installation was complete, I had the following:

——————————————————–
Welcome to Webuzo Installer
——————————————————–
Installation Logs : tail -f /root/webuzo-install.log
——————————————————–
1) Installing Libraries and Dependencies
2) Setting UP WEBUZO
3) Downloading and Installing Webuzo
4) Downloading System Apps
—————————————————————-
/$$ /$$ /$$$$$$$$ /$$$$$$$ /$$ /$$ /$$$$$$$$ /$$$$$$
| $$ /$ | $$| $$_____/| $$__ $$| $$ | $$|_____ $$ /$$__ $$
| $$ /$$$| $$| $$ | $$ \ $$| $$ | $$ /$$/ | $$ \ $$
| $$/$$ $$ $$| $$$$$ | $$$$$$$ | $$ | $$ /$$/ | $$ | $$
| $$$$_ $$$$| $$__/ | $$__ $$| $$ | $$ /$$/ | $$ | $$
| $$$/ \ $$$| $$ | $$ \ $$| $$ | $$ /$$/ | $$ | $$
| $$/ \ $$| $$$$$$$$| $$$$$$$/| $$$$$$/ /$$$$$$$$| $$$$$$/
|__/ \__/|________/|_______/ \______/ |________/ \______/
—————————————————————-
Congratulations, Webuzo has been successfully installed
You can now configure Softaculous Webuzo at the following URL :
http://192.168.1.9:2004/
—————————————————————-
Thank you for choosing Webuzo !
—————————————————————-

After that I opened in the browser http://192.168.1.9:2004/, indicated the invented username and password, email and domain/IP name on which Webuzo will work.
This completes the installation and displays the following information:

You can login to the Webuzo Admin Panel using your root details at the following URL :
http://192.168.1.9:2004/
To start installing Apps you can login with the following details :
URL : http://192.168.1.9:2002/
Username : admin
Password : (the one you entered)
We request you to please register for updates and notifications at :
http://www.softaculous.com/board/index.php?act=register It also inspires us when you register. Registration is free and just a one minute job.
If you need any support you can always count on us. Just drop in at our Support Board:
http://www.webuzo.com/forums
Alternatively, you can contact us via Email at support@webuzo.com
Thank you for choosing Webuzo!

Since a free version of Webuzo is installed, many utilities and modules will become available only after upgrading to the premium version of Webuzo.

Troubleshooting in Thunderbird “The IMAP server does not support the selected authentication method”

I will share information on this issue that has arisen from me.
I noticed recently on one of the computers that the mail stopped loading in Mozilla Thunderbird and the following message was displayed:

The IMAP server “…” does not support the selected authentication method. Please change the “Authentication Method” in “Account Settings | Server Settings”.

Before that, the mail was successfully downloaded, nothing changed in the Thunderbird configuration and on the mail server.
On a neighboring computer with similar parameters, there was no problem.

As I found out, the problem was in ESET NOD32 Internet Security and after turning off its protection (not a firewall) – the problem disappeared.
It’s amazing that the problem did not appear right away, during mail setup for example.

Since this computer was changing hardware and reinstalling the OS, and also mistakenly installed ESET NOD32 Internet Security, I did not investigate the reason for the blockage, deleted it and installed ESET NOD32 Antivirus, which was always on this computer, with the hope to continue to investigate the problem if it repeats itself, but after that it disappeared and did not appear.

Configuring an FTP server on Windows Server 2008 R2

On the test, I will configure the FTP server on Windows Server 2008 R2.

Open the “Server Manager”, it can be found in the menu “Start” – “Administrative Tools”.

If the “Web Server IIS” role is installed, then select it and then click “Add Role Services” (not Add Roles), check “FTP Server” and click “Next” and “Install”.

If the “Web Server IIS” role is not installed, in the “Roles” click “Add Roles”, select “Web Server IIS”, remove the tick from unnecessary components and check “FTP Server”, then click “Next” and “Install”.

Open “IIS Manager”, click “Add FTP Site …”, specify any name and path to the directory where the data will be stored, in the next window we will indicate which users are allowed to connect.

On the left we select the created FTP site, open “FTP Authentication” and activate “Basic Authentication”.

This completes the basic configuration of the FTP server and can be connected to it.

See my other articles on the topic Windows Server.

Configuring video recording to an FTP server from IP cameras and Dahua DVRs

I recently configured the next IP camera Dahua DH-IPC-HFW1320SP-W and decided to use an FTP server for recording.
Since the menu is basically the same on Dahua cameras and DVRs, the FTP entry is configured the same way.

Open the device interface, for example by typing an IP address in the browser.
Open the “Setting” tab, then “Storage” – “Destination”, in the “Path” tab, where “Motion Detection” and “Alarm”, I marked the FTP checkboxes, by the way I could choose only one thing, or “Local ( write to a memory card or HDD) “,” FTP “or” NAS “. After the selection, click “Save” to save the changes.

Now go to the tab “FTP”, tick the “Enable” and specify the connection parameters in “Server Address”, “Username”, “Password” and press “Save” to save the changes.

After that, the device began to write video to the FTP server in mp4 format, however it was impossible to view the history entries via the mobile application and the camera interface.
Files on FTP are sorted into folders by date and time, as a variant of the video can be viewed through any FTP client from a computer or phone, if the camera writes for motion detection, accordingly if there is no motion detection, then there will be no folders and records.

Required! In the “Storage” – “Record Control” menu, you need to select “Stop” in “Disk Full”, if “Overwrite” is selected, then after restarting the camera, in my case, all records from the FTP server were deleted.

If the FTP server is running on Linux, you can, for example, add to Cron a command that will delete the directory older than 30 days so that the disk does not overflow:

find /srv/ftp/ipcam/SNCAM/ -type d -mtime +30 -exec rm -rfv {} \; >> /srv/ftp/ipcam/remove.log

See also my articles:
Using and configuring CRON
Programs for viewing video from DVR DVRs
Installing and Configuring ProFTPd in Ubuntu
Installing and Configuring Pure-FTPd in Ubuntu
Configuring an FTP server on Windows Server 2008 R2
Configuring an FTP server on MikroTik Router OS