1
vote
1answer
47 views

Add custom compose key sequence (not working)

I use Trisquel 7.0 LTS (Comes with GNOME 3 Flashback). I visited some post like this and this. on the topic about adding custom compose key sequence. I set Menu Key as Compose Key: I created ...
1
vote
1answer
60 views

SysV init scripts to systemd migration in RHEL7

Please find the Sys V Init scripts for (User processes)Agent and Security daemon in Linux. Agent Daemon startup script /etc/rc.d/init.d/Agentdaemon /etc/rc.d/rc5.d/S91Agentdaemon Security Daemon ...
1
vote
2answers
39 views

Partition table-less HDD [duplicate]

Just this morning, I accidentally created a hdd filesystem without a partition table. I didn't even know it was possible but it happened. Now the issue is to undo it or leave it alone. For this ...
1
vote
2answers
42 views

Re-print an array in a certain format?

I wish to take 10 random lines of file, which is 100 lines long. First, I randomly generate 10 integers between 1 and 100 (inclusive) with ind=$(shuf -i 1-100 -n 10 | sort -n) Then, I wish to use ...
1
vote
1answer
99 views

Why can't I use Maltego running on Kali?

I am trying to use Maltego for the first time. But, I am not finding default Infrastructure palette. How do I solve this problem? Another problem is, I am not able to add transform seed server. How ...
1
vote
1answer
54 views

Search and sorts error logs based on a particular string

How to search through all the errors.zip as well as from errors.log files filter by "Error" string and sort by date? What about totals of errors? requirement : here are 3 components are installed ...
1
vote
2answers
83 views

Run true multiple process instances of gnome-terminal

If you have gnome-terminal running, and want a new instance of the program, you might think that running gnome-terminal & from a shell would do the trick. Astonishingly, this new instance behaves ...
1
vote
3answers
117 views

VIM solarized color scheme looks wrong when using tmux

I am trying to use the solarized color scheme in VIM using gnome terminal (Ubuntu). When I run vim without tmux, it looks great, see below: If I add the following commands to my .bashrc # tmux ...
1
vote
2answers
75 views

Bash / Linux Tools for correcting xml

I am generating a set of 'xml' files from a 'csv' file. Some of the fields in csv file contain '&' and other invalid xml characters that need to be replaced with their appropriate xml counterpart ...
1
vote
2answers
54 views

Append words to wordlist with sort -u avoinding duplicata

I have 2 txt file called one.txt with duplicata: yesterday yesterday today today tomorrow tomorrow and the second txt called two.txt with duplicata: mike mike paul paul tomorrow tomorrow Using ...
1
vote
1answer
50 views

configuring rsync for incremental backup and recovery

The setup is a NAS box on a lan mounted as NFS and the source is a laptop running an old kubuntu 10.4. Rsync has to be run as a local file copy, NAS box doesn't support an rsync daemon. How do I ...
1
vote
1answer
51 views

Automatically run command before umounting a filesystem

I want to execute a command automatically shortly before a filesystem is unmounted. The command still needs the filesystem to be mounted but I am interested in information as "new" as possible. ...
1
vote
1answer
65 views

Variables in dialog radiolist

I have the following dialog radiolist, which works fine. #!/bin/bash ch1a="1" ch1b="Fri, 20/3/15" ch2a="2" ch2b="Sun, 21/6/15" ch1="\"$ch1a\" \"$ch1b\"" dialog --title "Equinoxes and Solistices" \ ...
1
vote
1answer
51 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
73 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
59 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
105 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
90 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
0answers
41 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
25 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
46 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
61 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
30 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
42 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
481 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
354 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
41 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
66 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
49 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
267 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
259 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
474 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
52 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
41 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
79 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
129 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
74 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
240 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
75 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
816 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
337 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
46 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
154 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
174 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
453 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
35 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
243 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
54 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 ...

15 30 50 per page