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.

Filter by
Sorted by
Tagged with
11
votes
3answers
11k views

WITHOUT using network command lines in linux, how to know list of open ports and the process that owns them?

I want to know which ports are used by which processes in embedded-linux. Since it is simple embedded-linux, there are no network command lines such as netstat, lsof. (only basic command lines such as ...
1
vote
0answers
20 views

Hide Grub Menu - Linux Mint 19.2

For some reason on my Samsung Ativ Book4, after installing Linux Mint, the grub menu is showing and I want to be be able to boot directly into Linux Mint 19.2 without having a loader showing the ...
149
votes
7answers
215k views

Limit memory usage for a single Linux process

I'm running pdftoppm to convert a user-provided PDF into a 300DPI image. This works great, except if the user provides an PDF with a very large page size. pdftoppm will allocate enough memory to ...
0
votes
0answers
7 views

UBIFS errors on an embedded RPi-like device

Test Environment Single board computer (https://www.emtrion.de/en/details_products-accessoires/sbc-sama5d36-56.html) Linux Kernel is version 4.18.8. Bootargs are: console=ttyS0,115200 earlyprintk ...
0
votes
1answer
38 views

What Happens When the Hostname Differs from the One in the /etc/hosts File

It is possible to have the name from hostname not appear in the /etc/hosts file in *nix systems. What happens in this scenario?
-3
votes
2answers
33 views

shell script for finding recently accessed file in linux [on hold]

print the name of the most recently accessed file in the directory /var/run/log/ whose name is of the form access-<DDD>.log (here <DDD> represents exactly 3 digits; thus the filename ...
0
votes
0answers
9 views

multiple [[collectd]] in influx.conf

I have following collectd instance running in influx.conf file and everything is good, but now i want to setup other instance totally isolated with existing one how do i do that can i do following? ...
101
votes
11answers
99k views

How can I tell what version of Linux I'm using?

Often times I will ssh into a new client's box to make changes to their website configuration without knowing much about the server configuration. I have seen a few ways to get information about the ...
14
votes
5answers
23k views

How do I watch my webcams feed in linux

In windows I can open "My Computer" and click on the "Webcam" icon to get a feed from my webcam. I can also take snapshots of that feed. Can I do the same in Ubuntu? Without installing any extra ...
0
votes
2answers
26 views

Re-route traffic to an alternative outbound IP address

I have an application running on Alpine that makes requests to a particular IP address/port, say 127.1.1.1:10000. I'm unable to change that particular IP address/port. The service that it is trying to ...
1
vote
1answer
1k views

Where can I get the “kernel-default-debuginfo” package for SLES 11?

I'm using SLES 11 SP2 x86_64 and I want to install kernel-default-debuginfo package. But, I couldn't find it anywhere on the Novel website. Where can I find the mentioned package?
1
vote
0answers
12 views

Locking Mouse to a single screen

I want to lock the mouse to a single monitor in a multi-monitor setup. I tried the following: MOUSE=`grep -i 'optical mouse' <(xinput --list --name-only)` MONITOR=`awk '/HDMI.* con/ {print $1}' &...
1
vote
2answers
2k views

Ryzen 3 2200u laptop linux compatibility

Do Ryzen 3 2200u laptops work without issues with stock install of Debian 9 or Ubuntu 18.04? I do not want to install nor patch nor compile! I have to choose between Core i3 6006u and Ryzen 3 2200u. ...
0
votes
1answer
31 views

How to split CSV file by first column being a multiple of n

I have large csv file that looks like this: 1 , aaa, bbb, ... 1 , ccc, ddd, ... 2 , aaa, bbb, ... .. 10 , aaa, bbb, ... .. 1000 , aaa, bbb, ... I would like to split it into separate csv files ...
0
votes
0answers
14 views

Registration of new nodes in a network

We install Debian (server variant) on a new client node (possibly behind a masquerader) in our network. Now we need to assign an autogenerated UID and secret keys(s) (for SSH and for API such as ...
1
vote
0answers
16 views

Why is NFSv4 not translating POSIX ACL's in a usable way?

I have an XFS filesystem in which some folders (using mode setting) have no public accessiblity, with group owner having read-only privileges. There is a program (which runs as user cryosparc_user) ...
0
votes
1answer
23 views

How to get list of processes from N days ago from ps output

How to get list of dates from an output of ps command to only show those processes beyond 30 days? My goal is to kill these processes. I can easily do this by killall command. E.g. killall -u user --...
0
votes
0answers
9 views

Screen Brightness Controls Not Working (Fn/Slider)

I just switched from Windows 10 to Linux Mint. I have an older computer (Samsung ATIV Book 4 NP470R5E-K01B). My computer uses Intel HD Graphics 4000, as a graphics driver. I had similar issues with ...
0
votes
2answers
55 views

grep command in bash shell loop

I have a log file, name out.log. I need to search a list of string (filelist.txt) from this log file. I need each matching line from "out.log" for every file in filelist.txt. it can appear multiple ...
-1
votes
0answers
19 views

Unable to find the mount point entry in fstab

I am using Deepin OS and upon installing it, I couldn't find a partition on my homepage, upon using lsblk I found that the partition was mounted in some other folder and to change the mount point, I ...
1
vote
0answers
29 views

User switching within a Docker container's context

In a self-built Docker container, I want/need to run applications under a specific UID and GID. Trying to use a UID:GID pair that does not exist on the host fails. Remarks the intended UID:GID(s) do ...
3
votes
2answers
9k views

How can I get a binary from a .py file

I need a program to compile python source code; as I found out at first I need to make a binary file from my python script. I've already checked a lot of links, but still I haven't found something ...
0
votes
0answers
34 views

Mapping of well-known processes and ports

I need a list of well-known processes (and, if possible, a mapping between the processes and default ports they use) that are usually run on Linux servers. e.g. sshd : tcp/tcp6 22 : Secure Shell ...
0
votes
1answer
225 views

Does linux systems flush dirty pages to disk one block by one block?

As far as I know, in linux systems, when modifying the content of a file, the pages containing the content of the file in page cache will be marked dirty, and will be flushed to disk eventually. What ...
0
votes
1answer
30 views

retaining highest match from a column for a uniq ID [duplicate]

I have a tab delimited file with many columns: 1 A 10 1.94E-31 N/A N/A bat 1 B 20 1.94E-31 N/A N/A bear 1 C 12 1.94E-31 N/A N/A dear 1 D 36 1.94E-...
-1
votes
0answers
27 views

Linux machines assessment [on hold]

Good Morning. I was tasked to create a listing of our gnu/linux machines that we have in our and clients infrastructure. I need to perform a complete assessment of those machines. Considering that I'...
0
votes
2answers
124 views

Create bash script for ping

Good evening I would need a script in bash that follows this command: ping -c 4 -i "IP" for 3 times. Each ping must be performed at a distance of 10 minutes and only when it fails all 3 times, it send ...
1
vote
1answer
7k views

Job for vsftpd.service failed because the control process exited with error code

I can not restart the vsftpd. [root@localhost vsftpd]# service vsftpd restart Redirecting to /bin/systemctl restart vsftpd.service Job for vsftpd.service failed because the control process exited ...
-1
votes
1answer
26 views

How to join tar files after splitting when we want to join specific files

We have the following combination of binaries files (they are after splitting) HADOOPa HADDOPb HADOOPc HADDOPd HADOOPe HADDOPf HADOOPab HADOOPac HADOOPbc Now we want to join them to tar. Since we ...
0
votes
1answer
31 views

How to run ssh reverse tunnel in background using python?

I need to execute the command ssh -NTf -R 5000:localhost:22 server@ip in the background using python. I know the command itself run in the background due to the option -f. I have used python ...
0
votes
0answers
17 views

is there a way to create sysfs parameter from userspace? [duplicate]

is there a way to create sysfs parameter from user space? Usually kernel driver creates it and we can access it from userspace. but in my case driver is sitting in userspace so was wondering if there ...
3
votes
3answers
5k views

Creating an iso from the virtual machine

I have openSuse installed as a virtual machine on Oracle Virtual Box, and I have configured some softwares with the way I require. I need to replicate the similar environment on a new Server (NOT the ...
0
votes
1answer
16 views

alias fo rm command ( cp comand issue ) [duplicate]

I try to change the rm command into a command that give me backup of the file and remove the file after. function move_to_trash () { unset rm; cp -v "$@" "/home/`whoami`/backup/" &...
0
votes
0answers
19 views

Ran out of disk space Ubuntu 18

So I just got my pterodactyl server up and running, and the files combined have pushed the dir over the default28GB. Now I am fairly new at Linux os and a bit confused on how to expand that disk to ...
0
votes
0answers
9 views

cuda has unmet dependencies but --fix broken install does not help

OS is ubuntu 18.04 This problem has originated from trying to install QGIS. Or I should say reinstalling QGIS, as I have had this package installed before. Somehow it got broken. When I try to ...
4
votes
3answers
43k views

How to know why server keeps restarting?

It seems that my server keeps restarting. I want to know why. How can I know when the last time server was rebooted and why? root pts/0 139.193.156.125 Thu Aug 8 21:10 still logged in ...
2
votes
1answer
2k views

SMTP connectivity issue in Zenoss (“Connection unexpectedly closed”)

I am using Zenoss for monitoring purpose. I have been using its mail service for a long time. Suddenly my mail service in zenoss stopped and started showing <class 'smtplib.SMTPServerDisconnected'&...
2
votes
1answer
56 views

Fan constantly running at full speed

Here I am repeating a question previously asked in a sister forum, as it is relevant here and I have neither received a response, nor been able to resolve the issue. On my ThinkPad T470 which is a ...
0
votes
1answer
73 views

LogRotate: error running non-shared postrotate script

During Daily Log Rotation, we are getting below error. /usr/bin/find: cannot delete ‘/var/log/tomcat/catalina.out’: Permission denied error: error running non-shared postrotate script for /var/log/...
0
votes
0answers
7 views

Adding proxychains

When we use proxychains , we have to manually add socks4 or socks4 proxys to proxychains.conf file. Is there any other way to add these proxies and update them automatically? Tool or bash script?
1
vote
0answers
19 views

How to benchmark terminals or its related programs?

For testing, I tried some terminals with several themes (e.g. oh-my-zsh), initialization scripts (.rc files) and many of my simple pty-like programs (using forkpty). Some of them lags in my PC which ...
0
votes
1answer
38 views

Moving a file from local drive to a remote machine

I'd like to move a folder that contains multiple files within it from my local folder to a ssh user@xxx.xxx.xx.xx machine's temp drive. What would be the best method in doing this? Thanks for your ...
8
votes
7answers
27k views

Constantly check if file is modified bash

I have a file called file1 I want in a script, whenever there is a change in it, do something, a beep sound actually. How do I do that?
1
vote
1answer
23 views

WSL distro disappeared after running history | script

I have a Windows Subsystem Linux installation (the distro is Ubuntu). I use it to build a Rails project and deploy branches to the server. Things worked OK for the last year. Today I accidentally run ...
0
votes
3answers
56 views

How to merge last four columns of a text file while inserting a different delimiter?

I have a file: sample_1 sample_2 sample_3 category subcategory class levels 52 59 80 wild animal herbe small 25 65 71 pet ...
-3
votes
0answers
16 views

Wifiphisher not working - Kali Linux

Whenever I run wifiphisher --force-hostapd, my wifi or even ethernet stops working. When I go into settings, it shows: Oops, something has gone wrong. Please contact your software vendor. ...
0
votes
1answer
33 views

Autostart pure-ftpd by running its Perl configuration file at the command line

I have manually built the pure-ftpd on my Raspberry Pi and it runs perfectly fine when I invoke /etc/pure-config.pl /etc/pure-ftpd.conf from the command line. I'd like to run that simple command /...
0
votes
1answer
32 views

calculate the total md5 of specific match files

in folder , we have the following HADOOP binary files and their size (BYTES) du -sb * | grep HADOOP[a-z] 334542327 HADOOPaa 334542327 HADOOPab 334542327 HADOOPac 334542327 ...
1
vote
2answers
36 views

Keyboard key “s” not triggered [on hold]

I recently installed XFCE over my arch - used gnome before. After some time using XFCE i discovered that my keypress "s" does not work as expected (works first in XFCE without problems). Output of ...
0
votes
1answer
888 views

Options error: Parameter ca_file can only be specified in TLS-mode

Im currently trying to setup an OpenVPN Client on my Raspberry Pi. I keep on getting some error messages related to TLS. The syslog gives me this: Nov 23 08:34:56 raspberrypi ovpn-ersterclient[1370]...