0
votes
0answers
3 views

When I'm typing a text in English, it gets underlined and behaves bizarre

I have russian and english US locales. When I'm typing a text in English, it gets underlined until I press whitespace or some other special keys. When it's underlined, it's kind of invisible to the ...
0
votes
0answers
2 views

Add time from all log files using bash

I want to extract time from all of my .log files and add all of these times into a single entity. My log files are placed in nested directories. Directory structure for my log files: |-- temp-system ...
0
votes
0answers
6 views

Piping bash through netcat and openssl

I'm currently piping bash through netcat with the following: Server nc -l 4444 Client mkfifo foo nc localhost 4444 0<foo | bash 1>foo I'm now trying to secure the connection by piping it ...
0
votes
0answers
3 views

Double Click Shell Script in Ubuntu 16.04 Nautilus only gives the user option to edit the shell script file

When I follow the steps in [http://askubuntu.com/questions/138908/how-to-execute-a-script-just-by-double-clicking-like-exe-files-in-windows] I used to get a dialog box asking whether I wanted to ...
1
vote
0answers
6 views

Added anaconda2 lib to LD_LIBRARY_PATH, results in “no version information available” warning

To compile a program (Caffe) I added my anaconda2 libraries to .bashrc as follows: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/anaconda2/lib/ However, now when I run ls or find I get the ...
1
vote
1answer
13 views

Shell syntax for redirecting arguments?

If I want to redirect not the stdio but as arguments the output of a program , should I use xargs? For example, I do ls and I want the filenames to be arguments to the next command rather than an ...
0
votes
1answer
9 views

How to replace the next record after a pattern matching using awk

How to replace(or modify) the next record after a pattern matching? Ex: 1 2 3 blah 4 replace this record 5 blah 6 replace this record 7 8 9 Here I want to skip or replace the fourth record and 6th ...
0
votes
0answers
11 views

extract two columns and add at a specific location to another file that is already full of columns

I have a file where I want to extract two columns and add at a specific location to another file that is already full of columns. Could I cat file 1 and make it a variable and then cat file 2 and ...
0
votes
0answers
6 views

How to check which binaries depend on certain files in /lib?

I know that if I do the command ldd <name> on a binary file in /bin or /sbin I can see which libraries it uses. How do I do the reverse? I.e. do a command on a file in /lib and see what binaries ...
2
votes
2answers
17 views

Using 'rename' & regex to edit filenames

I'm new to regular expression, and am trying to use regex to rename some files. I am using rename (this one) to rename said files. Below is an example command. $ rename -n 's/\(feat.//' *.mp3 (-n ...
1
vote
0answers
15 views

Move files several directories up for several directories with similar layout

I have a directory with the following layout (the layout in Directory 1 is repeated in every other Directory <num>): Parent directory Directory 1 some directory another ...
0
votes
0answers
5 views

“Failed to synchronize any databases - unexpected error”

Trying to update in Arch (with the GUI) gives me Here is my pacman.conf # # /etc/pacman.conf # # See the pacman.conf(5) manpage for option and repository directives # # GENERAL OPTIONS # ...
0
votes
0answers
10 views

Create a background process using execle with Ubuntu 16.04's daemon function

Here is an example of the usage of Ubuntu Linux 16.04 C/C++ daemon() function: #include <unistd.h> #include <stdio.h> int main() { daemon(1, 0); while (89) printf("Lol\n"); } ...
0
votes
1answer
29 views

have: command not found

I have created my own linux. Whenever I open up my bash and login into a sub-shell I get the following error -bash: have: command not found -bash: have: command not found -bash: have: command not ...
0
votes
1answer
10 views

Unclear on interaction between fstab auto and user options

I am confused about the interaction between the auto and user mount options in fstab. After mistakenly setting auto rather than noauto, I noticed that my mount would take place when a device was ...
1
vote
0answers
8 views

Centos Samba share folder not accessible from Windows

Recently I changed my File server from Ubuntu to Centos7. Then I found the samba configuration which used to work on Ubuntu no longer works on Centos. When the user access the share folder from ...
1
vote
0answers
6 views

privoxy or any proxy server on Linux forward requests to multiple different proxy servers

I'm a stack exchange Virgin. Is it possible to forward data to the parent proxy based on the listen-address port in was recieved For example my firefox browser is set to use proxy 90.91.92.93:8118 ...
1
vote
0answers
6 views

Multiple parallel Tomcat instances in CentOS 6

I can install them to different directories, and I think I can make them use different ports, as well. I'm going to add 10000 to each port number for the second installation, and 20000 to the third ...
1
vote
0answers
10 views

Shell script which runs mono_service.exe as a background task

When I start an Ubuntu Linux 16.04 process with /usr/bin/mono_service.exe AudioRecorder.exe it returns right way. But, when I write a bash shell script with one line: exec /usr/bin/mono_service.exe ...
1
vote
0answers
10 views

VM can't connect to host

I am running an Ubuntu virtual machine using VMware. My actual computer is running Linux Mint. From the host, when I try to ping the vm I get "Destination Net Unreachable", and when I try to ssh I get ...
1
vote
0answers
10 views

Using a NFS for gcc, Apache, PHP, MySQL, glibc

I have 7 SLES VM. I am compiling always the newest version of gcc and all dependencies. Apache and all dependencies. PHP and all dependencies. MySQL and all dependencies. glibc and all dependencies. ...
2
votes
0answers
14 views

bash/cygwin broken after installing rtool?

Usually I can solve problems on my own (and Google). But recently I am baffled by this strange hiccup. Background: I use a chain of scripts for file-processing (in Windows, under Cygwin. Scripts ...
1
vote
1answer
27 views

Image backup with deleted files [duplicate]

I have accidentally deleted some files. With rm. It seems recovery is not so easy on Linux. Is it some way I can do a image backup including the lost files (If they still exist)? I should know the ...
-3
votes
1answer
16 views

How can I boot into Ubuntu when only given the grub rescue menu? [on hold]

Someone deleted Ubuntu and, removed its partition. During boot, it goes to the grub rescue menu. How the hell do I bypass this thing? My computer doesn't have a CD drive, so I can't reinstall from a ...
0
votes
0answers
17 views

how to fix centOS after set up problem? [duplicate]

Why after set up CentOS 7 (I choice GNOME desktop install), reboot and It happen like this.(this picture). I choice c ; r ; 1, it still don't work, believe me. I snapshot again for everybody can see ...
1
vote
0answers
15 views

How to automate mutt in removing old mailing-list emails?

In mutt I perform following sequence of steps: $ mutt -f imaps://imap.example.com username password [shift]+[D] ~C mailinglist1@domain.com [shift]+[D] ~C mailinglist2@domain.com (...) [shift]+[D] ~C ...
2
votes
2answers
16 views

Expanding the Kali Root Partition

I have a live distribution of Kali running on a usb with persistence. However, after installing updates and a few new software packages, the root drive is pretty much out of space. How do I go about ...
1
vote
0answers
4 views

Installing Ubntu: [drm:drm_edid_block_valid [drm]] *ERROR* EDID has major version 0, instead of 1

I'm installing Ubuntu on a laptopt via a bootable USB. The installation goes smoothly until it's time to restart and boot into the system, and which point I'm stuck on a terminal screen with the error ...
1
vote
0answers
17 views

Can skipping `fsck` on boot impact serial-port communication?

I have a bizarre serial-port (RS-232) communications issue (it appears that some data is being dropped, though I'm not sure if it's outgoing, incoming, or both) that I'm observing sporadically. I've ...
-3
votes
0answers
7 views

How do I setup my V8 openbox to record onto an external hard drive [on hold]

How do I set my v8 openbox to record I know I have to make a petition but that is all I have a 1TB hard drive for it. it would have to tell me everything from the start. thanks in advance if anyone ...
1
vote
0answers
18 views

Compiling Apache with another glibc version

My system has an old glibc version. I compiled the new version [2.23] into /FaF/glibc. Due to the fact the new glibc version is not compatible with SLES 11 SP2 & SP3 I have to use the linker ...
1
vote
3answers
22 views

how to spawn a separate process in the background while running a foreground process

e.g., I want run a python -m HTTPSimpleServer in the background while running a watch in the background python -m HTTPSimpleServer; watch -n (my awesome test command) how can I run both in ...
2
votes
0answers
38 views

on-line tally of unique lines

uniq -c is very useful for counting the number of times the same line appears consecutively $ seq 1 1000 | awk '{ if ($1 > 100 && $1 <= 200) { print "hi" } else {print "bye"} }' | uniq ...
2
votes
0answers
21 views

Does linux do outer ip fragmentation

I am looking to understand if Linux has the capability to do fragmentation of the outgoing packets at inner ip or outer ip level? I looked the source code in /net/ipv4/files in Linux kernel source, ...
3
votes
2answers
41 views

Double variable substitution in bash

Program snippet: BASH_MIN_REQ="2.05" BINUTILS_MIN_REQ="2.12" BISON_MIN_REQ="1.875" BASH_CURR=$(bash --version | head -n1 | cut -d"(" -f1 | cut -d" " -f4) BINUTILS_CURR=$(ld --version | head -n1 | ...
1
vote
1answer
22 views

Can I use an environment variable to define an alias?

I'm using an automation engine to run perl scripts. script_X requires a wrapper script so it's run like: wrapper_script script_X --parameters But the automation engine can't understand that ...
1
vote
1answer
12 views

How to find a specific patch for a kernel file

I've been debugging an issue in my linux kernel and have found a fix for the issue. Checking cross reference, I can see that the fix was applied to that file between kernel version A and kernel ...
3
votes
4answers
34 views

True column deletion, not selecting all columns that you want

I know this is a simple question and in many ways has been answered before, however every use i've seen of awk, sed, grep etc have all been selecting and printing the columns you want. In a case where ...
1
vote
3answers
25 views

Useradd w/o Home directory

I created a user without home directory using useradd -M Alice and set a password. Now when I login, I get this message No directory /home/Alice! Logging in with home= "/" -bash-4.1$ Can anyone ...
1
vote
0answers
8 views

gitweb nginx with root url path

I have a very strange problem: I configure a nginx server with server { listen unix:/home/ingo/repositories/run/gitweb.nginx; server_name _; access_log ...
1
vote
1answer
17 views

HTTPS with certificate

I have HTTPS server configured in LAN. When I upload a file to this HTTPS server with certificate using curl. File get uploaded. If I do not specify the certificate and use the "-k" or "--insecure" ...
1
vote
1answer
10 views

Smbclient asking for password

I am connecting to a samba share using the following command.. /usr/bin/smbclient \\\\server78\\publicfolder It asks me for my linux account password before it will connect. This isn't a problem ...
1
vote
3answers
33 views

Access a file located with find

In many cases after I find a file using the find command I then want to open the file or cat it or maybe print it. How can I operate on the result from find? For example, : find . -name "myfile.txt" ...
-1
votes
0answers
14 views

My keyboard has stopped working [on hold]

I use HP-Pavilion-g6-Notebook-PC. My keyboard has stopped working. It sometimes work for a while and then stop. For some days now it has not been working at all. I am only able to use a USB keyboard. ...
1
vote
0answers
8 views

Error when attempting to mount NFSv4 file system

I am having a problem mounting an NFS v4 share on a RHEL6 system, when attempting to mount the file system with the command "mount -t nfs4 nfsserver:/home /media/home" I receive the following error ...
1
vote
1answer
20 views

'xz -d' vs. `unxz`

Why is xz -d preferred over unxz when writing scripts? From the man page for xz 5.1.0alpha: When writing scripts that need to decompress files, it is recommended to always use the name xz with ...
-1
votes
0answers
10 views

creating directories in a directory using loop [duplicate]

On my CentOS machine, I need to create a main directory inside which I will have a few sub directories and, inside them, some subsubdirectories. Something like: main_directory->sub1,sub2,sb3.. ...
1
vote
2answers
39 views

add a file name to lines in this file

I have fasta files, coming from different samples eg: 01.fasta, 02.fasta, etc. All of them contain OTU list with the following pattern: >OTU1 CCTACGGGCGGCTGCAGT >OTU2 CCTACGGGTGGCTGCAG I ...
0
votes
1answer
17 views

How to change the default editor of GNOME?

gedit is the default editor of GNOME, how do I change it? I modified the file /etc/gnome/defaults.list, then rebooted the system, and it works.
0
votes
1answer
29 views

How to compare a program's version in bash?

Suppose I want to compare gcc version to see whether the system has the minimum version installed or not. To check the gcc version, I executed the following gcc --version | head -n1 | cut -d" " -f4 ...

15 30 50 per page