7
votes
2answers
1k views

UTF8 math symbols & keyboard layout / input

I'd like to use UTF8 math symbols, when typing one list, another list. I've found sth called ComposeKey. Unfortunately it's not covering omega, theta, rightarrow etc. I am using KDE, I've tried ...
1
vote
2answers
1k views

How to group grep results?

I have a file that contains results grouped into categories. For example: checking results for $var here are some results1 for $var status ok here are some results2 for $var status ok here are some ...
6
votes
4answers
9k views

List symlinks in current directory?

This question talks about finding directories in a current diretory. The solution is basically: ls -d */ That's great but how can I easily list symlinks? Do I have to use something like find . ...
1
vote
1answer
357 views

What does this awk script do

echo 1 | awk '{ srand(); print int (rand()*67) }' I get a different o/p everytime I run it. However if I omit the 1 I get same o/p ..why?
0
votes
1answer
2k views

How to do “netcat” relays properly so that I have more control?

How to use the netcat to have relays? Like following I tried but not working: cd /tmp mknod backpipe p nc -l -p 7007 0<backpipe | nc 192.168.1.101 9001 | tee backpipe I want to receive data on ...
1
vote
5answers
1k views

Display output to console while grep is used

In vim I use the following command to compile a tex file: pdflatex\ \-file\-line\-error\ \-shell\-escape\ \-interaction=nonstopmode\ $*\\\|\ grep\ \-P\ ':\\d{1,5}:\ ' this works in terms of getting ...
10
votes
1answer
10k views

Difference between SNAT and Masquerade

I am confused what's the actual difference between SNAT and Masquerade? If I want to share my internet connection on local network than whether should I select SNAT or Masquerade? Give me some ...
4
votes
3answers
2k views

How to get list of computers similar to what is shown under “Network” in Windows

In Windows 7 when I click on Network I get a list of computers with the same workgroup of mine. But in Fedora when I click on Network I just get a single item Windows Network and I can't see the ...
4
votes
1answer
10k views

Where do I find messages regarding last failed linux boot?

My linux boot fails often. I have removed quiet from my boot options so I can see whats going on. Basically after showing a bunch of [pass] messages, it hangs. It does not hang every time. Now I know ...
3
votes
1answer
631 views

FLAC correctness using MD5 placed in STREAMINFO

I know from [Sources], that FLAC computes CRC and MD5. What I am afraid that flac --test only does CRC test - as stated in man flac : same as -d except no decoded file is written . How to check flac ...
3
votes
2answers
3k views

How to correct a weird bash prompt on a Debian (Squeeze) server?

I have never had to deal much with BASH setup under Debian Linux, but this time, somebody has given me a server that acts weird. When I log on as root, everything works as I am used to: I see a ...
1
vote
0answers
114 views

Pretty tail -f for log files [duplicate]

Possible Duplicate: How to have tail -f show colored output Is there a bash/awk script or utility that pretty formats and colors tail -f from log files? At the moment I am specifically ...
8
votes
10answers
6k views

linux diff tools: create list of modified files

How do I create a list of modified files programmatically using linux command line tools? I'm not interested in the difference in any particular file (delta, patch). I just want to have a list of new ...
10
votes
4answers
872 views

Standard key/value datastore for unix

I know about the key/value libraries for unix (berkeleydb, gdbm, redis... ). But before I start coding, I wonder if there is a standard tool for unix that would allow me to perform the following ...
2
votes
1answer
396 views

regarding shared memory behaviour

Noticing a strange performance behaviour while using shared memory that are file backed (i.e open user defined file and mmap() the same into process space). While doing a memcpy() into the shared ...
5
votes
1answer
149 views

Inderect references aka value of a value in awk

I'm searching for a way to solve this problem in awk. Input: X 1 Y 2 Z 3 X 4 Y 5 The output should look like this: X 5 Y 7 Z 3 I see two problems here: the first one is the indirect reference in ...
5
votes
4answers
2k views

Last failed command in bash

The $? variable holds the exit status of last run command. Is there a variable that holds last run command itself?
6
votes
4answers
464 views

Bash: test whether original script was run with `-x`

Is it possible to test whether a bash script was executed with -x? I'm writing a script which also runs some remote scripts, and I'd like to be able to do something like: USE_X="$( run_with_x ...
20
votes
2answers
3k views

SSH output isn't line buffered?

I'm running a script on a remote machine like this: ssh $host "pip install -r /path/to/requirements.txt" But the output isn't line buffered; instead of seeing one line returned at a time, all the ...
9
votes
4answers
853 views

Utility to buffer an unbounded amount of data in a pipeline?

Is there a utility that I can stick in a pipeline to decouple read and write speeds? $ producer | buf | consumer Basically, I want a utility buf that reads its input as fast as possible, storing it ...
2
votes
1answer
112 views

Gnome Activity Journal stalls

I installed gnome-activity-journal, restarted zeitgeist and launched gnome-activity-journal, and the app just loads without ever displaying anything. I tried the latest version from the PPA: ii ...
5
votes
1answer
393 views

Return value of a process and comparison of the number

I have a val.py python script that returns a negative number. import sys sys.exit(-1234) When I run this bash script, I get the value $? as return value of 46 (not -1234). Even when I tried to ...
5
votes
4answers
4k views

How can I view 10-bit H264 (hi10p) videos in GStreamer video players like Totem?

I have a 10-bit H264 video, but I can't play it in Totem or VLC. I tried recompiling libx264 with 10-bit support after removing libx264-116, but it doesn't seem to work. VLC does not use GStreamer, ...
7
votes
1answer
2k views

Reduce the space around in-line formulas in LibreOffice

When inserting a formula into LibreOffice, there is a whole lot of padding between it and other words. How can I modify the formatting of formulas to make the padding much smaller? LibreOffice 3.3.1 ...
6
votes
2answers
3k views

My .xsession and .xinitrc files are not executing

I have installed xmobar, xmonad on ubuntu 11.04. #!/bin/bash trayer --edge top --align right --SetDockType true --SetPartialStrut true \ --expand true --width 10 --transparent true --tint ...
6
votes
1answer
2k views

Custom kernel: fails to load firmware when module built-in

I'd like to have all my modules built-in, but this fails with iwlagn: iwlagn 0000:03:00.0: request for firmware file 'iwlwifi-6000-4.ucode' failed. iwlagn 0000:03:00.0: no suitable firmware found! ...
1
vote
1answer
786 views

Windows 7/Ubuntu 11 dual boot plus VM?

I have installed Ubuntu on my Windows 7 machine, and can now happily dual-boot. What I'd like to do is retain this set-up but be able to use the same Ubuntu set-up as a virtual machine within ...
1
vote
1answer
337 views

Problem after ati driver installation

I've just installed the ati radeon drivers using the latest version on the ati site. Upon rebooting this has caused gnome 3 to fall back into a safe mode. My question boils down to how do I fix this ...
7
votes
2answers
4k views

On Gentoo, how do I rebuild all packages depended on some other package?

I made mistake and changed perl non-threaded version to threaded by unmerge first, change USE flags to include ithreads and emerge perl again. Now most packages depending on perl are broken. How do I ...
5
votes
2answers
542 views

On Gentoo is there a way to find a list of installed packages which doesn't have other packages depended on them?

On Gentoo, is there a way to find a list of installed packages which doesn't have other packages depended on them (so called leaf packages)? Or, is there analog of pkg-orphan FreeBSD utility?
3
votes
2answers
3k views

Ignore escape characters when printing string in shell script

I just wrote a simple shell script to save a LaTeX expression as a PNG file. It works fine, except for the LaTeX-syntax for "next row", i.e. the double backslash \\. When for instance my input ...
5
votes
1answer
2k views

On Gentoo how do I find list of packages installed after some specific date?

I have Gentoo VM that I use to test different puppet recipes and I frequently need to remove packages to bring it to clean initial state. While I could do this by hand when there are only few packages ...
5
votes
2answers
1k views

How can I create a direct 8khz audio pipe in Ubuntu?

I'm interested in creating musical programs like these: http://www.youtube.com/watch?v=GtQdIYUtAHg&feature=player_embedded Essentially these programs just generate sequences of integers, which ...
6
votes
2answers
482 views

Why `.` is displayed by `ls`?

After reading the question When you type “ls -a”, what is the significance of “.” and “..”?, I have a similar one. Why to display .? I mean, is there any directory where cd . would not work? How is ...
6
votes
2answers
215 views

System programming: How to gather info?

According to this question, a good way to learn system programming would be to implement the existing tools. I decided to try to rewrite ls and ps. My question is how would one proceed to get ...
2
votes
2answers
819 views

Mount permissions always blocked

How do I authorise my non-root user to manually mount/unmount ALL media on my desktop. I always get denied permission. Media refers to all mountable USB devices and other partitions on my HDD as ...
1
vote
2answers
2k views

How to exit login screen and start commandline while at login screen

I am at the gnome 2 login screen but I want to exit and re-enter command-line environment. I remember there was a combination hot key one has to invoke.
24
votes
4answers
5k views

Single dashes `-` for single-character options, but double dashes `--` for words?

Where did the convention of using single dashes for letters and doubles dashes for words come from and why is continued to be used? For example if I type in ls --help, you see: -a, --all ...
2
votes
1answer
1k views

What does “trace trap” mean when reported by zsh?

I am trying to run a set UID root program in UNIX using the zsh shell. But I keep getting this message $ ./progExe zsh: trace trap ./progExe Can anyone please tell what does “zsh: trace trap” mean? ...
4
votes
0answers
159 views

Repeatably generate a read error for testing? [duplicate]

I'm trying to test the error handling in some software, in particular what happens when an error occurs reading from a file or pipe. Is there a simple way to send a certain amount of data to stdout ...
5
votes
3answers
409 views

When you type “ls -a”, what is the significance of “.” and “..”?

Whenever you type ls -a into the command prompt, you usually get all of your folders, files, and then you see that the first two entries are . and .. Just curious, but what is the significance of ...
1
vote
2answers
2k views

Filetype not detected

I'm using vim to try a template system named handlebars, and I installed a vim plugin to get some syntax-highlighting for *.handlebars. I can get coloration if I do this : :set filetype=handlebars, ...
4
votes
4answers
7k views

Make some virtual MAC address

I want to make some virtual MAC addresses for my network adapter or wireless adapter, so I can connect to network with more than one IP address from one computer or laptop. How can I do it? (I know ...
3
votes
1answer
4k views

Skype connects to the internet but all my web browsers can't on Fedora 15

I've recently taken the plunge and gone from Ubuntu to Fedora. When connected to my wireless network my web browsers can't access any sites although skype works fine. I don't have the problem when ...
2
votes
2answers
4k views

How to make tree output only directories?

150 directories I can handle but 900 files is too many for a review. I've no manual entry for tree so maybe I can ask you if you know how to output only directories since files get too detailed? . ...
3
votes
2answers
5k views

How to find out total memory resource usage with ps?

With ps command I can find out how much memory each program uses: ps -u mertnuhoglu -o pcpu,rss,pid,command Is it possible to find out the sums of each type of resource usage as well, easily?
-1
votes
1answer
513 views

How to “grep -v” private/broadcast IPv4 addresses?

time nmap -n -iR 0 -sL | cut -d " " -f 5 | egrep -v "^10.*|^172.[16\-32].*|^192.168.*|^[224\-255].*" > RANDOM-IPS.txt so the important part is: egrep -v ...
8
votes
1answer
703 views

Save sessions to file in xmonad

Is it possible to save an xmonad session to a file and reload it on the fly? I don't want to save only the last session but to be able to save different sessions to different files and reload it if I ...
4
votes
2answers
2k views

Having a bash script run at startup and display the results when I log in

I am running Ubuntu 11.04 and I want to be able to run a command like top so when I login it is running in a window. I been trying many things for a while now and can't seem to get it to work I ...
2
votes
2answers
340 views

perl regex replacing globally when global not selected

I'm using Ubuntu 11.04 and wrote a small script that searches within text files for certain "tokens" and replaces with some a prewritten snippet from a template file of the same name. The text files ...

15 30 50 per page