12
votes
5answers
8k views

Adding numbers from the result of a grep

I run the following command: grep -o "[0-9] errors" verification_report_3.txt | awk '{print $1}' and I get the following result: 1 4 0 8 I'd like to add each of the numbers up to a running count ...
3
votes
1answer
815 views

Emacs cperl mode - how to use tabs for indentation instead of spaces

Is there a way to make cperl mode in emacs use all tabs for indentation instead of spaces? I've tried setting indent-tabs-mode, and cperl-tab-always-indent. Here is my .emacs file: (defalias ...
3
votes
3answers
1k views

How do I use redirection with sudo [duplicate]

Possible Duplicate: Redirecting stdout to a file you don't have write permission on Yeah I could (and probably will) just escalate to root, but I'd like to know why this doesn't work? ...
3
votes
2answers
416 views

Is there any Virus attack in Linux?

Is there any virus attack on any of the current distributions of Linux? if there is any, how was it solved? have they used any anti virus programs which are available now?
0
votes
2answers
452 views

How to make Python scripts usable on Windows? [closed]

I have some Python scripts in Linux. How can I make those scripts so that windows user can use and execute them?
6
votes
2answers
525 views

Meaning of “rc5” in “linux kernel 2.6.37-rc5”

When I visited the kernel.org website to download the latest Linux kernel, I noticed a package named 2.6.37-rc5 in the repository. What is the meaning of the "rc5" at the end?
1
vote
1answer
919 views

Control bandwidth with iptables

How can I control bandwidth in RHEL 5 using iptables?
1
vote
1answer
968 views

What is the difference between Context output format and Unicode output format while taking diff?

What is the difference between Context output format and Unicode output format when taking a diff? diff -NBur dir1/ dir2/ diff -NBcr dir1/ dir2/
6
votes
1answer
501 views

Why does `man -k cron` say `vixie-cron (rpm)` for some results, and how do I read those pages?

I'm trying to find out some details regarding cron and /etc/cron.d/ on a RedHat system. Ironically, my answer is viewable within the vixie-cron-*.src.rpm for this package, but the the man pages for ...
2
votes
1answer
729 views

Getting wireless card to work in Debian with wpa_supplicant

I'm having difficulty getting a Netgear WG311 network card to work with Debian. Here is a screenshot showing ifconfig wlan0, iwconfig, network interface cards, and wpa_supplicant configs: I ...
3
votes
2answers
5k views

Is it possible to make a Microsoft LifeCam HD-5000 work under linux?

I am trying to set up a virtual machine which will act as a home security system. (If you've chatted with me in The Tavern, you may know why...) I purchased two USB webcams (Microsoft LifeCam HD-5000) ...
10
votes
4answers
11k views

Bash script testing if a command has run correctly

I am working on a bash script that I would like to work for several types of VCS. I am thinking of testing if a directory is a repo for a system by running a typical info command and checking the ...
8
votes
4answers
3k views

How do I type the degree symbol under X11 (using a default English keyboard layout)?

I'm trying to put in an email the temperature outside in degrees. On my Mac, the degree symbol (°) is Option+Shift+8. But I'm writing the email in Thunderbird on an Ubuntu 10.10 with the default US ...
3
votes
3answers
3k views

Discovering the number of running and blocked processes in Mac OS X

In Linux, I could discover the number of running and blocked processes running grep "procs_running" /proc/stat and grep "procs_blocked" /proc/stat Is there a way to do it in Mac OS X? ...
4
votes
1answer
417 views

How to use diff tool to take a diff between directories with libraries and source?

I would like to know if i can use the diff tool to take the difference between two folders which contain sources as well as libraries and executable. Right now i gave diff -Naur dir1/ dir2/ ...
3
votes
4answers
1k views

How to add SLED 11 system to windows domain

I have a small Windows domain, contains DHCT, DNS, Active Directory, CA etc. I'm trying to connect a SLED 11 to the domain according to found-by-Google-search guides but all what I've found was ...
8
votes
2answers
797 views

View Script Over SSH?

A friend, using a remote machine, SSHed to my machine and ran the following python script: while (1): ....print "hello world" (this script simply prints 'hello world' continuously). I am now ...
8
votes
5answers
11k views

How to pass the output of one command as the command-line argument to another?

So I have a script that, when I give it two addresses, will search two HTML links: echo http://maps.google.be/maps?saddr\=$1\&daddr\=$2 | sed 's/ /%/g' I want to send this to wget and then save ...
2
votes
2answers
4k views

How can I customize the look of Thunderbird's mailbox list, message list, and headers?

Mozilla Thunderbird's message list, mailbox list, and headers use a font size that is so large, I can barely see any content in the message preview pane. I'd like to reduce these to 10px, and reduce ...
5
votes
3answers
317 views

Searching a text file with a single line using regular expressions

as far as i know all unix text processing utilities are reading one line at a time and performing one action on this line. I have a huge file with a single line of text which contains several tokens ...
17
votes
2answers
1k views

What is Wayland?

I was looking for a lightweight X server, but failed to find one. Then I found out about Wayland. I says that it aims to coexist with X, but can run standalone. When I try to compile it, it needs ...
21
votes
4answers
8k views

Quoting in ssh $host $FOO and ssh $host “sudo su user -c $FOO” type constructs

I often end up issuing complex commands over ssh; these commands involve piping to awk or perl one-lines, and as a result contain single quotes and $'s. I have neither been able to figure out a hard ...
7
votes
1answer
384 views

Prevent mplayer from changing system volume

When I change the volume in mplayer it also changes for other applications. How can I configure mplayer to only change its own volume? Or is this a problem with the rest of the audio stack? I am using ...
5
votes
1answer
748 views

`p` key doesn't work in X

Today I had to force-shutdown my machine after it froze during resume from suspend. Since the reboot, I've found that the p key doesn't work normally in X. It does work normally in the console. ...
4
votes
1answer
3k views

How to ensure the bluetooth is switched off after boot up?

Please show me which magic button to press for the case where I'm tired of manually switching off the distracting bluetooth light on my laptop after every boot-up.
10
votes
4answers
4k views

Is there some sort of PDF to text -converter?

I need PDF files to text so I can search over them in bulk from commandline. Is there some converter for Ubuntu, OBSD or similar distro? Perhaps related post, OCR with ubuntu here.
4
votes
1answer
6k views

Converting syslog-ng 3.0? format to 3.2 format

Just rebooted my system to this warning :: Starting Syslog-NG [BUSY] WARNING: Configuration file format is too old, please update ...
4
votes
3answers
877 views

Drag and drop between windows in tiling i.e. minimalist WMs?

Do any any minimal WMs, like scrotwm or xmonad (OR any others), support drag and drop between windows out of the box? If so which? If not, is there a way to enable such functionality? A classic ...
7
votes
1answer
661 views

What is Fedora's equivalent of deborphan?

An installed library that has no installed packages depending on it is referred to as orphaned. One of the tools used to determine which libraries are orphaned on a Debian system is named deborphan. ...
5
votes
1answer
943 views

Batch importing .sql files

I have a bunch of .sql files in a directory that I need to import. Although I can do it manually, for scripting purposes I need to be able to apply them in bulk. How can I do that though? What ...
6
votes
1answer
389 views

Screen, remote login failure, and disappearing text

When in a screen session via ssh, if I attempt to connect to another host via scp or ssh and the auth fails, any subsequent text I type in the terminal will not be displayed, however it is being ...
28
votes
2answers
17k views

An easy bash completion tutorial? [closed]

I want to learn how to write bash completion scripts. Which tutorial would you recommend for a newbie?
4
votes
1answer
957 views

When auto-completing in tcsh, can I reference a previous argument?

I'm trying to get some efficient auto-completing going here, and have hit upon a bit of a snag. I've got a command for setting two things at once. The first is a relatively small list, but the ...
3
votes
1answer
2k views

“database disk image is malformed”

Running yum search something I get: Error: database disk image is malformed How to fix?
4
votes
3answers
862 views

How to get output from a remote shell

I have an application running on a server, started from the command line. From time to time, I need to connect to the server via SSH and get the output messages written to stdout from the application. ...
8
votes
1answer
1k views

What is the most compatible tiny X server?

I've been building LFS/BLFS for about a month now, with multiple failures and almost no successes, and I've just been informed that there exist Xorg-like window systems that are incredibly tiny, as ...
3
votes
1answer
1k views

From Ubuntu 10.10, how do you connect to a Windows 7 share without a password setup?

I have: Ubuntu 10.10 Windows 7 in virtual box (let's call this vbox) Then another Windows 7 machine (let's call this remote) in the network When I'm on vbox and browse (\ip.of.remote) I'm able to ...
3
votes
1answer
1k views

Query DHCP server leases from Perl script

I have a Windows 2003 server and need to poll the DHCP lease information from it with a perl script that is running on a Ubuntu server. Then I need to analyze & store the information in a mysql ...
4
votes
1answer
230 views

libcanberra is failing to build

I got version 0.26 from libcanberra site, and running make gives: make[2]: *** No rule to make target `README', needed by `all-am'. Stop. make[2]: Leaving directory ...
4
votes
2answers
160 views

Simple Templating for Config Files

I need to manage a growing set of similar-but-different ASCII files. ( It so happens that they're Apache VirtualHosts, but that's not particularly relevant. ) For each production website, the ...
3
votes
2answers
1k views

Rsync two file types in one command?

How to write those into one line, also without repeat the same path? rsync -a root@somewhere:/folder/remote/*.txt . rsync -a root@somewhere:/folder/remote/*.jpg .
16
votes
2answers
27k views

What is the difference between ioctl(), unlocked_ioctl() and compat_ioctl()?

Going through the linux 2.6.36 source code at lxr.linux.no, I could not find the ioctl() method in file_operations. Instead I found two new calls: unlocked_ioctl() and compat_ioctl(). What is the ...
2
votes
2answers
501 views

Problem connecting to linksys wireless using zenwalk

I just recently installed zenwalk linux on my machine, and I am having trouble connecting to my wireless router. I am using the appropriate options such as use encryption, WEP passphrase, the correct ...
9
votes
1answer
1k views

What is the difference between the various tiling modes in KWin, and how do I use them?

There are 3 tiling modes in KDE: spiral, columns and floating. What does each do and how do make them work for me? For example, spiral seems to cut my screen in half then the next half another way. Is ...
23
votes
5answers
1k views

How to strip a Linux system?

I've been building a Linux distro, and I've stripped the binaries, etc. The system won't use GCC or development tools, as it will be a Chrome kiosk, so it would greatly help if I could strip down the ...
16
votes
2answers
13k views

How to find out which package a file belongs to?

In the Debian family of OSes, dpkg --search /bin/ls gives: coreutils: /bin/ls That is, the file /bin/ls belongs to the Debian package named coreutils. (see this post if you are interested in a ...
3
votes
2answers
1k views

Why can't Rhythmbox play most of the files from my mt-daap share?

I have the Firefly Media Server (mt-daap) set up on an Ubuntu 10.10 VM, and I Ubuntu 10.10 set up on my laptop. I am running Rhythmbox and using that to play the music files off the daap share. ...
6
votes
3answers
4k views

How to generate initramfs image with busybox links?

Having been directed to initramfs by an answer to my earlier question (thanks!), I've been working on getting initramfs working. I can now boot the kernel and drop to a shell prompt, where I can ...
6
votes
1answer
528 views

How to connect two machines via wifi and no other hardware?

Without using any other hardware, I want to connect two machines that have wifi, so that I can transfer files between them, for example.
4
votes
1answer
303 views

Grub error 21 unless both sd card and live-usb are present

I'm not sure exactly how my EEE PC got to this point, but I have Backtrack (an Ubuntu-based distro) on the SD card, and a few different Ubuntu LiveUSB distros on different USB memory sticks. If both ...

15 30 50 per page