0
votes
0answers
2 views

What is the meaning of Tasks and Running in htop screen?

On my computer it shows Tasks 314; 24 running What do these numbers mean? Is 1 Task = 1 process? Why isn't the number of running tasks = number of CPUs then? (I have more than 24 CPUs)
0
votes
0answers
4 views

How to SFTP into a VM on remote server?

We have a server which runs a virtual machine. The only way to connect to this VM is to SSH to the server and then SSH again to the VM, using a user on server. How can I connect to the VM via SFTP so ...
-1
votes
0answers
5 views

Kali Linux, Failed to copy from CD-ROM

For some reason When i try to install Kali-Linux.. it gives me the error: Failed to copy file from CD-ROM Retry? I Downloaded Kali Linux from its offical website. And Downloaded the ...
0
votes
0answers
10 views

Not able to install or remove any package

When I try to install any package I get the following error: dpkg: warning: 'find' not found in PATH or not executable dpkg: error: 1 expected program not found in PATH or not executable Note: root's ...
0
votes
2answers
17 views

What does %h and other symbols like it mean?

I have seen % and then some letter for example %h in config files in Ubuntu and in other Linux distributions but I do not know the names of them or what they all do, so I am just wondering if there is ...
1
vote
0answers
8 views

X: Find out if a window is visible to the user i.e. not covered by others

I only want to execute a certain action with xdotool if the window is not visible to the user, this includes minimized windows, but also windows which are 100% covered by other windows (if no ...
0
votes
0answers
13 views

Using HID compliant mouse like device in ubuntu

Aim: I have a whiteboard which emulates a mouse. Thus, when you click and drag on the whiteboard it should move the cursor. I want to make a whiteboard work in Ubuntu. It works on windows. Device ...
0
votes
0answers
4 views

having troubles booting yumi multiboot on my windows 10 pc with a sandisk ultra usb 3.0 flash drive

I have been trying to multi-boot Linux distros on my MSI WS60 Windows 10 pc with a new 64gb Ultra 3.0 SanDisk flash drive. I have tried to troubleshoot the fast boot with Windows 10 and format the ...
1
vote
1answer
10 views

How does Netfilter understand that packet is RELATED?

conntrack match module --ctstate argument supports RELATED packet state. How does Netfilter know that for example in case of active FTP a connection from FTP server data port(TCP port 20) to the ...
3
votes
4answers
79 views

compress a large number of large files fast

I have about 200 GB of log generated daily, distributed among about 150 different log files. I have a script that moves the files to a temp location and does a tar-bz2 on the temp directory. I get ...
0
votes
0answers
9 views

Unknown job error on running service

I am getting an 'unknown job' error when I try to do service elasticsearch start When I run service --status-all I can see elasticsearch present in the list. But I just cannot run start, ...
0
votes
0answers
5 views

Prefetch on ARMv7 in Raspberry Pi

I have to implement Khatri Rao product between 2 matrices in C. Mathematically this is a column major access of data and I can not change that. But if I use preload ( PLD instruction in ARMv7 ) to ...
1
vote
1answer
12 views

Perl script to split a file based on a pattern at a certain offset

I need your help to get an idea as to how to split a large file into small sub-files as said in the example below. Criteria is we are looking at offset 30 (31st bytes to 2 bytes). If the offset ...
0
votes
0answers
9 views

Reading error output string in oh-my-zsh

I am using oh-my-zsh to automate some of the Unix tasks i do. One of the task require making a call, and if successful, echo a message. However, if there is a failure, I dont wan't to echo the success ...
1
vote
2answers
31 views

Check in pure bash that the download is complete

short story is, I probably need a simple loop in bash which checks periodically whether the size of a given file has changed or not since last checked. Long story, I will be downloading a file ...
1
vote
0answers
8 views

bridge-routing and martian packets

i am experimenting with routing a bit, and now i have a problem i cannot solve by myself eth0 | | ...
0
votes
2answers
14 views

Transmission keeps seeding after downloaded file has been deleted

I'm using Transmission 2.82 on Xubuntu 14.04, and I noticed that after I deleted the downloaded file permanently from files manager, the job in Transmission was still active and kept seeding, and ...
0
votes
0answers
5 views

compton i3 tabbed/stacked transparency background image

I have a rule in compton (on i3) that when i am in tabbed/stacked mode, i see not a window from the tabbed container but my background image behind my semitransparent terminal. but for some reason, ...
1
vote
1answer
12 views

How to monitor system performance over time

I wrote the below script to determine how my system is holding up against various games. It checks all the vitals (GPU, RAM, and CPU) and then appends the data to a log file. Is this a reasonable ...
0
votes
0answers
8 views

urxvt, vim and X clipboard [duplicate]

I would like to setup my rxvt-unicode with the following behavior Be able to paste primary clipboard with the keyboard (whatever combination is normally used) Copy selected text to primary clipboard ...
1
vote
2answers
30 views

expand wildcards “inside a command” instead of in the shell

(This is a simplest working example of something in a much messier context.) I have a directory d with files 1.txt 2.txt 3.txt 4.wav. My current directory is somewhere else. ls d reports 1.txt 2.txt ...
0
votes
0answers
14 views

CRON: pam_unix(cron:session): session opened for user root by (uid=0): Is it a must have process?

This post is somewhat similar but mine is rather specific. CRON: pam_unix(cron:session): session opened for user root by (uid=0) Is this really a bug? In our system this process is creating ...
1
vote
0answers
15 views

wpa_supplicant: where does it store its list of networks?

With wpa_cli list_networks one can print the list of networks wpa_supplicant has (successfully?) connected to. Where is this list stored? Is it possible to switch the store between two versions? I.e. ...
1
vote
1answer
19 views

Why does using the service command work on a systemd distro?

I'm trying to understand the Linux init system. I don't understand how there are three competing systems, yet the service command seems to work on all of them. From the service commands man page: ...
1
vote
0answers
23 views

How to prevent the latest ImageMagick vulnerability? [migrated]

According to the CVE-2016–3714 there are a some vulnerabilities in the ImageMagick program (4 packages) : Insufficient filtering for filename passed to delegate's command allows remote code ...
0
votes
2answers
33 views

Combine Two SSH Commands

The first ssh command is done on my computer, I enter the key password, then put the second ssh command in while logged into the server. ssh -i cloudkey -L 6000:localhost:6001 admin@54.152.188.55 -p ...
1
vote
0answers
8 views

understanding “bridge check” hop in packet flow in Linux kernel

According to "Packet flow in Netfilter and General Networking" drawing in Wikipedia Netfilter article: ..one of the first hops in packet flow right after the traffic control and queuing is bridge ...
1
vote
0answers
7 views

Changing readahead value using blockdev command

I am trying to modify read ahead value using blockdev. When I issue this command blockdev --setra xxx /dev/sda - it changes the readahead value of the entire partition in that device, which is fine. ...
1
vote
2answers
16 views

linux - show image on console / X11 [duplicate]

Is it possible to show an arbitrary image across the console / X11? In essence, I just want the video output to be the image. Is there a way to do that? I would want the console virtual terminals ...
2
votes
1answer
25 views

Which files are displayed or executed after login?

I'm using an embedded Linux distribution (Lime2) on a custom ARM board. On login via SSH, the following is displayed: root@mybox ~ # ssh localhost root@localhost's password: _ _ ...
0
votes
0answers
6 views

Tmux and GPM on bare tty

I am running Tmux 2.2 on Arch Linux. I tend to use it from a raw TTY console, rather than an xterm in a window manager. I have GPM installed and running, however I cannot seem to get GPM and Tmux to ...
1
vote
2answers
37 views

How to rename certain directories if the parent has a particular name?

I have to do some global renaming in an Eclipse plugin project, although the fact that the code is Java and it's an Eclipse plugin is irrelevant. Basically, the steps I need to perform are the ...
0
votes
0answers
12 views

Java 8 PPA as dependency for PPA repo?

In launchpad you can add PPA dependency to your PPA packages. I tried to add ppa:webupd8team/java as a dependency to my PPA package, but it doesn't install when I install my package. I also tried ...
0
votes
0answers
4 views

Install IOTOP/IOSTAT via ZYPPER (or anything else) on a SUSE (SLES) 12 Virual Machine (HyperV)

I have a virtual machine hosted on HyperV. It is a SUSE Enterprise 12 OS residing in a rack somewhere in the dark side of our office. This machine is under-performing during a certain load that takes ...
1
vote
2answers
44 views

regenerate .bashrc from current shell

So I stupidly inadvertently destroyed ~/.bashrc. If I have open terminals with the settings that were previously there, is there a way to export the current settings back to a new .bashrc? (I've tried ...
1
vote
2answers
18 views

How do I remove all files from wtihin a certain directory except for a child directory of that directory?

I’m using bash shell. I have this command to delete all JAR files within a particular directory find ~/.jenkins/jobs/subco/ -name '*.jar' -print0 | xargs -0 -r rm However, I want to modify the ...
0
votes
0answers
21 views

Ubuntu 16.04, Nvidia driver issues

Ok first off I tried installing the nvidia-current-updates but upon reboot both Unity and Cinnamon crashed. Removed them then tried the official 361-42 drivers. I can login to a desktop but there's ...
2
votes
2answers
10 views

How to create Procmail filter that checks both headers and body

I'm trying to create a Procmail rule based on all of From, Subject and a string in the body: :0 B: * ^From:.*root@example.com.* * ^Subject:.*fixed string in the subject line.* * .*fixed string in the ...
1
vote
0answers
14 views

systemd // failed with result 'dependency'

I'm quite new to this systemd topic. I have some Units with varios Requires, After and Before. On some Units i got messages like: tinc.service: Job tinc.service/start failed with result ...
-1
votes
0answers
10 views

While using a ruby script to export db info into a csv, all data for an asset is copied into the same cell even when using “--tabdelim” [on hold]

I have the following ruby script which exports all the asset info from database to a csv file. #!/usr/bin/env ruby FCSVRCLIENTCMD = "/Library/Application\\ Support/Final\\ Cut\\ Server/Final\\ ...
0
votes
1answer
10 views

custom shutdown script in rc6.d does not seem to be working.

I'm working with a software application that's a bit touchy so I wan't to shut the software down automatically on reboot or shutdown. I have created a script an placed it in /etc/init.d/ with a ...
-1
votes
1answer
23 views

String and Substring Keywords with Grep after Pipeline

I am running a command line where I would like to catch the rows that interest me. Indeed, these rows contain specific keywords, but other rows contain substrings, hence the usage of stars *. The ...
0
votes
0answers
6 views

mbsync: retrieve password from a keyring and use a systemd service

I'm on Fedora23 and I've set up a systemd service, as explained in the isync page of Arch wiki, to schedule the run of mbsync every x minutes. I need it for Mutt. The service works fine when the ...
0
votes
2answers
18 views

Moving up DNS domain between webhosting servers

first post over here. Until yesterday I had a virtual shop working in a VPS webhost site, but because of the quality of service it was decided to move the whole webapp to another webhost, in a ...
0
votes
0answers
24 views

awk + how to manipulate awk output

The following awk command prints the results from services file # awk '{print $2}' /etc/services 48002/tcp 48002/udp 48003/tcp How can I manipulate the output so it prints the "service file" ...
1
vote
0answers
8 views

Arch: Cannot open kernel arbiter, no multicard support

I'm currently using Arch Linux on a Chrombook Flip C100P in conjunction with the xf86-video-armsoc driver. When printing the /dev/dri folder on my device as root, it detects the following: card0 ...
0
votes
0answers
14 views

cron job quit working after latest apt-get upgrade

I've been running a cron job every 15 minutes for years, with few problems. Sometime in the last week, it quit running, I'm assuming after a apt-get upgrade && apt-get dist-upgrade. I was ...
0
votes
0answers
15 views

Wep authentification fails with netctl

When trying to connect to a network protected by wep on my laptop I get the following error: Wpa association / authentification failed for interface <interface> I have the latest version of ...
2
votes
1answer
53 views

Cannot mv to a subdirectory of itself

I am running this simple script and I am trying to create a cron job so that the file gets copied to my thumbdrive (with the new name) sudo cp /home/pi/NewLog.log /media/usb sleep 20 cd ...
2
votes
2answers
41 views

How do I run multiple commands together in the background?

I know I can run a program in the background using &. command & However, I want to run multiple commands, and cd into a different directory while they are running. The multiple commands ...

15 30 50 per page