2
votes
1answer
441 views

How to modify a partitioning layout (which may involve converting a primary partition to an extended one)

I am having trouble thinking through how I can achieve my partitioning goals. Now my partitions are: sda1 (winA) (primary) sda2 (winB) (primary) sda3 (/ for linux) (primary) What I want to ...
7
votes
1answer
1k views

How do I extract all subjects of a cacertfile with the openssl command line?

Is there an openssl command to extract all certifacte subjects of a cacertfile (a file containing several certificates like /etc/ssl/certs/ca-certificates.crt)? I tried openssl x509 -in ...
4
votes
1answer
1k views

Choppy audio CD playback with mplayer

When playing audio CDs with mplayer, I always get a choppy playback. Playing audio from files, like MP3 (from any optical media, or other drives), etc. works fine. Watching video DVDs is also ok. ...
0
votes
2answers
1k views

Why do I get this error installing virtualbox-4.1 on Arch?

I'm trying to install Virtualbox 4.1 from the .run file since Pacman had the 4.0 version only. But when I try installing the file using sh filelocation/filename.run, it gives me the following error- ...
1
vote
4answers
739 views

tee and grep at the same time (shell)?

I'm trying to run a server that writes to $log (a txt file) and then find all the text in the logfile that starts with '[1]' and put it in another file. Here's my attempt. tee -a $log works along with ...
2
votes
4answers
2k views

How can I run a process in a terminal window and then hide that window?

I want to run python ~/program/proxy.py in a terminal when I boot up. And then hide this terminal window (because it is just a proxy program, and I don't want to see the debug info). So how can I get ...
10
votes
2answers
1k views

Where has the trailing newline char gone from my command substitution?

The following code best describes the situation.  Why is the last line not outputting the trailing newline char?  Each line's output is shown in the comment.  I'm using GNU bash, version 4.1.5 ...
2
votes
1answer
730 views

e4rat in Fedora 15

Has anyone tried installing e4rat and optimizing boot-time in Fedora 15? This ext4 defragmenting and optimizing utility works wonderfully in Debian. I am wondering if someone has replaced Fedora's ...
3
votes
2answers
3k views

Why does my shell script give the error: “declare: not found”?

Here is a simple example showing that using declare in a script the script will not run, while sourcing the script will: $ cat /tmp/new #! /bin/sh declare -i hello $ chmod a+rwx /tmp/new $ /tmp/new ...
3
votes
3answers
2k views

Recommended fstab settings

I made a new partition for my home drive by following this guide I have no idea what the fstab setting it suggests mean: UUID=???????? /home ext3 nodev,nosuid 0 2 I ...
4
votes
3answers
111 views

Specify the sector of manpage

When man declare in bash, I get the manpage of declarein sql. But I would like to get the manage of declare in shell. How can I do that?
10
votes
5answers
4k views

Refer to a file under the same directory of a script found in $PATH

I have a bash script file, which is put under some directory added to $PATH so that I can call the script from any directory. There is another text file under the same directory as the script. I ...
2
votes
2answers
587 views

Transparent local proxy to many proxies

In Firefox is add-on FoxyProxy, which makes possible use many proxy with filtering URLs. I need it for any browser, but in many of them it is only possible to set one proxy server. I need a ...
11
votes
3answers
6k views

How can I set all subdirectories of a directory into $PATH?

It looks like when adding a directory into $PATH, its subdirectories are not added recursively. So can I do that? Or is there a reason why this is not supported?
3
votes
1answer
660 views

Which processes should I NOT strace?

I've created a little function for strace'ing a set of the current user's processes by name: function pstrace() { local pattern="$1"; shift; prefixDashP $(pgrep -U $(whoami) $pattern) | ...
3
votes
1answer
1k views

Mounting a network drive automatically when needed and unmount it again after some time with inactivity

I have a somewhat old NAS hosting my music collection. It is not capable of running a DAAP media server so I have mounted the music folder on my Sheevaplug (a tiny headless server running Debian) ...
5
votes
1answer
746 views

stdin/stdout names in BASH?

I have a program that takes a -o log_file option, which writes extra data to log_file. Is there any way for me to redirect that to stdout? i.e. is there a "special name" for stdout that can be used ...
9
votes
3answers
2k views

CUPS remote printer entry is stopped locally

My local CUPS daemon on my laptop has an entry for a remote printer on my CUPS server. My local CUPS daemon thinks this printer is stopped, but it's not. The only interface CUPS gives me to manage ...
7
votes
1answer
564 views

Using dircolors, how do I change the color of my subversion folders

Below is a sample of my dircolors file, I want subversion folders (.svn) to be colored, but i guess the extension section only applies to file names. How do i set colors for directories with ...
4
votes
4answers
1k views

file $(ls /usr/bin/* | grep zip) command gives me errors. What's wrong?

I'm a total noob when it comes to unix/linux commands and I decided to read a book. I've reached a chapter where they try to explain how to pass the output of commands as expansions to the shell. ...
2
votes
1answer
236 views

Rename beginning of file name using specific text in the file itself

I have many files in directory (file1.txt, file2.txt, ...) Every files contains bunch of lines. One of the line is specific text thetext followed by random number just like thetext56, thetext21, etc. ...
2
votes
2answers
861 views

use iptables to allow incoming connections to some computer on port XYZ?

This is what I have: iptables -i em1 -A INPUT -j ACCEPT -p tcp --dport 9001 -v. If I want to accept incoming connections on port 9001 at this (127.0.0.1, or on the network 192.168.1.143) address, ...
2
votes
2answers
229 views

Move one file at a time based from specific number in the files

Based from this question, The HTML files date format has been changed. All of the HTML files have the date such like below: 20110730dateishere dateishere is intentionally added by me in the files, ...
1
vote
2answers
819 views

Are there programs that work for Red Hat but not Ubuntu?

And vice versa? What about other distributions too?
12
votes
2answers
2k views

Italics in Emacs on a text terminal (rxvt-unicode)

I am using Emacs running in an urxvt, and I cannot get italics to work in Emacs although the terminal supports it. Here’s my current setup: I haven’t set $TERM, so it is the default ...
2
votes
1answer
89 views

laptop running arch abruptly switches off when ripping video files

Whenever I try to transcode a movie or a large video file, my laptop always switches off abruptly some time after the transcoding has begun. I initially thought that this had something to do with my ...
7
votes
2answers
2k views

How to stop xargs from badly merging output from multiple processes?

I'm using xargs with the option --max-args=0 (alternatively -P 0). However, the output of the processes is merged into the stdout stream without regard for proper line separation. So I'll often end ...
26
votes
1answer
518 views

A shell tool to “tablify” input data

A long time ago I remember using a command that makes its input into a nicely formatted table. For example, for this input, apple 1 100 orange 20 19 pineapple 1000 87 avocado 4 30 The output will ...
7
votes
4answers
7k views

How to know if a pdf file is compressed or not and to (un)compress it

I just learned that pdf files can be compressed to reduce its disk size. I was wondering how to know if a pdf file has already been compressed? What applications/commands can be used to compress or ...
9
votes
6answers
10k views

Default applications (GNOME 3)

I'm trying to associate a custom application to a file type in GNOME 3 (FC15). In GNOME 2 one could go in the "Open with" pane of the file properties dialog and add a custom command there. The custom ...
7
votes
2answers
4k views

opening multiple URLs from a text file as different tabs in Firefox/Chrome?

How I would go about opening multiple URLs from a text file as different tabs in Firefox/Chrome? My text file is just a list of URLs, one per line: http://www.url1.com http://www.url2.com ...
7
votes
1answer
324 views

Change date “July 29th, 2011” to “20110729”

I have lots of HTML files contains date with format July 29th, 2011 I want to change date format July 29th, 2011 to 20110729, December 9th, 2010 to 20101209, etc. I think sed may works but still ...
3
votes
2answers
177 views

How to detect out-bound port from PID

I have several applications that run on random ports. How would I take the pid or the file location and find which port it is running on? Example of desired output: www-data/apache = 80 ...
4
votes
1answer
875 views

urxvt transparent cursor

I've changed my .Xdefaults for a black background, white foreground, but my cursor is now opague. I can't see the letter I'm over, and worse, I can't see my screen hardstatus. Google is just pulling ...
4
votes
1answer
1k views

Linux support for new Sony Vaio Z external graphics card?

The new Sony Vaio Z series laptop comes with a media dock that has a USB connection (Light Peak) to an external AMD Radeon graphics card. What is the support for devices like this in Linux?
19
votes
4answers
4k views

What happens to the output of a process that has been disowned and lost its terminal?

If I close the virtual terminal, where some process was started, does the output just go straight to /dev/null, or can it pollute memory somehow? Can I anyhow grab the output to continue reading it at ...
6
votes
1answer
883 views

`^M` at the end of each line of text files generated under Windows

I was wondering why if you open a textfile made in Windows notepad under unix you will find that it has ^M where there should be a new line? My understanding is that in Windows, every line is ended ...
5
votes
2answers
2k views

Utility to get binary representation from string?

Is there a simple utility like printf that'll give me a "binary representation", i.e. a string like "01010010", from an input string? It would need to support multi-byte encodings.
4
votes
1answer
360 views

Netbook Remix [EasyPeasy]: How to add a Mozilla Prism to Favorites

I'm setting up a old laptop with EasyPeasy, the only Linux distro I could get to install on it. I want to put a Prism in the favorites that will bring up a web site we use frequently. I created the ...
8
votes
2answers
412 views

How does `find . -name *foo*` work?

I thought the wildcard * in the command find . -name *foo* is replaced by bash, and yet the command works unless *foo* matches something in the current directory, then it doesn't. It's confusing.
3
votes
2answers
5k views

ACPI wakeup from keyboard/mouse via /proc/acpi/wakeup after suspend. How to find the correct device?

I'd like to wakeup my system via keyboard or mouse. This can be done via /proc/acpi/wakeup and a simple echo DEVNAME > /proc/acpi/wakeup my wakeup file looks like this Device S-state ...
3
votes
3answers
173 views

Doing actions on a list from the shell

I have a list of packages I want to deinstall. The deinstaller program pkg_deinstall doesn't take a list of packages as parameter to deinstall. How would I deinstall from the list (like a foreach ...
3
votes
1answer
750 views

Hauppauge TV Tuner Card with Motorola STB and LIRC

I have a MythTV PV VM under Xen which I've spent about 2 weeks getting up and running. Everything seems to be working fine; PCI passthrough gives the card to the guest OS (OpenSUSE 11.4), the digital ...
2
votes
3answers
545 views

Installer not booting on Intel Atom 64bit CPU [closed]

I used to have Debian 6, the 64bit version working fine on this system. I'm now trying to install Arch (64bit) and the installer won't boot. Can anybody help me troubleshoot this issue? EDIT: My ...
5
votes
1answer
3k views

SWF to PDF conversion

Are there any tools for converting SWF to PDF? I have a bunch of SWF files (to be ripped from the web) and I'd like to group them into single PDF.
3
votes
1answer
1k views

Linux compatible motherboard

Where can I find a list with Linux compatible motherboards. I want all features of the motherboard to work reasonably well with latest valilla Linux kernel (ie, clearly document that I need external ...
5
votes
2answers
4k views

wget recursive for only files that pass a regexp

I would like to use wget recursively on an ftp directory like this: ftp://ftp.ensembl.org/pub/current_fasta/ Which contains another 2 directory levels inside, the first with the species name, and ...
6
votes
1answer
132 views

Where can I find out how to write a shell script that is as portable as possible? [duplicate]

Possible Duplicate: Resources for portable shell programming I want to write a shell script that is intended for further distribution. So I'd like to write it in a way that is as portable ...
5
votes
4answers
644 views

Equivalent of forward/back buttons for unix shell (when navigating directories)?

I'd like to be able to type in terminal commands of forward/back especially if I went from a directory with a super-long name to home (and want to return back to the directory with the super-long ...
5
votes
1answer
8k views

How to create UDF images and burn them to DVD or CDROM?

Writing CDs with cdrecord and making images with genisoimage is no problem. I want to write DVDs in a similar manner, first creating an image, then burning it to disk. This is quite beneficial, since ...

15 30 50 per page