2
votes
1answer
470 views

grep and command-line variable substitution

In the following command sequence, $ grep -E '^.{11,22}John' emplist Operations John Thompson PARTHawks Cher Sales John Jacobs FULLHawks Davinder Singh Finance ...
1
vote
2answers
5k views

How can I find the process ID of a command started in another terminal?

If I run sleep 30 in one PuTTY window, how can I find the process ID of the sleep command from another PuTTY window?
1
vote
0answers
297 views

Interfacing with a custom camera in Linux on the beaglebone

I'm new to Linux development and need some pointers to help me get a camera (OV7670) working on a beaglebone running Debian. Using the camera capes as a guide, I've connected the camera to the GPMC ...
2
votes
2answers
605 views

Find and rename files adding part of the path to filename

I have a folder with two level of subfolders inside it. Inside the second subfolder, there is a jpg file. All the jpg have the same name: cover.jpg Example: /home/user/folder001/folderAAA/cover.jpg /...
1
vote
1answer
2k views

Interpret an interpolated variable as a literal string in Perl regex

I am using perl to colorize a matched string MATCH=aaa printf "aaa\n/dev/aaa\nccc\n" | perl -pe "s/($MATCH)/\e[1;31m\1\e[0m/g" This works well until I try to match a string containing special ...
4
votes
2answers
750 views

Can iptables rules manipulate IP sets?

In iptables-extensions(8) the set module is described and it is discussed that it is possible to react to the presence or absence of an IP or more generally a match against an IP set. However, it ...
1
vote
1answer
414 views

Check SSE3 support from bash?

Is there a way to check whether or not the current system supports SSE3 from a bash script? I'm currently writing an installer script, and the program in question has an alternate version that takes ...
1
vote
1answer
516 views

Best filesystem format for Samba between Linux and Windows [closed]

I've made some researches but I don't find what I need. I have a Linux based server (under Debian 7.1) and several Windows computers. On my server I have some HD which I want to use as external hard ...
2
votes
1answer
142 views

Possible to move boot files?

I just bought an external hard drive that's 1TB. I formatted my laptop and burned Linux to it. The thing is, I also use my hard drive for other things. Can I move these boot files into a custom folder?...
1
vote
1answer
70 views

How to Test if a file has characters in it?

So i have a part of this code and U want it to output "No such player" if only the names file is empty, i've tried using the test -s command but it gives an output of 0 even if the file is empty or ...
3
votes
1answer
1k views

Qemu 2.0 Windows guest - mouse stops working (vnc) when using usb-passthrough

I have installed Qemu 2.0 on an Ubuntu Server 14.04 LTS computer. I use Qemu to run multiple virtual machines. One of them is using Windows 8.1 Pro (x64) and is used for back-ups. The guest runs fine ...
1
vote
1answer
832 views

Trying to automake gnome-terminal

I am on Fedora 20. I am trying to make gnome-terminal. The automake does not find certain packages. I do not understand why. Here is the part I do not understand. checking which gtk+ version to ...
2
votes
2answers
175 views

Will I be prompted for the sudo password a second time?

This is what I plan to do: #!/bin/bash sudo -i <<'EOF' iptables-save | awk '/^[*]/ { print $1 } /^:[A-Z]+ [^-]/ { print $1 " ACCEPT" ; } /COMMIT/ { print $0; ...
1
vote
2answers
787 views

How to change the “power key” for ratpoison window manager

Using the ratpoison window manager, how could I remap the "power key" (which is by default Ctrl-T) to something like the Windows button? I have created a configuration file already (~/.ratpoisonrc) ...
2
votes
1answer
650 views

How can I launch the sub applets in the GNOME's Control Center (v3) directly from the command line?

Is there a trick to launching these applets via the command line directly vs. having to launch the GNOME Control Center (aka. Settings) and then navigating to them through the UI?
16
votes
5answers
3k views

Is it possible to make zcat output text even if it's uncompressed? [duplicate]

The problem is I have some database dumps which are either compressed or in plain text. There is no difference in file extension etc. Using zcat on uncompressed files produces an error instead of the ...
0
votes
1answer
6k views

How to mount the `D:\` disk of Windows in linux mint? [closed]

I am unable to mount the D:\ disk of windows in linux mint. What to do?
6
votes
1answer
229 views

Should I use `mdadm --create` to recover my RAID?

There's this guy that keeps telling me that we shouldn't use mdadm --create to recover our RAID arrays, that it's worse than evil, is an error. Why is that? I mean I should get my RAID working again, ...
1
vote
1answer
493 views

nodejs sub processes in nohup bash script lock up

I run scripts with nohup that contain a list of a few hundred to a few thousand nodejs commands. These nodejs sub processes sync data from mysql and salesforce to couchdb. $ nohup ./mf-sync.staging-...
0
votes
0answers
597 views

mdadm raid 5 missing partitions after reboot

I had a working raid 5 array that had a whole debian install on it (I set it up during a debian install). I'd been using it a couple of days, all was fine, but since I created it during debian install,...
0
votes
1answer
37 views

What changes occur in the system after a dev adds their own profile?

I am working on building my own profile for portage. I have managed to add my profile and it shows up when I issue: eselect profile list I added an entry in /usr/portage/profiles. The profiles are ...
1
vote
0answers
54 views

Make XServer ignore the mouseclick that woke up monitor from sleep

I have a ARM-Box with a touchscreen, running a Debian variant. Every time I tap the touchscreen, the monitor turns on, but the now visible application receives a mouse click. Can I tell the XServer ...
2
votes
3answers
371 views

conditional coloring in grep

I have a simple bash script. One line of my script matches a "pattern" with grep and colors the match grep -i --color=always -- "$1" I need to modify it, so that it only colors the match, if the ...
1
vote
1answer
1k views

getting list of children processes by a background shell function

I have a bash script, in which I call function in a background: process_manager $1 $2 $3 & The function runs / executes commands that are passed as an argument in the background. How can I get ...
0
votes
1answer
55 views

For output weird

This is my script: #!/bin/bash E=0;j=0 for i in A B C do Erray=$(sed -n '/Local net energy/p' log | awk '{print $7}') A[j]=j echo $i = $Erray kJ/mol >> Energy let j=j+1 echo $j $i $...
5
votes
4answers
7k views

Keeping a process running on server even SSH is closed [duplicate]

I am running long program on server, which is basically Jar file of java program. I want to keep this program running even if SSH terminal is closed, how I can keep this program running on server?
1
vote
1answer
631 views

getting pid of two last commands executed in background and do stuff

I wrote this bash: #!/bin/bash eval "(a command) &" pid1=$! eval "(while kill -0 $pid1; do .... ; done) &" #It creates file.txt after few seconds pid2=$! if [ -s /tmp/...
3
votes
2answers
2k views

Is there a way to tell how many times my computer has rebooted in a 24 hour period?

I was doing a 24 hour code-a-thon and had to reboot numerous times and was wondering if there was a way to tell exactly how many the computer was rebooted or crashed.
8
votes
6answers
18k views

SSH public key won't send to server

I've been struggling with this for a couple hours so any help is greatly appreciated... I have 2x servers both of which I can ssh to with public keys from OSX, no issues at all there so I'm certain ...
1
vote
2answers
514 views

Library routines in linux kernel

In the linux kernel, there is a section "Library routines" with a snippet shown below: Library routines ---> <M> CRC-CCITT functions <M> CRC ITU-T V.41 functions <M> CRC7 ...
0
votes
1answer
161 views

Webserver-User has no Shell-Access but needs SSH-Keys or Permission change of directory?

First of all: English is NOT my mother-tongue, so please bear with me if something is not as clean as it should be. So, regarding my previous question and a possible solution I was advised to ask for ...
1
vote
1answer
6k views

how to update Records using nsupdate?

We know that we can update a record (its IP) by doing these steps: nsupdate server ns.bar44.com zone bar44.com update delete somehost.bar44.com. A update add somehost.bar44.com. 86400 A 10.10.10.1 ...
5
votes
3answers
3k views

SSH Login doesn't work using a key Without Password?

Agent admitted failure to sign using the key I'm working on centos6.5(32bit) and I have tried to ssh log in without Password Using ssh-keygen & ssh-copy-id? the steps that I have done: first I ...
2
votes
1answer
39 views

Window title centered fluxbox

I'd like to center the window titles in fluxbox. Now they are all at the right side. How can I change this option?
0
votes
1answer
47 views

sed replace misplaces slashes

I have the following code in a LaTeX file: for \emph{service} in \emph{host}.resources: for \emph{file} in \emph{host}.resources: \underline{service}.requires.add(\underline{file}) ...
2
votes
1answer
417 views

How to check and set “rhash_entries” parameter?

I'm reading this article, and it says: rhash_entries is the size of the hash table. If you don't specify it on the kernel command line, it is computed dynamically based on the memory available on ...
1
vote
4answers
151 views

What code should I use to download and install my script into a user-writable directory in the user's PATH (without requiring sudo)?

Edit: places where I said $HOME/.bin I should have written $HOME/bin or any equivalent is fine. I.E, any user-writable directory that is in the user's PATH. So I have a bash script which I am ...
2
votes
1answer
409 views

How to create an executable bash script for these commands?

I wish to create an executable bash script that will run the following commands as root, that is, using sudo su iptables-save | awk '/^[*]/ { print $1 } /^:[A-Z]+ [^-]/ { print $...
3
votes
0answers
738 views

Microphone not working on Centos 6.5

I have installed CentOS 6.5 on a Dell Insperion with an Intel chip. I first noticed that my microphone is not working on Skype on CentOS although it was working fine with Windows 7 on the same box. ...
3
votes
0answers
446 views

Cannot install zone on Solaris 11

I am trying to install a zone on Solaris 11. I am using these instructions. I get up to Listing 2 when the error occurs. # zoneadm -z testzone install The following ZFS file system(s) have ...
3
votes
1answer
8k views

Changing CIFS permissions on FreeNAS?

I'm trying to change some permissions on a folder. I'm running FreeNAS and using the windows permissions settings (not Unix). If I right click the file and go to properties and then security, it shows ...
1
vote
2answers
506 views

Why is Aircrack-ng able to read and use a .lst file that Leafpad couldn't in a reasonable time?

To make myself a little more clear: I tried opening a .lst file (password list) in Kali Linux. The system was struggling to handle it and Leafpad didn't even start, but I noticed a significant ...
1
vote
1answer
191 views

Prevent active file removal on an NFS filesystem

I clear my logs using following script - find "." -mtime 1 -type f -print0 | xargs -0 rm -rf But it deletes the active files also and creates .nfs… files instead. Is there any way to prevent ...
3
votes
1answer
957 views

What is “system time” when using “time” in command line

Im using time to time a Perl script on standard terminal in Ubuntu 14.04. I have read that real time is stopwatch time; the time I, as a user, is spending looking at the program running from I start ...
2
votes
0answers
136 views

SMART extended offline test validity

Is it possible for the smartctl -t long /dev/sda to complete without error and still the drive fail? How detrimental to the disk's life expectancy is running the test daily/weekly? Thanks!
0
votes
1answer
472 views

Xorg display issue in a newly installed RHEL6 machine

I installed RHEL6 in a pretty old machine. The installation went perfectly fine and after installation, I did the below steps. Registered the machine with the satellite. Ran the yum update ...
3
votes
2answers
632 views

How to find all paths not compatible with Windows?

On most Linux filesystems, NUL (\0) is the only invalid character in paths (and / is reserved as the path separator). Windows has a complicated set of rules for valid paths. Rather than fixing paths ...
3
votes
0answers
156 views

Debian: pulseaudio sink volumes syncing?

Running Debian jessie with pulseaudio, sometimes I would use pavucontrol to adjust volumes of different applications at varying levels. Then when I would forget about it and adjust the volume using ...
1
vote
2answers
163 views

Where are the sound level settings for mplayer saved?

This is a followup to Somehow managed to mute mplayer and can't figure out how to restore sound. I've noticed that the sound level settings in mplayer are saved on exit. However, I can't figure out ...
1
vote
1answer
357 views

What's a good way to debug issues with X forwarding over ssh where just some applications won't run?

As far as I understand it, X forwarding is usually pretty simple. Once I can run some things like xeyes or gimp over ssh, complex applications like firefox/iceweasel should also be able to run. ...

15 30 50 per page