0
votes
0answers
3 views

How to extract files to “/usr” directory without overriding other files?

I download swift installation package, and extract it into my home directory: # tar -C / -xvf swift-2.2.1-RELEASE-ubuntu14.04.tar.gz swift-2.2.1-RELEASE-ubuntu14.04/usr/ ...
0
votes
0answers
5 views

applying a patch to mdadm

i can use some help :) I have configured RAID 6 using mdadm, and after trying to add a new disk to the ARRAY (replacing a faulty one), i am receiving the following error: mdadm --manage /dev/md0 ...
0
votes
0answers
26 views

bash AND and OR in one command

Trying to check for 3 conditions in one line of code, but I'm stuck. Essentially, I need to code for the following: IF string1 is not equal to string2 AND string3 is not equal to ...
0
votes
1answer
14 views

How to delete password for current account

I just installed Ubuntu 15.10 on my new desktop. However, I want to erase the password of it. I followed the instructions here. I now can successfully login with out password, but I cannot use sudo ...
1
vote
2answers
31 views

How can I find files with a long first line?

currently I have a problem with a server. One user who is hosting a lot of sites got hacked and some of his php files was modified. Now I want to get a list of the infected files and also want to ...
-1
votes
0answers
10 views

Why do warnings pop up in rkhunter for all the different bash command executables?

When running an rkhunter check, I got many different warnings, almost all for files in the /bin and /usr/bin directories, so they were all shell commands. The full list is below: Performing file ...
2
votes
0answers
31 views

Why ping receives another ping command packet?

I am learning about the ping implementation in C. The problem is, I was using a raw sockets to receive the packet. For all packets we have a identification value in ICMP header. I was running the ...
0
votes
1answer
19 views

How to determine if it is a fault of the Network Card?

Basically, I have a PC having problems. Let's call it POO. POO is a pc running Gentoo Linux, with KDE. It is quite freshly setup on an old hardware. So far I do not notice it has other problems, ...
0
votes
0answers
4 views

RHUI 2.1 Error Downloading the repo

We are facing this error on RHUI when downloading the repo. unable to find any solution on Red Hat site there is one link which guides us to edit some file for proxy settings. but we done have any ...
1
vote
2answers
15 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) edit. ...
0
votes
1answer
13 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
7 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
24 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
21 views

What does %h and other symbols like it mean? [on hold]

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 ...
2
votes
0answers
14 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
21 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
15 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 ...
4
votes
4answers
211 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
11 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, ...
1
vote
1answer
15 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
12 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
33 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
10 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
16 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
6 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
15 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
41 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
1answer
17 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
16 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
20 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
8 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
18 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
26 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
9 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
38 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
16 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 ...
3
votes
2answers
47 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
19 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
24 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
15 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 ...
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 ...

15 30 50 per page