1
vote
0answers
93 views

How to make gnome 3's 'Type to search' search more places?

It seems it only returns object in /home/*my_username*, how can I make it return objects in symbolic links or another partition?
1
vote
0answers
662 views

Restore a Linux backup on virtual machine

I have made a backup of my Linux OS in a bacukp.tgz, the OS is Centos 6.4. Now I want to create a new VMWare virtual machine from it. Do I first need to install Centos from CD or ISO, and then ...
1
vote
4answers
2k views

using simple regex quantifier expression in grep

Does anyone know why ls | xargs -n 1 basename | grep -E '[0-9]{1}' does not only show occurrences of a single digit between 0-9? For example if I have: touch 1 touch 22 touch 333 touch test_file ...
0
votes
2answers
709 views

what is an application pool?

I'm reading this article: http://www.modrails.com/documentation/Architectural%20overview.html#web_app_models It talks about how Phusion Passenger extends Apache2 to act as an application server. ...
1
vote
2answers
3k views

erased md0, md1 and can't recreate them

I previously had a working RAID 1 array. I think as a result of running grub-install /dev/sdb and grub-install /dev/sdc I somehow wiped my computer of md0 and md1. I need to set them up again. When ...
2
votes
1answer
1k views

Start remote X session on local tty

I have access to two Linux boxes, both running X servers. Let's call them A and B. I do not always have physical access to machine A, though I can always access it remotely and I have admin access to ...
1
vote
1answer
430 views

Creating exact non-scaled booklets with pdfbook automatically

I've been trying to print a booklet for some non-standard page sizes, and cannot figure out how to get pdfbook to not scale to standard page size. All I want to do is just double the width of the pdf ...
8
votes
2answers
15k views

How to create nested directory in a single command? [duplicate]

Apparently, it's not possible to create a nested directory in a single command? $ sudo mkdir x/y/z mkdir: cannot create directory 'x/y/z': No such file or directory
1
vote
2answers
444 views

Should I use the VirtualBox Guest Additions from the host ISO or the Debian pool?

I'm running VirtualBox 4.2.16 on a Mac OS X 10.8.4 host. Inside a virtual machine, I'm running Debian Sid, up-to-date as of today (7/23/13). I want to install Guest Additions. Should I install them ...
2
votes
0answers
4k views

Occasional rsync error code 12 “Connection reset by peer (104)” from cron task that runs every 20 minutes

I have a script run by cron that rsync's various folders to a server in a different city to publish files to websites. In case it matters, the source server is within the corporate firewall and the ...
2
votes
5answers
2k views

Why is the first line comment of .sh file necessary? [duplicate]

I was told that the first line shebang (#!/bin/bash) is necessary in the shell script file, and the file won't run accurately without this line. But I tested some scripts. They work just fine without ...
3
votes
2answers
2k views

ATI friendly distro?

I've been researching on problems with ATI catalyst drivers and there is no fix as far as I can see. I have an ATI Radeon 7470m (HP Pavilion dm4). And I haven't managed to have a properly working ...
42
votes
1answer
183k views

Create a symbolic link relative to the current directory

I'm trying to create a symbolic link in my home directory that points to a directory on my external HDD. It works fine when I specify it like this: cd ~ ln -s /run/media/name/exhdd/Data/ Data ...
5
votes
1answer
121 views

How to tell if syslog.conf has a typo

I recently did in fact have a typo in my syslog.conf file, but I had no idea initially why I couldn't restart the daemon. In Ubuntu, all I seemed to get was a FAIL message after a rather long wait ...
1
vote
1answer
103 views

Is it safe to reformat an lvm root partition?

My system currently has a volume group containing root, swap, and home logical volumes. I would like to reinstall the operating system in the root volume and format the partition in the process. I ...
22
votes
5answers
6k views

What does `mv ./*` without specifying destination do?

I accidentally forgot to specify destination before hitting the Return key. Where does mv ./* without specifying destination move the files and directories under current directory to?
6
votes
1answer
5k views

Using regex in ls and mv

I have a directory structure like this ├── UK │   ├── BuyBand_go_UK.png │   ├── BuyBand_go_UK.svg │   ├── BuyBand_K.png │   ├── BuyBand_K.svg │   ├── BuyBago_UK.png │   ├── BuyBago_UK.svg │   ├── ...
1
vote
1answer
2k views

building Debian package fails at dh_auto_install stage

I'm trying to build a very simple debian package. I have two files, main_file and functions, they are both shell scripts, functions is sourced by main_file. There are no dependencies on any external ...
8
votes
1answer
31k views

Running Python on ChromeOS

Is it possible to run the Python interpreter on a ChromeOS machine? I've found various editors you can use, but I would like the ability to run python applications as well. I would like to purchase ...
2
votes
1answer
73 views

How to use GNU tools to extract and merge two substrings of the same string?

Suppose I get the following result after doing a grep "emailed" /home/John/logs/2013-07-10.171222-0400EDT.html:I have emailed Mark. Thanks I want to extract the date from this so that my output ...
4
votes
2answers
1k views

Where can I find some good documentation for bash printf?

man printf, info printf and printf --help are all pretty useless to me; I want an explanation of the FORMAT options. For example, I could use: printf '%s\n' foo bar and get output: foo bar From ...
6
votes
2answers
458 views

Can I get vim-stlye (hjkl) navigation for GNU info?

The layout of my netbook's keyboard means that using the arrow keys for navigation is slightly uncomfortable. Is there a way to make GNU Info pages use vim-style hjkl navigation? I know I can info ...
1
vote
1answer
509 views

What are “Allowable Drives” in Cent 6.4 Installation

Durring an install of CentOS 6.4, I see two locations where I can select "Allowable Drives" The first time I select "Allowable Drives" is to select which drives are added to my fstab. That makes ...
2
votes
2answers
776 views

How to set a variable equal to the output from a command in GRUB2?

I want to customize a little my GRUB 2 bootloader, so I'm asking how can I set a variable equal to the output from a command in GRUB2? I am interested to pass the output of date command to a ...
3
votes
2answers
667 views

How to grep recursively in order of last modified time?

grep -r does a recursive search in all files in a particular directory. However, if I want these files to be read by grep in the order of their last modified time, how do I do that?
1
vote
2answers
1k views

Minimize PHP.CGI.Argument.Injection and further hardening of the Centos 6.4 web server

We have Centos 6.4 server with a physical firewall. We keep seeing quite an number of PHP.CGI.Argument.Injection is detected by the firewall. On the server itself we have done the basic apache ...
2
votes
1answer
3k views

How to set system time from Unix timestamp

I know arbitrary timestamp and I want to set system time using it. I've tried following: date +%s -s "1371729865" date +%s -s '1371729865' date +%s -s 1371729865 but without success. The idea is, ...
1
vote
1answer
193 views

continuous testing of a C++ project on github with different Linux distros

Is there any framework to automatically try to compile a C++ project on github.com on every commit made, similar to what http://jenkins-ci.org or http://travis-ci.org do for different compilers on an ...
1
vote
1answer
116 views

How to get a click-able link for a shared file, when sending an e-mail with the file-name in it

I've got a local network with a shared drive mounted to it, all machines running Fedora (and some Windows). When we want to share a file, there is no easy way of just getting a link for the file like ...
0
votes
0answers
96 views

Korganizer can't store new items

I have a Kubuntu recent installation (13.04, raring) and all was well until three days ago, when out of the blue, Korganizer stopped storing new items that I was entering in it. When I try to enter a ...
2
votes
2answers
821 views

Solaris11: Alternative to xVM Hypervisor?

AFAIK, support for the xVM Hypervisor - basically Xen - has been dropped in Solaris 11. Is there an alternative/replacement for it? How does it compare to Xen? Obviously there is zones if you want ...
3
votes
1answer
1k views

Are time interrupts always followed by a scheduler call?

When a timer interrupt occurred the ISR is called to service the interrupt. Is it okay to assume that every timer interrupt ends with a call to the scheduler on which process should continue running ...
2
votes
0answers
275 views

How do I install PHP5.4.16 on Debian Wheezy?

I used to be able to install php-5fpm=5.4.16-1~dotdeb.1, but it seems that this package is no longer available from the latest dotdeb packages. Here are the steps I tried. Append the following two ...
5
votes
4answers
4k views

Pipe the output of a command if it is successful

INPUT_FILE=`ls -rt $MY_DIR/FILE.*.xml | head -1 | xargs basename` I wanted to execute the second command (head -1) only if the first command is successful. How do I improve this command?
2
votes
0answers
130 views

Which counter generates timer interrupts?

I did a iotop to observe the interrupts on my computer. This is the interrupt shown most often. 0 [PIC-edge time] 247 Ints/s (max: 389) I believe it's the timer interrupt, well since ...
3
votes
2answers
614 views

When vfork is called is parent process really suspended?

As much as I know when vfork is called child process uses the same address space as that of the parent and any changes made by the child process in parents variables are reflected onto parents ...
1
vote
1answer
231 views

chkconfig does not display runlevel links correctly

I am using chkconfig to manipulate runlevel links on my Debian System (LSBInitScripts). I have noticed some inconsistencies, for example According to chkconfig, the script umountiscsi.sh is turned ...
5
votes
5answers
19k views

How to read a .war file?

I am trying to view the content of a .war file. I first did set its permissions with chmod 777 then when I try to accces it using: cd /usr/local/standalone/deployments/Sample.war/WEB-INF/classes/ ...
6
votes
3answers
10k views

How can I revert a chmod on the etc directory?

I accidentally executed the following command on the etc directory: sudo chmod -R 700 /etc I know that I have done something very wrong. My terminal now prints: I have no name!@ubuntu: /$ How ...
3
votes
1answer
1k views

Setting the column position in printf

How to fix the positions of output string in shell using printf? For example ,if I want to print text TEXT-A at position starting from third position from left and one more text TEXT-B at eleventh ...
1
vote
1answer
572 views

How do I configure the driver for eth0 so I can use a kickstart file over the network?

I am trying to use a kickstart file hosted over the network to install Oracle Linux 5.8 (equivalent to RHEL 5.8 I believe). I am using the following at the boot prompt: linux ks=http://1.2.3.4/my.ks ...
1
vote
2answers
1k views

Missing iptables file on directory /etc/init.d/ (Fedora 17)

Is the iptables file in Fedora 17 moved from /etc/init.d/ to /etc/sysconfig/? I need do some patching to the iptables file to solve the firewall problem (Setting chains to policy ACCEPT: security raw ...
3
votes
2answers
1k views

WeeChat decryption fails while reading from data socket

I'm using WeeChat for quite a while on different machines now. All instances are using the same settings over and over again. When I connect, everything is fine, like this output from WeeChat, just ...
0
votes
1answer
1k views

What does high, low, negative and constant values from pidstat command mean?

I needed information on the following: Can you please tell me the inference for the following in terms of high, low, negative and constant values from pidstat command in Linux. kB_rd/s, kB_wr/s, ...
2
votes
1answer
1k views

highlighting text in shell

I have always been using below method to highlight background of text in shell . tput smso;printf " TEXT ";tput rmso; How can I achieve the same thing without using tput( I mean some way formatting ...
4
votes
1answer
2k views

SSH: “Permission denied” after changing user shell

I have an SSH server running on my Raspberry PI with ALARM (up to date). My user "gitroot" is meant to use the git-shell. However, when i set /usr/bin/git-shell as shell for gitroot in /etc/passwd, i ...
3
votes
2answers
4k views

What is a device controller, and where does it fit in between the kernel and the device?

Can someone please explain the concept of a device controller (hard disc controller, NEC PD765 compatible controller etc.). Here are some definition of key terms which might be needed for the ...
2
votes
4answers
3k views

Setting a variable whose value depends on another variable

i have a text file variables.txt where i store my variables host=/srv/www/vhosts/hosting index=$host/index.php as you see the second variables depends on the first one. i also have a ...
3
votes
2answers
16k views

Passing a variable to sed

I cannot not use a shell variable in sed in the $NUMBER form. I have this line in my shell script: cat shared.txt sed 's/whatever1/$2 ... whatever2/' > shared2.txt The result in shared2.txt ...
3
votes
3answers
7k views

CentOS use .pac file as proxy

I have to use a proxy with authentication to connect to the Internet. But I can't find any solution for this. I have modify my yum.conf, with a lot of possibilities: ...

15 30 50 per page