Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

5
votes
4answers
336 views

Is it possible to use pendrive as key for Linux system

I want to give high security for my linux box. So i planed to use my pen drive as key for my linux box. How can i do it ?
1
vote
1answer
1k views

How to reset Linux root and grub passwords?

If we forget our Linux root password, we can change it by changing grub's boot options. But in this case, we also set a grub password and forgot both passwords. How can we recover both?
3
votes
2answers
936 views

How can I simulate keyboard shortcuts in a bash alias?

For example, one of my bash aliases is this alias p='clear;ls -lt;pwd;' clear also clears the history which I don't want. I just want to clear the screen momentarily. Ctrl+L however does exactly ...
3
votes
1answer
2k views

initramfs image compression other than gzip

can the initramfs image be compressed by a method other than gzip, such as lzma?
10
votes
3answers
8k views

copy recursively except hidden directory

How do I copy recursively like cp -rf *, but excluding hidden directories (directories starting with .) and their contents?
20
votes
3answers
6k views

Why does Linux use a swap partition rather than a file?

It seems to me a swap file is more flexible.
4
votes
3answers
266 views

Randomise or shred memory of an application

Is it possible to randomise or shred memory of a particular application just after its life ends, or better, whenever it deallocates some memory? A command-line utility like this would be perfect: ...
7
votes
3answers
2k views

Is there something that will generate keyboard's click sounds?

I miss using a clicky keyboard at work. It's a fairly quiet office, so I'm stuck using a nearly silent keyboard. The upshot is that I can wear headphones. Is there something in Linux or X that can ...
1
vote
1answer
620 views

Enable running mono apps by double-clicking on the .exe file

I always wondered if running Mono apps will ever be available for Linux by just double clicking on the .exe. Now, in order to have a launcher on GNOME, the best way is to add a new bash file which ...
4
votes
2answers
328 views

Databases for embedded Linux?

I need to choose a database for an application on an embedded linux platform. Any suggestions on which databases are typically used with embedded linux? Please let me know. Regards Radha.
10
votes
1answer
1k views

Permission bits not being enforced on samba share

I have a problem where permission bits are not being enforced on a samba share using a Linux client. I have samba configured on the server to force a certain user, group and permission bits and this ...
1
vote
1answer
340 views

QLogic 42C1831 HBA drivers on RHEL 4.8? Using Kernel 2.6.x

We're trying to get a QLogic 42C1831 HBA installed on a system using RHEL 4.8. We've tried the drivers from QLogic for Linux Kernel 2.6.x (which this system is running) and are getting all sorts of ...
1
vote
1answer
363 views

How to turn off Nautilus autoplay under KDE?

Does anyone have an idea why when I insert a CD/DVD/flash nautilus opens as a default file manager under KDE instead of dolphin krusader? In my system settings krusader is set as the default manager, ...
1
vote
1answer
496 views

Unexplained Log Cruft and Possible Dropped Packets on WPA2-Personal LAN

I've been receiving a LOT of log cruft ever since I installed my Linksys Rangeplus USB WUSB100v2 (using the rt2870sta community driver from the Linux kernel) and was wondering what it all meant. Many ...
10
votes
9answers
6k views

How to flash firmware under Linux in practice?

Well, I am feeling too old for jumping through several burning hoops to upgrade several firmwares via the usual vendor-specific way: Download some DOS tools, waste some time creating a (Free-)DOS boot ...
3
votes
2answers
421 views

Straightforward system and file backup/restore for Linux?

After using an Ubuntu virtual machine for a while, I think I am ready to get a real, physical machine and use Ubuntu on it. Since I am still relatively new to the Linux world, is there a reliable ...
8
votes
3answers
4k views

How do I make my disk unmap pending unreadable sectors

I have a disk with some pending unreadable sectors, according to smartd. What would be the easiest way to make the disk remap them and stop smartd from complaining? Today, I get two of these every ...
13
votes
1answer
8k views

What does libgcc_s.so contain?

I tried running objdump on the lib to figure it out without success. Is there a way to find out what a library does?
3
votes
3answers
1k views

Is there a linux vfs tool that allows bind a directory in different location (like mount --bind) in user space?

For a user process, I want to mount a directory in other location but in user space without root privilieges. Something like mount --bind /origin /dest, but with a vfs wrapper. Like a usermode ...
0
votes
0answers
113 views

resource for understanding the kernel and drivers [duplicate]

Possible Duplicate: Linux Kernel: Good beginners' tutorial What resources are available if I wanted to develop, change and understand device drivers.
3
votes
2answers
752 views

Debian Lenny: Want Splashy to start directly after Grub2

I'm running a GNU/Linux Debian Lenny with an 2.6.26-2-686 kernel. I installed splashy for a bootsplash an updated grub to version 2. Now I want splashy to start directly after the user has selected a ...
2
votes
1answer
952 views

linux static compilation issue

I am building testdisk as static and when i run make static i am getting the following error /usr/bin/ld: cannot find -luuid collect2: ld returned 1 exit status what's the problem? ...
15
votes
3answers
5k views

How to fix Ctrl + arrows in Vim?

I am using Putty -> Suse box -> vim 7.2 combo for editing and want to remap Ctrl + arrows combo to a particular task. But for some reason, Vim ignores the shortcut and goes into insert mode and ...
6
votes
1answer
4k views

How can i know which unistd.h file is loaded?

I have several unistd.h files in my Ubuntu Linux. I've one on: /usr/include/asm/unistd.h This file has this directives: # ifdef __i386__ # include "unistd_32.h" # else # include "unistd_64.h" # ...
12
votes
2answers
3k views

games directory?

On a standard filesystem, we have: /usr/games /usr/lib/games /usr/local/games /usr/share/games /var/games /var/lib/games Is this a joke, or is there some history behind this? What is it for? Why do ...
6
votes
2answers
1k views

Invoke Syscalls from Java

Is there a way to invoke syscalls directly from Java, or is it necessary to first call a native method?
2
votes
2answers
5k views

using cross-compiled Valgrind

I have downloaded the sources from the Valgrind trunk and built it for using on an embedded Linux system(Montavista Linux) powered by an ARM926(ARMv5t architecture). Everything went well until I tried ...
6
votes
1answer
690 views

Patching Linux kernel on-line (i.e. without rebooting)

Sorry - I don't remember the exact name. I know there is mechanism to patch the kernel at runtime by loading modules without need of the reboot as long as the structures involved are not affected. It ...
3
votes
2answers
812 views

Does the Linux PreemptRT patch benefit desktop users?

Does the PREEMPT_RT patch (real-time kernel) have any benefit for regular desktop users?
2
votes
1answer
320 views

Kernel memory allocator patch

Is there any patch for Linux kernel to use different memory allocators, such as ned allocator or TLSF allocator?
10
votes
6answers
7k views

Compiling GNU/Linux with -O3 optimization

It's said that compiling GNU tools and Linux kernel with -O3 gcc optimization option will produce weird and funky bugs. Is it true? Has anyone tried it or is it just a hoax?
6
votes
2answers
792 views

Good tutorial for setting up a KVM/Xen box and advice on which would be better

I've got a dual xeon, 2GB, 75GB hd server that I'd like to turn into my dedicated virtual environment. Currently I'm using VirtualBox locally to run a mock cluster for Cassandra and Nginx/Haproxy, ...
5
votes
2answers
6k views

What is sendmail referring to here?

When I install sendmail from the debian repos, I get the following output: Disabling HOST statistics file(/var/lib/sendmail/host_status). Creating /etc/mail/sendmail.cf... Creating ...
2
votes
5answers
5k views

Bash eval array variable name

Here is my bash case: First case, this is what I want to do "aliasing" var with myvarA: myvarA="variableA" varname="A" eval varAlias=\$"myvar"$varname echo $varAlias Second case for array variable ...
22
votes
11answers
19k views

Linux replacement for Apple Keynote software?

I am trying to migrate from Mac OS X to a Linux distribution, maybe/probably Ubuntu. One of my favorite applications for the Mac was Apple Keynote, which makes amazing sideshow presentations. Is ...
13
votes
4answers
3k views

Rock-stable filesystem for large files (backups) for linux

What filesystem would be best for backups? I'm interested primary in stability (especially uncorruptability of files during hard reboots etc.) but how efficiently it handles large (>5GB) files is also ...
53
votes
15answers
5k views

How do you choose a distribution? [closed]

I'm currently looking at putting a Linux (although BSD is still an option) distribution on my old laptop. However, I'm not sure how to wade through all of my options - rolling releases versus not, ...
3
votes
1answer
3k views

What does “Empty print file” mean and how can I diagnose it?

When trying to print I get this error. What does it mean? How can I diagnose it?
3
votes
1answer
1k views

DVD drive constanly spins up/down when idle

DVD drive constantly spins up/down when idle on notebook. I cannot track what is causing it. The process of spinning up/down is quite noisy and disturbing. lsof cannot find anything that have device ...
2
votes
4answers
5k views

Linux partition table

What kind of partition table does Linux create by default? Is it msdos? Is it different depending on the Linux distribution used(I'm using Ubuntu)? Is there any command line utility I could use to ...
11
votes
1answer
9k views

How to test swap partition

I'm trying to diagnose some random segfaults on a headless server and one thing that seems curious is that they only seem to happen under memory pressure and my swap size will not go above 0. How can ...
5
votes
2answers
693 views

Resources for very low-level (board bring-up)

I've worked with a few embedded systems, but now I'd like to make my own piece of hardware and despite a pretty thorough knowledge of Linux, I have no idea how to get Linux up and running on new ...
4
votes
1answer
2k views

Preventing mounting some partition by user (gnome+udisk)

I'd like to prevent automounting one partition (known UUID etc. ) on one external harddrive. Others should be automounted. Distro is 'modern' (uses lots of beta software) and uses udisk+udev for ...
4
votes
1answer
2k views

multigateway routing for specific src port

I have two gateway to access internet, somehow I want to load balancing it, so far its working, but some connection or service need persistent gateway IP to be used, so the client should never change ...
13
votes
5answers
259 views

Good website to link to for generic linux advocacy [closed]

I would like to have a link on website, both advertising the fact that I use (GNU/)linux, and pointing the curious reader to a source to learn more information. But I'm having trouble finding the ...
5
votes
5answers
562 views

linux x.org alternative

We have so many options for window managers, shells, desktop environments, distros, and kernel architectures under Linux, but why after (maybe) 20 years do we only have X.org server (including its ...
3
votes
4answers
245 views

How do you work with old servers?

I've recently fallen into doing more work on LAMP servers, which is pretty new to me. At first it wasn't a problem migrating my preference files, but as I've grown and learned more, my preferences ...
2
votes
1answer
482 views

Is PXE in a 802.1x network for LTSP possible?

I have an LTSP server in a network that requires 802.1x authentication. Is it possible to boot the terminals through PXE without disabling the 802.1x authentication? If not, are there alternatives to ...
5
votes
1answer
3k views

How to change font-size, number of rows / columns on a terminal

I am running a Linux server (without xwindows or any kind of GUI), with a modern 22" LCD monitor. Given the huge size of my monitor, I would like to increase the number of rows and columns on my ...
32
votes
7answers
21k views

Linux Kernel: Good beginners' tutorial [closed]

I'm interested in modifying the kernel internals, applying patches, handling device drivers and modules, for my own personal fun. Is there a comprehensive resource for kernel hacking, intended for ...