All Questions

0
votes
0answers
2 views

how can I make apt-cache rdepends show only packages that have been installed?

as title. I ran this command apt-cache rdepends my-package-here and the results included apps that I haven't installed in my setup. I only want to see packages that have been installed. Thanks
0
votes
0answers
6 views

How to fix the Bro crashing while starting it

When I try to start Bro it crashes and shows me this message [BroControl] > start starting bro ... creating crash report for previously crashed nodes: bro Error: bro terminated immediately after ...
0
votes
0answers
7 views

Cannot load compresed kernel module

I tried to load "hid-a4tech," but I got error the messages below: [net_client@netarchwork ~]$ modprobe hid-a4tech modprobe: FATAL: Module hid-a4tech not found in directory /lib/modules/4.18.7-...
0
votes
0answers
12 views

How to start and stop service from browser

I made a nodejs app and this app should run on server forever, but sometimes we need to start and stop it. So I want to make a webpage to access the output of the app's console and start & stop ...
0
votes
0answers
9 views

how to make `.inputrc` keybindings to work on commands that are using `read`?

I have this snippet in my .inputrc to map jj as enter/return. "jj": "\C-M" It works well but not for commands that are using read, for example entering passwords. How can I make this to also work ...
3
votes
2answers
81 views

Opening most recently modified file in vim

The following commands work $ ls -1t | head -1 git_sync_log20180924_00.txt $ vi git_sync_log20180924_00.txt But this does not $ ls -1t | head -1 | vi Vim: Warning: Input is not from a terminal Vim:...
0
votes
1answer
22 views

Apt-get upgrade error

After installing Kali Linux on my VMware machine , I was trying to update the sources.list file , but for some reason while using the command apt-get upgrade It is resulting in error as E:Could ...
0
votes
2answers
19 views

Should lost+found directories always be owned by root?

I'm using a script that creates file systems for specific users. One of the last operations of the script is a chown -R of the mount point to the user. This has the side effect to make the user the ...
0
votes
0answers
25 views

How to remove 'top' command's header?

I have top as above, and would like to remove header. I tried to look into its sourcecode but can't find what should be changed to remove its header, trying to modify and create a patch. Thanks in ...
0
votes
0answers
8 views

Oh-my-zsh autocompletion for parameters in git aliases not working

I searched a bit for an answer to my problem but didn't managed to find a solution, so I'm asking for your help. I wrote a few git aliases as functions. Those functions take arguments, for example : ...
0
votes
0answers
5 views

Firefox and NFS shared from Debian 9 Stretch

Having problems migrating home directories from old server in Debian 8 jessie to new one with Debian 9 stretch home directories are shared over nfs to several workstations. This has worked well for ...
0
votes
3answers
22 views

How to parse JSON with shell scripting for braces edge case

I have a JSON output from which I need to extract a few parameters in Linux. This is the JSON output: { items:[ { provider_name:"ucp-ipg", subject_name:"rtm-instrumentation", ...
0
votes
1answer
22 views

How to read only the last line of a live input stream in a while read loop

I have a very simple bash script that synchronizes data to a USB key as soon as new files appear. It is poorly written but it works, however I want to minimize CPU time so I used sleep but since I use ...
0
votes
0answers
6 views

grouping commands in mutt macro (tag-prefix problem for complex macros)

I encountered problem with applying tag-prefix for macros composed with several commands. Let start with simple example: macro index,pager E "<pipe-message>wc<enter>" It works fine, ...
0
votes
0answers
16 views

xhost setting at boot not working

I am trying to display images on boot from my device, but it throws feh ERROR: Can't open X display. It *is* running, yeah? After some findings, I got to know that some xhost settings need to be ...
0
votes
1answer
11 views

GNU Linker differences between the different 32bit emulation modes?

What is the difference between the 386 and 32 bit options in ld -V? elf32_x86_64 elf_i386 i386linux i386pep i386pe And, where can I find the documentation on these "emulation modes"
0
votes
0answers
20 views

can i safely remove /var/log/jenkins/jenkins.log (/var: 100% used)

I am running out of disk space with /var system file and noticed /var/log/jenkins/jenkins.log file is occupied 7 GB. Can i safely remove this log file ?
0
votes
0answers
14 views

how to cross reference files for strings and integers?

So I am need of advice from some experienced pros. I am trying to cross reference a CSV file with columns; jobid, date, total price. with a sqlite .db file that has many columns but those of ...
-1
votes
0answers
14 views

FEDORA28 environment how is the environment set [duplicate]

in my environment there are a lot entries, which I can't find in ~/.bashrc is there a way I can determine what input files are used to setup the environment?
0
votes
1answer
29 views

What exactly does “Illegal instruction (core dumped)” mean?

I see a lot of solutions to resolving the problem exemplified by Illegal instruction (core dumped) But, I'm wondering what exactly that means? What generates that error, and what's the root cause ...
0
votes
0answers
30 views

Connecting with ssh without password

I'm trying to connect using ssh from Window's PuTTY client to Debian Lenny machine without entering password. For this reason I copied content of \.ssh\id_rsa.pub file to Debian's ~/.ssh/...
0
votes
0answers
11 views

Linux repeatedly scrambles portions of the filesystem on NVME

I have an NVME device holding the / ext4 partition and a few extra partitions for other operating systems and /boot/efi. Repeatedly, the file system gets corrupted, to the point where the already ...
0
votes
0answers
5 views

How to log quantities of IP traffic by src/dst (and port for UDP & TCP)?

How can I log quantities of IP traffic by src/dst (and port for UDP & TCP)? For each interval (probably each hour) I would like to see something like: proto, src, dst, packets, octets ICMP, 192....
0
votes
1answer
27 views

grep for one or more occurrences of a word

I want to search for the occurrence of type . super([A-Za-z]+ , self) in a codebase . when I am going for $ grep -nr '[s][u][p][e][r][(]' . its showing me all the lines which has super( , when I ...
0
votes
1answer
13 views

Alpine VM not saving after rebooting

I did setup-alpine then installed busybox-extras. After I rebooted the VM, it reverted to the initial configurations. Is it just for Alpine VM, or should I save it? I can't find any commands to save ...
0
votes
0answers
5 views

Camera interface with RIoTboard

I am working on camera interface with RIoTboard, and when I want to capture the video from the camera sensor using command : gst-launch-1.0 videotestsrc ! videoconvert ! ximagesink I am getting the ...
0
votes
0answers
9 views

KVM : Add extra memory from the host's swap

I am running a KVM virtual machine on a host that has 6 Gb of memory and around 15 Gb of swap, so the max of the memory that i can add to the guest is < 6 Gb. I am wondering, is there a way to add ...
0
votes
2answers
20 views

Service command not found cron

I need to start the icecast2 service on startup. To to make it run on boot, I added to crontab (root) the following line: @reboot service icecast2 start >/home/pi/logs/icecast2.log 2>&1 ...
-1
votes
0answers
18 views

Errors on Installing Debian at Start

I had installed Debian. These are the errors that are appearing at the start. What should I do?
1
vote
1answer
21 views

detecting cli script execution and not cronjob script execution

Is there a way to detect if i run a shell script by hand in the console or if the cron starts the script (e.g. using crontab) ? Edit: Usage example: manualy i want to show a progress bar for ...
0
votes
4answers
31 views

regular expression match text in curly braces and print whole curly braces

I have configuration file like: define host{ host_name xxxxxxxx1748 use windows-server alias Comet hostgroups +bu-automotiveprd,screen-automotiveprd2 address ...
0
votes
0answers
12 views

Kill daemontools Service in the Middle

I setup a daemontools service and the run script looks like this: setuidgid myuser /home/myuser/some_exe exec setuidgid myuser /home/myuser/some_exe_2 some_exe will block until a condition it ...
0
votes
0answers
6 views

Red hat virtualization with java JDK 1.8.0_181

We are trying to collect how many RHEV hosts are available in RHEV manager using "/ovirt-engine/api/hosts" api. For this, We have to hit this API using HttpGet and HttpClient. when i run this code ...
0
votes
0answers
3 views

Fedora 28, LUKS encrypted fails boot after timeshift restore

I'm trying to restore my backups created with timeshift for fedora 28 workstation luks encrypted with standard partition layout. If you can't relate, here is the tutorial: https://github.com/...
0
votes
1answer
17 views

Linux font that similar to windows 2016 core cmd's font

I have this windows 2016 core cmd font, as picture above. I want to know how to use similar font on X11 windowing system — Arch linux. Do you know what font would give similar appearance?
0
votes
0answers
13 views

Subdomain of localhost is not working. Apache 2.4.25 (Debian) Server at subdomain.localhost Port 80

Apache 2.4.25 (Debian) Server at Port 80: Subdomain of localhost is not working localhost is working. localhost/site1 is also working. site1.localhost is not working Changed DocumentRoot from /var/...
0
votes
0answers
33 views

What path is a packet going through Linux kernel? [on hold]

When a network packet with certain MAC and IP address in its header hit a network card on my computer, what path will it go through, in the Linux kernel? How do I know whether my socket would get it ...
1
vote
1answer
11 views

List/find the programm(s) that access a specific given file (IOW: from a specific file 2 an unknown tool)

i am kind of new to debugging in a linux environment so maybe i am just clueless. I have a javascript file that is used on just one occasion -> if the home folder is deleted and i login the next ...
0
votes
0answers
15 views

bash function not usable with eval in Msys2

I am using Msys2 from PortableApps under Win 10. I have a shell function defined with MYAPP=some_executable function myfun() { ${MYAPP} "$@" ; } i.e., my executable takes options and parameters, ...
1
vote
0answers
16 views

Emergency Mode in Ubuntu 16.04

I have been using ubuntu 16.04 on my device. All of a sudden, it says "Welcome to Emergency Mode...". I tried solutions in various pages, including a live usb with fsck. It did not work for me. ...
-2
votes
1answer
32 views

Shell Script to Increment the value of a varaible [on hold]

How do I make a shell script which whenever I run it increments the value of a variable. Suppose if a variable has a value of 5 and if I run the script again it increments a 1 into it. And if the ...
0
votes
0answers
5 views

Docker container upload permission

I'm rather newbie to linux and I started to play with docker. I'm using: https://laradock.io/ for my laravel project. So I have docker on my laptop (making server out of it) which is connected to the ...
-3
votes
0answers
12 views

LDAP Schema Help

I am new to ldap and would need some assistance in understanding the schema definition for a new ldap DB. My requirement is subscriber data will be loaded to the ldap database and this subscriber ...
-1
votes
0answers
31 views

imagemagick installation failed

Every time I try to install imagemagick, I get this output on ubuntu 16.04: command: sudo apt-get install imagemagick Some packages could not be installed. This may mean that you have requestedan ...
1
vote
1answer
12 views

Locating source files for arch linux executables

Is there a simple way to retrieve the source files that built a given /usr/bin/* command (meaning also those placed there via AUR)? Is there a command I can issue through maybe a pacman wrapper that ...
1
vote
2answers
29 views

Send raw to serial with 0xA data

I try sending to serial port someone string echo -ne '\x55\x90\x17\x01\x00' > /dev/ttyACM0, usb monitoring show me this data: ffff8c957536f540 2932377867 S Bo:2:005:3 -115 5 = 55901701 00 this ...
0
votes
0answers
28 views

sed: remove extra whitespace to single whitespace between strings while leaving leading tabs intact

I have a code: 1 /** 2 a b c 3 **/ 4 int main() { 5 int x; 6 if ( condition) { 7 return x; 8 } 9 } I need to change multiple whitespaces between ...
0
votes
2answers
16 views

How to get the filename part from a path in an environment variable

I feel this is a duplicate but couldn't find any similar previous questions. For an environment variable holds a path. How does one get its filename portion? In bash(1), I experimented and found ...
0
votes
1answer
16 views

How to set cronjob or unit file to run after reboot

I have created cronjob as @reboot root sleep 75 && firefox but then I test it, but it didn't work. In /var/spool/mail/root it shows me this what I want to archive is after every reboot I ...
0
votes
1answer
10 views

Thunderbird overloads my HDD in large operations, what to do?

If I do operations in Thunderbird with many (thousands of) mails, I hear a crashing voice from my HDDs. It sounds really not beautiful. It happens only if I do something with a lot of mails (for ...

15 30 50 per page