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
0
votes
0answers
7 views

Is it possible to assign two VIP for 1 cluster(pcs)

Please help us to understand the below point. Is it possible to assign two VIP for 1 cluster(pcs). 10.0.2.3/ 10.0.2.5 both is assigned dchsdb. We are getting request from 10.0.1.2 in database, ...
0
votes
0answers
32 views

How pssh do the ssh activities without password

the follwing pssh command do a parallel as date pssh -i -H "master01 master02 master03 worker01 worker02" -l root -x '-q -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o ...
0
votes
0answers
29 views

Display managers don't log me into my user account

I have been using Arch Linux for more than 5 years now (and linux for about 10 years). Never had such a problem. Searching the internet also did not reveal any answers to this ---- Here are the ...
0
votes
0answers
15 views

Strange error when compiling lightdm-gtk-greeter-2.0.3.tar.gz

I got the error when compiling lightdm-gtk-greeter-2.0.3.tar.gz as below make[2]: Leaving directory '/sources/lightdm-1.24.0/lightdm-gtk-greeter-2.0.3/po' Making all in src make[2]: Entering ...
0
votes
0answers
22 views

Using stylus disables touchscreen in Kubuntu

I installed Kubuntu on my HP Spectre x360 2019 version recently and came across a problem where every time I use the stylus, the touchscreen gets disabled but does not get re-enabled after lifting it ...
0
votes
1answer
49 views

bash + grep only the time stamp from output

we want to capture the time from the output and not the time from the command sshpass expected output Sun Jul 14 12:47:49 UTC 2019 Sun Jul 14 12:47:49 UTC 2019 Sun Jul 14 12:47:49 UTC 2019 but from ...
1
vote
0answers
56 views

Is the a.out executable format still in use?

I'm sure that in light of the recent deprecation of the a.out format on Linux quite a few people have heard about the ancient executable format. I'm creating a loader for the format just in case ...
1
vote
1answer
1k views

Create new user without prompt with chpasswd

I am trying to create a new user and associate directly a password (test pass) in a command line without be prompted. I get this error on Debian: Enter new UNIX password: Retype new UNIX password: ...
3
votes
2answers
2k views

Measure units in /proc/<pid>/schedstat

I need to get statistics from /proc/pid/schedstat for a particular process. Here https://www.kernel.org/doc/Documentation/scheduler/sched-stats.txt I found the description of fields. What are ...
0
votes
0answers
51 views

Differences between ARM and x86 bus architecures? [on hold]

I tried going through the specifications, and was pleasantly surprised on how neat the ARM AMBA specification looked, as opposed to the PCI(e). A lot of that it seems comes from how the electrical ...
0
votes
1answer
85 views

Terminal long line wrapping [duplicate]

I got a small issue with line wrapping on a custom linux and I'm not sure where this is set. When on serial console or using SSH login i get the following: Cursor at start of line [user@myhost ~]$ ...
4
votes
1answer
103 views

How to set shell to wrap words for long commands?

I connect to a Slackware server. When a command is longer than the size of the putty window, the line continues in the same line, and the start of the command disappears as I continue adding to the ...
4
votes
2answers
1k views

Linking Ethernet interfaces

I'm quite new to Linux networking. I have a Debian PC with two Ethernet interfaces, one embedded on the motherboard and another on a PCI card. The first one, let say eth0 is connected to my router (...
0
votes
1answer
53 views

How does the DHCP server sort the MAC addresses according to the physical order of the clients? [on hold]

There are hundreds of servers, one of which serves as a DHCP server. The hosts file of the DHCP server specifies the IP address and host name for each client server. But the MAC address of the client ...
13
votes
6answers
56k views

When trying to change username, terminal tells me user is currently used by process

I am trying to change my username, as per advice here however after running the following command: CurrentName@HostName ~ $ sudo usermod -l TheNameIWantToChange -d /home/TheNameIWantToChange -m ...
1
vote
1answer
1k views

Skip syslog/rsyslog logging of certain cron jobs

In most GNU/Linux distributions the default is to log start (and many different events) of every cron job to syslog. It's rather convenient, but not for a very frequent jobs, which started, say, every ...
0
votes
1answer
34 views

How fast is an IO interrupt in Linux versus bare metal? (ARM, Raspberry Pi)

I read that an interrupt in Linux (this was about a Raspberry Pi) can take a "long time" to process or let's say "start doing what the programmer wants". Is that true and how bad is it? Is there a big ...
0
votes
1answer
24 views

Lightweight processes behavior with an new PID

I've been experimenting with lightweight processes. Basically calling the clone function and assigning a new PID to the cloned LWP. This works fine it lets me identify all the children threads of ...
-1
votes
1answer
36 views

What is the ls option to list entries by lines instead of by columns? [duplicate]

What is the ls option to list entries by lines instead of by columns?
3
votes
2answers
13k views

Kill TIME_WAIT sockets immediately?

Is there anyway to kill those TIME_WAIT sockets immediately ? e.g output of netstat: tcp 0 0 127.0.0.1:8080 127.0.0.1:41500 TIME_WAIT - tcp 0 ...
2
votes
1answer
1k views

Wifi suddenly not working on thinkpad, in both Manjaro and parrot linux

I boot up the laptop one day and wireless is not working. The wireless led on the laptop is green, showing it's working. In bios, it is enabled. But Linux does not see any kind of wireless interface,...
0
votes
1answer
25 views

Forwarding traffic back to localhost

I'm implementing some kind of router which has multiple internet connections, based on current throughput of those connections it would forward packets/frames using faster connection. In order to ...
0
votes
0answers
22 views

My linux is using heavy swap even when the swapiness is low and there exists ample amount of free space. Why?

cat /proc/meminfo --------- MemTotal: 7990416 kB MemFree: 2094352 kB MemAvailable: 2506396 kB Buffers: 44 kB Cached: 1040004 kB SwapCached: 144332 kB ...
0
votes
0answers
26 views

Debian GNOME login loop

After upgrading my Debian OS, I reboot the laptop.  When I enter the password to login, the GNOME desktop doesn't open and sends me back to the login interface. How can I fix this and login?
4
votes
1answer
1k views

Restore PYTHONPATH after setup.py install with PYTHONPATH

I ran this command on Ubuntu 14.04 Linux while trying to install a package: export PYTHONPATH=/usr/local/lib/python2.7/ && sudo python setup.py install The package I was trying to install is ...
1
vote
1answer
1k views

Long Boot Time (SSD), black screen with blinking cursor, “gave up waiting on suspend/resume device”

Have a Debian-based Linux that has been hardware cloned a few times. There are long boot delays even though it has an SSD. Originally, there had been a little slowly spinning icon saying it was ...
2
votes
2answers
167 views

Why applications on FreeBSD run slower than on Linux?

Update They don't! At least, not for me. See my answer. Original question According to last year's Phoronix benchmarks, applications on FreeBSD mostly run slower than on Debian (including ...
3
votes
2answers
39 views

Parallel Recursive Grep While Omitting String

Problem I cannot perform a recursive parallel zgrep while also omitting a string from the results. I am zgrepping through about 640GB of compressed firewall logs and almost %30 of the lines have the ...
0
votes
1answer
1k views

Bluetooth problem in Linux Mint (Cinnamon)

I have just installed Linux Mint with the Cinnamon desktop and my Bluetooth is not finding any device, and I cannot find it either. I have checked the rfkill and dmesg and here is the result. ~$...
4
votes
1answer
971 views

Gentoo Live CD from Hard Drive: No Mountable Filesystems on root after modules loaded

I am attempting to install Gentoo on my PowerPC Mac. I have reached the point where I can boot the Live CD (I have no functional CD Drive, so it is from a spare Hard Drive), but after the kernel is ...
23
votes
7answers
76k views

“echo 3 > /proc/sys/vm/drop_caches” - Permission denied as root

I am currently having some issues with the cache. It is a little too much right now so I wanted to clear it. I googled and found this little command: sync && echo 3 > /proc/sys/vm/...
1
vote
0answers
18 views

Linux From Scratch - Error: sed: can't read /tools/lib/libstdc++.la: No such file or directory

I'm trying to use a Docker configuration to run Linux From Scratch. But I'm getting an error sed: can't read /tools/lib/libstdc++.la: No such file or directory. It looks like after looking at the ...
1
vote
1answer
2k views

How to configure a GRE tunnel for ubuntu?

I am trying to configure a gre tunnel between two Ubuntu PCs: 1st with wlan1 interface 192.168.1.51 and 2nd with wlan2 192.168.1.2. PC1: ip link add gre1 type gretap remote 192.168.1.2 local 192.168....
0
votes
1answer
890 views

Ubuntu 18.04, what is using my hard-disk space?

I recently installed Ubuntu 18.04 on my machine and installed all the regular stuff that I had put the 17.10 version. However, it seems like something is amiss as my Linux partition is showing ...
1
vote
0answers
10 views

Detect if filesystem supports FIEMAP ioctl

How can I query the kernel to find out if a mounted filesystem supports the FIEMAP ioctl? Is there a way to request the inode_operations struct for a given filesystem? As a workaround, I just test ...
1
vote
1answer
1k views

Using SSD on Qubes OS

Concerning SSD on Qubes OS, in /etc/fstab besides the auto enabled TRIM, where else should I add discard and say noatime? Example of my StandaloneVM in which I've commented out the swap and added ...
1
vote
0answers
35 views

Official ELF reference & ignoring DT_RPATH in shared libraries

What is the official ELF format reference for Linux? There is the ELF 1.2 specification, which is from 1995 and outdated (does not include DT_RUNPATH for instance). But apart from that, it seems ...
0
votes
0answers
21 views

How to configure Atom for Python?

I installed atom-python-run for running python in Atom. But when I installed python extension in VS Code, then a massage came in that pylint not installed. And I clicked in install button. then a ...
3
votes
2answers
1k views

How can I encrypt a folder in linux using only the command line?

I need to encrypt a folder with documents (about 560kb if that makes any difference) and I was wondering whether it was possible to accomplish that using the command line? I am searching for ...
0
votes
0answers
24 views

A question on page-management by the virtual file system?

I am trying to get a fairly low level understanding of what happens when a file is opened or changed in linux. Obviously only some of the pages of the entire file, ( i.e. after the blocks on the ...
1
vote
2answers
19 views

Custom initramfs not detected

I have custom initramfs that should start busybox shell. The cpio archive contains directory bin/ with busybox and init. busybox is statically linked binary: bin/busybox: ELF 64-bit LSB executable, ...
0
votes
0answers
15 views

Set a (root) password when copy or delete any file even root user

Is there any way to request a password when remove or copy to another system, even root user? It does not matter to file or directory, but I don't want to change file permission to +700. If this is ...
0
votes
3answers
888 views

Filtering ifconfig output

Im trying to select the First 3 octets of the IPv4 IP from ifconfig. How would i go about doing this. I just cant figure out how to select from this step [root@hostname ~]# ifconfig | grep "inet ...
4
votes
1answer
883 views

SoftIRQs and Fast Packet Processing on Linux network

I have been reading about performance tuning of Linux to get the fastest packet processing times when receiving financial market data. I see that when the NIC receives a packet, it puts it in memory ...
-1
votes
1answer
24 views

How to count number of files in a directory that are over a certain file size [duplicate]

Is there a way to count how many files in a specific directory are over some file size? Say, 100 MB?
9
votes
1answer
7k views

Tracking down “missing” memory usage in linux

On an Arch 3.6.7 x86_64 kernel I am trying to account for the memory usage of the system, which the more I look at it, the more there appears to be a hole (in the accounting of used memory, a non-hole ...
0
votes
0answers
27 views

What's the lightest and simplest solution for booting from BIOS?

I have a machine that only has BIOS and I don't want to use things like GRUB, since I only need to boot the only one kernel. Lightweight distros do that kind of thing, right? Like tiny core... amazing ...
0
votes
1answer
16 views

Using xclip to copy to host clipboard from VM

Here's my current setup: Host: MacOS VM: Linux (Ubuntu 18.04) Hypervisor: Parallels 14 Host terminal emulator: iTerm2 Shell: Bash I do all of my development in my Linux VM (I ssh into the VM, being ...
0
votes
5answers
71 views

Replace substring of characters with awk and sed

I have a file which contains a very long string of characters and I would like to replace a substring of it with Ns. Example: test ABCDABCDABCD I would like to replace a substring of it with all ...
1
vote
2answers
21 views

Convert Excel file to PDF using Perl CGI

I'm trying to convert an xlsx file to pdf using Perl CGI (Mason). Since I did not find a way to convert a file using pure perl, I'm using soffice to perform the job. This works fine until I do it ...