5
votes
2answers
186 views

How does bash continue to work correctly when you move its working directory?

On Linux, I moved a directory to another directory using mv, and in another shell, my working directory happened to be the directory that was moved. I ran hg pull in that shell, and to my surprise, ...
2
votes
0answers
402 views

Virtual machine hangs when trying to login after beeing idle for som time

I'm using Microsoft Virtual PC 2007 to run a linux virtual machine, but after some time I can't login to it -- not from the instance on the localmachine or ssh in to the machine. Both give the same ...
2
votes
1answer
213 views

Is there any user space SDIO driver in Linux?

sdio_driver in kernel: Just 1 sdio_driver in "linux-2.6-daf54f1\drivers\mmc\card" (sdio_uart) There are some in linux-2.6-daf54f1\drivers\net\wireless. My questions are: Is there any user space ...
13
votes
3answers
4k views

Automatically rename files when they are placed in a specific directory

Is it possible to automatically rename a file when it's placed in a specific directory? For example I have a directory named "dir0".I move or copy a file named "file1" to "dir0".then "file1" should ...
3
votes
2answers
622 views

Is it possible to add more modifiers?

I'm using minimalistic WM controlled by a keyboard.. The main question is, is it possible? How? For example, Mod6. I know how to remap existing modifiers, but not how to add a new ones. I'm using Arch ...
6
votes
2answers
2k views

Is it possible to redirect a logging output of the iptables' LOG chain into a separate log file?

I don't want to mix iptables's log output with other system logs. How could I specify a dedicated log file for iptables LOG chains output?
3
votes
1answer
17k views

EXT4-fs (sdc): VFS: Can't find ext4 filesystem

In short, this is where I found the best answers to my problem with my disks: https://help.ubuntu.com/community/DataRecovery During Fedora 15 installation, I added all my 3 drives to be mounted on ...
14
votes
2answers
43k views

How can I assign the output of a command to a shell variable?

I want to assign the result of an expression to a variable and concatenate it with a string, then echo it. Here's what I've got: #!/bin/bash cd ~/Desktop; thefile= ls -t -U | grep -m 1 "Screen Shot"; ...
4
votes
3answers
336 views

Why do you need the “./” when executing programs in the current directory? [duplicate]

Possible Duplicate: Why do we use “./” to execute a file? It seems redundant and gets annoying after a while -- is there a way to change this? If not, can somebody explain the ...
1
vote
1answer
425 views

restricting pushes to selected Mercurial repositories using `ssh` forced commands and `hg-ssh`

The context of this question is the hg-ssh script. It is helpful but not critical to know something about Mercurial. This script sets up a forced command using public keys so the given public key ...
1
vote
1answer
3k views

how to use nvidia vdpau decoding for mplayer video player in linux?

How can I manage to switch on nvidia vdpau decoding on mplayer video player in Ubuntu 11.04? It doesn't work with default options. I've got the proprietary drivers installed: dpkg -l nvidia-current ...
3
votes
1answer
897 views

Bootable USB appearing as HDD not Removable Device

I have a unique problem with an older Toshiba satellite laptop that happens to be a LegacyFree laptop meaning you can't access the bios via the normal F2, Del, Esc, etc. I can only select a boot ...
2
votes
2answers
1k views

HP Laptop refused to boot Arch or Fedora CDs but boots Debian based fine

My Laptop a HP Probook 4510s refuses to boot Fedora or Arch Linux CD'S, But will boot and install Debian based stuff ie Debian, Ubuntu. If it put a fedora or arch CD in it will just stick on BIOS ...
2
votes
1answer
361 views

grub-update in GRUB Legacy (0.97)

I have reinstalled grub, because I have done an install of Windows 7. The problem is that grub doesn't see Windows. I know, that in grub2 I can run grub-update and it will find all my systems. But I ...
6
votes
2answers
3k views

Permanently remapping a key on Linux

I'm using an aluminum Apple keyboard with my Mandriva 2010.2 Linux system. I remap the Apple Command key (⌘) to control using the following .Xmodmap file: keycode 134 = Control_R remove mod4 = ...
0
votes
2answers
1k views

installing centOS as second OS on laptop

I am going to install CentOS 5.6 by bootable dvd and I arrive at the Installation Method stage that forces me to choose one item to identify CentOS packages. My CentOS iso file exists on my hard drive ...
3
votes
2answers
1k views

how to send email as well as display it out

i am trying to run a script with the output to be emailed and watched(monitored), i try using this code: this are the output: >emailmessage echo "output here" >>emailmessage ...
5
votes
1answer
7k views

insert a blank page into a PDF using ghostscript or pdftk

I have a PDF file that needs a blank page inserted into it every so often. The pattern is unpredictable, so I need a command that will allow me to fit one in wherever necessary.
11
votes
3answers
12k views

How to process/pipe TCPDUMPs output in realtime

If I want to tcpdump DNS requests by clients (on an OpenWrt 10.04 router), then I root@ROUTER:/etc# tcpdump -n -i br-lan dst port 53 2>&1 tcpdump: verbose output suppressed, use -v or ...
6
votes
1answer
3k views

How do I add Xft suppport to dwm?

I would like to use the inconsolata font in dwm's statusbar. Right now my config.h is set up like so using terminus: static const char font[] = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"; I ...
8
votes
1answer
4k views

Non-blocking bash command

Let's say I have a bash script with the following: #!/bin/sh gedit rm *.temp When I execute it using sh ./test.sh, gedit pops-up but the rm part does not run until after I close gedit. I want the ...
2
votes
2answers
946 views

Finding MFLOPS using Linux

How can I find out the Mflops on my linux computer? I can see the bogomips on my /proc/cpuinfo but I don't see any Mflops on that file: $ cat /proc/cpuinfo | grep -ie mips -ie flops bogomips : ...
19
votes
2answers
6k views

Does (should) LC_COLLATE affect character ranges?

Collation order through LC_COLLATE defines not only the sort order of individual characters, but also the meaning of character ranges. Or does it? Consider the following snippet: unset LANGUAGE ...
-1
votes
1answer
3k views

Sum of grep results

I need to output the sum of a grep results for a certain time, for now i hard coded the time grep but any help will be very much appreciated, my problem is i cant output the results on the script. If ...
9
votes
2answers
2k views

How do I hide/anonymise/defend a computer when on hostile networks?

I connect to a lot of open networks when I'm pootling around. I'm fairly careful to VPN home for anything important but that's not really my boggle. The laptop runs several services (nfs, dev http ...
5
votes
3answers
170 views

What are the different debian package repos?

I know about the ones at http://ftp.us.debian.org/debian/dists/README, but there are other ones such as: security.debian.org backports.debian.org archive.debian.org How many are there? Is there a ...
4
votes
2answers
2k views

What tools do I need to intercept and change an incoming packet on a WP2-Personal wifi hub

Which tools should I research into to intercept a plain text packet, edit it and then continue it on it's way. I am using Ubuntu 11.04 and Backtrack 5; my wifi is WPA2-person encrypted. I need to edit ...
10
votes
2answers
1k views

coreutils that are utf aware?

When I used cut today, I found out it doesn't treat a utf-8 character as a character, but 3 characters because it's 3 bytes long. This seems to be generally true for many tools. Are there versions ...
2
votes
1answer
1k views

Pinguy 11.04 wireless not working

I just installed Pinguy OS 11.04 (a derivative of Ubuntu) and I can't seem to get the wireless to work. I've tried everything on this question and a bunch of other stuff. I even reinstalled and that ...
1
vote
1answer
1k views

Movie player for “acps” format .mov video in Linux?

I have been send and asked to review a number of video clips that came with the .mov extension. The video clips open fine in Apple's Quicktime 7 and Quicktime X movie player. However, when I tried to ...
6
votes
1answer
2k views

How to set keyboard layout used to enter password on an encrypted filesystem?

After my upgrade to Debian 6 (Squeeze), the keyboard layout used to enter the password of encrypted filesystem has been changed. How can I revert it back to previous one? My understanding is that, ...
14
votes
7answers
53k views

How to list files without directories, and filter by name (ls options)

I have a directory called uploads. It contains a bunch of files, plus a few subdirectories which in turn contain files. Is there a way I can (in one step) do the following: List ONLY the files in ...
0
votes
3answers
272 views

Building from Source on CentOS 5 or newer

I've got a few applications of which I've got to build from source files in order to make it work on CentOS (the programs do not exist in the yum repos). I may be missing something, but unlike Debian ...
4
votes
1answer
3k views

Create Ubuntu USB-Installer from Debian

I have Debian Squeeze and want to create USB flash drive for install Ubuntu 11.04. I've already tried many ways: boot.img.gz + mini.iso at drive's root + syslinux = installer "couldn't found ...
3
votes
1answer
638 views

How to launch a GTK program centered on the screen?

I'm trying to launch xcalc from the command line, in my embedded Unix, and I would like it to start centered on the screen, is there a way? By the way, I'm using WindowMaker, if it makes any ...
1
vote
4answers
4k views

Libre Office change printer language type from PDF to Postscript

I have a problem printing from Libre Office (3.4.0 build 12). OS: Arch Linux, CUPS version 1.4.6 Printer: Description: Brother HL-2040 Location: Home Driver: Brother HL-2040 ...
2
votes
0answers
293 views

Debian 6: media keys in gnome-settings-daemon don't work

I am running a minimal Debian 6 x86_64 setup with pulseaudio, alsa and gnome-settings-daemon. Whenever I press a media key, gnome-settings-daemon spits the following out to stderr: ** ...
-1
votes
1answer
763 views

How to convert dante.conf (socksify) to tsocks.conf?

from dante.conf: route { from: 0.0.0.0/0 to: 10.132.165.95/16 via: 127.0.0.1 port = 1084 proxyprotocol: socks_v5 } How can I convert these rules to work under tsocks? Purpose: socksify ...
1
vote
1answer
531 views

How to protect my anonymity and authenticity in Irc?

I use irssi for playing multiplayer/programming game with random people. Some people take the game a bit too seriously so I want to protect my identity in it. I do not want that someone misuses my ...
5
votes
2answers
57k views

How do I add a user in SVN?

UPDATE #3: I think I found it. /etc/httpd/conf.d/subversion.conf <Location /repos> DAV svn SVNPath /var/www/svn/repos AuthType Basic AuthName "Subversion repos" ...
2
votes
1answer
1k views

Upgrade to Mozilla Firefox 5.0 using terminal on CentOS?

On the screenshot below is an icon squared in red. Clicking it will launch Mozilla Firefox 3.0.18. I want to upgrade Firefox to version 5.0 so that clicking the same icon should launch the new ...
4
votes
1answer
1k views

How to run streamripper and mplayer in a split-screen X terminal, via a single script

I want to run streamripper in its own X Terminal (window), then split the terminal horizontally, and then run mplayer in the lower half. This is simple enough to do manually, but getting a script to ...
2
votes
1answer
2k views

Time/Date grep for 15 mins

I need to grep a specific type of line in a specific time of the log, do you have any ideas? Here's my working script: cat *.log |grep -E '2011-06-30 (1[0-1]:[0-1][0-5]|10:16)'| grep -ach '0110 ...
4
votes
2answers
425 views

Difference between Linux Mint LXDE 11 RC(28 June) and Linux Mint 11 (released 28 May)

What is the difference between Linux Mint LXDE 11 RC(28 June) and Linux Mint Katya 11 (released 26 May)? The release notes seems exactly the same.
1
vote
1answer
204 views

What's the standard used by yum prompt “Is this ok [y/N]:”?

I can see that uppercase letter means default here. Is there a standard for this? I'd like to read the full standards.
2
votes
1answer
625 views

Preparing a Linux image in a virtual machine

I am trying to set up a system to prepare a Linux system on a virtual machine and then deploy it onto an SD card. The target system has an Atom processor, so there aren't architecture compatibility ...
2
votes
1answer
1k views

Bonding wireless and 3g on Fedora 15

I have access to the internet through either wireless or a 3G CDMA card. Is it possible to bond both connections and join the bandiwdth and have a failover?
6
votes
2answers
4k views

Can gdb debug suid root programs?

I wrote a program that calls setuid(0) and execve("/bin/bash",NULL,NULL). Then I did chown root:root a.out && chmod +s a.out When I execute ./a.out I get a root shell. However when I do gdb ...
7
votes
2answers
341 views

Can I get infected in this case if I run a live cd?

I recently got rid of a nasty trojan on Windows and want to migrate to Linux(Ubuntu). I want to run a Live CD so that I can format an SD card to put my brand new firmware on my router and format the ...
3
votes
2answers
1k views

How to find if hyperthreading is enabled on FreeBSD

Is it possible to find out if hyperthreading is enabled within the BSD kernel of a given machine without watching the boot up sequence?

15 30 50 per page