3
votes
2answers
190 views

Monitor when read/write on metadata or mmaped files hit the disk

On a server hosting a wide range of websites, I often see IO becoming a bottleneck without being able to identify the processes responsible of IO operations with tools such as iotop, iostat or sar. I ...
5
votes
4answers
5k views

Bash, how to let some background processes run but wait for others?

I have (yet) another wait, &, && control flow question.. Say I have a script something like this where I want to do as much work at the same time as possible: # may take some hours ...
1
vote
1answer
3k views

vsftpd full anonymous access

I'm runnning vsftpd on Raspberry Pi, Debian 7.0. I want to use it to do backups in my Home-LAN only, so security is not an issue (behind NAT/Firewall, only trusted users). I would like full access as ...
5
votes
4answers
484 views

Reduce the over use of files in text processing

Currently, I have a file (Results.txt) which has 27k rows. The file content is as below. 45008657 | A. | | Long | 0 49210987 | A. | ...
2
votes
1answer
36 views

Forcing compton to free directory

I often have trouble unnounting filesystems because compton is keeping a subdirectory open. Here is one line from lsof I have right now: compton 30043 valmi cwd DIR ...
0
votes
1answer
466 views

How can I print out the current keybindings in Linux/Debian? [closed]

How can I print out the current keybindings in Linux/Debian ? I tried xmodmap -pp and got the response: xmodmap: unable to open display ''
0
votes
1answer
59 views

Script in C shell skipping over last else statement?

This is a C shell script that checks the number of arguments and if the file/directory exists. When the arguments are valid, it should go to the last else statement and print "hi", but when I run this ...
0
votes
0answers
2k views

No wireless interface detected in Linux

I'm using Backtrack5R3 via bootable CD and getting no wireless interface found output. These are the o/p of commands by which you can get details of my problem. My laptop model is Lenovo b490(20205). ...
-1
votes
2answers
132 views

Add users from dat file

I have a dat file with names. These are the names of users I must add, without groups or passwords. Ofcourse i have to remove all spaces. I have to add them with a bash script. Can anyone help me ...
3
votes
2answers
1k views

Unable to launch the requested CGI program: /www/cgi-bin/first.cgi: Text file busy

I'm trying to make a very simple shell script to run as a CGI on a uhttpd server running on an OpenWRT install. The file is called /www/cgi-bin/first.cgi and looks like... #!/bin/sh echo ...
0
votes
1answer
2k views

Set up network with static IP and wpa_supplicant on Debian

On Debian, I am trying to set up my network to use ad-hoc mode with a static IP address. I also want wpa_supplicant to be running so that I can scan use it to scan for WiFi networks in range. To get ...
7
votes
3answers
6k views

Execute a command on user logon

In Linux desktop system, I want to execute a command when the user logs in. After reading some other posts, I tried to insert the command in ~/.bashrc but unsuccessfully. Moreover, the system uses a ...
1
vote
1answer
95 views

Is it possible to remove the delay on wrong password? [duplicate]

So I type my password incorrectly from time to time. Sometimes for sudo sometimes for logging in to my (Ubuntu) machine. In either case, there is a two or three second delay before it gives me a ...
0
votes
1answer
70 views

Scripting - Folders with spaces

I'm trying to write a script that's robust enough to work with spaces. Its currently in a for loop, but the problem I'm having is folders with spaces in its name. ASOURCE="Home Photos 2012 ...
0
votes
1answer
487 views

Apache configuration with proxy and location

I want to map these domains to these ports. How can I do it? http://test1.example.com/phpmyadmin/ example.com:80/phpmyadmin/ http://test1.example.com/app1/ example.com:8080/app1/ ...
0
votes
2answers
142 views

Trying to understand uboot image copying

The following is snippet from u-boot-xarm/include/configs/zynq_zc702.h "qspiboot=echo Copying Linux from QSPI flash to RAM...; \ cp 0xFC100000 0x8000 ${kernel_size}; \ ...
0
votes
5answers
1k views

bash event not found trying to match and exclude parenthesis in grep

In a very long line I'll summarize with: (foo),(bar,baz(word,right),(end) I want to print only: (bar,baz(word,right To match the second parenthesis, I exclude the word that follows the ...
1
vote
2answers
1k views

gvfs-mount auto password

I would like to make shortcuts for gvfs mounts (I prefer to mount from the shell). For this, it is quite necessary/convenient not to have to enter the password for the ftp:// and sftp:// connections . ...
2
votes
1answer
45 views

Why date output X-3 instead X-2 days when I am doing arithmetic operations

In one of my script, I need to find a 2 days back date from a given date. I have been using the below without any issue since long time, but it's just the first time I got a error which drilled down ...
0
votes
2answers
347 views

System too slow [closed]

My linux system is responding very slowly.I should wait to get the result of my command. How can i investigate to know the problem of his behavior?
0
votes
1answer
869 views

Socket Connection Refused (raspbian) but ports are open for connections

I'd like to establish a connection between my client and raspbian. Within my network, I can connect to my service at any time without any problems. Now I want to connect to my service via the ...
3
votes
1answer
16k views

Sort data in descending order of first column, for equal values, use second column in ascending order

Allow me to clarify: Assume I have some keywords with frequency of their usage: 12 Hi 7 Hash 7 C++ 9 Superuser 17 Stackoverflow 9 LaTeX 42 Life 9 Ubuntu What I want, is to sort this data ...
1
vote
1answer
456 views

Caching write changes on SSD to avoid HDD spin-up? ZFS, but (probably) not L2ARC

I have a home server, which - between other things - stores my documents, mail archives etc.. It uses a ZFS RAIDZ, based on spinning hdds. The server also runs an off-line IMAP service, synchronizing ...
-1
votes
1answer
121 views

How does yum work?

After I installed Fedora 20 on my new computer, I could not use 'yum install' because I just got a long string of error messages. I first posted this question on this site: "How can I get yum and ...
1
vote
0answers
409 views

How can I get a two-display Radeon HD 3470 graphics setup working with Scientific Linux 6.5?

I have Scientific Linux 6.5 (2.6.32-431.11.2.el6.x86_64) installed on a Dell OptiPlex 760 with a Radeon HD 3470 graphics card and two displays hooked up to it. I'm having difficulties setting ...
1
vote
1answer
154 views

List files, directories and executables in current directory

I have php shell and I have function that do just that (but it give me error when I call scandir($path) function because of restriction in php), so I need to use my bash shell to do the same. It can ...
1
vote
3answers
106 views

Possible problems in moving linux disks from one hardware to another

I currently have a server collocated in a datacenter. The hardware is a HP dual quad core xeon with 16 Gb DDR2 and 2 1Gb disks in raid1. I want to order another similar server to have as a ...
2
votes
5answers
268 views

Get space details without drive names

if there a way to get drives space details without drive names. E.g., the output of df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 20G 15G 4.2G 78% / ...
2
votes
1answer
391 views

Why isn't the -rt (RT-Preempt) kernel patch included by default in the mainline kernel?

According to https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO , the RT-Preempt patch converts Linux into a fully preemptible kernel. The magic is done by: Making in-kernel locking-primitives ...
1
vote
0answers
241 views

How to make `helm-execute-persistent-action` not to follow symlink original path

I want to complete by Tab when using find-file, so I bind a function helm-execute-persistent-action to Tab like this. ;; For find-file etc. (define-key helm-read-file-map (kbd "TAB") ...
1
vote
1answer
47 views

How to know function name inside helm

I just installed helm in Emacs. It works fine, but I want to change some key bindings. For example, Go to precedent level inside find-file is binding with C-l. I want to rebind it with C-w. I can't ...
1
vote
1answer
44 views

iKVM: return to graphic mode

In iKVM (Supermicro) I have switched to text console mode using <Ctrl>+<Alt>+<F1>. How I can switch again to graphic mode? (the same keyshortcut pressing again doesn't do anything). ...
1
vote
1answer
244 views

Cron task in graphic interface

I need to open one (or more) browser tab periodically and I decided to use cron. The command in the shell (bash) that correctly executes this task is chromium-browser http://mysite.com. If I type it, ...
7
votes
2answers
3k views

what does it mean by cold cache and warm cache concept?

I read a paper and it used terms “cold cache” and “warm cache”. What does it mean by cold cache and warm cache concept? I visit this but I need something more.
2
votes
1answer
686 views

xorg.conf XkbOption ignored for terminate:ctrl_alt_bksp to restart X

I want Ctrl+Alt+Bksp to restart X, so I created an xorg.conf rule: /usr/share/X11/xorg.conf.d/53-zap.conf: Section "ServerFlags" Option "DontZap" "false" EndSection Section "InputClass" ...
1
vote
0answers
301 views

Bluetooth (A2DP) Audio input device

I use my Ubuntu (13.10) laptop as an A2DP (Bluetooth audio) sink for my Android phones. The music I play on my phones is sent to the laptop and is heard through laptop speakers. Now I'm trying to ...
1
vote
1answer
359 views

/etc/profile is not read in changed user shell

I need to run custom binary when user logged in to system ,so that I have changed user's shell to /bin/binary to /etc/passwd but I have observed that /etc/profile file was not read when I logged in ...
3
votes
1answer
633 views

How to open multiple LUKS volumes with key entered in initramfs?

I have a Debian 7.4 (stable) based server configured to use an encrypted (RAID1 + LVM) root partition (/boot is un-encrypted regular partition) to which I installed dropbear SSH server so I can ...
-1
votes
2answers
242 views

Rename filename.JPG to filename .jpg recursively [duplicate]

Rename filename.JPG to filename .jpg recursively I want all the files with .JPG extension to be changed as .jpg
0
votes
0answers
270 views

OpenIndiana driving me nuts: install vlc

I've scoured the internet in search of a way to install VLC on OpenIndiana version 158a and I cannot find it. Here are the error messages I'm getting: No suitable version of required package ...
0
votes
2answers
2k views

SVN could not connect to server

Hi all i have got an issue while updating svn repository from my server. Please find the error below SVN: OPTIONS of 'http://ipaddress/svn/folder': could not connect to server (http://ipaddress) ...
9
votes
3answers
18k views

What does $# mean in shell?

What does $# mean in shell? I have code such as if [ $# -eq 0 ] then I want to understand what $# means, but Google search is very bad for searching these kinds of things.
2
votes
3answers
167 views

sed: what does “/ ” mean?

x=`src/lstat64 $TEST_DIR/$tmp.1 | sed -n -e '/ Links: /s/.*Links: *//p'` In this script. I understand this part "/s/.*Links: *//p'" the only thing I don't understand is '/ Links: ' what does "/ " ...
23
votes
5answers
5k views

How to tell which file is original if hard link is created

For example, I have a file myold_file. Then I use ln to create a hard link as mylink: ln myold_file mylink Then, even by using ls -a, I cannot tell which is the old one. Is there anyway to tell?
2
votes
1answer
69 views

Reverse pkg-config?

Suppose using the pkg-config I can find which link flags are needed add a library to my code, suppose if I need cairo libraries to add, I can find the appropriate -l flag by > pkg-config --libs ...
5
votes
1answer
2k views

How to receive meeting invitations from Office365, so that they can be parsed and added to a calendar?

How to receive iCalendar (.ics or .ical) meeting invitations from outlook.office365.com, so that they can be parsed and added to a calendar (such as remind + wyrd)? I've searched long and hard for an ...
0
votes
1answer
932 views

Samba local master browser cannot be found via broadcast

I have a Samba server (CentOS 6.5, Samba 3.6.9) that acts as a local master browser for a workgroup. I issued $ setenforce 0 $ service iptables stop to disable SELinux and get rid of the firewall. ...
5
votes
4answers
2k views

How to grep blocks? Or I should use awk/ack?

Say I have a file with information as follows: ... Entry '234238': some text some text some text some text Entry '899823': some text some text some text Entry '234238': more text more ...
3
votes
1answer
134 views

fetch clipboard text and remove hyphens

I'm running Mac OS 10.9 and I use the Text to Speech feature which allows you to use a hotkey that reads selected text in any application. I use this feature for reading out-loud PDF documents in ...
5
votes
2answers
361 views

sed replace only lines with matching groups

Currently, I have this command: sed 's/\([^C]*\)/\1AB/' It inserts "AB" before the first instance of "C" on a line. But it is also adding "AB" at the end of every line without a "C". How can I ...

15 30 50 per page