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
1answer
13 views

docker compose use environment variable on volumes

Is there any way to use docker compose environment variable on volume section? I used this configuration but not work: SampleContainer: image: myImage:latest container_name: sample ...
2
votes
1answer
1k views

Server won't boot, kernel panic - not syncing

After a reboot of a CentOS 6.2 server we are getting a kernel panic with the following error: Kernel panic - not syncing: Attempted to kill init! Panic occurred, switching back to text console When ...
1
vote
2answers
55 views

What does / do? [duplicate]

I know that / stands for folder, but there is one thing I don't get. Command to illustrate the problem: mv ~/Documents/newfolder ./anothernamefolder Why there is / here? What does it do? Why can't ...
-1
votes
1answer
34 views

My C program CPU usage goes to 80% when redirecting to /dev/null

I wrote a C program that operates with UDP sockets and the serial port /dev/ttyS1 on uClinux. If I start the program normally as ./program the CPU usage is around 24%. However, if I start the program ...
0
votes
0answers
2 views

How we can get performance metrics from VTune in command line of Linux?

I am going to record all performance metrics mentioned https://software.intel.com/en-us/vtune-amplifier-help-cpu-metrics-reference by using VTune in command line for my C++ code. I used $ amplxe-cl -...
1
vote
1answer
12 views

Ubuntu machine time issue

New to ubuntu. I see that my machine has wrong time set in the system. Can some one help how to correct the system time. timedatectl shows Local time: Tue 2019-07-16 03:53:00 IST Universal ...
1
vote
5answers
1k views

Dual boot windows 7 and kali linux

Once I had windows 7 on a internal HDD and wanted to install backtrack 5 on another internal HDD on the same PC. When installation completed, I rebooted and found only backtrack 5. I booted a live iso ...
1
vote
0answers
9 views

Configure KVM in Debian 9 and bridge network remove Wi-Fi and not working

I'm trying to install and configure KVM in Debian following this guide. When I restart the network after configuring /etc/network/interfaces.d/br0 my wi-fi connection goes off. I've noticed that if I ...
1
vote
1answer
1k views

xrandr layout of virtual screen

Sometimes i need to use a virtual screen which is bigger than the physical one. With xrandr this is no problem. If i need 2000x1500, i use this command: xrandr --output LVDS1 --rate 60 --mode ...
1
vote
1answer
27 views

How to share “internet hotspot” access to a network on a second wifi adapter?

Can anyone assist with a linux routing question? Essentially I want to use an Ubuntu laptop to provide internet access to an attached network. I have a Raspberry pi on a wifi network (192.168.42.0/24)...
1
vote
0answers
13 views

ddrescue to larger drive

I have a 2tb external hard drive with a ext3 filesystem on the entire drive, so no partitions. I suppose this means there is also no partition table? This drive is somewhat broken, as copying some ...
1
vote
1answer
988 views

How do I change touchpad behavior with libinput running under wayland

The typical method of changing trackpad behavior is to edit /etc/X11/xorg.conf.d/<some number>-synaptics.conf. I'm running Fedora 25 running GNOME 3.22 and which uses Wayland by default, not X, ...
0
votes
0answers
8 views

How to connect USB keyboard to BeagleBone Black in my own kernel and root file system?

I built uboot, linux kernel and root filesystem for beaglebone black. I have logitech k120 for business usb keyboard. In menuconfig of kernel i selected logitech keyboard driver, usb driver, usb ...
3
votes
3answers
433 views

Performance of calling POSIX-specified functions versus direct Linux kernel calls

In an answer over on Stack Overflow, I provided a code sample to perform some small task referenced in the question. The original question had to do with the fastest-performing technique (so ...
0
votes
0answers
13 views

Why “Sum of RES” not equal to “Mem Used + Swap Used” (Ubuntu 18.04)?

I'm trying to host java8 UI application on VPS server (Digital Ocean) with 1GB of RAM. Java is started with -Xms600m -Xmx600m(startup and max memory usage). Also it runs VNC + mate-core. My assumption ...
11
votes
4answers
87k views

How to kill a process which can't be killed without rebooting?

There are 5 processes which can't be killed by kill -9 $PID and executing cat /proc/$PID/cmdline will hang the current session. Maybe they're zombie processes. Executing ps -ef or htop will also hang ...
-3
votes
0answers
25 views

Which project I should do [on hold]

Which Project can I do during my 15 day vocation In shell scripting and in combination with python for Debian distribution
0
votes
0answers
19 views

Printing hardware information to a printer with color

So at my job I test laptops for functionality with a linux mint live usb. I've been looking for a way to get the hardware information and print it out. So far I have it about how I want it by using ...
0
votes
1answer
1k views

build is missing for compiling kernel module

this is my first time trying to create a kernel module, apparently after creating a module I need to follow these steps to compile it: echo "obj-m := Hello.c" > Makefile make -C /lib/modules/`...
2
votes
0answers
41 views

How to zoom/magnify on linux without compiz (bspwm)

I'd like to have the functionality described in this video. Basically, use super+scrollup/down or pinch on my touchpad to zoom in a certain area of the screen, kind of like the magnify function on ...
0
votes
1answer
24 views

Rootfs permissions design

I wonder how design permissions in root file system should look for embedded device, with busybox onboard (buildroot environment). My initial concept is to remove all permissions, except x, of group (...
1
vote
1answer
47 views

Folders permissions is ressetting every time I boot my laptop

I am using Arch Linux, and every time I boot my laptop as a user, the hard disk folders permissions is set to root only, so I can't open them as a user, I used the following command to change the ...
0
votes
0answers
24 views

How to Warm up the Server Cache without using sitemap?

I need to write a script which Warm up the Application Cache with the website Pages when my server restarts so that when a User visits the website, the pages will be served from Cache leading to a ...
0
votes
2answers
42 views

If greater than equal to

I'm trying to write a shell script in redhat Linux which will send an email if there are processes running more than 2 hours. Here is my script. #!/bin/sh RESULT=find /proc -maxdepth 1 -user gen17 -...
2
votes
1answer
1k views

GNU screen startup is really slow

I connect to a RHEL 5.7 server via Putty or VNC (not sure it matters) but when I try to run screen, it takes forever (on order of 20-30 secs). Same thing if I run screen -ls, takes just as long. I ...
0
votes
0answers
12 views

Find Processor Type in Linux on IBM Power machine

I need to find the following information of IBM Power8 running Linux: Processor type Model Name Processor Size Following is the required output (came from another source called BigFix) : "IBM(R) ...
0
votes
1answer
25 views

disable touchpad through xinput

I am trying to disable touchpad through xinput. But I cannot find the id for my touchpad... Here is xinput list: Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ ...
0
votes
1answer
968 views

UDP Port Fowarding: channel 2: open failed: connect failed: Connection refused

My situation is as follows: I have currently trying to have a program between two Hosts send UDP packets over a SSH Tunnel. There is also a host intermediate between the two hosts. Note Server01 ...
0
votes
0answers
4 views

Hostapd with DNS rerouting

I have an old Mac Mini running Debian Stretch where I have bridged the wifi interface to the ethernet interface like so (/etc/network/interfaces): source /etc/network/interfaces.d/* # The loopback &...
1
vote
0answers
31 views

2.4 GB of memory not usable

I just bought a new Thinkpad E495 with 16 GB (8x2) of RAM. I understand that some amount of memory is reserved for the system. Basing on other discussions I've read online, 2.4 GB is a very ...
0
votes
0answers
6 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
30 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
18 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
14 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
19 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
48 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
1answer
46 views

Differences between ARM and x86 bus architecures?

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
83 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
100 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
46 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
33 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
20 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
29 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 ...