0
votes
2answers
27 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
31 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
17 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 ...
2
votes
0answers
19 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
5 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
19 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
41 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
58 views

bash: how to save state on prompt evaluation

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
23 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
18 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
125 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
31 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
33 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
votes
2answers
56 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
11 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
38 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
22 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
50 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
11 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
18 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
18 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
19 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
10 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
31 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
23 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
22 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
30 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
58 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
12 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
44 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 ...
1
vote
0answers
7 views

Configured terminal window size does not create terminal windows of correct size

With my Xubuntu 12 with xfce I have configured a standard 80x24 window size for my terminals. But opening a window results in a smaller 79x24 window. (To me this looks like a bug - at least my former ...
0
votes
1answer
35 views

What is the meaning of read -r ?

in order to understand another answer: find / -type d -print0 | while read -r -d ''; do ls -ltr "$dir" | sed '$!d' the first step is to understand the usage of the option -r of the read command. ...
0
votes
1answer
10 views

Porting Binder IPC to Linux

Android provides a device driver based IPC mechanism called Binder. I see it as one of the staging drivers in Linux. Although I can have a linux kernel running with this device driver, if I want to ...
-2
votes
0answers
15 views

chown .bash_aliases [on hold]

I need to append would be aliases to the .bash_aliases file through the echo command For example I echoed this command echo 'cp -r .git ls | grep -v .gitignore ~/env/' >> ~/.bash_aliases to the ...
0
votes
3answers
54 views

How to make backticks accept variables as variables?

This is my code: #!/bin/bash machine_we_are_looking_for=$1 user_defined_new_machine_location=$2 condition_while_one=true condition_while_two=true echo "test 1" while $condition_while_one do ...
3
votes
1answer
26 views

How to convert all odt files in a folder into microsoft word files ?

I have a folder with a lot of odt files from LibreOffice, I could open each one by hand and save it as a microsoft word file, but that would take a long time, is it possible to reach this goal using ...
1
vote
1answer
11 views

Which format in office libre writer to choose in order to omit problems when opening in word on windows ?

I have written a document in Libre Office Writer, it is crucial to me to keep the documents format. Now I am clueless in which format to save it, since there is a plethora of options, even different ...
1
vote
0answers
15 views

PXE Boot iSCSI wait time

I am deploying a single Laptop via PXE boot over a wired network. It runs perfectly, DHCP connects, TFTP finds and loads config data, scsi sends over the boot partition. Then it pauses for a minute ...
2
votes
0answers
18 views

Content of root's home directory in OSX

What is stored in root's home directory on OSX? What happens if you delete it on accident? Heres whats in my current root home folder. OSX:~ root# ls -lash total 8 0 drwxr-x--- 5 root wheel ...
1
vote
2answers
44 views

How to list only the last line of each directory?

I learned thanks to you, how to display only the last line of a listing,e.g. ls -ltr | sed '$!d' Now I thought, how to combine it with the find command, in order to repeat this onto each directory ...
1
vote
1answer
13 views

How can I do an rsync that asks for a confirmation for each individual file?

I have a small number of files to sync from one server to another, however there are some files I want to exclude from being synced. I'd rather not have to add them to a --exclude pattern if I can ...
0
votes
3answers
34 views

How to display only the last line of a listing ?

Supposed I make a listing and sort the files by its temporal attribute: ls -ltr -rwxrwxrwx 1 bla bla 4096 Feb 01 20:10 foo1 -rwxrwxrwx 1 bla bla 4096 Feb 01 20:12 foo2 . . . -rwxrwxrwx 1 bla bla ...
1
vote
0answers
5 views

Is it possible to make a key word search of all existing channels of all the irc networks from the command line ?

I am new to IRC (internet relay chat), as I understand it, an IRC network has a unique name like DALnet, is made of a chain of servers, a person can connect to one of them in order to connect to the ...

15 30 50 per page