Categories
Development Linux

How to set default web browser for Okular links? RStudio set as default for almost any file type

After installing RStudio my Okular started to open links with RStudio instead of Firefox. I checked “Preferred Applications” already, where Firefox is set as default Web, and RStudio has no entry there at all. I couldn’t find any settings in Okular where I could change this behaviour, and I already tried kcmshell4 filetypes, but the […]

Categories
Development Linux

Is this even possible? Virtualbox internal network (too long to post in title)

Hoping you guys could help me out. I’m just looking for whether the scenario I’m attempting to get to is even possible, if not, I know what I have to do, although I’d rather avoid it. I’m using W10 and Virtualbox with both Ubuntu and Ubuntu Server installed. Now, the scenario I want to get […]

Categories
Development Linux

channel 84: open failed: administratively prohibited: open failed

I’m trying to ssh via port forwarding. This is my ssh config file: HOST A HostName B user C DynamicForward 0.0.0.0:1081 When I run “ssh A” I get: channel 5: open failed: administratively prohibited: open failed channel 7: open failed: administratively prohibited: open failed channel 10: open failed: administratively prohibited: open failed channel 12: open […]

Categories
Development Linux

Help regarding a linux script

Good day everyone, I was wondering if you could help me out with a small exercise. 1.Using the “while” loop/cycle, read the .bashrc file line by line and count the number/amount of the lines in which we do not encounter any numbers. Basically It’s a script but i can’t seem to come up with anything. […]

Categories
Development Linux

Limiting CPU hyperthreads that cgroup tasks are allowed to access?

Just a quick question about using CPUSET to limit the CPUs a cgroup can access when using a multi-core CPU with hyper-threading. The documentation linked above says: cpuset.cpus (mandatory) specifies the CPUs that tasks in this cgroup are permitted to access. This is a comma-separated list, with dashes (“-“) to represent ranges. For example, 0-2,16 […]

Categories
Development Linux

Kali Linux 2019.4 – Fresh install, un expected freeze

I have a problem with a fresh install of kali linux 2019.4 which freezes in such a way that i can move the mouse but i when i click or press a keyboard button, there is no effect.

Categories
Development Linux

How to compare a word from a text file with another word?

with open(“file.txt”) as f: for line in f: for word in f: if word == ‘President’: print(‘a’) This doesn’t print anything even though i have the word ‘president’ 4 times in the text file. How can I make it check My text file looks like this: President Kacey Genicke President Alexandra Twomey President Aldous Graddell […]

Categories
Development Linux

Internet connection on Linux Mint unstable

I bought a computer with Windows 10 installed on it and added Linux Mint to run dual boot. My internet connection is great when I run Windows but very shoddy when I run Mint. Here is my s CPU: Dual Core Intel Pentium 5405U (-MT MCP-) speed/min/max: 1600/400/2300 MHz Kernel: 4.15.0-66-generic x86_64 Up: 2d 13h […]

Categories
Development Linux

Manipulate to-be-parsed data with Bash

I have a LAMP (CentOS) “shared” server environment on which I can’t control Apache webserver directly but only through .htaccess files; yet I can SSH that environment and use Bash in my user partition. On that environment I have a MediaWiki website. MediaWiki core includes some features I would like to disable but can’t because […]

Categories
Development Linux

Why is the screen black when installing Linux distributions?

First of all, I’m a Linux entrant. So, I have very rudimentary knowledge of this. And the device specifications for installing Linux are as follows: CPU AMD Ryzen 5 14nm Technology Motherboard BIOSTAR Group A320MH (AM4) Graphics BenQ GW2470 (1920×1080@59Hz) 8192MB ATI Radeon RX 590 Series (ATI AIB) For your information, I made a boot […]