0
votes
4answers
38 views

How can I run a command periodically and indefinitely till it's turned off?

I want to run a command every several minutes until I turn it off. After some searching, I found lots of ways of doing the first half (running a command periodically and indefinitely), what about I ...
1
vote
0answers
29 views

How to send sudo password over pipe?

I need to replace existing sshd config on the remote PC and restart sshd, so I try to use this: cat /sshd_cfg | ssh user@192.168.0.47 "cat > /etc/ssh/sshd_config && service sshd restart" ...
1
vote
1answer
961 views

“You do not have the permissions necessary to view the contents of “Share on name.domain.com”.”

I am having some issues with Samba on my Fedora file share server. I've logged into as the vncuser below on the server itself and I can access the directory, however I get permission denied errors ...
0
votes
1answer
6 views

Can not set static DNS on debian

I'm using Debian jessie and I don't have network-manager or resolvconf installed and I'm using DHCP. DHCP with static DNS First of all I tried editing: /etc/network/interfaces And adding this: ...
13
votes
8answers
10k views

Is there a unix command that gives the minimum/maximum of two numbers?

I was looking for a command to limit numbers read in from stdin. I wrote a little script for that purpose (critique is welcome), but I was wondering if there was not a standard command for this, ...
1
vote
0answers
3 views

Bluetooth Tethering, no IPv4 adresse at interface bnep0

I want to tether my mobile internet from my smartphone (OnePlus One, Android) to my Laptop (Debian 8). I want achieve this without using external tools. At the arch wiki page (https://wiki.archlinux....
1
vote
2answers
26 views

Find files with pattern and get latest one

I want to find file with specific pattern and print the latest file matching the pattern with full path find ../*.gz -type f -print0 | sort -nr | cut -d: -f2- | head -n 1 How do I print the full ...
60
votes
16answers
74k views

Is there a way to get the min, max, median, and average of a list of numbers in a single command?

I have a list of numbers in a file, one per line. How can I get the minimum, maximum, median and average values? I want to use the results in a bash script. Although my immediate situation is for ...
0
votes
1answer
37 views

IO benchmark tools block size impact?

Many IO benchmark tools (fio, dd, etc...) provide way to set block size. Lets say that I change 4K to 64k and test read/write on mounted SATA disk. I will get higher data throughput in sequential ...
0
votes
1answer
19 views

SFTP to upload files at cronjob

I want to use SFTP to upload files from A to B. path for A: /tmp/A path for B: /tmp/B server B has own username & password. my cronjob will run every 10 mins to check whether there are new files ...
3
votes
0answers
25 views

Text display issues - certain applications only show a and _

I'm using a Debian 8 with testing repositories and i3wm. Quite a while ago some applications (vlc, ownCloud client, qbittorrent, teamspeak3) started to only display 'a's and underscores as dialog and ...
0
votes
0answers
6 views

Echo while waiting for sudo prompt

I am using this way of elevating permissions in a script if not run as a root. My script checks for the presence of a certain file it needs to use: if [ $EUID != 0 ]; then if [ -f "/foo/bar" ] ...
1
vote
0answers
21 views

Is it possible? Three OpenBSD 6.0-current firewall bridges with only one OpenBSD Server?

Is it possible to configure several firewall bridges with one OpenBSD server which has 6 nic's. In this case 3 OpenBSD firewall bridges from each other completely independent? cat /etc/sysctl.conf ...
0
votes
1answer
6 views

apt-get broke after trying to install wine

I'm a new Linux user. I use Kali Linux and tried to install wine via: sudo apt-get install wine winetricks This, however, didn't work as there were some errors. After that, I cannot install, update ...
0
votes
0answers
5 views

yum + how to know the repository PATH , or local repository or external ( VIA internet )?

when I run the yum repolist , I get the follwoing repositories names yum repolist Loaded plugins: rhnplugin, security This system is receiving updates from RHN Classic or RHN Satellite. ...
0
votes
1answer
15 views

Centos, uploaded files from application have different owner and group

I have an application that uploads a file via SFTP using sftpuser. Once the file is uploaded the owner and group is user1:user1. The owner of the parent directory is apache:apache. I can not figure ...
7
votes
4answers
819 views

How to calculate hexadecimal xor (^) from shell?

Unfortunately bc and calc don't support xor.
1
vote
1answer
2k views

Understanding “Hardware error from APEI Generic Hardware Error Source” error message

Summary: I'm trying to understand exactly what the following error message means: [17016.923750] {4}[Hardware Error]: Hardware error from APEI Generic Hardware Error Source: 1 [17016.923758] {4}[...
2
votes
2answers
1k views

Can't exit i3 because no sensible terminal emulator is installed

I am trying to setup Arch Linux, and after getting the most basic stuff setup I installed and ran i3 with: pacman -S i3 dmenu xorg xorg-xinit startx It finally started, but I can't exit it. After ...
0
votes
0answers
9 views

Log Slow Query not working

I'm trying to log slow query, here's my mysql config on /etc/my.cnf: [mysqld] slow_query_log = 1 slow-query_log_file=/var/lib/mysql/slow_queries.log long_query_time = 5 log_queries_not_using_indexes=...
0
votes
3answers
522 views

import: unable to open X server `' @ error/import.c/ImportImageCommand/361

I am trying to run a python script to generate heatmap and clustering dendrogram. But I got an error message saying : import: unable to open X server @ error/import.c/ImportImageCommand/361 I am a ...
-6
votes
0answers
10 views

re-setting this mess after new battery [on hold]

new battery has re-set this mess to some paranoid person's idea of protection. How do I find, and re-set parameters to allow email from friends and Family!
0
votes
1answer
19 views

What are the possible correct combination for std-out(2) and std-err(1)?

sqlite -echo test.sqlite < test44.sql > test44.out 1>&2. sqlite -echo test.sqlite < test44.sql > test44.out 2>&1. I used the first command to get an output of (stdout and ...
7
votes
1answer
3k views

Alternatives to xmove, xpra

A bit of background information: I'm dealing with a piece of software that is part of a larger system. Most pieces of the system have a background process that runs continually, and a GUI that can be ...
-3
votes
1answer
21 views

text to columns in CSV

I am having data in CSV file as follows in single column: Input: Company;C Desc;Region;R Desc; H;Hindustan;13;Maharashtra; I;Unilever;28;Dadra; I would like to change the data Text to Columns with ...
0
votes
2answers
22 views

bash: Why are () causing error in script but not on the command line?

If I type this on the command line: _longopt () { case "$prev" in --+([-a-z0-9_])) echo foo ;; esac; } it works as expected. If I put it in a script (foo.sh) it ...
2
votes
0answers
6 views

How to do with “nnd” for get “ethtool” equivalent on SOLARIS

I've to restore a large file from a NAS backup on SOLARIS 10 ZFS. I'm using this following command: rsync -av user@xxx.xxx.xxx.xxx:from/NAS/files/system to/solaris/files/system And I've got this ...
1
vote
4answers
45 views

Replace the second occurrence of a line [on hold]

I want to remove all the occurrences of yyyy-mm-dd hh:mm:ss except the first one from the file below. So basically I want very first occurrence of that line to be displayed and I would like all the ...
0
votes
0answers
4 views

How to install wifi driver in Kali Linux

I have recently bought a wifi adapter for Kali Linux (running on vmware). The wifi is showing on Kali, but not working when I click on "Turn On Wifi" -- the same option appears as before. If this is ...
2
votes
1answer
2k views

How can ubuntu/truecrypt be configured so users can mount volumes if-and-only-if they have proper permissions on the mount-point?

If I add the line: ALL= /usr/bin/truecrypt to the sudoers file this lets all users mount volumes at arbitrary mount-points. The problem is a user could create a truecrypt volume and then mount it at /...
0
votes
0answers
21 views

Disk I/O and load average peaks once every hour

We have updated our server from Debian Wheezy to Jessie and from php5.6 to php7.0, but now we have a disk I/O and load average peak exactly every hour. The exact time depends on the system start time. ...
0
votes
1answer
9 views

Installing Proprietary NVidia 304 drivers on Debian Testing/Stretch

I am trying to install the legacy nvidia 304 drivers on my old Latitude D820, which has a GeForce Go 7300, but the installer fails saying "Failed to build the NVIDIA kernel module". Here is the ...
2
votes
1answer
15 views

Linux router - Throughput speed of clients

I have a computer that is configured as a router with two NIC's, one is connected to Internet, the other is connected to the local network switch. I know that I can get the current throughput of NIC'...
1
vote
0answers
9 views

Arguments following `bash -c` [duplicate]

From Bash Manual, bash -c Read and execute commands from the first non-option argument after processing the options, then exit. Any remaining arguments are assigned to the positional ...
2
votes
2answers
1k views

fglrx causing “fixing recursive fault but reboot is needed” on Intel/AMD hybrid graphics

I am currently using Linux Mint 17.2 Cinnamon 64-bit on my laptop with hybrid graphics (Intel/AMD) and I can't get the AMD proprietary graphics drivers (fglrx) running properly. They always put my ...
2
votes
2answers
269 views

In the Fish shell, how can I join an array with a custom separator?

I have an array whose elements may contain spaces: set ASD "a" "b c" "d" How can I convert this array to a single string of comma-separated values? # what I want: "a,b c,d" So far the closest I ...
4
votes
1answer
345 views

Why is Vim eating up Ctrl when used with Ctrl+v and how to fix it?

I'm using Vim /etc/zsh/zshrc to add key bindings for zsh because it doesn't work with inputrc. In my terminal with tmux when I type Ctrl+v then Ctrl+LeftArrow the shell will show ^[OD. However, when I'...
1
vote
1answer
39 views

View list of deleted files

I have executed rm -f *.gz about 30 days ago. Is there any way to find out the list of files that were deleted?
0
votes
1answer
831 views

Configuring bridge network in kvm (debian wheezy 7.2)

I am desperately trying to run untangle 10 as a guest in kvm. My host system is debian 7.2 My problem is that I am unable to configure bridges/(virtual)NICS which are successfully identified by ...
1
vote
3answers
5k views

How to get extract/compress option on right clicking?

I am using Linux Mint 14 Nadia . Earlier whenever I right clicked any folder I got options like Extract it, Compress etc. But now I am not getting them . Probably I changed/deleted some of the ...
1
vote
1answer
984 views

How to add Android x86 to Yumi!

Is there any way to add android to Yumi? I want to be able to boot my computer from a USB stick and install android. So, how can I install Android using Yumi or any other multiboot USB creator?
0
votes
1answer
12 views

rm: cannot remove Input/output error in part of folder in a permanently mounted NTFS drive

I was experimenting with HDF5 installation from a permanently mounted NTFS data partition so lots of deletion etc. Now part of the folder (containing some codes etc.) is not deleting and showing the ...
0
votes
0answers
561 views

Is there a version of linux that can be run on the 2015 Kindle Fire

I have been doing some research and I have been reading all kinds of answers but none of them fully answer my question. I wanted to know if the 2015 Kindle Fire can support a version of Linux? If so, ...
-4
votes
3answers
32 views

Bash - Print lines containing at least all vowels in any order but no consecutives [solved]

The problem is to write a script that takes a file as argument and prints all the lines that contain -at least- all the vowels , -regardless of ordering-, but with [no two same consecutive vowels]. e....
0
votes
2answers
223 views

How to update three CSV files based on a fourth file

I have four csv files, and I want to update a set of three, based on the values in the fourth file. file_1 contains names. file_2 their numerical ids. file_3 contains ids from file_1 and file_2, ...
0
votes
0answers
6 views

Is Fedora Cloud appropriate for testing Linux apps in a virtual machine?

I am looking to test a Linux app on Fedora. The website for Fedora notes that there are three versions available: Workstation, Server, and Cloud. While I understand that Workstation will definitely ...
0
votes
0answers
16 views

Arch install - Can't install GRUB

I'm currently trying to install arch linux alongside windows 10 on my computer which is UEFI and formatted as a GPT partition table. However, when installing grub using the command: grub-install --...
3
votes
3answers
3k views

Can't boot live USB of Linux Mint DE on my UEFI PC

I used the Universal USB Installer application to copy the latest ISO image from Linux Mint DE (64 bits) and install it on my PC, however when I try to reboot it I have the option to choose my ...
0
votes
2answers
44 views

zipimport.ZipImportError: can't decompress data; zlib not available

On RHEL 6.6, I installed Python 3.5.1 from source. I am trying to install pip3 via get-pip.py, but I get Traceback (most recent call last): File "get-pip.py", line 19177, in <module> ...
0
votes
0answers
21 views

Trying to get my system running without an initrd

I've been trying to configure a kernel that will not require an initrd to boot. I haven't succeeded. The filesystem I'm attempting to boot from is ext4, and I have all the extended filesystems ...

15 30 50 per page