1
vote
1answer
27 views

How to run a long running grep, pipe the result into less and put everything into background?

I often find myself in the situation where I need to find a code base for a given symbol like so: find src/galio -not -path './src/stapi-sdk/apilib/* -regextype posix-extended -iregex ...
5
votes
2answers
125 views

How can I list files of which no symlinks exist?

I have a large "myfiles"directory full of miscellanous documents and do not want to modify its structure. I therefore created (several) other directories for each class of documents. For example I ...
0
votes
0answers
18 views

How do you create an ip alias using iproute utils?

While reading the O'Reilley book on Apache Web Server, they gave an example on using ifconfig to set ip aliases on an interface: ifconfig ep0 192.168.123.2 ifconfig ep0 192.168.123.3 alias netmask ...
0
votes
0answers
10 views

What is hotkey in Linux Mint for “Show All Windows”?

I noted it is possible set a number of hotkeys in Linux Mint 17.1 using the keyboard application, but there's not possibility to set the hotkey "Show All Windows"; you can only set a button using ...
0
votes
0answers
40 views

Shell splitting line into words without temporary file

yesterday I found out that this creates temporary file. Can anyone help me how to rewrite it so it wouldn't? I am desperate I have tried everything that I know, but it doesn't want to work. And also I ...
0
votes
1answer
12 views

lsb - log_daemon_msg echoes messages in shell console!

#!/bin/sh . /lib/lsb/init-functions log_daemon_msg "this is a daemon s message" On the shell console, it prints, this is a daemon s message A daemon process doesn't have stdout at all. So why ...
-2
votes
3answers
38 views

what is the difference between “ssh user@ip” and “ssh ip user”?

I am facing problem with one of the above. Only ssh user@ip works not the other way round. And I am getting the following error when I run ssh ip user sh: root: not found Because of this I GUESS ...
2
votes
0answers
16 views

How to quote the quote marks in strings in u-boot?

Currently my boot string (displayed with env print) is: If I want to set a variable to a string in u-boot, I do env set variable 'my string' But what to do if the string contains the quote ...
1
vote
0answers
15 views

How to use sox or ffmpeg to detect silence intervals in a long audio file and replace them by zeros (aka suppress background noise)?

I have a long audio file that was created by concatenating many short files. I would like to detect silence between the speech segments (just a threshold is enough for my purposes) and replace them by ...
-1
votes
0answers
11 views

So long time on compressing with subprocess on python [on hold]

I'm doing a gui compressor on python as a school task and I used the following code to compress: def crea_arxiu_3(): f = open('fitxers.txt','w') for i in range(llista2.size()): ...
3
votes
3answers
99 views

Shell test to find a pattern in a string

I just wanted to ask whether there is any command which would work on common shells (bash, dash, kornshell)? It is supposed to check if the line variable contains any part of the path. if [[ $line =~ ...
0
votes
1answer
28 views

Restore windows boot manager in grub command line

So I installed GRUB2 and Ubuntu 14.10 alongside Windwos 8.1. I am on an Acer laptop, which does not have a cd drive. I deleted the Ubuntu partition in windows 8.1 through the integrated disk manager, ...
1
vote
1answer
10 views

Why doesn't yum-builddep install all dependencies?

What worked for other packages, doesn't work for kernel. Why? First, sync: [git@dioptase SRPMS]$ ssh root@localhost yum-builddep /home/git/rpmbuild/SRPMS/kernel-2.6.32-431.el6.src.rpm Getting ...
0
votes
2answers
28 views

output in iptables

I have added the rule to iptables file, however the command does not show it. $ sudo less /etc/sysconfig/iptables Generated by iptables-save v1.4.7 on Fri Oct 24 13:28:48 2014 *filter :INPUT ...
2
votes
4answers
33 views

space-efficient disk snapshots on Linux

I like the ability of VirtualBox to instantly create and restore snapshots and I was wondering, if it's possible to do similar things on the host machine. First I looked at lvm snapshots, but some ...
1
vote
1answer
20 views

Multicast communication blocked?

I am struggling to create a multicast communication with basic client and server. So I looked on the web to find any working example... and they don't work. I mean the server is waiting for a ...
3
votes
0answers
22 views

Logging apt/dpkg activity to syslog

My goal is to log apt/dpkg activity using syslog (rsyslog), so that log entries are sent to central syslog server. dpkg writes to /var/log/dpkg.log, apt writes to /var/log/apt directory. I did some ...
0
votes
0answers
10 views

qemu-nbd vs vdfuse for mounting vdi images

What's faster, qemu-nbd or vdfuse? Which support differencing images (snapshots)? I suspect fuse to be slow, but nbd seems to be some old stuff.
1
vote
1answer
27 views

Adding Kali repositories has changed the output of lsb_release on Debian host

I installed Kali in virtualbox with Debian as my host. I've done it several times. But, when I reboot my host I noticed Debian is missing from the list of OS'es in the GRUB menu. It's showing Kali. ...
3
votes
1answer
47 views

Why is my DAD slow?

The last few boots of my Arch Linux, I noticed I had no network access. I'm using a netctl profile to give my adapter a static IPv4 address, which by itself works fine. So I had a look at the logs, ...
2
votes
1answer
68 views

bash: how to save state on prompt evaluation [duplicate]

I want to put duration of last running command in command prompt, f.ex: user@host$ sleep 360 6m user@host$ Also, I want duration to not show up if it is less than some minimum threshold (say 30 ...
0
votes
1answer
63 views

Live USB repeatedly gives error 'Failed to load ldlinux.c32'

I'm trying to put Ubuntu on my desktop. Right now, it and my laptop are running Manjaro 3.18. I've been using Unetbootin to create the live USB on my laptop. I've tried several different versions of ...
1
vote
2answers
26 views

CSH and all output (with errors) to file

I need save all output from compilation to file. I have many errors "undefined reference" and I want see all of these errors. I try "makeall >& out", but in file "out" aren't any of error ...
2
votes
0answers
21 views

vim arrow keys insert mode mapping

I want to move the cursor without using arrow keys in insert mode too. I've tried the following: :imap <A-h> <Left> but after moving cursor left by Alt-H from insert mode I get back to ...
2
votes
1answer
130 views

Why are there capital letters in openSUSE packages?

In Ubuntu, Debian and Fedora, the package is called python3-sphinx. On openSUSE, the package is called python3-Sphinx. Same with python3-prettytable versus python3-PrettyTable. I find those capital ...
1
vote
1answer
35 views

How to set the monitor brightness gracefully at boot time?

I've been using a loop that contains xrandr --output VGA1 --brightness 0.3 in a bash script which will automatically execute right after logging in by gnome-session-properties (a.k.a. Startup ...
1
vote
0answers
11 views

how to display osd_cat on a remote HDMI Screen [duplicate]

i have installed xosd an used osd_cat to display text in my screen. the problem is that i cant do it on the remote station on the remote screen through SSH. I want to execute osd_cat on the remote ...
-2
votes
3answers
35 views

Syntax error when trying to cut part of a variable

If I write a simple echo $i, I have no problem: it shows me the variable. But if I try do something with it $($i|cut -d"." -f1-3) then I get an error messages : -bash: /...file.backup: Permission ...
1
vote
2answers
103 views

Why doesn't “rm -rf ./” delete anything?

The command rm -rf ./ does not do anything in a directory full of sub directories and files. Why so? Isn't -r supposed to go recursive? To add more confusion, it even prints an error message ...
0
votes
0answers
12 views

Monitor not indentity

I use Debian 7.x and have two same monitors NEC MultiSync LCD2090UXi. But only one of them is detected as NEC. I used xrandr for change resolution of unidentified monitor and all was ok, but after ...
1
vote
1answer
28 views

How to enable ping between machines connected in two interfaces?

I have a linux board with two ethernet interfaces as mentioned below. eth0 connected to another linux machine (ad-hoc) eth0 on board 191.168.1.2 connected to Linux machine 192.168.1.3 eth1 on board ...
1
vote
0answers
40 views

How to generate a list of configuration files accessed by a tool (eg bash or vi)?

Many times, there are slight inconsistencies between two similar linux machines, where (for example) tmux supports colours on Machine M1, and does not support colours on Machine M2, or vi adds ...
0
votes
1answer
23 views

iptables | redirect from local [interface:port] to local [interface:port]

0 down vote favorite I have two interfaces eth0 (192.168.1.95) and eth0:1 (10.0.0.100) i want all packet for 192.168.1.95:9900 (from any 192.168/24) will be redirect/forward to 10.0.0.100:9900 and ...
2
votes
4answers
54 views

Does it make a difference (e.g. performance-wise) if I execute a command from a bash script (vs the command line)?

Is there any difference between the following (e.g. performance-wise): $ make && cp bin/myexecutable inputfile.txt $workdir && cd $workdir $ <series of sed commands to modify ...
1
vote
0answers
19 views

Can I print via CUPS on ARM device without drivers by installing CUPS onto an x86 server with drivers?

I just spent a few frustrating hours troubleshooting on a Raspberry Pi 2 only to find out that it is impossible to print to my Canon printer natively using CUPS. Thankfully, my printer supports Google ...
1
vote
0answers
19 views

Create new TCP Connection for every http requests in Python [migrated]

For my college project I am trying to develop a python based traffic generator.I have created 2 CentOS machines on vmware and I am using 1 as my client and 1 as my server machine. I have used IP ...
0
votes
0answers
20 views

scp from remote machine to local machine while logged in on remote machine [on hold]

I've found a lot of items on SE explaining how to scp to/from a local machine from/to a remote server while using terminal on a local machine. I'm logged in on a remote server and want to copy ...
0
votes
1answer
22 views

Remote MYSQL Server (Local) question [on hold]

I have a 6 node web cluster here on my LAN, its just for experimenting and understanding how stuff works. I've been having issues though. I've got 192.168.0.80 as my SQL server with phpmyadmin to ...
0
votes
2answers
16 views

Choppy Sound in Chrome on Linux (flash or HTML5) but not VLC

As the title states, I currently have choppy sound on Chrome in Linux in both flash and HTML5 content, however VLC does not have choppiness. I am running Arch, using Chrome (dev channel), and using ...
-1
votes
0answers
30 views

Using curl for HTTP POST request [on hold]

The problem is that I am looking to make a HTTP POST request exactly as the following image. The command I have tried is : curl --data "GENERATE_SNAPSHOT=Generate%20Snapshot" ...
1
vote
1answer
32 views

Complete language abbreviation list for vim's `set spelllang` option?

I'm starting using vim's spell check function today. But seems it treat Chinese characters as wrong spell word. Thus I did a little research, and find I should use set spelllang=X option. But the ...
0
votes
0answers
24 views

Where can we find a good Linux System Administrator? [on hold]

Where can we find a good Linux System Administrator? What are the websites to post a position that Administrators visit? Do System Administrators like to work as contractors? Or do they prefer to work ...
0
votes
1answer
23 views

How to prevent an application from connecting to a network with iptables? [duplicate]

I have read the manual page of iptables in terminal, but it has complicated syntax and I don't fully understand how to use options like: user, user ID, UUID and so on. Suppose my username is foobar ...
0
votes
0answers
14 views

How to make a PDF portfolio from merged files

Adobe Acrobat has a feature where PDF files can be merged into a single portfolio document. The various PDF files can be set out with a template, and clicking on its icon views the appropriate PDF. ...
2
votes
1answer
57 views

sudo -i returns an error

When I try to switch to root using sudo -i i get the error /var/tmp/sclDvf3Vx: line 8: -i: command not found... However, su - works which I will continue to use. I'm by no means a linux system ...
2
votes
2answers
32 views

How to disable the keyboard's numeric keypad?

I want to disable all numpad keys; the ones located on the right side of my keyboard. How can I do this? Of course, I would also like to know how to revert the action an re-enable the numeric keypad. ...
2
votes
2answers
66 views

Print file contents and delete the printed content* from the file

In Linux, from a bash shell, how can I print the contents of a file and remove the content I just printed content from the file? I have a program writing texts to a file repeatedly. On a Linux shell ...
0
votes
0answers
13 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) + ...
2
votes
4answers
45 views

Does the inode change when renaming or moving a file?

in PHP the fileinode() functions returns the inode of a file. I was wondering if I can use it to determine if a file was renamed, moved or modified. I did some tests and it seems the inode stays the ...
0
votes
0answers
23 views

Two monitors work as if they were a single one

I have 3 monitors (1 on an Intel card, 2 on Nvidia). After some magic with xorg.conf they started to work, but the two Nvidia monitors work as if they were a single, wide monitor (any maximized window ...

15 30 50 per page