All Questions

0
votes
1answer
24 views

VLC crashs, when watching one specific DVD?

I got some new-ish DVDs to watch. Unfortunately VLC keeps crashing. I set it to Debug mode and got some feedback: libdvdnav: Using dvdnav version 6.0.0 libdvdnav: DVD Title: LEGEND_OF_KORRA_VOL2 ...
0
votes
0answers
41 views

rsync problem when spaces in files when using recursive [on hold]

I am using Arch Linux and rsync version 3.1.3 protocol version 31. When I do rsync -aEu ~/folderA/ /run/media/USER/folderB/ and folderA contains the file file 1.txt (with space). folderA is in my ...
-2
votes
0answers
15 views

Dragora installation issue [ Start Sector out of range]

I am trying to install the Dragora distro on a partition on an old laptop i have. Below is what i have done so far. I have reduced the size of my windows partition using the Disk Management utility ...
0
votes
1answer
24 views

Are btrfs advantages negated with over-the-top encryption?

Are the benefits of btrfs lost if one uses encryptFS on top? What advantages (over ext4) of btrfs remain intact with encryptFS? If I want to have the full benefits of btrfs with encryption, is LUKS ...
0
votes
0answers
11 views

Rofi icons not showing on void-linux + i3 + Papirus icon theme

After I installed the papirus-icon-theme package, I setup rofi configuration like this: rofi.theme: ~/.vendor/gruvbox-rofi/gruvbox-dark.rasi rofi.show-icons: true At rofi launch, I can see a space ...
1
vote
0answers
13 views

Vagrant: Problem with vagrant ssh when sha-1 key is in .ssh/config for unrelated host

I am using Vagrant to create hosts in network simulations. Recently, I re-installed an old pet-computer (ACME Foxboard, if you're interested) that still ran a very old Linux version. So old, that it ...
0
votes
0answers
18 views

How to calculate the deduplication ratio of a XFS filesystem?

ZFS offers a simple and straightforward way to show the deduplication ratio of it's pools in the output of zpool status. After a short research I don't find any function built into the XFS commands. ...
0
votes
0answers
32 views

Connection limited (no internet access) [on hold]

My laptop is running on Windows 10. My wifi adapter is tenda V7TW311M. My router is D-Link. When I connect to the internet I get connection limited with yellow triangle, and no ipv4 address in ...
0
votes
0answers
14 views

How can I fix mpv from not showing full image?

I use mpv as my image viewer. But sometimes, when I open an image, the whole image does not display. I have to press r to reload it. When I do so, the image gets displayed properly. Is there anything ...
1
vote
2answers
26 views

Making sense of a package with almost no files included

$ uname -a Linux laptop 4.19.0-2-amd64 #1 SMP Debian 4.19.16-1 (2019-01-17) x86_64 GNU/Linux I need to use cv::face::createLBPHFaceRecognizer(), which is not a part of the core OpenCV but rather a ...
1
vote
1answer
39 views

Changing SSH Default Port 22 to 444

I have changed the default port number in /etc/ssh/sshd_config. When I start ssh service it does start, but when I run service sshd status it is stopped: I am using CentOS 6.4.
0
votes
0answers
12 views

How to add a default route to a DHCP-enabled interface?

All my servers' networking is configured via DHCP which sends, among others, a static route (needed for a VPN) and a gateway. This works fine. I have one exception: a server which should not get the ...
0
votes
1answer
36 views

Linux installation and partition

I'm new to Linux and I've thought I'll give it a try and so I installed Zorin OS. I' wondering if I installed it correctly in the disk. Sample screenshot using cfdisk: Is it fine that the Linux file ...
1
vote
0answers
13 views

System statistics from different utilities don't agree

I am running an Aliyun instance with 8 vCPUs to do some high performance computing, so I want to make full use of the machine. In other words, extremely high CPU usage is not a problem; instead it is ...
1
vote
1answer
47 views

All Debian package managers broken due to Python bug

I am trying to fix my apt to make it useable. It only ables to update the package list. I cannot remove or install any package. The error I am getting is Could not find platform independent ...
-7
votes
2answers
65 views

Error Shell Programming in Linux [on hold]

I need to fix my code? i=0; bil_genap=0; bil_ganjil=0; echo -n "Batas loop : "; read batas; if [ -z $batas ] | [ $batas -lt 0 ]; then echo "Ops, tidak boleh kosong atau Batas loop ...
2
votes
0answers
17 views

Suspend delayed after lid close

For some reason, when I close my laptop lid, it takes my system 25 seconds to sleep. This is without any autolock prorams (xss-lock, xautolock, etc.) running. In my journalctl I can see exactly a 25 ...
0
votes
0answers
41 views

Escaping a string for a parameter inside a script [duplicate]

I have a shell script inside of which I call a command with several arguments. When I call the command from the terminal, the proper syntax is: command --foo='bar baz' Inside my script, I want to ...
0
votes
1answer
25 views

How to fix this command mass renaming files to match a text file

for file in *; do read line; mv -v "${file}" "${line}"; done < /var/www/html/uploads/songs.txt It works as in changing all 700 files. But it doesn't seem to do it in the correct order. I feel ...
-1
votes
2answers
91 views

Installing Linux on 2018 Mac Mini

I have the new late 2018 Mac Mini and want to use as an Ubuntu Server. There is a plethora of contradicting posts on the Internet related to the T2 Chip, some saying its not possible and some say it ...
1
vote
2answers
47 views

Compare every nth line in 2 files and save (asymmetric) context

I have 2 files, each containing the same amount of 4-lines records, in the same order: fileA: record1 line1=header record1 line2 X <= this is different but should be ignored record1 line3 id ABC ...
0
votes
1answer
24 views

Syslog to console, drawbacks?

I am wondering are there any drawback (performance wise) when output from some software is not logged to a file, but instead to console? Specific case would be running Docker containers, as some of ...
0
votes
0answers
26 views

Mouse cursor lags then it change its picture

Then cursor change its picture (when you point it on a link or text) it doesn't change immediately: a new picture appears 1-2 mm to the right and only after that appears at its necessary place. It ...
0
votes
1answer
36 views

-bash: alias: /Users/username/.bash_profile”: not found

I'm trying to add some aliases to my bash profile, but it's not working for some reason and I get these errors when I open a new terminal or execute bash profile with . ~/.bash_profile. These are ...
-2
votes
0answers
60 views

Blocking some URL of a website [on hold]

I want to block some addresses not all of a website in Ubuntu or debian system. Example; www.facebook.com - allow www.facebook.com/xxx/xxx.php - block www.facebook.com/ARBFxolCIhmdc6h_Rz6Jj8HXpFTkZa ...
0
votes
1answer
47 views

Building in different linux-based OS

I'm not experienced in C, qt and cmake. I spent last 10 hours trying to build this project: https://github.com/moonlight-stream/moonlight-qt May main goal is to build it myself and run it on Ubuntu. ...
0
votes
0answers
27 views

Avoid using temp files for pr

I am tailing two files at the same time, side by side, I can't get a version to work that doesn't use temporary files F1.tmp and F2.tmp. I would like to use watch to call this script. Pretty sure I ...
0
votes
1answer
34 views

Find and Replace in Unix - XML File

I have output XML file which has string in each line icn="1", this number inside the double quotes will be changing for every line. But this number is not incrementing in order, so i have to make ...
0
votes
1answer
29 views

WHy is my Nohup process dying?

What's wrong with this code? Suddenly the nohup process dies, without a trace. bin/sh sleep 5s cd /home/minecraft/OMC nohup java -jar -Xms3400M -Xmx3400M -jar paperclip.jar &
0
votes
0answers
16 views

rcp/rsync create a file with a single question mark as name, instead of the original file name

Here's are the commands I've tried (in a .sh file). rcp $1/target/$1*SNAPSHOT.jar remote_server:~/ rsync -v $1/target/$1*SNAPSHOT.jar remote_server:~/ Both of these create a file on remote_server ...
1
vote
1answer
25 views

How to capture WOL packets?

I used sudo tcpdump -v -i eth0 ether proto 0x0842 or udp port 9 but didn't see anything when WakeMeOnLan from NirSoft wakes the computer. The same with Wireshark
2
votes
2answers
42 views

Print Folders Missing .txt Filetype

I have 150 directories in a parent directory. Some of them have .txt files, others do not. I would like to print which folders do NOT have a .txt file. How can I achieve this?
2
votes
1answer
16 views

Forward DNS requests for a zone except one record?

I've got a domain name and hosting web content with a provider, so have for example server.example.com hosted in the cloud. The provider also manage my DNS. Now I would like to run nextcloud on my ...
2
votes
3answers
83 views

Who turned on my Ubuntu box?

I have turned off my Ubuntu PC with sudo poweroff. After several days I found it is running back. How to know, which event turned it on? Computer has no keyboard and mouse attached, and power button ...
0
votes
1answer
24 views

How investigate sporadic restarts

The system is : Debian 8.1 run on embedded system with ARM7V CPU 2 GB RAM and 4 GB flash. The system sporadically restart itself couple time in day, before a week with appear very rare. What is the ...
0
votes
0answers
35 views

What screen-locking program does this dbus-send command invoke?

https://choffee.co.uk/thoughtsplurge/posts/2013/07/11/lock_gnome_screensaver/ In old versions of gnome the command gnome-screensaver-command -l would lock your screen. As gnome-screensaver ...
2
votes
1answer
23 views

How long time does a context switch take in Linux (ubuntu 18.04)

I'm interessted in getting the number of context switches a two processes in a KVM vm takes on a singel CPU over some time. Earlier i have used perf, is this best practice? And how much time is used ...
1
vote
1answer
26 views

How to reset keyboard driver?

I have a KVM switch sharing my USB keyboard between Linux and Windows systems. If the switch is set to the Linux box when it boots up then the keyboard works fine. If I switch away to the Windows box ...
-2
votes
1answer
57 views

How can I lock the screen of a remote machine?

From https://unix.stackexchange.com/a/505644/674 When you're using SSH, you can access the screen you're connected from by using ssh -X or ssh -Y . Programs can perfectly run on a machine and ...
0
votes
0answers
20 views

Linux Disk I/O excess cause a database block [on hold]

I have a WP site on a VPS with LAMP installed. Al least once a mouth it happens a Disk I/O peak with consequent database block, so i need to manually restart mysql and the site returns running. How do ...
0
votes
0answers
10 views

How to simulate a Timeout on the dockerd processes?

Does anyone have any suggestion on how to simulate a timeout of the dockerd demon? I have tried kill -SIGSTOP ; but the dockerd demon does not restart even though it has a systemd setting of ...
0
votes
0answers
26 views

pip, installed package not found

Installed rivalcfg by: $ pip3 install rivalcfg Install went OK from messages. "Successfully installed hidapi-0.7.99.post21 rivalcfg-3.6.0 setuptools-40.8.0" But, rivalcfg is not found: $ rivalcfg ...
0
votes
0answers
29 views

Fail to initialize plugin stackleak_plugin.so

I'm on Fedora 28, Kernel 4.20.14-100.fc28.x86_64 and trying to get a working dual-screen on a D6000 Dell docking Station. For now I have the following error while trying to restart the displaylink ...
0
votes
5answers
212 views

Why is Linux not an operating system? [on hold]

I checked the dictionary definition of an operating system: the low-level software that supports a computer's basic functions, such as scheduling tasks and controlling peripherals. Well, that ...
-1
votes
0answers
26 views

Adding default route via ip route not working

I'm trying to use ip route to add a default gateway but it is not working, however, if I use the old route command it works. I know ip route is the new/preferred way to do this, so I'm trying to ...
0
votes
1answer
22 views

Should systemctl stop honour Restart=always?

Is/should "Restart=always" be honoured when "systemctl stop docker.service" is excuted? My understanding (which is limited) is that systemctl stop should stop with an Exit Code of 0. I then expect ...
2
votes
0answers
51 views

Good projects for bash and awk [on hold]

I am learning bash and awk programming, and have gotten to the point where I want some interesting projects to work on to improve my programming. At the minute, the beginner stuff is getting too easy, ...
0
votes
1answer
27 views

error ffmpeg Cannot open display :0.0+0,0, error 1. :0.0+0,0: Input/output error

Hello I get this error when i want to capture my screen on linux with ffmpeg ubuntu 16:04 : the command i'am using : $ ffmpeg -f x11grab -r 15 -s 1920x1080 -i :0.0+0,0 -vcodec rawvideo -pix_fmt ...
-1
votes
1answer
30 views

nohup: ignoring input and appending output to 'nohup.out'

I ran the following command nohup conda activate shuffle_pair_end_reads && python3 shuffle_pair_end_reads.py \ fastp-filtered-merged4racon/merge_R1.fq.gz \ fastp-filtered-merged4racon/...
0
votes
1answer
33 views

Multiple replacements using regular expressions in python

Can I use regex in python to have multiple types of substitutions? Like in this string "hello, this is me" I want to replace 'hello' with 'hi' and 'this' with 'its'. Can I do it in a single line? Or ...

15 30 50 per page