0
votes
1answer
454 views

How to redirect user to Android Market in Apache?

On my website I should redirect Android users to my application on Android Market. What is the optimal way to do this? My first idea was RewriteCond %{HTTP_USER_AGENT} Android [NC] ...
34
votes
10answers
66k views

How to automatically start and shut down VirtualBox machines?

I need to run a software system that is intended to be installed as an appliance on a dedicated machine. In order to save energy, I plan to run the system on a VirtualBox VM instead. The host is a ...
4
votes
1answer
398 views

Custom bash completion with directories and a fixed set

I'm trying to setup a bash completion, and have two problems For parameter one, I needed a completion for directories For parameter two, a fixed array for completion, I just don't know how to let ...
3
votes
1answer
2k views

Sound volume control does not work in Ubuntu

My sound volume control does not work when I'm logged in with my regular user, though the sound works correctly. What's weirder is that the sound control works when I'm logged in as guest. With my ...
11
votes
3answers
7k views

Simplest way to password protect a directory and its contents without having to create new files?

I would like to password protect or encrypt a directory and all the files within it (for the whole directory tree below it). I do not want to bother the whole home directory, I want a specific ...
4
votes
2answers
832 views

How does X map from kernel key scan codes to a keysym?

According to this page there is no direct mapping from udev key mappings to X, it has its own mappings. X has a (quasi) total independent way of mapping keys: X reads the kernel keycode table at ...
2
votes
1answer
413 views

Can Qt SDK be used for development on any Linux distro?

Fisrt of all I am a Windows developer guy but really like Linux. On Windows, Visual Studio provides an excellent IDE for C and C++ development. The only other IDE and toolkit I like is the Qt SDK and ...
2
votes
1answer
110 views

What commands should be run when retiring a remotely hosted server?

I have a dedicated server from a friendly host located a substantial distance away from me, so the only access to the machine is SSH. It's a month to month deal, so I don't own the hardware. I'm ...
3
votes
1answer
887 views

Access to the files beyond Wine's virtual disks

I'm totally new to Linux. I would like to know if the executables run through Wine have any access beyond the virtual drives provided by Wine (e.g. C:/, D:/)?
1
vote
1answer
1k views

How do I install user theme extension in Gnome in Fedora 16?

Upon going to the user themes extension webpage, I get the following message: This extension is incompatible with your version of GNOME. This extension supports the GNOME unstable release, 3.3.2 I ...
0
votes
1answer
1k views

Difference between Solaris and OpenSolaris?

So I want to learn using Solaris [Diskgroups, etc.]. I recently found out that there is an OS named OpenSolaris: https://en.wikipedia.org/wiki/OpenSolaris Is it a good point to learn Solaris? Or ...
0
votes
1answer
351 views

Is it possible to preload glibc?

One of my client runs a glibc-2.7 based system , and my static linked program wasn't able to start on the target machine, raising an error: ...
21
votes
2answers
667 views

When you try to terminate a process for good, which option for “kill” should you use?

I am getting a lot of mixed messages from people, and was wondering if it there really is not much of a difference in what you use. kill 'x' killall 'x' kill -9 'x' These are some options I've been ...
5
votes
3answers
1k views

Redirect traffic through vpn on an as needed basis

My problem is really simple yet it sounds complex, but I have zero to none experience with this. I have set up a box using gentoo which has its own semi-static WAN-IP and acts as router for my LAN. I ...
2
votes
1answer
182 views

Where can I find a reference to the format of the comment field (field 5) of the /etc/passwd file?

In the /etc/passwd file on my system, the "comment" field, field 5, is inconsistent in its contents. I thought that I could extract it to get the full name of the user. fullname=`awk -F: '$1 == name ...
2
votes
0answers
499 views

Redmine install on CentOS

I'm trying to install Redmine on CentOS 5 following the instructions on the Redmine wiki. I've gotten to the "Configure Apache to host the documents" step without errors. That links to another ...
2
votes
0answers
301 views

'convert' taking a long time to create a PNG thumbnail

I made a png from a pdf using ghostscript. It was converted very fast (not more than 1 sec), and has good quality. $ identify 1.png 1.png PNG 3508x2480 3508x2480+0+0 8-bit PseudoClass 2c 51KB 0.000u ...
2
votes
1answer
436 views

Should OpenVPN point to point tunnels be on different ports?

The OpenVPN cookbook shows an example for site-to-site VPN (3 sites). They configured each tunnel on a unique port: site A to site B: 1194 site A to site C: 1195 site B to site C: 1196 The author ...
23
votes
5answers
77k views

How to find application's path from command line?

For example, I have git installed on my system. But I don't remember where I installed it, so which command is fit to find this out?
11
votes
4answers
2k views

Is there a way to sync only one partition?

Is there a way to sync only one partition instead of all partitions? Something like "sync /dev/sdc1".
6
votes
1answer
21k views

How to read the local DNS cache contents?

I know that on Windows I can issue ipconfig /displaydns and I see the local DNS's cache content. How can I list the DNS's cache content in Linux? I would like to get as much as cross-distro solution ...
7
votes
3answers
2k views

How can I find what is interfering with CTRL+F?

I'm running LinuxMint12 with Gnome with Cario-Dock and I have a logitech G15 keyboard. I set up a bash script with the extra keys to take the active window, resize it, and move it to a specific ...
20
votes
2answers
20k views

How to run custom scripts upon USB device plug-in?

What is the state-of-the-art method for automatically executing custom scripts upon USB device plug-in under current Linux distributions like Debian/CentOS/Fedora? For example if you want to ...
3
votes
1answer
414 views

Chrooted drivers

If the host has the kernel drivers properly loaded, would the chrooted enviroment be able to use them (ex. wireless, power)? Does the chrooted enviroment need its Xorg drivers to be configured or ...
5
votes
1answer
249 views

suid-root doesn't have effect

A program from apue. #include "apue.h" #include <fcntl.h> int main(int argc, char *argv[]) { if(argc!=2) err_quit("usage: a.out <pathname>"); if(access(argv[1], ...
8
votes
3answers
4k views

How can I use ms-dos style wildcards with ls and mv?

I have the misfortune of coming from a MS-DOS background - but at least it makes me appreciate how much more powerful Linux is. I've been working on getting my Linux-Fu up to par, but there are a ...
1
vote
1answer
2k views

/etc/fstab is mounting rw filesystem as read-only

A partition of my internal hard drive (not the root partition) I want to mount automatically on boot. I've been using /etc/fstab to mount my external backup drive automatically read-only, so this is ...
4
votes
1answer
3k views

Why does top report the incorrect CPU usage?

I have a machine with Intel(R) Xeon(R) CPU E5520 visible as 16 logical cores (8 with HT). If I run something to eat CPU time (single threaded) top correctly reports 100% CPU usage for the process but ...
3
votes
1answer
240 views

sandbox tcpdump under OpenBSD?

From FreeBSD 9.0 tcpdump is sandboxed with Capsicum. Are there any solutions for sandboxing tcpdump under OpenBSD? Just want to secure a running: tcpdump -w output.pcap because it can be only used ...
19
votes
5answers
9k views

Add a user to the system *only if it doesn't exist*

I've been running the useradd {user} command to add users to my system, though I plan on running this in an automated environment, and it might end up being run again, even though the user already ...
4
votes
1answer
1k views

convert pdf to image [jpeg|png]

I need to convert pdf files into image files (like: png (prefer), jpeg). I used convert (from the ImageMagick package) but it takes more than 4 seconds for a 2 page pdf file with only tables ...
1
vote
1answer
1k views

TUI interfaces not displaying correctly

I have an Ubuntu 11.04 server on Amazon EC2 which cannot display TUI interfaces correctly, like on Midnight Commander or tree. I'm quite sure that this problem was not there when I set it up, and I ...
10
votes
3answers
5k views

How to get alt+right mouse to resize windows again!

I'm frustrated that this was removed/altered in gnome-shell3. There are certain key bindings for resizing and moving windows like alt+right click etc, that I'd like back. I've tried to use the system ...
4
votes
2answers
8k views

How do you install Grub2 on a USB stick? [duplicate]

How do you install Grub2 on a bootable USB stick? Somewhere I've heard that Grub2 can boot directly from ".iso" images, so I'm hoping Grub2 will make it easy to drag-and-drop several "liveCD" iso ...
41
votes
5answers
27k views

How can I send stdout to multiple commands?

There are some commands which filter or act on input, and then pass it along as output, I think usually to stdout - but some commands will just take the stdin and do whatever they do with it, and ...
3
votes
5answers
218 views

gnome-dictionary no-window option does not work

I would like to have a bash dictionary so I found gnome-dictionary. However, just typing gnome-dictionary will bring up a GUI box. In gnome-dictionary --help, and in the man file, it says a -n or ...
6
votes
3answers
1k views

Is it possible to obtain the current name of the xterm window?

This LDP Howto demonstrates how to change the title of an xterm. I know that this is also possible using the xtitle command. Before invoking a long-running action, my script uses such techniques to ...
8
votes
1answer
270 views

How can I get recentf-mode to work with emacs server/client?

I like using recentf mode in Emacs which produces a list of files I have recently opened. This list is persistent between sessions, so I can get to files I used a fairly long time ago. However, I ...
4
votes
5answers
6k views

How can I convert tab delimited data to comma delimited data?

I'm requesting a list of ec2 snapshots via amazon's ec2 command line tool: ec2-describe-snapshots -H --hide-tags > snapshots.csv The data looks something like this: SnapshotId VolumeId ...
1
vote
1answer
592 views

What's the difference between `/usr/share/emacs/site-lisp/` directory and `/usr/share/emacs23/site-lisp/` directory?

I use Emacs 23 on my system. I received a file from a colleague (who has a different Linux distro) to add to the /usr/share/emacs/site-lisp/ directory. As I worked to do this, I noticed another, ...
6
votes
3answers
3k views

When importing a key during a yum installation, where is that key stored?

I'm installing a piece of software for which I had to use a third-party repository. After adding the repository with rpm -Uvh http://[site], I installed with yum install [package]. One of the ...
4
votes
1answer
673 views

Linux support for RTP-MIDI?

I have been spoiled by the ease with which I can connect my iPad up to MIDI applications on my Macbook using the native support for midi-over-the-network (apparently RTP-MIDI) provided by the CoreMIDI ...
1
vote
0answers
920 views

“No PostgreSQL user name specified” - possible concurrency issues?

For my dissertation I'm running the same cronjob on around 300 machines, which is: 10,25,40,55 * * * * /path/to/db_script.sh 1>/dev/null This script gets some values from the system (whether ...
1
vote
3answers
2k views

System freezes when browsing internet

About a week ago my system began to freeze (deadlock, only manual shutdown with laptop button helped) from time to time. The frequency of deadlock is increasing. Today it was about 10 deadlocks with ...
1
vote
1answer
3k views

Nautilus Global Settings

I'm trying to figure out a way to set a flag on Nautilus for all/new users. It's just set always_use_browser to True. I didn't find any way to set it globally, just locally. I spent hours doing a ...
2
votes
3answers
3k views

Command-line tool to search docx files

Is there a command-line tool to text-search a docx file? I tried grep, but it doesn't work with docx even though it works fine with txt and xml files. I could convert the docx to txt first, but I'd ...
11
votes
3answers
3k views

Run a dbus program in crontab , how to know about the SESSION id?

I need to run some program within crontab , but how can the program know about dbus session id ? it's only available for programs launched by session managers.
2
votes
2answers
980 views

How to clean a home directory to install from scratch a previously installed distro?

I am using linuxmint-10-KDE. I have several partitions that I will reuse. One of them is /home. This /home/nomikos has a lot of gnome related files that I want to delete before install the new ...
3
votes
1answer
1k views

Unset Read Only Variables

Is it possible to unset or change a readonly variable in Korn Shell? I am using AIX 5.
3
votes
3answers
658 views

Escaping argument in bash script?

I'm writing a bash script wherein I want to check that one of the arguments passed to it is a valid group. I have the line if [ `grep -c -e '\b$2\b' /etc/group` -eq 0 ]; then echo "Error: $2 is ...

15 30 50 per page