4
votes
1answer
851 views

How I can get keycode and make multimedia keys usable?

I've an Asus N73S which have non-functional multimedia keys. I have "direct access" keys but also "indirect access" keys (via Fn + ...). The "Windows" key doesn't work either. These keys don't ...
2
votes
1answer
1k views

Need help converting a string from a file into a date

I'm trying to read a string from a file and then convert it into a date but for some reason it's failing. I'm actually modifying a GeekTool Geeklet that's not working at the moment. It reads a file ...
4
votes
3answers
3k views

“This is a 32 bit computer, you can't use 64 bit software on it”

anisha@linux-uitj:~> cat /etc/issue && uname -a Welcome to openSUSE 11.2 "Emerald" - Kernel \r (\l). Linux linux-uitj 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26 15:49:03 +0100 x86_64 ...
15
votes
2answers
4k views

What are the advantages of Btrfs for end users?

Btrfs has begun to gain some momentum in replacing ext4 as the default filesystem of choice for a few distributions such as Fedora Core 16. It is experimentally available in a number of other ...
3
votes
2answers
1k views

Is there a way to install Arch Linux without any installation media?

I want to install Arch Linux on my laptop machine. I have created a 20GB partition to (dev/sda5) to be used as Arch Linux root partition. I tried installing using a usb thumbdrive (I don't have a cd ...
3
votes
1answer
559 views

Keyboard input not displayed on the screen?

We use the `exceed tool to connect to our UNIX servers, but sometimes the command-line behaves erratically. When I am typing some command on the command-line, nothing happens -- nothing is displayed ...
2
votes
1answer
420 views

Disable action keys

I'm running openSUSE on HP Pavilion dm4. I have a bunch of action keys (volume up/down, brightness, wifi etc.) on my function keys. For using standard Fx keys I have to hold Fn key. The problem is ...
4
votes
3answers
868 views

clear command in Konsole

I know about the Linux clear command, but it just moves the previous output from the visible part of terminal window (KDE Konsole). I can still scroll up and see all previous text. Is there similar ...
3
votes
1answer
3k views

command line tool to set time zone

In Centos 5.x there is the text mode interface of system-config-date to set the time zone. Although that utility still exists in Centos 6 the text mode is gone. Is there anything similar in Centos 6?
4
votes
4answers
2k views

How to echo an escaped string

How can I echo an escaped string that contains $ in Bourne Shell? user@server:~$ cat test.sh #!/bin/sh echo $1 user@server:~$ ./test.sh \$sad\$test $sad$test I want it to return an escaped ...
4
votes
1answer
555 views

Efficiency of lots of inotify watches or stat calls

I am developing software that will utilize inotify to track changes on a large amount of files (tens to hundreds of thousands of files). I have come up with these ideas: one watch per file one watch ...
4
votes
1answer
848 views

Is there a tool in linux that allows multi-line regex expressions?

I'm wanting to find the results of a multi-line regular expression in linux. I tried grep, but like most linux utilities it's line based. Is there something similar that allows me to search across ...
11
votes
4answers
1k views

Accidentally executed sudo rm /* on a remote server

I accidentally executed rm /* while logged in as root in a remote Ubuntu Server and deleted pretty much all binaries and currently I can neither log in via ssh or ftp to restore the files (and hope ...
7
votes
1answer
1k views

Force X to use second video card so I can pass through first card to XEN VM?

So I am trying to get X to start on my second (PCI 02.00:00) video card and stop using the main card (PCI 1.00:00). I would like to do this because I want to pass through the PCI 1 card to a XEN HVM ...
28
votes
3answers
10k views

How can I “relink” a lot of broken symlinks?

I have a directory tree which has a bunch of symbolic links to files under /home... however, I have moved /home to /mnt/home and need a way to "relink" all of the symlinks. Does such functionality ...
2
votes
2answers
346 views

How do you set an environment variable?

Please explain how to set environment variables. I need to point an environment variable to a xml file.
2
votes
0answers
311 views

Need libca.so (Needed to install epics)

I need to install epics on my Ubuntu system, but when I try to it returns a warning saying it cannot find the dynamic library (libca.so or libCom.so). I tried to locate them, but it appears that they ...
5
votes
1answer
246 views

Xorg key clicks?

I've currently got Fedora 9 on my home PC (yes, I know its quite old - but hell I only reboot it every 6 months - nevermind upgrading!) . My only niggle is that keyboard I've got has quite a different ...
1
vote
1answer
1k views

Cannot rotate screen in Debian Squeeze

I have 2 monitors which can rotate physically. They are working fine right now as non-mirrored, dual monitors. I went to System -> Preference -> Monitors and tried to rotate the screens. As soon as I ...
3
votes
1answer
749 views

Make a failed SSH forward a fatal error

I have a script which connects to a remote host to replicate some files via SSH. I must connect to an rsync daemon listening on port 873. To accomplish this I have a ssh configuration like this. ...
1
vote
2answers
643 views

Linux user interface programming? (esp. for Python and Fortran)

What are my options for programming a GUI in Linux? I have several programs in Fortran and Python that I would like to create simple UI's for. I also plan on incorporating graphics in the form of ...
2
votes
1answer
66 views

Creating Directories: with Permissions

I need to create a directory that is RW to all users using chown. what arguments should I pass chown to get a file with those permissions? Or maybe there is an even better way to do it......
10
votes
1answer
584 views

Screen brightness reverts to max after returning from `xset dpms` display suspend

I'm running the openbox window manager and using this line in my autostart.sh to control display power management: xset dpms 0 60 0 This works nicely, causing the display to suspend after 60 ...
1
vote
1answer
5k views

How to count similar results in several columns in Libre Office Calc?

On LibreOffice Calc, I have seven columns filled with any one of the non-numerical values a, b or c. For each line, I want to count how many times the a value has been entered. How can I do that? I ...
4
votes
3answers
2k views

Read and process a string, char by char, yet allow user to simple line edit the input

I want to incrementally read a line of input from the terminal, and allow the user some basic line editing functionality; INS, DEL, RIGHT, LEFT HOME, END, BACKSPACE Each time the string is ...
5
votes
2answers
2k views

Arg list too long error while using find

I have the find command as follows: find /jobs/logs/* -prune -name '*.log' -type f -mtime +1 | while read LOGFILE do echo $LOGFILE done This is failing due to the following ...
1
vote
1answer
417 views

Regex : all greek letters with 5 unique letters (meaning that each letter only appears once)

Another one I can't seem to solve : all greek letters with 5 unique letters (meaning that each letter only appears once). my solution : egrep '(.)([^/1])([^/1/2])([^/1/2/3])([^/1/2/3/4])' greek.txt ...
3
votes
2answers
5k views

How do I make “black&white” the default?

When I print something (Firefox 5 but also other apps), the option "color" is always set to "Color (CMYK)". How do I make "monochrome" or "black & white" the default? This is a Kyocera FS-C5100DN ...
7
votes
1answer
7k views

Solaris equivalent for depth/prune?

I am trying to find some files inside a directory. By default, the find command is searching the directory which I have specified and it's sub directories. I tried to use depth/maxdepth and prune, ...
2
votes
1answer
633 views

Regex : how to verify that there are 13 greek letters with an odd number of consonants

Another regex that I can't seem to crack :( I tried with egrep '([qwrtzpsdfghjklxcvbnmy]{1})|([qwrtzpsdfghjklxcvbnmy]{3})|([qwrtzpsdfghjklxcvbnmy]{5})|([qwrtzpsdfghjklxcvbnmy]{7})' greek.txt ...
2
votes
2answers
546 views

Submit “&” to Drupal 6 form using cURL?

I'm using this code to create a node in Drupal 6: curl -b cookies.txt -d \ title="$(sed '1,/sblmtitle/d;/slpstitle/,$d' file.html)" \ -d form_build_id=form-5312da71abefb3bf1f63f1f2b7cf9105 \ ...
2
votes
2answers
2k views

Regex : match 2nd and 3rd character

I was doing some exercises on regular expressions, but I can't seem to be able to crack this one : egrep in a file where the 2nd and 3rd character are the same. I tried : egrep '^..{2}' ...
11
votes
1answer
7k views

Buffer size for capturing packets in kernel space?

Going through the man page of tcpdump, it seems kernel can drop the packets if the buffer is full. I was wondering if: that size is configurable and/or where can I see the size for my distro? From ...
1
vote
1answer
130 views

How can I display file info of a man?

I know when you are in a man page it will display the file name at the bottom inside the man. How can I do the same thing manually?
8
votes
1answer
1k views

How to run my own program without specifying its path

Let's suppose I have compiled something and I run it like so: $ /path/to/my/executable/mycmd Hello World What do I need to do to run it like $ mycmd Hello World from everywhere in my computer? ...
5
votes
3answers
3k views

sed: delete all occurrences of a string except the first one

I have a logfile with timestamps in it. Occasionally there are multiple timestamps in one line. Now I would like to remove all of the timestamps from a line but keep the first one. I can do ...
4
votes
4answers
2k views

I have an ATI Radeon HD 6300 series video card; what do I use, radeon or radeonhd driver?

I want to install the correct driver for my video card under Debian and I don't know which to install, xserver-xorg-video-radeon or xserver-xorg-video-radeonhd? I've also read some of the ...
6
votes
3answers
12k views

Correct permissions for /var/www/html?

I'm able to write changes in the home directory, but when it comes to the /var/www/html folder, it's not allowing me to make any changes or create new files or folders. I'm able to view the files in ...
3
votes
1answer
2k views

Octave package installation: “couldn't create installation directory”

I am trying to install the statistics package (1.0.10) for Octave (3.2.4), which requires the miscellaneous package. When installing the miscellaneous package (1.0.11) I receive the following error: ...
3
votes
1answer
791 views

How to change height and width of each page of a pdf

I was wondering how to change width and height of each page of a pdf? In my scanned pdf, each page has paper size too big, 31.98 × 49.20 inch. I would like to shrink the width and height to smaller ...
4
votes
2answers
165 views

mode-specific emacs keybindings

I'm trying to get emacs (23.3 on Arch Linux) to map Ctrl+F12 to the built-in "compile" function when in C-mode (actually CC-mode, which comes built-in as well). So far I've tried the following: ...
9
votes
2answers
5k views

Is there an alternative to CUPS?

When printing with Linux is there an alternative to using CUPS? After using it for a couple of weeks printing suddenly stopped working. The 'processing' light would come on and that would be the end. ...
5
votes
2answers
4k views

Powertop tunables: what does it do?

I just installed Powertop 1.98 on my laptop (T420 + FC15). There is a section called "Tunables". Half of my devices show as Bad. I see I can toggle from Bad to Good? What this section is for? What ...
8
votes
2answers
854 views

Measuring time within a script

This thread shows how to measure the time it takes to run a script. In my case, I am interested in measuring time between two points within a script. Here is an example of how I would like to use ...
1
vote
1answer
516 views

Is there a way to kick kswapd and make it swap out pages?

Even though I have set swappiness to 100 and enabled swap, nothing is being swapped out. This is probably because I don't have high memory pressure at the moment. For testing purposes though, I want ...
4
votes
1answer
1k views

Remember applications on logout from LXDE

When I start my computer I want that remember my applications opened before close the last session such as Ubuntu, and other distros do normally. Googling, I see that I can run apps when I start ...
3
votes
1answer
1k views

Endless pulseaudio error logging: failed to acquire autospawn lock

I have an issue with pulseaudio logging error messages in a loop and wonder how I can fix them: Aug 7 20:22:17 s pulseaudio[25638]: lock-autospawn.c: Cannot access autospawn lock. Aug 7 20:22:17 s ...
9
votes
1answer
6k views

Why the value of VSIZE in top is different from the value of VSZ (Virtual set size) in ps?

I know VSZ in ps is for the total address space allocated for the app and is sometimes aliased as vsize (mentioned in man page of ps on linux), but what's the definition of VSIZE in top? This top ...
2
votes
1answer
118 views

Running comprehensive speed tests on a drive

I'm wondering if anybody knows of any free packages, scripts or command line tools that can report a comprehensive speed test on a drive (e.g. generating random data, and testing how long it takes to ...
2
votes
2answers
842 views

Why won't my X Server won't start as a regular user?

X won't start on my main machine. I can start it as root, but then it only logs me in as root -- I can't use my regular user account. When I start up, it flashes a black screen, then hangs at ...

15 30 50 per page