4
votes
2answers
10k views

Use inotifywait to move file when it loads in dropbox folder

I'm trying to find a way to immediately move a file to another folder as soon as it appears in my dropbox on CentOS. I have scoured the internet for some clues but I can't get any further than the ...
3
votes
2answers
2k views

Can't play DVDs on Linux Ubuntu laptop

I can't play a DVD on my Ubuntu laptop. I've tried VLC. A window with a traffic cone opens and the Drive spins for a short time, then stops. Nothing else happens.
1
vote
1answer
110 views

HGRCPATH kept in /etc/sudoers, yet ignored by hg?

I'm trying to follow the directions here under "sudo and multiple users". I believe I managed to modify /etc/sudoers correctly enough (by adding Defaults :me env_keep += "HGRCPATH" at the beginning ...
2
votes
1answer
763 views

Incorrect step with grub while installing onto a USB stick?

I tried installing debian on a USB stick. I believed I made a mistake with the grub boot up part. I want to leave my harddrives alone and with my bios choose to boot up from a stick. Do I need grub if ...
3
votes
2answers
997 views

Mount a device as another user

Is there a command (on Debian Wheezy) that a testuser that belongs only to the group testuser can run (maybe he needs to be listed in sudoers first) in order to mount a USB stick as if he belonged to ...
1
vote
2answers
5k views

install java sdk 6, wheezy

Followed debian Java Sun wiki, and later 1[open jsk 7 ]2 which has a note on installing 6 : link to java 7 on debian aptitude install sun-java6-jdk No candidate version found for sun-java6-...
3
votes
3answers
3k views

No route to host after upgrade to Fedora 19

I recently upgraded a system from Fedora 17 to 19. Now, I am not able to connect to any service other than ssh (perhaps a few others may be available but not sure) on it. Earlier this was not a ...
40
votes
4answers
8k views

How do you use the command coproc in Bash?

Can someone provide a couple of examples on how to use coproc?
19
votes
5answers
4k views

Make bash use external `time` command rather than shell built-in

How can I make bash use time binary (/usr/bin/time) by default instead of the shell keyword? which time returns /usr/bin/time type time returns time is a shell keyword Running time is obviously ...
0
votes
1answer
480 views

Download documents referenced by a web page with wget

I want to download all the documents pointed to by a web page with wget. When I run wget, it only downloads the webpage, not all the contents that the web page links to. wget --content-disposition -...
3
votes
1answer
483 views

boot without failing services

I'm using Debian testing. I want to configure wifi on my netbook, but failed to do so and when the system boots I get the following message: INFO: task wpa_supplicant:1634 blocked for more than 120 ...
4
votes
1answer
1k views

Using sched_rt_period_us for setting maximum time between task calls of order of 10ms

I realize sched_rt_period_us and sched_rt_runtime_us are meant to prevent freezing the system in case of runaway RT task. I wonder though, if it's possible to use a small value of sched_rt_period_us ...
3
votes
2answers
177 views

bash equivalent of zsh's $@[2,$#]

(NB: the motivation for this question is only to improve my bash programming know-how.) I want to know the bash equivalent of zsh expressions such as $@[2,$#], which directly address a range of a ...
2
votes
2answers
381 views

Symbolic link of for my user, doesn't work for root

I am experimenting with the following scheme in order to share common data among different distributions. In Fedora I have created a symbolic link /home pointing to: /run/media/arun/754ef10a-3f82-...
30
votes
4answers
51k views

What does ampersand mean at the end of a shell script line?

sh sys-snap.sh & What is sh? What is sys-snap.sh? Why I should put & at the end of the line? Can anyone explain the syntax? Without the & the script won't go back to the prompt till I ...
3
votes
3answers
259 views

How to host a website on personal computer

I want to start hosting my website at my own computer as well websites of my friends too (say mini hosting platform). I learned Debian, Bind9 and Apache for this purpose. On my system everything is ...
2
votes
1answer
2k views

Install nagios3 on debian by apt, file not found error

I have a Wheezy Debian system, and I've installed nagios3 using apt-get. When I go to myhost.com/nagios3 and then go to a page, for example "Tactical Overview" I get the error message: The ...
1
vote
2answers
500 views

Dual boot Win8/Fedora19

I just installed Fedora 19 (gnome, 64 bit), in addition to my Windows 8 installation. But when I start the computer, it goes straight to windows, not providing any option to boot into Fedora. How do I ...
1
vote
0answers
551 views

why cannot read /dev/console after reboot AIX

I use < /dev/console when running Micro-Focus cobol programs in background cron jobs instead of < /dev/null because then we don't get an warning about the input file not supporting ioctl. The ...
3
votes
4answers
266 views

Application displaying latest blog posts on desktop

Is there an application for Linux which is able to put rss feed directly on desktop? I've seen lots of standalone programs, but I'd like to have a window in the corner of my desktop always showing ...
21
votes
5answers
23k views

How can I lock my screen in Gnome 3.8 without GDM?

There is no "Lock" option showing up in the user menu, and the standard shortcuts (Ctrl+L or Ctrl+Alt+L) don't do anything. I'm running Fedora 19 with Gnome Shell 3.8.3, and XDM 1.1.11. I'm using ...
2
votes
2answers
329 views

couchdb doesn't start

I installed couchDB under Sabayon with help of Rigo and followed this instruction ( http://guide.couchdb.org/draft/source.html ): xyz@wp01 ~ $ su Password: wp01 xyz # chown -R couchdb:couchdb /etc/...
1
vote
2answers
362 views

one IP several guests same port 22

I use Nginx to redirect my domains coming on port 80 to the correct virtual machines, now I'm wondering if I can do this with ssh on port 22. Redirect all ssh traffic to the correct guests through ...
1
vote
0answers
310 views

How to set up network for Ekiga on Arch Linux?

I've got two machines with identical Ekiga versions and settings (including accounts), both behind the same router. Both have contacts referencing myself and the standard call back test. Machine A: ...
3
votes
4answers
2k views

Why is bash interpreting characters that I have character escaped? [duplicate]

Why is it that when I run curl against a REST API, the special characters (!) in my key are interpreted by the shell? curl https://foo.my.salesforce.com/services/data/v28.0/ -H "Authorization: ...
2
votes
1answer
237 views

console displaying quote character from gcc wongly

After an upgrade to debian wheezy my text consoles displays questions marks where there should be quotes Under X I see things correctly window.cpp:1056:21: error: base operand of ‘->’ is not a ...
9
votes
2answers
3k views

journalctl --verify reports corruption

I just noticed this verify option for journalctl and decided to give it a go, it's showing corruption, what might cause that? and what if anything should I do about it? should I investigate further? ...
1
vote
3answers
990 views

how to make search a text on the terminal directly

I have a program that outputs some data to the terminal (via printf() ). Is it possible search a text on the outputed text on the terminal directly? It is possible to do search by directing the ...
2
votes
2answers
81 views

Mounted own filesystem instead of USB?

I am completely unfamiliar with how *nix handles partitions, but I needed to get a file off of my USB drive so I followed an online post that said you could mount a USB stick with: sudo mount -t auto ...
4
votes
1answer
537 views

Obtain the “pretty” hostname in bash

On my Fedora 19 system, I am able to change the system hostname with hostnamectl. This allows me to set several things, such as the static (normal) hostname, as well as a "pretty" hostname. Is there ...
10
votes
2answers
1k views

grep: display filename once, then display context with line numbers

Our source code has error codes scattered throughout. Finding them is easy with grep, but I'd like a bash function find_code that I can execute (eg. find_code ####) which will provide output along ...
5
votes
1answer
465 views

Strange behavior automating with “make -f”

I have a set of directories, some of which contain makefiles, and some of the makefiles have clean targets. In the parent directory, I have a simple script: #!/bin/bash for f in *; do if [[ ...
5
votes
1answer
722 views

Equivs: enhance or update an existing package without uninstalling?

Some background: I'm using Debian 7 as my main environment, and I want to tell my system that I have glibc = 2.15 in addition to the environment's required glibc = 2.13 for the purposes of using some ...
5
votes
2answers
1k views

Does linux kill heavy and long running background processes after they reach some threshold?

If I start a really heavy (memory/cpu intensive) running really long running process will the OS terminate it after a period of time arbitrarily? I.e. are there any limits beyond which the OS would ...
1
vote
1answer
2k views

How to use 32 bit compiled shared object (.so) file on 64 bit RHEL?

I have a shared object file libfault.so for my 32 bit compiled application on RHEL 6.4. I want to preload this file while starting my application. I have placed it in /usr/local/lib/ directory. But ...
2
votes
2answers
1k views

Mouse pointer stuck as I login

I am facing this problem,and I don't know I dig into it. As I log into Ubuntu my mouse pointer get stuck. I have tried the following methods: sudo apt-get update sudo apt-get upgrade I have also ...
17
votes
3answers
19k views

Can one ping a NIC by MAC

I have an NIC card on a Debian machine somewhere. The machine is turned off, but I need to know whether the NIC card is turned on so that I can send a wake-on-lan magic packet later (from another ...
9
votes
2answers
20k views

What do the channel numbers in ssh error message refer to?

In the example below what do the channel numbers correspond to? Which are on the server? Which are on the client? $ ssh -L1570:127.0.0.1:8899 root@thehost Password: Last login: Fri Aug 9 ...
6
votes
1answer
2k views

limits that are set in an unmodified environment

If /etc/security/limits.conf has not been edited or changed, there are nothing but comments. However 'cat /proc/self/limits' shows there are some limits in effect. Are these compiled into the kernel? ...
4
votes
2answers
4k views

Find out screen id

I want to start a program with SSH using PHP, which works fine, but now I want to kill the screen with PHP, but the only thing I know is the name of the screen. How do I find out the screen ID (...
1
vote
1answer
188 views

Wireshark packet dissection codes?

Hi all we have a system which could capture packets accordingly. The only problem now we need some codes on how to interpret the packet just like how wireshark does it so well. Anyplace we can get ...
1
vote
1answer
225 views

Losing (realtime) permission when sudoing from root to myself

After an upgrade to debian wheezy (I did not upgrade the kernel - it is still 3.8.2) I can no longer start jackd in the way I used to do it. I get you are not allowed to use realtime scheduling. My ...
1
vote
2answers
513 views

update failure in CentOS

I am using CentOS 6.4 .while I am doing package updating i am getting these errors. please help me to resolve those issues. file /usr/lib/libpostproc.so.52 conflicts between attempted installs of ...
4
votes
1answer
3k views

viewing dll and exe file properties/attributes via the command line

I have a need to see some additional file properties for exe and dll files. If I open windows explorer and add the additional columns to my view, I can see things like Company, Copyright, Product ...
0
votes
2answers
184 views

Daemon not running when started over ssh

I'm trying to start the rngd daemon by remotely starting it via ssh. Unfortunately it does not seem to run until I log onto the machine. The command I'm using is: ssh -n -o StrictHostKeyChecking=no -...
4
votes
2answers
191 views

What configuration can insert lines between commands?

I've noticed on some Linux servers, that bash has a very elegant feature that adds visual breaks. What program is it that appends the -------- <time> after each command?
6
votes
2answers
3k views

Some UTF-8 characters not being recognized by grep or sed

Trying to determine all characters in a file. The file sample consists of: a eɪ abandon əˈbændən ability əˈbɪləti able ˈeɪbəl able ˈeɪbl abortion əˈbɔrʃən abortion əˈbɔrʃn about əˈbaʊt above əˈbʌv ...
0
votes
2answers
115 views

Programmatically get folders last edit time

How can I programmatically get a folders latest edit? I have already written the following script: #!/usr/bin/perl my @ls_command_result=qx(ls -l); my @the_folder=grep /folder_i_want/, @...
2
votes
1answer
549 views

Generate interrupts for purpose of stress testing

I'm testing the quality of a generated PWM signal on a Raspbery Pi. I would like to test how it behaves if there are lots of interrupts coming. Is there a way to fake interrupts or force 2000 ...
1
vote
1answer
1k views

What is the purpose of xargs -I command?

I'm Unix noob, can you explain what this command does: files=(this_is_filename) for filename in ${files[@]}; do ls -t1 ../htory/$filename* | head -1 | xargs -I fname cp -p fname ../htory2/...

15 30 50 per page