Pinned toot

This is my first toot here.

I want to write every solution for different troubles and some answers for technical questions I've met in my programmer way.

So, let's get started.

Working configs for gulp version 3 and 4 to compile sass to css and reload the page using browserSync:

gitlab.com/obergodmar/configs




If you get following error when you run a gulp command:

fs.js:27
const { Math, Object } = primordials;

ReferenceError: primordials is not defined

When you need to know, that gulp version < 4 no longer supported.

You have to upgrade your gulp to > 4 version.

When done, migrate config from 3.x.x version to 4.*

A good site to do it: goede.site/setting-up-gulp-4-f




And /etc/asound.conf:

# Use PulseAudio plugin hw
pcm.!default {
type plug
slave.pcm hw
}

To enable high quality sound in linux edit /etc/pulse/daemon.conf:

default-sample-format = float32le
default-sample-rate = 48000
alternate-sample-rate = 44100
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 2
default-fragment-size-msec = 125
resample-method = soxr-vhq
enable-lfe-remixing = no
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 9
rlimit-rtprio = 9
daemonize = no

Lol, if you get following error:

File "/usr/lib/python3.7/tkinter/__init__.py", line 36, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: libtk8.6.so: cannot open shared object file: No such file or directory

When you probably need to install python-tk. For Arch:

sudo pacman -S tk

Having no luck. Installation stops on 79%.

Sadly removing the all prefix.

I'm here again.

Continue.

Currently I'm crating a new 32-bit wineprefix with the following command:

WINEARCH=win32 WINEPREFIX="your/path/to/new/wineprefix" winecfg

OK, on Arch it is lib32-libwbclient. And this has been compiled and installed today.

Next step! Trying to run .exe file.


First try without installing anything throw packet manager or winetricks wasn't successful.

There were a lot of logs with errors. Now I'm trying to install missing dependence "winbind" (32 bit).

We'll see what happens.


I'm trying to install Yandex Browser with voice assistant called Alisa. There is existing version for Linux, but it is still in beta and hasn't Alisa. So I have to use wine and windows version of the Yandex Browser.


Today I've listened the lecture by Richard Stallman, who've come to Russia on tech festival called TechTrain.

He has spoken about free software and freedom.

He has taken his alternative person called Saint IGNUcius.





To run Perfect World in Linux under wine, need to install this windows dlls to the wineprefix: d3dx9_36 ie8 mfc40 msls31 msxml3 msxml4 msxml6 vcrun2005 vcrun2008 vcrun2010 wininet wsh56vb xmllite

So, do:

winetricks d3dx9_36 ie8 mfc40 msls31 msxml3 msxml4 msxml6 vcrun2005 vcrun2008 vcrun2010 wininet wsh56vb xmllite

Hmm, do I need some hash tags in my toots? I think it can be useful and helpful.

So. I'm writing about tech solution and troubleshooting. Sometimes I write some tech tips. If you are interested in my work, follow me.

Thank you.

To use moodle with nginx, you will need to add this to your nginx.conf (or add certain lines):

location ~ [^/]\.php(/|$) {
root <path>;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass <your socket>;
fastcgi_index index.php;
include fastcgi.conf;
include fastcgi_params;
fastcgi_param PATH_INFO
$fastcgi_path_info;
fastcgi_param
SCRIPT_FILENAME
$document_root$fastcgi_script_name;
}

...to continue.

If you want to encrypt a photo or a folder with photos and videos or other files, then first create an archive from files you want to encrypt, next use gpg:

To encrypt:
gpg -c --s2k-cipher-algo AES256 --s2k-digest-algo SHA512 --s2k-count 65536 <name of your archive with files you want to encrypt>

In output you will see the file with .gpg extension.

To decrypt it use:
gpg --output <name of the decrypted archive> --decrypt <name of your decrypted file>.gpg

If you want to encrypt a text file (with passwords, for example), you can use openssl:

To encrypt your file:
openssl aes-256-cbc -in <your text file name> -out <name of the new file>

To decrypt your file:
openssl aes-256-cbc -d -in <name of your encrypted file> -out <name of the new text file>

To reduce video size without loss of quality using ffmpeg do:

ffmpeg -i input.mp4 -b 8507k output.mp4

For example Archlinux uses libfreetype.so.6.

Set yours.

To start Torchlight II on a Linux distribution with different libfreetype's version set launch options:

LD_PRELOAD=/usr/lib/libfreetype.so.6 %command%

Show more
Linux.Pizza

A instance dedicated - but not limited - to people with an interest in the GNU+Linux ecosystem and/or general tech. Sysadmins to enthusiasts, creators to movielovers - Welcome! Just give a reason why we should approve your application into this instance,our team will review it.