1
vote
1answer
63 views

wifi not working, have I installed the correct drivers?

I have a laptop with wifi not working: I can detect hardware with lshw and lspci, but that is it. network-manager is not showing it. lshw -numeric -C network reports *-network UNCLAMED description: ...
1
vote
1answer
98 views

How to list files part of a BTRFS block?

On my BTRFS filesystem, I have a problem with block id #43231330304. BTRFS critical (device sda2): corrupt leaf, slot offset bad: block=43231330304,root=1, slot=47 I want to know which files are ...
1
vote
1answer
63 views

Xfce4 mysteriously starts file browser upon login

I'm using Arch Linux and currently installed Xfce4, which after I log in (using LigthDM) opens an instance of the Nemo file browser. This happens regardless what I set as the default file browser (I ...
1
vote
2answers
118 views

How are long command lines ( > $COLUMNS ) automatically wrapped to a new line?

There are several points where I/O is passed through, some of which (to my knowledge) are the shell, pty, tty, termios, terminal emulator application. In most terminal emulators, long command lines ...
1
vote
2answers
100 views

check if a variable is in list

to check if a word is in a list of words or no I wrote this script: tr -s '[[:blank:]]' '\n' < t.txt | while IFS= read -r word; do if [[ "$word" =~ $(echo ^\($(paste -sd'|' ./champs.txt)\)$) ...
1
vote
2answers
81 views

Using command substitution

The shell variable number contains 1 1 1 1 1 separated by tabs. I want it to contain only the first 1. I'm trying number= $(echo "$number"| cut -f 3 ) and I get the error "1: ...
1
vote
0answers
48 views

Absolute path in rsync dry-run statistics

I have executed following command in order to get the list of files that would be transferred to remote server if rsync is executed: rsync -avzm --stats --safe-links --ignore-existing --dry-run ...
1
vote
1answer
27 views

Encode literal percent in fetchmail's mda option

I want to download emails without any processing, without procmail. I'm trying to configure fetchmail like this: mda "/bin/sh -c 'cat > INBOX/new/$(date +%s_%N)'" But it resulted in a file named ...
1
vote
1answer
52 views

Displaying “No Results” When AWK Command has no output

I have the following code, thank-you to the people who helped me here awk -F: '{if(system( "[ -d " $6 " ]") == 1) {print "The directory " $6 " does not exist for user " $1 }}' /etc/passwd However, ...
1
vote
1answer
74 views

Remapping Caps Lock to Compose

Because I now and then need to use scandinavian letters despite using US Dvorak as my layout, I would like to use Caps Lock as a compose key. (I don't need Caps Lock at all, I'm not a forum troll) ...
1
vote
0answers
34 views

how to redirect all email to a single external address?

I have a headless server (rpi1.example.com) with two active accounts: pi and root. I would like all the emails sent to these accounts to be redirected to an external address: real@somewhere.net. ...
1
vote
0answers
48 views

No “rwnd” option to “ip route” for managing the receive window?

Context: I'm doing some self-guided studying on TCP Window shaping. The scenario I'm trying to control for are clients which will be pulling down large amounts of data in addition to their normal ...
1
vote
2answers
717 views

Unable to perform file operations on a MTP device mounted via GVFS: “Operation not supported”

I am running Linux Mint 17.1 64-bit (based on Ubuntu 14.04). Ever since upgrading from Linux Mint 14/Ubuntu 12.10, the Python script I use to sync music to my Walkman has stopped working. Previously, ...
1
vote
1answer
57 views

SHELL regular expression ends with backslash

I want to check if the pattern ends with "/" or "\" and before it can be any string. I tried this *\/ * for any string, \ for removing meaning of "/" and / for "/"
1
vote
1answer
537 views

ssh connection to server closed immediately after authentication

I had the same problem as ssh connection to server closed after authentication immediately I connected to my server (in this case a raspberry pi running pi musicbox) via ssh, it would accept my ...
1
vote
0answers
48 views

Keyboard merely plugged in greatly increases kernel boot time

Specs are here. I am using a K65 RGB. I am using the ckb-git package from the AUR to provide basic input functionality. With Keyboard and with driver: Startup finished in 3.100s (firmware) + ...
1
vote
1answer
78 views

Modify Gnome 3 search bar results

Is it possible somehow modify results of default search bar in Gnome 3? I'm currently having a little problem with launching calculator app. I always pressed Super and typed "calc" and enter. But ...
1
vote
1answer
51 views

Why does looking for hardlinks fail?

Here is how I find hard links located in /tmp: $ for file in /tmp/*; do if [ "$(stat -c %h -- "$file")" -gt 1 ]; then ls "$file" -l ; fi; done total 0 srwxrwxr-x 1 t t 0 Mar 20 23:01 debconf.socket ...
1
vote
1answer
373 views

Difference between owner/root and RUID/EUID

I am relatively new to the concepts mentioned in the question and reading about them from different sources only makes them more confusing. So this is what I understood so far: When we are given ...
1
vote
1answer
24 views

Is there any dynamically produced .log file showing up the memory usage on FreeBSD?

I am using FreeBSD 10.1-RELEASE and I was just wondering if there is any .log file produced by default from the system because I am using ELK and I want to pass this file to logstash and then ...
1
vote
1answer
399 views

Backup and Restore list of installed packages and APT sources

I commonly reinstall Ubuntu and back up my APT stuff [sources, keys and installed package lists] using the tutorial at http://askubuntu.com/a/99151/371765. However I commonly also remove software such ...
1
vote
1answer
595 views

Installing R-base in Linux Mint 17.1 Cinnamon

I'm trying to install the package r-base using the Linux Mint community software view. By clicking on the "install" button one asks me for the "install of additional software?". By clicking on ...
1
vote
0answers
53 views

Make a key act as a modifier when combined with another key

I want to achieve the following effect: [ Key1 pressed & held, then Key2 pressed & released, then Key1 released ] acts as [ Ctrl + Key2 ] but Key1 pressed and released act as Key1 So, for ...
1
vote
1answer
44 views

Replace a string in a text file using a shell script not working properly

I have a text file containing this: 0 0 -1 0 1 0 0 0 0 -1 0 0 1.5 0.0 1.0 1 and I want to replace the 1.0 to 2.0 so that it becomes: 0 0 -1 0 1 0 0 0 0 -1 0 0 1.5 0.0 2.0 1 so I use this ...
1
vote
1answer
89 views

Shell : while read line nested

I've two documents: doc1.lst and doc 2.lst I want to take the content of each line and put it as parameters for my SQL query. I tried something like this, please correct me file=doc1.lst ...
1
vote
1answer
185 views

Understanding rc.local and troubleshooting

I (new to linux) am attempting to add a command to the boot up that will execute an application. The application accepts parameters and has simple output of what it is doing. To troubleshoot it, how ...
1
vote
2answers
83 views

Bash: How to create an alias in .bashrc for awk with parameters

I'm trying to add an alias in .bashrc file as follows: ... alias cutf="_cutf" ... _cutf() { awk 'NR >= $2 && NR <= $3 { print }' < $1 } (The function's goal is to show the ...
1
vote
1answer
332 views

Why are there multiple rsync threads?

I use a single rsync program to backup a file system. by ps, I find there are four rsync threads or processes, two in R state (running) and two in S state (suspended?): $ ps aux | grep rsync root ...
1
vote
3answers
102 views

How to grep over a variable [duplicate]

I have a scenario like VAR = `Some command brings the file path name and assigns it to VAR` For example VAR can have value like /root/user/samp.txt I want to grep command like grep HI $VAR ...
1
vote
3answers
1k views

After reinstalling Linux Mint, Windows 7 does not boot

Final edit: I tried each and every single fix on the question, but I ended up just restoring an image I made a year ago of the freshly installed system using clonezilla. After that, I ran rescatux to ...
1
vote
1answer
464 views

How do I run a service with numactl

I need to do something like this to run MongoDB $numactl --interleave=all /usr/bin/mongod --config /etc/mongod.conf & What should I change to be able to run the mongo daemon with the options ...
1
vote
1answer
59 views

How to delete all files in a directory except some globs using Puppet?

Spell checkers unfortunately don't come packaged for regions, so after installing English, French and German dictionaries I get this huge collection: $ find /usr/share/myspell/dicts/ -name '*.dic' | ...
1
vote
2answers
156 views

Does change of a file in a directory not change the time of the directory?

I want to find a file which I created recently, but I don't remember anything and can only guess it is under a directory indirectly with any possible depth. I inspected the times of all the ...
1
vote
2answers
185 views

How can I remove a carriage return, add a time stamp and ignore some data from a live MQTT feed

I type mosquitto_sub -d -t +/# from the Ubuntu terminal to access the MQTT stream. Real output from the live MQTT stream is this: Sending PINGREQ Received PINGRESP Sending PINGREQ Received PINGRESP ...
1
vote
0answers
565 views

How do I use NMCLI to create a Wifi connection & connect to SSID over WPA?

Environment BeagleBone Black running Debian 7.7 nmcli tool, version 0.9.4.0 I tried some command examples to get started, however none helps me to add a connection and connect. Devices # nmcli ...
1
vote
0answers
36 views

loggedfs crashes system with “access: Transport endpoint is not connected”

I'm trying to use loggedfs to monitor my system changes, and it works great for some time, but then, eventually, it crashes and my fish shell starting to output "access: Transport endpoint is not ...
1
vote
1answer
267 views

multiple user-types/access-rules for OpenVPN on CentOS 7 and firewalld

How can I define separate roles for users and administrator in OpenVPN running on CentOS 7 server? Specifically, the users must only be allowed to https, while the administrator must be allowed to ...
1
vote
1answer
60 views

Redirection not overwriting file but just producing a blank one [duplicate]

I have a command that strives to just read a file and then comment out every single line in it indiscriminately, then overwrite the existing file. cat file | sed 's/^/#/g' > file But to my ...
1
vote
1answer
121 views

How to delete file called “-C” [duplicate]

I need to delete the following file which I managed to create with bunzip2: -rw-r--r-- 1 beginner group 67493376 Feb 17 17:30 -C The following don't work rm -rf '-C' rm -rf "-C" My OS is ...
1
vote
3answers
63 views

for loop over a list

I have a small script which should print a couple of calls to a makefile i got. mylist='$(call list_samples,AON_9,NT_1,SC_17) $(call list_samples,AON_10,NT_2,SC_18) $(call ...
1
vote
1answer
549 views

Install missing R packages when running in bash mode

Frequently I am running R scripts in bash mode. My script is called 981_conduct_regression.R. In this script, I call required packages with if(!require(<package>)){ ...
1
vote
2answers
2k views

grub-install : command not found

I had windows 8.1 and kali linux installed in extended partition . for some reason I only formated partition where windows was installed and re-installed . now it only boot into windows and doesn't ...
1
vote
1answer
1k views

Screen brightness adjustment not working in Ubuntu 14.04

When I try adjusting the screen brightness using the function keys on the keyboard, the adjustment scale is shown on the screen responding but the screen brightness is not adjusted. Tried ...
1
vote
2answers
84 views

merging text files into one

I have four text files each containing a single field. I want to convert them into a single text file with four fields (one from each file). How can I do this using shell scripting.
1
vote
2answers
159 views

Number of installed keyboard layouts in Linux Mint Qiana

I cannot add more than 4 keyboard layouts in Linux Mint Qiana running Cinnamon. Is that normal? Is there such limitation or I am doing something wrong?
1
vote
1answer
188 views

ext4 corruption found in superblock, but filesystem can be mounted

After a crash, I've got an Ext4 filesystem (on an LVM LV) that gives the following error when running fsck.ext4 -nf: e2fsck 1.42.12 (29-Aug-2014) Corruption found in superblock. (blocks_count = 0). ...
1
vote
0answers
192 views

Questions about whiptail and bash functions

I'm a bash newbie. Say I have this script #!/bin/bash function cpp-lang { yum install "Development Tools" } function updatesys { yum -y update yum -y upgrade } whiptail ...
1
vote
1answer
88 views

traceroute / mtr from multiple locations, How can we do it ? (Or alternate way)

I have a website, recently due to some network issue, Most of my customers are reporting slow loading time of my website. When I reported this to my DataCenter, they are asking me to send the ping / ...
1
vote
1answer
47 views

What is this data that keeps reappearing after partition delete + new partition creation?

I deleted a big extended partition containing an ntfs logical partition with high percentage of occupied space and from that extended partition I made a new, smaller extended part. In it I ...
1
vote
4answers
3k views

rename multiple files with mv

I want to rename a couple of files in the same directory. When you start to google this there is plenty of help available. What i saw the most if you only want to change the extension is mv *.txt ...

15 30 50 per page