Using APT command in Linux

Profile picture for Admin

Apt is a command line utility for install, update, remove and other operations. It manage dep packages in Ubuntu, Debian and distributions that based on it. It consists of most used commands apt-get and apt-cache but differs the default options. Apt was created for interactive use. Most of the commands of apt utility should be executed with sudo premissions.

Couldn't find foreign struct converter for 'cairo.Context'

Profile picture for Admin

TypeError: Couldn't find foreign struct converter for 'cairo.Context'

This error was caused by one of the application installed in the OS. It's easy to fix it - try to install packages it needs:

sudo apt-get install python3-gi-cairo

or

sudo apt-get install python-gobject-cairo

https://github.com/rbgirshick/py-faster-rcnn/issues/221

 

 

Install i3lock screenlock in Lubuntu 19

Profile picture for Admin

In the last (at that moment) version of Lubuntu 19.04 desktop environment was moved to LXQT. In looks fine, but the role of screensaver still occupied by xscreensaver application with it's awful window to enter the credentials. I've already have a post about theming this window https://16rom.com/ru/blog/temizaciya-xsreensaver .

You should delete it immediately after OS installation: 

File sharing in linux (and other OS)

Profile picture for Admin

Seems like it's a trivial task but NO. You can't use Samba because of OS compatibility, FTP is too hard to understand and install and other things.

But there is a simple way to do this - use nodejs http-server!
If you're using your PC for development you've already should hav nodejs and npm.

Install the http-server package globally:

npm install -g http-server

Goto the folder which you want to share and type in Terminal:

BSOD 0x00000074 BAD_SYSTEM_CONFIG_INFO

Profile picture for Admin

STOP 0X00000074 (0X0000000000000002, 0XFFFFF88002E22B20, 0X0000000000000002, 0XFFFFFFFFC000009A)

If you get BSOD STOP 0X00000074 error on Windows booting,  you must to boot from bootable Windows DVD installation disc.
Run bcdedit commnad from Recovery console and type next commands.

bcdedit /deletevalue {default} numproc
bcdedit /deletevalue {default} truncatememory

Those commands would change quantity of processors and maximum memory option.

Colorbox slideshow with views from multiple images field by first image

Profile picture for Admin

This article about colorbox and views: how to display first thumb styled image of the multiple image field and after click on it display all images in colorbox.

First of all install views, libraries, colorbox и colorbox plugin.

$ drush en views libraries colorbox -y

Download colorbox plugin and unpack it in libraries folder.

https://github.com/jackmoore/colorbox/archive/1.x.zip

Reset Administrator password on Windows 10 tablet UEFI

Profile picture for Admin

There are much and more manuals in net about this stuff. But noone of them help me with this problem. I can't boot from usb flash on table.
First of all, you must enable usb boot. To enter “System Restore” you need to hold Shift key and click on Reboot option.
“Diag” → “Advanced options” → “UEFI Firmware Settings”.