1
vote
3answers
1k views

minimal install, still want gnome!

I'm at the stage of the install of Fedora 15 where I choose what software to install. I want less so I'm going for "minimal" and "Customize now". What do I need to tick to get the machine to boot ...
10
votes
3answers
1k views

How can I lock my own account from remote ssh login with password?

I don't want to disable remote login with password altogether, but I want to make it so that my account is only accessible with key pair authentication (there are other users who wants to use ...
3
votes
1answer
114 views

Is there a way to tell which file (script, specifically) executed a command?

I'm running Slackware 13.37, and I was wondering if there was a way to tell which script executed a command. I tracked the process and its arguments, but I would like to know where the command ...
6
votes
2answers
1k views

Should I be backing up my SSH host keys?

In my automated backups, I'm not sure if I should be doing this. If the hard drive fails or if I wipe the hard disk and start over, what will be the effect of starting with a new SSH host key to my ...
3
votes
1answer
307 views

Need a little help with --remote-schema option for rdiff-backup

I'm running the following command: rdiff-backup --remote-schema '%s' 'sudo /usr/bin/rdiff-backup --server \ --restrict-read-only /'::/etc /var/backups/hosts/derp It's backing up /etc from ...
5
votes
3answers
1k views

Can't access USB HDD

I just bought a WD 1TB Caviar Blue drive, and a Bytecc HD-35SU enclosure for it. Snapped the drive in, went to plug it in on my laptop, nothing happened. I figured that probably meant I needed to ...
4
votes
3answers
295 views

sed one-liner to replace word-medial capitals

I used OCR to turn some scans into plaintext, but unfortunately the letters 'fi' which are commonly joined in some fonts, got read in as capital W's. Now I need to replace all the W's with 'fi', and ...
11
votes
2answers
3k views

How to detect whether “find” found any matches?

Is there an idiomatic means to detect whether "find" found any matches? I'm currently using COUNT=`find ... | wc -l` if [ "$COUNT" -gt 0 ]; then but this seems a little indirect to me. Also, I'd ...
8
votes
4answers
284 views

Is the `ed` editor useful for any purpose besides emergencies and batch editing?

I'm wondering if the ed editor is useful any longer for interactive editing. I know that the diff command can produce patches as ed scripts and that ed is a last resort when the baud rate is super ...
5
votes
2answers
80 views

Making a duplicate of a path in Unix

My Unix vocabulary is failing me. I have 5 billion images in /foo/live/images. For the purposes of developing a new version of the app I'd like to make /foo/dev/images into a working path without ...
40
votes
2answers
26k views

Do the parent directory's permissions matter when accessing a subdirectory?

If I have a root folder with some restrictive permission, let's say 600, and if the child folders/files have 777 permission will everybody be able to read/write/execute the child file even though the ...
1
vote
1answer
861 views

Overclocking software for Linux?

Is most overclocking done strictly at the BIOS level, or is there a way to do it from a running operating system? And if so, is there a way to do it from Linux? I'm running Ubuntu presently and am ...
-1
votes
1answer
1k views

Gifsicle on CentOS? x86_64

I am trying to install Gifsicle on my server which is CentOS x86_64. I do not know which package to use or how to install it. Can someone with experience help me out? http://www.lcdf.org/gifsicle/
2
votes
1answer
370 views

Packaging Google Chrome and Flash into a Linux Distro? [closed]

I've been working on a Linux distro based on Arch, and I want to include Google Chrome and Adobe's Flash Plugin. Can I get in trouble with Google or Adobe if I pre-install both of those pieces of ...
15
votes
4answers
5k views

Wipe last 1MB of a Hard drive

Is there an easy command that I can use to zero out the last 1MB of a hard drive? For the start of the drive I would dd if=/dev/zero of=/dev/sdx bs=1M count=1. The seek option for dd looks ...
1
vote
2answers
137 views

Problems with vuze plugins

I needed a torrent client that supports feeds and mailing me when stuff is finished. Vuze supports feeds and a plugin was supposed to do the trick about mailing me. But I have encountered great ...
5
votes
2answers
365 views

Bash, curious about echo $variable

I was hacking at a small script earlier and noticed something I can't explain. Running this command (time wget --spider http://www.google.co.uk/) 2>&1 | egrep 'real|response' gives me ...
1
vote
1answer
786 views

Find server with small ping latency (my script, but can anyone write it in e.g.: Perl?) [closed]

I want to download OpenBSD with FTP with a script, and I want to download it from a server that is near me. So I want to choose a mirror that has low "ping latency". I wrote a little script, that ...
3
votes
1answer
3k views

Edit really big files with vi

How can I edit a really big file with vi? e.g.: a 20 GByte log file. Are there any modifications for it to handle this size?
4
votes
2answers
455 views

What are the virtues of multitasking with traditional job control vs Tmux/Screen?

tmux and screen let you run different processes (e.g. vim, a bash script, mysql, psql, etc) in different virtual windows. But traditional Unix job control (using CTRL-z, fg, bg, and jobs) seem to give ...
2
votes
3answers
1k views

Building a home file server using Arch Linux

I want to create a home file server using my old desktop. I plan on using Arch Linux for this as I'm familiar with it. The desktop has 2 hard drives - the old 20gb one & a new 1TB hdd. I plan on ...
3
votes
1answer
245 views

Find creator of resource in X [duplicate]

Possible Duplicate: What process created this X11 window? Recently I've been bugged by a mysterious invisible window in X on my Ubuntu machine. It takes the form of an always-top-most ...
1
vote
2answers
4k views

df says I have 20G more disk space used than du. Why? [duplicate]

I used du to list all folders and sort by size, the results simply doesn't add up to how much disk space is used(using df). There's about 20G in discrepency, why? [root@xxx lib]# du --max-depth=1 -h ...
2
votes
2answers
458 views

Need for thread_info structure in Linux 2.6 Kernel

Prior to the Linux 2.6 kernel, struct task_struct was present at the end of the kernel stack of each process. There was no thread_info struct concept. But in Linux 2.6 kernel, instead of task_struct ...
2
votes
2answers
3k views

Using sed to replace a line with many special characters?

I am writing a rather massive script for a project and one of the issues I am running into before I can complete it is using the sed command. I am trying to find a line that has (located in ...
18
votes
6answers
17k views

Execute a specific command in a given directory without cd'ing to it?

Is there a way to execute a command in a different directory without having to cd to it? I know that I could simply cd in and cd out, but I'm just interested in the possibilities of forgoing the extra ...
0
votes
1answer
288 views

Image (having text-and-numbers) to text-file matching [:alnum:] nicely with some Unix -tool?

Suppose a photograph with text and numbers. I want to manage it in my editor with tools such as grep, standard text-processing things such as Vim's block-highlighting and also more advanced things ...
5
votes
4answers
1k views

Does optimizing for size reduce runtime memory usage as well as binary size?

Does optimizing for size with gcc -Os only reduce the binary size of a program, or does it reduce its runtime memory usage as well? I know what exactly the results are depend on the specific code, but ...
6
votes
1answer
598 views

LoggedFS configuration file syntax

What is the syntax of the LoggedFS configuration file? The official documentation only had usage instructions for the loggedfs command and a configuration file example. Ok, it's XML, but what are ...
5
votes
1answer
4k views

Debugging shell scripts: Syntax checking without executing

Is there some option I can give to just check the syntax of a [bash] shell script to check the syntax of it, but not actually execute anything nor cause any potential damage?
2
votes
4answers
6k views

How do I run uTorrent?

I just downloaded the uTorrent archive from their website and unpacked it. Inside were: docs utserver webui.zip utserver is an executable, so I'm guessing that's what I'm supposed to run, but when ...
7
votes
3answers
3k views

Is there a way to run 'screen' in read-only mode?

I'd like to be able to check progress and output of my existing screen sessions, but in a read-only manner, so as to prevent something from going wrong due to user error. Is there a way to do this?
3
votes
2answers
1k views

Virtualbox, mounting guest directory on host computer

Is there a way to mount a directory residing on my VB guest (linux) on my host (linux)? I know I can do it the other way around with the shared folders feature on Virtualbox, but is there a way to do ...
28
votes
5answers
25k views

How to determine which process is creating a file?

Given file path, how can I determine which process creates it (and/or reads/writes to it)?
14
votes
1answer
1k views

Why does the file command say that ELF binaries are for Linux 2.6.9?

Whenever I run file on an ELF binary I get this output: [jonescb@localhost ~]$ file a.out a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked ...
6
votes
2answers
3k views

dd if=/dev/random is 'randomly' bottlenecked with BIG time lags, but I have no idea why

I get wildly different real times when I run the following command. dd if=/dev/random bs=1k count=1 It doesn' happen for if=/dev/null, nor does it happen for if=/dev/urandom I've run it 500 ...
3
votes
2answers
235 views

Linux axel write error

I was downloading a 4.0 GB file using axel. When it reached 98%, it displayed "Write Error". I still have 30+ GB of free disk space. I tried to run axel again, and got "Write Error" again. Here is ...
4
votes
4answers
4k views

How to convert to HTML code?

Are there any scripts that can convert between text (e.g. <hi>) and the html entities version (&lt;hi&gt;) like this website does? Or at least a PHP file?
1
vote
1answer
2k views

How to monitor traffic when SSH tunneling?

If I run: ssh -fND localhost:6000 USERNAME@IPADDRESS -p PORTNUMBER and I set my webbrowser to use 127.0.0.1:6000 SOCKS5 proxy, is there a way for the remote SSH server to monitor my web traffic? ...
3
votes
1answer
889 views

Solution to get data from memory of a process

If I'm using Firefox and filling out a big form (with lots of text to write), and for some reason I accidentally press F5 and all my text in the forms is lost, I can use e.g. HxD on Windows to ...
2
votes
2answers
885 views

Create a new file by removing the new line character at the end of file

I have a flat file which contains the following data records between H: and T:. H:20050427 HEADER RECORD 0000000 00000 000000000 123456 00 654321 DATARECORD 0000000 00000 000000000 123456 00 654321 ...
6
votes
1answer
12k views

How to reset all iptables settings?

Are there any simpler commands to these? (e.g.: a oneliner? can one command reset iptables/netfilter settings to this?) IPTABLES="$(which iptables)" # RESET DEFAULT POLICIES $IPTABLES -P INPUT ...
3
votes
1answer
686 views

prevent XFCE from showing display settings on laptop lid close/open

When I close or open my laptop lid, xfce executes xfce4-display-settings --minimal. I want to make that stop, but how? I found nothing in the settings under /etc/xdg/xfce4 and .config/xfce4.
41
votes
2answers
20k views

Kernel inotify watch limit reached

I'm currently facing a problem on a linux box where as root I have commands returning error because inotify watch limit has been reached. # tail -f /var/log/messages [...] tail: cannot watch ...
1
vote
1answer
96 views

How do I unset a background in gnome on the command line?

So someone decided to set my gnome background as a practical joke to a rather disturbing picture. However, I don't use gnome and only log into it by accident. I need to remove the picture so when I ...
10
votes
5answers
8k views

How do I recursively grep through compressed archives?

I'm trying to find out what modules use Test::Version in cpan. So I've used minicpan to mirror it. My problem is that I need to iterate through the archives that are downloaded, and grep the files ...
2
votes
1answer
1k views

Fixing mime type on Ubuntu

I am using Ubuntu 10.04. Sometime back after an update, all files in Ubuntu started showing a mime type of text/plain. This means that double clicking on any file opened it using gvim which is really ...
4
votes
1answer
1k views

Set up an access point

I have a laptop with an Atheros card and I want to use it as a wireless access point. I need an AP with WPA/WPA2 encryption for testing purposes; I don't need any routing functionality or anything ...
36
votes
6answers
14k views

How can I detect when a monitor is plugged in or unplugged?

Is there any event that is triggered when I plug in or out an external monitor into the DisplayPort of my laptop? ACPID and UDEV don't react at all. I'm using onboard graphics on an intel chip. Here ...
3
votes
0answers
365 views

VMO Changes After Adding New RAM To AIX?

We have a server at a client site running AIX 5.3, which we just up the RAM to 32GB, from initially 16GB (if I'm not mistaken). This server is our Application server running J2EE applications on top ...

15 30 50 per page