1
vote
1answer
11 views

Splitting a file into multiple files based on 1st column value [duplicate]

I have seen solutions of splitting a file with respect to pattern matching and line matching but what I want is the following. The scenario is, let's say I have a file file1 - A.B|100|20 A.B|101|...
0
votes
1answer
21 views

Kali Linux no wifi connection? Help! [on hold]

there seems to be no wifi connections available what so ever, I only get the option of having a linked connection (using my computer ) I'm running Kali in vmware workstation . I installed compact ...
0
votes
2answers
28 views

Preform operation in bash only if a variable is less than a second variable

I am building an OS for a virtual machine I made, and while progress has been coming along swimmingly, I have been stuck for a good several hours on what should be a very simple issue: I am designing ...
0
votes
0answers
9 views

Setting up http_proxy on embedded Linux

We are running embedded Linux on some hardware controllers my company builds in-house. These are usually connected directly to the internet through our customers' networks, but recently, we've had a ...
1
vote
0answers
7 views

Preparing a Ubuntu install for sharing

I have a virtual version of Ubuntu running in VirtualBox. Currently I have lots of personal information in it. I want to share the virtual image disk with other developers, but I don't want them to be ...
0
votes
1answer
23 views

Network unreachable

Just did a fresh Arch install but when I ping 8.8.8.8 it says connect : Network is unreachable. I saved iptales rules in /etc/iptables/iptables.conf but they won't load at startup. ip a says that my ...
0
votes
0answers
7 views

Yocto: Wvdial Assertion 'task' failed with the Huawei E932 USB Modem

I've recently installed Wvdial / wvstream on an embedded system. When running wvdial I receive the following error "wvdial: utils/wvtask.cc:499: static void WvTaskMan::do_task(): Assertion `task' ...
0
votes
1answer
36 views

Copying files from one sub directory to another

I think I must be missing something obvious. I am in a directory called AmHist, with 2 subdirectories, Assign and Resources. I want to move 2 files from Assign to Resources. I try cp LinuxHist ...
1
vote
1answer
14 views

Write udev rule from bitbake recipe

I can compile and install stuff on yocto by creating a bitbake recipe. I would like to run my code when a specific device is connected. Is there an elegant way to add a udev rule from a bitbake ...
0
votes
0answers
8 views

How do I make login screen appear after plymouth has finished?

Firstly I am running Kubuntu 16.04 and whilst I know there is an "Ask Ubuntu" instance of SE I suspect this might not be something purely for the Ubunutu family and therefore of more benefit to the ...
2
votes
1answer
20 views

Configuring Gnome Shell key bindings from the command line

I am trying to modify the Gnome Shell preferences (in this case the key bindings) using the terminal. I have tried: gsettings set org.gnome.Terminal.Legacy.Keybindings switch-to-tab-1 '<Alt>1' ...
-2
votes
0answers
32 views

Script (shell or python) to update a web page every 5 minutes [on hold]

I'm trying to write a script (shell or python) to update a web page every 5 minutes. I tried this: import time from selenium import webdriver driver = webdriver.Firefox() driver.get('https://www....
1
vote
1answer
29 views

How do certain commands change the tabbed autocomplete criteria?

Suppose I am in a directory like this: :mydirectory$ ls foo.txt That only file. If I type a command like cat and then I tab to autocomplete (assume the ‸ character is actually the caret ...
0
votes
1answer
14 views

Owncloud does not show files, that are uploaded via SSH

After spending 10 Hours configuring owncloud on Fedora 24 (because of NO documentation and proper tutorial), I finally got OwnCloud up and running perfectly. My owncloud configuration files are in /...
2
votes
1answer
22 views

Asterisk: Make IVR to say numbers during user typing

I want my IVR to say numbers during the Read command. This means, that i dont want to say the numbers after the user type, but during the user type. For example, enter your user code: 124567# ...
0
votes
1answer
17 views

apt - Command line option 'i' [from -info] is not understood in combination with the other options

I was making a shell script with that installs packages from a list. The code looks like this: apps="$(cat ./foo/bar/packages.txt)" apt install $apps But, I get the error E: Command line option ...
2
votes
3answers
36 views

Is it “broken” to replace an existing file without fsync()?

In Linux's mount(2) man page, I noticed the following excerpt: Many broken applications don't use fsync() when replacing existing files via patterns such as fd = open("foo.new")/write(fd,...)/...
0
votes
1answer
43 views

Is there a way to figure out a modem/router web IP address?

I bought a Modem/Router d-link dsl-2750u couple of years back. I changed the web IP Address and now I don't remember what IP Address did I put in its place. Is there a way to figure out at what IP ...
0
votes
0answers
7 views

3d Graphics drivers for xeon e3 1200 3/4th on board graphics card?

Where or how do I get the 3D drivers for Linux Mint 18 Cinnamon 64 bit for xeon e3 1200 3/4th generation on board graphics card? I'm getting an error when trying to run aerofly RC 7 Ultimate edition ...
1
vote
1answer
24 views

How to connect FLIR thermal camera to Raspberry Pi?

I've been trying to connect a FLIR thermal camera to my Raspberry Pi for the past three days. The code is being provided by the manufacturer and can be found here. I've downloaded the kernel and ...
0
votes
1answer
40 views

add multiple users to multiple servers [duplicate]

I have a quick bash scripting question. I'm trying to add multiple new user accounts to multiple RedHat servers in my environment. This the script I've come up with so far, but it's not quite ...
3
votes
0answers
33 views

How to determine how much time a process is blocked waiting for networking (socket) activity?

We are having issues with high load (top and uptime) but high CPU idle. Usually, that means high IO wait but that's also low. I believe IO wait typically does not include time a process is blocked ...
0
votes
0answers
22 views

Automatically to connect to open network with the highest signal strength [on hold]

How can I tell Arch to connect to whatever open Wi-Fi network has the highest signal strength? (I want this behaviour with a honeypot partition or user in case my computer is ever stolen.)
3
votes
2answers
47 views

how to get content within a specific text from a file

I have a file name demo.txt with content as follows: value -= [ "02|05|06|abc", ] /* Some other content other than value variable */ value -= [ ] value -= [ "0698|06|07|abc", ] I have lots of ...
6
votes
2answers
372 views

Why does changing $PATH affect child shells, but changing $foo not?

$ unset foo $ unset bar $ echo $foo $ echo $bar $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games $ foo=a $ bar=b $ export bar $ echo $foo a $ ...
-1
votes
1answer
20 views

How do I install libgcrypt11 on Kali Linux?

I've been trying to install adobe-brackets on Kali Linux but there's a file dependency (on libgcrypt11), and Kali Linux no longer has that file by default (I've read that it used to be there, but ...
1
vote
0answers
18 views

Linux-PAM can't use custom PAM module - possibly related to multiarch

I've built a simple, custom, PAM module and the module works as expected with pamtester and with some other pam testing code I found online. I've also built a simple dotnet core application which ...
1
vote
0answers
9 views

How to disable automatic update of the correct GPU count for each MOM node in Torque?

I have small installation of Toque 4.2.9. It is compiled with --enable-nvidia-gpus option. According to the documentation, when this option is used nodes file if automatically updated with the correct ...
0
votes
1answer
15 views

MacOS X: Missing File & Data Dictionary

After I cancelled syncronization between my Mac and MEGA, my local target dictionary became empty. However, after I used du to acquire the disk status, I found my data are moved to ./.debris/2016-07-...
-3
votes
0answers
36 views

help with some permission exercises [on hold]

trying to follow some exercises in permissions, and not entirely sure if i know what to do. create user dan and user magi = useradd dan; useradd magi Create the groups teachers and students. Make ...
1
vote
2answers
35 views

How to pull single file from multiple similar named file using sftp

I want to pull a single file from multiple similar named file using sftp. Eg. if my remote server is having below files, file_0722_005.dat file_0722_020.dat file_0722_033.dat file_0722_0022.dat I ...
0
votes
2answers
38 views

if last 4 file size of a directory are same with each other then exit otheriwse continue [on hold]

Please give me any shell bash script that will help me doing following task: if last added 4 file size of a directory are same with each other then exit other wise continue Example : ls -l $...
1
vote
2answers
138 views

#!/bin/bash exponent

I'm having trouble running exponent operator in a shell script #!/bin/bash clear number1=8 number2=2 sum1=$(( number1 ** number2 )) echo "8 ^ 2 =" $sum1 it returns expecting primary: " number1 *...
0
votes
0answers
13 views

What does am335x-pru0-fw do?

When I boot my BeagleBone Black I get the following error. What exactly does this mean? What is am335x-pru0-fw meant to do? Kernel Version: $ uname -a Linux arm 4.1.15-ti-rt-r40 #1 SMP PREEMPT RT ...
1
vote
0answers
14 views

How to detect a specific WIFI network is connected by udev?

My system on laptop is Funtoo. I have a NAS at home and I'd like to mount some partitions automatically. Manually mount through NFS works already. Simply add lines to /etc/fstab is not a good solution,...
1
vote
0answers
15 views

“swap cache” of vmstat vs. “SwapCached” of /proc/meminfo

On my Fedora 24, I executed two commands to examine the memory information, however, I got two different results about swap cache's size. The first command is as follows: [root@localhost ~]# vmstat -...
2
votes
1answer
57 views

Why do my single quotes vanish on substitution with sed

What is the right command for: sudo sed -i '/, false);/adefine( 'WP_MEMORY_LIMIT', '64M' );' /var/www/html/wp-config.php The result is: define( WP_MEMORY_LIMIT, 64M ); instead of the desired: ...
1
vote
1answer
16 views

Resized partition to too small value after shrinking filesystem

I shrinked an ext4 filesystem with resize2fs: resize2fs -p /dev/sdn1 3500G (FS is used for 2.3 TB) Then I resized the partition with parted and left a 0.3% margin (~10 GB) when setting the new end:...
0
votes
1answer
41 views

Problem with echo command

I want read a file and after if there is one "KO" in the file ill break the program and print "KO". If there are all "OK" i want that at the end of the program it will display me "OK". Here the code: ...
1
vote
2answers
33 views

Debian jessie 8.5 doesn't detect wireless

I finished the installation of Debian Jessie 8.5, but the system doesn't detect the wireless. My wireless is hidden, have password with wpa psk/wpa2 psk and I am using the Xfce desktop environment. ...
1
vote
0answers
8 views

Examples of (not recommendations for) Message Submission Agent (MSA) software

From the Wikipedia articles email and email agent, I gather that there exist software packages known as message submission agents (aka mail submission agents). The Wikipedia article on message ...
1
vote
1answer
30 views

How to update prompt on directory change

For example with following: prompt_git() { local PL_BRANCH_CHAR () { PL_BRANCH_CHAR='!' } local ref mode repo_path repo_path=$(git rev-parse --git-dir 2>/dev/null) if $(git rev-...
0
votes
1answer
33 views

Unable to change time-zone properly, the time is still from the previous time-zone

I've changed my time-zone to be 1 hours behind. I've called timedatectl set-timezone Asia/Bangkok Although the timezone is changed, the time is still the same as in my old time-zone, that is, this ...
0
votes
1answer
38 views

If-else Statement or command inside a function?

It's possible to have a if-else inside a function? Like here that I have a menu. Please see codes below. #!/bin/bash #Main Menu function p_enter { echo "" echo -n "Press Enter to continue" ...
2
votes
1answer
49 views

Can't do substitution in a sed program

Q. I want to write a 2 line program that lets me substitute "the" with "zee" and "The" with "Zee". Here is what I'm doing: I'm writing a sed program for example, program.sed. Inside it, I'm ...
0
votes
1answer
16 views

Guest OS resolution (text too small) in vmware workstation 12 player

I have a windows 10 host OS where I have installed vmware workstation 12 player. I have an Xubuntu as a guest OS (virtual machine). The complication is: the text is too small in guest OS and almost ...
1
vote
1answer
32 views

cat into stdin then pipe into program keeps forked shell open, why?

I'm not sure what's going on but I've been trying to understand what is happening with the input and output. So here is my program. #include <stdio.h> #include <stdlib.h> int main(){ ...
1
vote
1answer
22 views

Changing Linux Distro in Dual Boot (Win10, Manjaro(Arch))

First of all I'm very new in the linux world so please be as tolerant as you could. I try to be as clear as I could in order to explain my question. My problem: I had 2 OS with dual boot in my ...
3
votes
2answers
298 views

Don't understand the 'n' command of sed

I'm reading sed & awk book and I thought that I understood the n command of sed till I executed the following: $ echo -ne "abc\ncde\nfg\n" | sed "/c/{ n /f/d }" Output: abc cde fg But I ...
0
votes
1answer
11 views

Centos 6 Install PHP 5.6 Memcached conflicts

I have tried to install PHP Memcached but got error conflicts between attempted installs of [root@localhost ~]# yum --enablerepo=remi-php56 install php-pecl-memcached Loaded plugins: fastestmirror, ...

15 30 50 per page