Questions specifically about Linux but not specific to a particular distribution. If the question could apply to any Unix-like system, specify your Linux distribution in the body of your question but do not use the /linux tag.

learn more… | top users | synonyms

1
vote
1answer
277 views

What is the meaning of Scratchbox2?

Somewhere i heard the term 'Scratchbox2'. Why this is used? what is the exact meaning of this? What is the advantages over Scratchbox 1?
83
votes
2answers
15k views

Why do we use su - and not just su?

I don't understand why su - is preferred over su to login as root.
36
votes
6answers
52k views

Uploading directories with sftp?

I'm having some trouble uploading directories(which contain other directories a few levels deep) by sftp. I realize I could work around this by gzipping, but I don't see why that's necessary. Anyway, ...
3
votes
3answers
402 views

How to install fonts for X?

I would like to setup a Linux system with ScrotWM as the window manager, but I noticed that X is aware of only a few fonts. I would like to have UTF-8 fonts that support multiple languages, including ...
5
votes
1answer
856 views

EGLIBC vs GLIBC on laptops

From what I understand the primary cause of fork/branch of EGLIBC as compared to GLIBC was the problem with patches for ARM that Debian devs wanted to push upstream. I have slightly different ...
9
votes
2answers
1k views

Detailed sparse file information on Linux

I have a sparse file, in which only some blocks are allocated: ~% du -h --apparent-size example 100K example ~% du -h example 52K example I would like to know which blocks of the file are ...
4
votes
1answer
896 views

Will a “customized” initrd survive a kernel update via yum?

I have a CentOS 5.5 installation with the stock CentOS 5.5 kernel. I have modified the init script in the initrd, commenting out some unneeded modules, lowering the interval time of the "stabilized" ...
5
votes
3answers
456 views

How do I delete a file named “°” in bash

I've accidentally created a file named °. Now I'm having trouble deleting it with bash. [/opt/etc/sudoers.d] # ls -l -r--r----- 1 admin administ 21 Feb 3 23:54 010-root -rw-r--r-- 1 ...
4
votes
1answer
1k views

How does a debugger work in Linux?

How does a debugger work in Linux? How does it gets 'attached' to an already running executable or process. I understand that compiler translates code to machine language, but then how does debugger ...
6
votes
5answers
4k views

What is the difference between a Library call and a System call in Linux?

I would like to know what is the difference between a Library call and a System call in Linux. Any pointers for a good understanding of the concepts behind both will be greatly appreciated.
20
votes
1answer
29k views

How is a message queue implemented in the Linux kernel?

I would like to know how Message Queues are implemented in the Linux Kernel.
2
votes
2answers
1k views

Are any SCSI modules needed in initrd if only SATA and IDE disks are used?

I am creating a cloning script to automate a minimalistic installation of Cent OS 5.5 on about 100 workstations of various hardware and age (2-10 years). The workstations are all either IDE or SATA. ...
5
votes
1answer
1k views

How to be notified when a USB device was plugged in?

My system has to auto-mount USB devices; how can I be notified when a USB device is plugged in? Where can I read more about this subject? I would like to handle this problem via C or a shell script. ...
1
vote
1answer
591 views

Add files to an iso image and auto run a script post installation

I'd like to add a tar archive in the standard Red Hat installation CD image and untar the same at a desired location using some post install scripts. Can you kindly suggest me how to proceed? In ...
1
vote
2answers
362 views

How to specify where files are transferred to using ssh

I know how I can send files to a specific directory on a remote server using ssh, but I don't know how to specify it.
8
votes
2answers
2k views

Can I identify my RAM without shutting down linux?

I'd like to price some new RAM for our in-house VMware testing server. (It's a consumer box we use for testing our software on and running business VMs). I've forgotten what kind of RAM it has and I'd ...
14
votes
4answers
506 views

How do I learn what I can do with /proc and /sys

I'd like to know more about the advanced uses of the /proc and /sys virtual filesystems, but I don't know where to begin. Can anyone suggest any good sources to learn from? Also, since I think sys has ...
4
votes
2answers
281 views

Why is the temporary system needed to build a Linux from Scratch?

I just quickly read the Linux From Scratch book and found it very interesting. However I don't understand the role of the temporary system (Chapter 5). It is built from a working distribution, and ...
5
votes
1answer
132 views

How do I ensure that a terminal remains scrollable?

On my tty terminals (1-6), I lose text when I move away from it and back (i.e. pressing ShiftPg Up doesn't reveal any scrolled-off text). How can I recover this text?
3
votes
3answers
670 views

Prevent non-root user from formatting a partition

Few days back I mistakenly formatted a partition on my external hard drive by clicking Format from the Context menu in Computer. I want to know that how can I prevent non-root user from being able to ...
2
votes
2answers
931 views

Questions on Linux kernel internals [closed]

I was reading "Linux device drivers, 3rd edition" and faced a few kernel items I don't quite understand. Hope gurus on this forum will help me out. Does the Linux kernel internally operate with ...
8
votes
2answers
2k views

How do I debug a kernel module in which a NULL pointer appears?

I have a custom kernel module that I compiled from this patch that adds support for the logitech G19 keyboard among other G series devices. I compiled it just fine against Ubuntu's maverick kernel's ...
4
votes
1answer
351 views

Changes to input_get_keycode function in linux kernel (input/input.c)

I'm working on building a kernel module for an input device, and I noticed that in the module source, there's a couple calls to input_get_keycode(data->input_dev, scancode, &keycode); When I ...
2
votes
2answers
268 views

Perl find and replace is writing every file

Here's the test script I'm running matt@server:~ $ cat test.sh #!/bin/bash mkdir test cd test echo "has the string foo" > yes.txt echo "hasn't the string" > no.txt ls -l --time-style=full-iso ...
8
votes
5answers
3k views

How to run part of a script with reduced privileges?

I have the following problem: On every machine running Postgresql there is a special user postgres. This user has administrative access to the database server. Now I want to write a Bash script that ...
4
votes
2answers
3k views

SPEC %files attribute and Shell variables

I have a spec file which unpacks a library which is deployed at location which is exported in the shell. ie %file ${AXIS2_C}/bin/services/services.xml This fails with : error: File not found: ...
27
votes
7answers
7k views

Force directory to always be in cache

I've been testing out different methods to improve the time it takes to compile my entire c++ project. Currently it takes ~5 minutes. I experimented with distcc, ccache, and others. Recently, I ...
6
votes
6answers
25k views

Task manager keyboard shortcut in Linux?

Is there any keyboard shortcut for the "task manager" (like Alt+Ctrl+Del in windows) when my machine goes into a crashed state?
5
votes
2answers
2k views

Learn Linux System Programming by doing projects [closed]

I have only a very basic idea about linux system programming. I have not done any real projects using linux system programming. In my current company I do system admin type work, but I am more ...
2
votes
2answers
482 views

Shift+Ctrl+[Left|Right] to highlight text, then type, ignores the first two characters typed

I'm using openSuse. It was installed for me by the IT group here at work this week. I routinely use Shift+Ctrl+ some arrow key to highlight text, and I'm in the habit of simply typing in order to ...
7
votes
3answers
2k views

Once sudo su'd to root, is there a command to see my username?

I have sudo rights on a redhat box; once I've sudo su - to become root in a shell, are there any commands I can run to see what username I su'd FROM?
8
votes
3answers
3k views

xorg memory leaks

On my desktop Xorg leaks a lot of memory. I use to let this machine on for days (weeks, months ...), but about once a week I'm forced to restart xorg, because it is taking too much memory. Am I the ...
10
votes
3answers
3k views

What's causing VirtualBox OSE to hang my machine?

I'm using VirtualBox OSE and recently, when I run Ubuntu 10.10 on it, my machine tends to hang, forcing me to hard-reset it (not good). How do I start finding where the problem is? Here's the last ...
2
votes
2answers
764 views

How to upgrade mono on openSuse

I have a virtual machine running of openSuse 11.2 that has mono 2.6.4, I use this VM as a test server to test asp.net applications under Apache mod_mono. I wanted to upgrade (in the same virtual ...
1
vote
4answers
539 views

Multiple Mysql databases backup tool?

My OS is Ubuntu 10.10. I have several small sites (all on various shared hosts) and I'm thinking that it'd be probably good idea to regularly backup mysql databases from these remote shared hosts. I ...
11
votes
4answers
10k views

Use of O_DIRECT on Linux

If this question is too programmer oriented, let me know. I wonder if there are people familiar with the O_DIRECT flag for the open() system call on Linux 2.6? Linus disparages its use, however high ...
2
votes
2answers
638 views

Flash running in Chromium and FF at once, why no sound in the second browser?

I work as a student assistant Linux admin and I just packaged up Adobe's "Square" plugin to get 64bit FF running flash pretty well (first time I've seen it work this well), but there's one little ...
21
votes
6answers
8k views

How does Linux kernel compare to microkernel architectures?

I read once that one advantage of a microkernel architecture is that you can stop/start essential services like networking and filesystems, without needing to restart the whole system. But considering ...
2
votes
2answers
353 views

Windows Media Audio 9 player plugin- something for linux

I need something to play WMA radio. Do you know any way of doing this on linux?
1
vote
1answer
574 views

mount root fs to /target

I am installing crunchbang linux (#!) to my eeePC and it is unable to start the disk partitioner. I traced the problem to partman and partman-lvm that states No volume groups found. So I have ...
4
votes
1answer
2k views

LVM Mirrored Logical Volume Performance

I read that when mirroring a logical volume a log of some sort is used to keep the files in sync. You can either set it so this log is in a separate physical volume or in memory. I also read that if ...
13
votes
7answers
1k views

Ideal Hardware for GNU/Linux Laptop

What's the best way to find a laptop with hardware that is amenable to installing and running GNU/Linux? I'm looking for something that will ideally work with GPL'd drivers and/or firmware. I took a ...
82
votes
3answers
49k views

How do I read from /proc/$pid/mem under Linux?

The Linux proc(5) man page tells me that /proc/$pid/mem “can be used to access the pages of a process's memory”. But a straightforward attempt to use it only gives me $ cat /proc/$$/mem ...
0
votes
0answers
167 views

need to install mercurial [duplicate]

Possible Duplicate: How do I upgrade python on openSUSE? Hi If you look at my previous question you will find this one as same as that but as I couldn't solve my problem yet I want to ask ...
7
votes
2answers
353 views

Straightforward Linux Clustering

We have many unused PC machines and we would like to use them to set up educational lab for high performance computing applications. Which Linux distribution is the most convenient to set up and easy ...
4
votes
1answer
1k views

Do I need pata_atiixp or ata_generic kernel modules on a SATA only system?

I don't have any IDE drives and my only SATA hard drive is running in AHCI mode, but my initrd image loads the pata_atiixp module. Is it safe to disable this module? And what about the ata_generic ...
8
votes
3answers
615 views

Open Source router firmware options?

What distro's exist that are designed for routers? Please include the following link to the project page link to supported hardware list what distinguishes them, why pick this option friendly web ...
2
votes
1answer
4k views

How do I reimage OpenWRT?

How do I reimage openwrt in such a way that all my settings will be lost. I've been having some issues, and I want to ensure that it's not a lingering setting, I want this to be a fresh install.
15
votes
4answers
7k views

How to re-load all running applications from swap space into RAM?

If my desktop run out of memory and swaps a lot then I free or kill the application wasting my RAM. But, after that, all my desktop/applications have been swapped and are horribly slow, do you know a ...
2
votes
1answer
376 views

How to generate a report summary of messages that triggered a specific DSN code

I use Sendmail on CENTOS 5.x, I hope this is a simple question. =) I need to generate a report summary of messages that triggered a specific DSN code. For example: Jan 11 07:43:34 server-example ...