Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linux]

These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

0
votes
0answers
12 views

Why is my FWKNOP SSH set up not working?

I'm learning about port knocking and SPA. I'm following along with a guide, everything seems to be working fine until I close down my ports on my server. I am running two ubuntu servers on VirtualBox ...
2
votes
1answer
11 views

access windows shared files from linux (case insensitive)

I have a python application (deployed on centos) which searches for files in a shared path on (windows) the windows paths named like below (upper and lower case) \\shared\PDFs\MyFolder\SomeFile.txt ...
0
votes
0answers
10 views

mount proc filestsrem inside namespace

I had a rootfs of a linux os (like ubuntu or centos) and removed mount command inside that . now, is there any way to mount proc filesystem with nsenter or unshare or any other command inside a ...
0
votes
0answers
12 views

Reading filesystem type at boot into BASH variable

I have a /etc/rc.d/S11 link to a /etc/init.d file that is trying to set a bash variable of the file system type of a given blkid entry. root@OpenWrt:/# blkid /dev/mmcblk1p3 /dev/mmcblk1p3: UUID="...
2
votes
1answer
16 views

Drives not receiving UUID after moving SATA ports

I have a personal Ubuntu server with nine drives: SSD for OS four 4TB drives for one BTRFS raid10 array four 8TB drives for another BTRFS raid10 array I decided to clean up the cabling today and ...
-3
votes
1answer
44 views

what is a system tool?

I frequently come across the term system tool, so I wanted to understand the exact meaning of it in Linux. Which of the following three explanations of a system tool in Linux is correct? Is a system ...
0
votes
0answers
8 views

Obtaining webcam images in rawest possible form?

My laptop is running Ubuntu. All of the applications that I have seen to capture from the webcam produce images that have been passed through brightness, hue and contrast adjustments. Is it possible ...
1
vote
0answers
10 views

How to identify the disks of a Linux virtual machine in VMware vSphere 6

I have a virtualized RHEL7 server with vsphere 6, I need to remove some virtual disks from vCenter that are presented to my virtual machine (rhel server) that are no longer being used by the operating ...
1
vote
0answers
11 views

XFCE Session & Startup Application terminal command to turn on and off

In XFCE4 I can create my own custom start-up commands at Settings Manager > Session & Startup > Application Startup and turn them on or off by clicking on the command's check-box. Is there a ...
2
votes
1answer
25 views

Can terminal parameter changes on the slave side be detected on master?

A process (creator) creates a pseudo-terminal master/slave[/dev/pts/1] pair. Another process (consumer) opens /dev/pts/1 and changes the serial terminal parameters with tcsetattr. Is there a way for ...
4
votes
2answers
73 views

What is the environment variable XDG_VTNR?

Almost every page I've found is about to automatically start Xorg after login wihout explianation, take ~/.bash_profile for example: if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then exec xinit ...
0
votes
1answer
23 views

Specifying Depends correctly in debian/control file

I'm building a runtime-shared-library package libfoo0.deb where 0 here is a major package version and adhering to the naming conventions specified in the Debian policy. The problem is I want to ...
1
vote
1answer
45 views

reading multiple files in while loop

I have a list of .gz files,like: abc-1.1.0-abc.tar.gz abc-1.2.3-hfc.tar.gz hfg-1.8.9-jdh.tar.gz Content of file_name: abcd_name_fb hsgdh_name_cd in my scipt, i'm capturing the strings '1.1.0,1.2.3,...
1
vote
0answers
16 views

why iptables marked but not route as my except

I want to control the route packets of my browser using domain name , let traffic packets within special domain names through VPN ,and other traffic packets without special domain names through ...
0
votes
0answers
13 views

Permission denied when i use crunch in terminal

I wrote this line in Terminal : crunch 6 6 123456789 -o /root/Desktop/timy.txt and it said this chunk1: File START could not be opened The problem is = Permission denied
0
votes
1answer
13 views

How to write shell script to execute rsync each time I plug in my external ssd?

I want to execute rsync command which syncs my local directory with the external ssd. I followed the instructions given in this link. to execute some command based on udev rules. This shows how to run ...
0
votes
0answers
42 views

How write a bash script that compiles and executes my python script?

It was my homework to write some python script (that performs a padding oracle attack on a web service). Afterwards, our teacher asked us to write a bash script which compiles and executes my source ...
-3
votes
0answers
12 views

Pipe Linux commands to sort the top 5 CPU processes running under the user root [on hold]

Use ps -aux, grep, sort, tr, and head to build a command that shows the 5 highest CPU processes that are running under user root
0
votes
0answers
18 views

Why allow_url_include is Disabled? Kali DVWA

I have a problem with DVWA on Kali Linux. Errors: PHP function allow_url_include: Disabled reCAPTCHA key: Missing I installed according to the following commands: curl -fsSL https://download....
0
votes
1answer
30 views

Error while attemping to run OpenRCT2 on Debian Stretch. libicuuc.so.60 cannot be opened: No such file or directory

I've been trying to get OpenRCT2 working on my laptop, which runs Debian Stretch (9.9 amd64), and I'm running into an issue. When running the executable after extracting OpenRCT2 in a folder, it tells ...
1
vote
0answers
5 views

Full paths with rsnapshot and rsync server at source side with --relative option are truncated - how to preserve full source paths?

When using rsnapshot with following configuration: #/etc/rsnapshot.conf snapshot_root /backup.rsnapshot/ rsync_long_args --relative backup user@laptop:/home/user/test/ ./ a directory /backup....
1
vote
0answers
43 views

How to install Guest Additions with a Oracle Gnu/Linux guest on VirtualBox?

I have a Linux virtual box and want to install Guest Additions. I've successfully mounted the iso. But now what...? How can I access the mounted cd-rom in the terminal of the virtual machine as to ...
0
votes
1answer
10 views

Icons Too Small after Installing Guest Additions iso VirtualBox

After I downloaded the Guest Additions CD Image onto my Ubuntu VM on VirtualBox, the screen will change to full screen but the icons and UI layout are very small. They do not have the proper size - (...
0
votes
3answers
41 views

Special “copy and rename” case

I have a deeply nested folder structure in which there are hundreds of files called data.log. I need a script to rename each of these data.log files according to the name of the parent folder they are ...
0
votes
0answers
27 views

Linux Kernel boot stucks at “Starting kernel …”

I am facing some troubles while booting kernel. U-boot boots and gets stuck at Starting Kernel.... Boot parameters are as below. setenv mmcroot '/dev/mmcblk0 rootwait rw rootdelay=5 mem=256M' ...
2
votes
1answer
45 views

Replace VI macro with Linux equivalent

My file arrives on a Linux server and contains ^M characters when seen in VI and the file format = unix, (ff=unix) I want to turn lines 1-4 into line lines 9 - 10. My vi macro solves my problem. /\r/...
1
vote
0answers
13 views

Can't connect to network when creating two network namespaces for two NICs

I'm exploring A.B's comment in this question as a workaround to my issue. As a summary, so you don't have to read that whole question: I try to setup two NICs in two separate network namespaces to ...
2
votes
0answers
27 views

How can I send duplicate packets, one instantly and one with a delay?

For testing on Linux, I can create duplicate packets where both are sent instantly with the following command: sudo tc qdisc add dev IFACE root netem duplicate 100% How can I create duplicate ...
0
votes
2answers
38 views

Searching whole system for files with specific inode

I technically know how to do all these things, but combining it is problematic. Inode is saved in first line of text file (I can eventually read it directly from file), I need results saved to the ...
0
votes
2answers
30 views

How extract row based on some value in columns?

I have a bam file as below (it is only a subset), I would like to extract rows based on chr (2 in the third column) and start position (13107 to 14348 in the fourth column). Input: D00823:135:...
6
votes
4answers
390 views

How to Pin Point Large File eating space in Fedora 18

This is taking up my time, and I can't determine exactly what file is eating up my disk. Firstly I used df command to list my directories: devtmpfs 16438304 0 16438304 0% /...
-1
votes
1answer
22 views

Is it ok to combine machines with DNS server management and machines that do host lookups through a hosts file?

We have a cluster of Linux machines. DNS of these machines is managed by a DNS server (a Windows machine with DNS records). Now we want to add an additional cluster with Linux machines that would do ...
-1
votes
0answers
29 views

Can not ssh server with `debug3: fd 1 is not O_NONBLOCK`

I have a CentOS 7.5 Dedicated Server, I found it can not ssh login now: and I checked the sshd service and firewalld is closed. this is my login in my PC ssh root@x.x.x.x -vvv: debug2: channel 0: ...
0
votes
2answers
21 views

Linux Memory Allocation/De-allocation

will the pgfree/s command happen without pgscand/s? How and what is the difference between pgfree/s and pgscank/s?
0
votes
0answers
16 views

Need to convert output to curly braces and quotes [duplicate]

host1:3183,host2:3183,host3:3183 I got above output from a different command. But I need to convert it to below { "host1", "host2", "host3" }
0
votes
0answers
12 views

How can I disable Zathura's statusbar by default?

I'd like to hide the statusbar by default when opening Zathura (Which is normally done with ^n)
0
votes
0answers
2 views

What could cause slow binfmt-support.service during boot?

I have a Fujitsu LifeBook with Lubuntu 18.04.2 which is booting very slow. Here's the output from systemd-analyze blame | head -n20 28.869s systemd-journal-flush.service 24.957s dev-sda1.device 14....
1
vote
0answers
13 views

Move (mv) file that starts with a hyphen (-) [duplicate]

I have a file called -my-file-name.txt. I'm trying to move it using the mv command, however it fails because the hyphen in the name is acting like an option. mv -my-file-name.txt /some/new/folder ...
0
votes
0answers
73 views

How to stop bash script from running at login

OS Debian Stretch Jack and Pulseaudio script The script below was executed and I can't find out how to stop it permanently. The script starts a few programs at login. The script is saved in /home/...
1
vote
1answer
19 views

Installation of Firefox on Alpine Linux

I'm trying to install Firefox on Alpine Linux. I ran $ sudo apk add firefox And a few hundred MBs later, it installed. However, when I ran firefox, it crashed with symbol not found errors and ...
2
votes
1answer
17 views

How to utilize Windows 10 Connection Sharing to Access ZScaler protected Websites on Linux / Ubuntu 18.04

How can I use ZScaler to access protected websites via Ubuntu without a dedicated Ubuntu client?
4
votes
1answer
21 views

How to robustly switch pulseaudio output device from command line?

In Ubuntu and probably other distros there is a graphical thing to switch the audio output device. I have tried to write a command line tool that does the same thing, but it doesn't always work. What ...
1
vote
2answers
37 views

Save output of multiple commands to the same file [duplicate]

For example whoami and date. I can do this that way whoami>/home/user/folder/file date>>/home/user/folder/file But i'm sure it can be done in one line without typing path two times. I have ...
0
votes
2answers
35 views

Windows on SSD, Linux on HDD. No dual-boot. Separate bootloader devices. Will there be problems?

I have a 1 Terabyte HDD which is currently empty storage space for Windows which is on SSD. I want to split the HDD to two 500GB partitions and use first half as Windows storage space and the other ...
0
votes
0answers
42 views

CentOS Moved entire root directory (mv -v /*) [duplicate]

Dont laugh at me but I ran: mv -v /* /home/dropbuyexpress instead of mv -v * /home/dropbuyexpress Luckily my ssh is still on. Is there any way that I can get mv/cp working? OS: CentOS 7 Below ...
-1
votes
0answers
29 views

I want to start an email hosting solutions on my own server [on hold]

I want to start an email hosting solutions on my own server. Something which Migadu ( https://www.migadu.com/en/index.html ), google apps(email) for business or Zoho does. I am not sure how to get ...
0
votes
0answers
19 views

Systemd service to restart only 5 times on failure

Below is my service, I have a simple utility which upgrades the service, I have enabled this to run on boot [Unit] Description=Firmware Update Service [Service] StartLimitBurst=3 StartLimitInterval=...
0
votes
0answers
25 views

How to download wine-tkg manually to play FIFA 19?

I am using Linux Mint 19.1 and I want to install FIFA 19 in it. I went to lutris.net and I found out that I have to install wine-tkg for esync features. The download link provided in there doesn't ...
0
votes
2answers
12 views

Tomcat9 Enable Manager Page for multiple services

To enable manager page for some webservice running on port 8999, i have copied the manager directory from webapps to port 8999's appbase i.e., webapps2. The manager page opens fine on port 8999 but ...
0
votes
2answers
68 views

Linux awk grep from file 1 into file 2

I have regex in file 1 .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*8912.*.*.*.*81415444.* .*...