Skip to content

Tag: linux

Bash/xargs: How to mass assign user privileges?

I have created a new user. My current user obviously has the following rights: Where max is the name of the current user account. I tried paramer expansion but the output of ${groups} is empty, so I just piped groups to xargs I get the error message that there is no folder max adm cdrom sudo dip plugdev lpadm…

DB2 Create Database takes long time

I’m new to Db2 and just installed v11.5 on my Ubuntu 18.04. I referred these two links for setup purpose: IBM and DCON I’m using DB2 CLI to create a database. On typing in create database <database_name> and press enter, it just stays there; there’s no output. I checked the db2diag.log…

How to redirect the output from desktop-entry

I have a program called prg.exe written in C#. I want to run this program in mono with an argument (arg1) and redirect the output to a log file called log.txt. If I open a terminal and enter the command: everything works fine. When the program is finished, the log.txt file is created, which contains any error…

How to open apps from bash (Linux)

Automate part of your life where you can! (It doesn’t seem to be working properly…). This time is for opening multiple apps on my desktop while I make my morning coffee. I created a .sh to open my workspace apps like Visual Code, Slack, Firefox, etc. The script is basically: I basically found the …

Android device emulator on linux connectivity issue

I decided recently to try Linux for mobile development, but the emulator does not have an Internet connection (everything is fine on Windows). Tried changing resolv.config – it doesn’t help (although I may be doing something wrong). For the Internet, I use a mobile hotspot via Galaxy s21. My Linux…

Setup Node.JS Server on Ubuntu

I am using the MEAN Stack and I could run my frontend already. After ng build I moved all the content in the dist folder to var/www/html and could access my website. I’m using Apache and my frontend is now available online. The problem is now my backend. I am using Node.js but I have no clue how I can