The solution of the error “There is insufficient memory or disk space. Word cannot display the requested font”

Faced somehow with a mistake:

There is insufficient memory or disk space. Word cannot display the requested font.

In my case, the error occurred when you set a document to print in Microsoft Word 2010 on Windows 10. And from the browser and other programs to print documents started.

What I did not try to solve the problem, as well as check the integrity of the system files by running the following command at the command prompt on behalf of the administrator:

sfc /scannow

But the solution to the problem turned out to be banal.
I tried to add another network printer by IP and documents from Word to the new printer were printed.
The printer for which jobs were started and not printed, was connected via USB to a neighboring computer running Windows 7 and added to the current on the network.
Therefore, in order to solve the problem, in the properties of the printer where it is allowed to share it, we will add drivers for the necessary operating systems, in my case for Windows 10.
The second option, since the computers were side by side, I did not add the driver, but simply switched the printer to a computer with Windows 10, allowed it to share and added it over the network on a computer with Windows 7.

That’s all, the error has disappeared.

The solution of the error “Job for puppetserver.service failed because the control process exited with error code”

I noticed once when I started Puppet server, after installation, the following error:

Job for puppetserver.service failed because the control process exited with error code. See “systemctl status puppetserver.service” and “journalctl -xe” for details.

The error occurs because there is not enough RAM and to fix the error, open the Puppet server configuration file:

sudo nano /etc/default/puppetserver

And reduce the amount of allocated RAM for the Puppet server (for example, I specified 512m instead of 2g):

JAVA_ARGS="-Xms512m -Xmx512m"

Now let’s start the Puppet server:

sudo systemctl start puppetserver

Solving the problem when upgrading iLO 3 “98% Receiving Image…”

Updated somehow iLO 3 from version 1.10 to 1.88, on the HP ProLiant DL380 G7 server and the process stopped at “98% Receiving Image…

So, if the firmware version of iLO 3 is lower than 1.28, then you must first upgrade to version 1.28, and then higher.

That’s the whole solution to the problem.

Run application at startup in Ubuntu

Below is an example of creating a script to autorun the desired program.

Create a script:

sudo touch /etc/init.d/name

Open it in a text editor (in the editor nano Ctrl+X to exit, and y/n to save or cancel changes):

sudo nano /etc/init.d/name

Fill it with content like:

#!/bin/bash
/etc/init.d/programma start

Let’s make the script executable:

sudo chmod +x /etc/init.d/name

Add the script to startup:

sudo update-rc.d name defaults 95

You can get the documentation for update-rc.d by running the command:

man update-rc.d

To remove a script from autorun, use the command:

sudo update-rc.d name remove

See also:
Solving the error “insserv: warning: script ‘script’ missing LSB tags and overrides”

Installing the Netlist for ABillS

On the test, I install the Netlist module for ABillS in Ubuntu Server.

We import the tables into the database:

mysql -D abills --default-character-set=utf8 < /usr/abills/db/Netlist.sql

Open the billing configuration file:

nano /usr/abills/libexec/config.pl

Make sure that the module is activated:

@MODULES = (
          'Netlist'
          );

Install nmap and Perl module for it:

sudo apt-get install nmap
sudo cpanm Nmap::Parser

Let’s see where nmap is located:

which nmap

Open the billing configuration file again:

sudo nano /usr/abills/libexec/config.pl

Let’s specify the path to nmap:

$conf{'NMAP_LOCATION'}="/usr/bin/nmap";

Add to sudoers:

echo 'www-data ALL=(ALL) NOPASSWD: /usr/bin/nmap' >> /etc/sudoers.d/abills_sudoers

After installation, the module will be available in the menu /Settings/Netlist

How to delete profile bigmir)net

On the test, I delete the profile from bigmir.net and I will describe the deletion process:

1) We will enter the profile https://passport.bigmir.net using your login and password.

2) In the profile settings on the right, select “Delete profile” and enter twice the password to confirm the deletion.
Direct link to delete – https://passport.bigmir.net/remove/

After that, all profile data will be deleted after 14 days, during which it can be restored.

If sites have been added to the http://top.bigmir.net/global/ rating, they must be deleted before deleting the profile.

Solution of error “ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES”

I once ran a SQL query:

GRANT REPLICATION SLAVE ON TESTDATABASE.* TO "replication"@"192.168.1.9" IDENTIFIED BY "password";

And I found the following error:

ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES

Since the REPLICATION SLAVE privileges are global and can not be assigned to a particular database, they must be specified globally in the query, so the SQL query should look like this:

GRANT REPLICATION SLAVE ON *.* TO "replication"@"192.168.1.9" IDENTIFIED BY "password";

After that, the query succeeded:

Query OK, 0 rows affected, 1 warning (0,01 sec)

The Asus router reboot script

On old router firmware Asus often noticed that the web interface is not fully open, not all the menus are displayed, so it can not be configured accordingly and can not be restarted if remote access is also available, since the reset button is not displayed.
So he took the Asus RT-N12E router, ran the Wireshark sniffer, opened the web interface of the router and pressed the reboot button.
In the intercepted packets, you could see that the Reboot.asp file is being rebooted in the root directory.

This resulted in a script for rebooting Asus routers:

#!/bin/sh
ROUTER_IP="192.168.1.1"
USERNAME="admin"
PASSWORD="admin"

# exit if router is down
ping -q -c 1 "$ROUTER_IP" > /dev/null || exit

curl --basic --user "$USERNAME:$PASSWORD" -A "Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)" --refer "http://$ROUTER_IP" "$ROUTER_IP/Reboot.asp"

The contents of the script will be placed in a new file, for example, using the nano editor (“CTRL+X” to exit and “y” to save the changes):

nano file.sh

Let’s make it executable:

chmod 777 file.sh

After this, we execute:

./file.sh

You can also manually open the link http://192.168.1.1/Reboot.asp in the browser if you need to reboot the router once.