Category "ubuntu"

running python script as a systemd service

I have a python script myScript.py which is writing on a file every 2 second. But when I want to run this script as a systemd service, service works but not wri

Python script running as screen process gets "Killed" on Ubuntu / AWS EC2

I want to have a python script running on my Ubuntu instance constantly. It's an AWS EC2 a1.medium instance and the script is taking pretty much 100% of the CPU

Jekyll error on Ubuntu 22.04 (wrong number of arguments)

Previously, jekyll was working correctly After I upgraded my OS to Ubuntu 22.04 my local jekyll gives me this error. bundle exec jekyll serve Configuration file

Problem with building Docker image from Dockerfile

my task is to create a docker container from my own Dockerfile using ubuntu:18.10 and run pdflatex in this container. My system is MacOs, my Dockerfile looks li

Add dependency between two systemd services to start again if one of them is killed

I have two systemd services A.service and B.service in /etc/systemd/system/ directory. Below is the configuration in A.service [Unit] Description=A Service [Se

How I can load a font file with PIL.ImageFont.truetype without specifying the absolute path?

When I write the code in Windows, this code can load the font file just fine: ImageFont.truetype(filename='msyhbd.ttf', size=30); I guess the font location i

intel i225-v linux driver(ubuntu 20.04)

after kernel downgrade, every device drivers doesn't work. I want to download i225-v linux driver, and search this pagehttps://www.intel.co.kr/content/www/kr/ko

Update MPI to the newest version

I'd like to upgrade my MPI to the newest stable one, that is the version 2.0.1. Before tring on my own I checked if something useful is on the Open MPI site. Th

How to change ip for ubuntu host in java [duplicate]

There is an ubuntu host with multiple ips. I want to make periodical change its ips in my java application. But I do not know how to do this.

Wireguard is not updating it's config when started by wg-quick up wg.conf

I am trying to change the configuration of wireguard client configuration on my Ubuntu system. It is running without any problems for months now. But now I want

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding, when trying to start uwsgi

I am trying to start my uwsgi server in my virtual environment, but after I added plugin python3 option I get this error every time: !!! Python Home is not a di

Increment variable value by 1 (shell programming)

I can't seem to be able to increase the variable value by 1. I have looked at tutorialspoint's Unix / Linux Shell Programming tutorial but it only shows how to

Mongodb not working on Ubuntu -> mongod.service: Failed with result 'exit-code'

I installed mongodb following this tutorial here, no errors during the installation but when I try to start the mongod server using this command sudo systemctl

Connect to SQL Server running on Windows host from a WSL 2/Ubuntu sqlcmd

I have a host running Windows 10, WSL 2. My guest is Ubuntu. I'm trying to use sqlcmd to connect to the SQL Server running on my host machine, but I'm not sure

Ubuntu running `pip install` gives error 'The following required packages can not be built: * freetype'

When performing pip install -r requirements.txt, I get the following error during the stage where it is installing matplotlib: REQUIRED DEPENDENCIES AND EXTENS

Dependency error while installing mysql workbench on ubuntu 12.04

I am trying to install mysql workbench. I am getting below error. It seems that it looks for mysql in some default directory. I have all the required things ins

How do we install rustc, cargo for all the users in the same linux machine?

I have a ubuntu machine with multiple users some of whom have and have not root privileges. Above that I have a limited storage for the same machine. I really d

How do we install rustc, cargo for all the users in the same linux machine?

I have a ubuntu machine with multiple users some of whom have and have not root privileges. Above that I have a limited storage for the same machine. I really d

PHP Startup: Unable to load dynamic library 'openssl' in Ubuntu

I get the error message in the question's title, or to be exact I get this message PHP Startup: Unable to load dynamic library 'openssl' (tried: /usr/lib/ph

lsnrctl command not found oracle enterprise database 11g ubuntu

i have an issue with the environment variables for oracle 11g enterprise edition on ubuntu. I tried this, but didn't work Add the following lines to /etc/profi