I have written an RPM spec that has a requirement for the kernel-devel package. However, that is satisfied by the installation of any kernel-devel package. How do I specify that the RPM requires the kernel-devel package of the currently running kernel version. For example, our customer could be running 3.10.0…
Tag: linux
Segmentation fault in my Assembly implementation
I am new to assembly language programing, and here I am trying to call C standard library function puts from my assembly code, but I am continuously getting segmentaion fault. Please help; Operating system : LINUX 16.04 Assembler : nasm Machine : intel x86 – 64bit Answer to explain Comments More, start …
Is it possible to set an alias for a string?
As I’m so lazy, I don’t want to type 192.168.1 everytime anymore. I tried this: root@kali:~# alias “ip” = “192.168.1” That does not seem to work. As an example off what I try to accomplish: I don’t want to type this anymore: root@kali:~# hping3 -S –scan 1-1000 1…
Viewing updates of a dynamically generated log on a remote linux server from a windows machine
I have connected my windows 7 machine via winscp sftp with a cubietruck that runs on debian jessie server. I need to watch on windows the updated log of an installed app in the linux server. With winscp I can see this log file. I set the winscp to refresh the remote panel every 10 seconds. I tried to open
Segmentation fault appears when I use shared memory only from statically build program
When I built a program with –static option and it calls shm_open() function I get Segmentation fault. Without -static option all works like a charm. Does anybody know why? Below I have cited a debug info and a part of truncated source code from a big project. You can comment/uncomment string from Makefi…
rpm -q -> query only the descripton
I can query the informations about a rpm-package with Example-Result of a Query: But I only want to query the Description. Is that possible? The reason for that is that I want to process this information (the Description) in a C++ Program (I do this with popen()). Maybe something like this: Answer This is the…
more than one source of data to process with bc
I have this file that contains number in a column: I need to add them together so I do this: But after I add them together I need to divide them by 60,something like this: how can I do that? Answer
How to exit while loop when read() blocks
In a problem given by university we have to pipe from a parent process(P1) to its child P2, and afterwards P2 must pipe to another child of P1, the other child is P3. Both P2 and P3 are to be written in c and made into executable files. They will then by execed by child processes in P1. P1 writes
how to update blueprint/ambari cluster in case increasing disks on worker machines
we have ambari cluster with 3 masters machines , two kafka’s and 3 workers machines each worker have 5 disks as : we want to add additional 5 disks to each worker machine as ( /dev/sdf , /dev/sdh …, etc ) remark – our Workers nodes runs both a DataNode and NodeManager for now I understand th…
how to count repeated sentence in Shell
My expected result is like as below: I have found a way to deal with the issues, but my code is a little noisy. I was wondering if you could show me more high-efficiency way to achieve the goal.Thanks a lot. Answer If you’re lines are not already grouped, then you could use This will consume a lot of me…