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

4
votes
1answer
898 views

Behavior of mmap'd memory on memory pressure

I have a large tar file (60GB) containing image files. I'm using mmap() on this entire file to read in these images, which are accessed randomly. I'm using mmap() for the following reasons: Thread ...
2
votes
4answers
5k views

Cannot execute binary file

I'm trying to install JasperReports Server 4.1 on Linux ubunto (release 11.04) and have following message: -bash: ./jasperreports-server-cp-4.1.0-linux-x64-installer.run: cannot execute binary ...
0
votes
2answers
667 views

Files uploaded as root to the web server can't be overwritten by web application

Here is my problem. I am developing a web application in PHP/MySQL and I am having some problems setting up the accounts I need to use. Development workstation: WinXP SP3, Eclipse PDT Development ...
0
votes
3answers
2k views

How to set up the DOMAIN_HOME environment variable in SUSE Linux

I am running Java NetBeans 6.9 jdk 6 on SUSE Linux (a newbie on linux) and I currently need to get the path of the weblogic domain of my Java application. I have read that I can directly access the ...
9
votes
2answers
265 views

What is not shell specific?

Under some answers, I see comments that recommend avoiding shell specific commands in answers. How do I know which commands, operators, etc exist in all shells? Is there a list of standards? man ...
3
votes
2answers
300 views

Access memory via a flat file in Linux

I understand everything is a flat file in Linux. How hard is it to dump the contents of the main memory into a flat file? Does it already exist in Linux? If yes, what's the path to the file? What are ...
-1
votes
1answer
14k views

What is sport and dport?

I want to stop internet on my system using iptables so what should I do? iptables -A INPUT -p tcp --sport 80 -j DROP or iptables -A INPUT -p tcp --dport 80 -j DROP ?
9
votes
4answers
17k views

How to use /dev/fb0 as a console from userspace, or output text to it

So I have a Palm Pre (original P100EWW) model that I enabled developer mode on, and installed a Debian Squeeze chroot. Works great. I have plans to use this for ANYTHING (bittorrent peer, web ...
6
votes
5answers
532 views

Open-source computer algebra systems for linux

Some years ago I used MuPAD as a free computer algebra system. However since 2005 it's not free anymore. So, are there any good free or even better open-source computer algebra systems for linux ...
2
votes
0answers
138 views

What is the recommended way of start and supervise daemons on Arch Linux? [duplicate]

Possible Duplicate: Ensure a process is always running At the moment I use a quick and dirty nohup ... & to start application and database servers. E.g. su - foo -c "nohup php-cgi -b ...
3
votes
1answer
1k views

Prevent a subdirectory from getting deleted / enforce a directory structure

imagine the following folder structure ../documents ../documents/templates I have two user groups: editors managers Users of both groups should be able to create new files modify any ...
1
vote
3answers
839 views

How can I reconfigure my Ubuntu PC's 2.6.37.6 kernel to shrink it to 950 KB or less?

I need to recompile the kernel with minimum configuration so that after compiling its size stay below 950 KB and it should boot correctly after compilation. I need to compile with minimum possible ...
1
vote
7answers
2k views

What's the cleanest way to schedule autoexec.bat like command in Linux?

I want to create a small script for my Linux system that would do some simple things on PC boot. The script is most likely going to be Python, but maybe I'll resort to C or shell. The problem is that ...
3
votes
3answers
1k views

Is crontab multithread?

I don't know where I can find more information about crontab, so I ask here. Crontab is it multithread? How does it work?
2
votes
1answer
398 views

Dual Screen with res wider than 1680px in Fedora 14

I want to work in dual screen mode with the monitors not mirroring, but extending each other and I want the total resolution to be 3360x1050. When I try to apply dual screen (that is uncheck "Same ...
6
votes
2answers
577 views

Setting up diskless workstation for multiple clients

I have mostly everything working except I'm not sure how to handle /var. If I set R/W on the kernel parameter, everything works as expected. append ...
3
votes
2answers
1k views

Is there a linux distro that uses Jack audio server all the time?

By this I mean a distro that does not use pulse audio at all. So when you are runing programs like miro or mumbles you do not lose audio playback becuase Jack took over the audio stack.
5
votes
2answers
801 views

Disable loading of Touchpad

I am currently trying to fix an Advent 4211 Netbook (a rebranded MSI Wind) - and whenever I use the touchpad the mouse (even an external USB mouse) stops working - when I run xev it does not register ...
1
vote
1answer
149 views

Fedora 8 recently extreamly slow with frequent freeze ups

Over the last few weeks my Fedora 8 machine has been running extremely slow. Applications like Firefox constantly freeze up and I am seeing sustained spikes in CPU activity while carrying out typical ...
4
votes
1answer
277 views

Confused about PAM configuration stanza and the roles of the control-flag parameters

I just begun studying for the RHCE. While on the topic of PAM configuration, I was a little perplexed with this stanza from /etc/pam.d/system-auth: auth required pam_env.so auth ...
4
votes
1answer
363 views

Why does activation of LVM partition with large snapshot takes long time?

After creating large snapshot (I assume it drifted about 30GB from the original) I noticed that vgchange -ay took noticeable longer (to the point I thought computer hanged). What does the activation ...
7
votes
3answers
5k views

Which Scheduling algorithm is used in Linux?

Recently in an interview I was asked about the Scheduling algorithm used by Linux Operating system. What is the algorithm used any why? Also, what algorithm is used in in real-time operating systems ...
2
votes
2answers
352 views

UDP multicasting broken after kernel update

I've got an embedded system which is running a stripped down Gentoo userland with a manually build kernel. The system acquires data from a PCI card and sends it out to an UDP multicast group. All ...
2
votes
2answers
2k views

Where to store media files on a shared linux server

I want to start using our home server as a media server for movies and shows, the question is where is the most appropriate place to store them? The most appropriate places seems to be: /var My ...
6
votes
2answers
996 views

How do I get most of my standard Linux utilities and commands on Android 3.1?

By standard, I mean just what users often get by default with one of the popular distros. For example, uname, finger, vim, tmux, etc. I have a Galaxy Tab 10.1 (Android version 3.1, already rooted) ...
2
votes
4answers
719 views

sudo without password - security? [duplicate]

Possible Duplicate: What specific vulnerabilities am I creating by disabling the sudo password? I'm involved yet again in the old argument on whether sudo without password is secure enough ...
7
votes
4answers
6k views

Solaris ptree style tool for Linux

I'm looking for the Linux tool that will print the same output as the Solaris ptree. For example: # ptree 538 538 /usr/lib/ssh/sshd 889 /usr/lib/ssh/sshd 890 /usr/lib/ssh/sshd 1498 ...
3
votes
1answer
2k views

User logged in by sftp does not show up in `w`

My server is Centos 5. I have a chroot environment set up with the following in my sshd_config Match group sftponly ForceCommand internal-sftp ChrootDirectory %h AllowTcpForwarding no ...
3
votes
2answers
155 views

Symbolic Link local .jpg file to .jpg file on the internet

Is there any way to have a symbolic link that links a local .jpg file to a .jpg file on the internet in a l/unix environment?
8
votes
2answers
1k views

How can I change the permissions in /sys to alter the state of a LED/light using `udev`?

I've got a Thinkpad and would like to use the ThinkLight (the white flash light above the screen designed to light up the keyboard) for notifications on incoming Jabber messages. It is easy to ...
5
votes
4answers
8k views

Determine the USB port to which my Mobile is connected?

I tried the following commands, but couldn't find the name of USB port $ lsusb Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 ...
1
vote
1answer
4k views

Multiple ACLs in Squid Proxy

Here is my Squid configuration file. I would like to give specific users access to specific web content, But through this configuration file, if I give permission for a specific user to access the ...
4
votes
2answers
1k views

Does -q definitely turn off wget output logging?

I currently have a shell script running on a linux server which is using wget in oder to download a remote web page. This in turn is executed by a cron job which is scheduled to run at certain times. ...
2
votes
4answers
477 views

Is a file manager in Linux a necessity or a luxury? [closed]

I agree that this is a kind of a personal issue - to use a file manager or not in Linux, but I heard that it's also a bad practice to use a file manager especially for newbies because first of all ...
4
votes
5answers
307 views

How to disable graphical shell?

I have a Linux system (Ubuntu) running in a VM, but now I want to disable the graphical shell. Where in the startup process are the graphical components launched? Is it some run-level dependent ...
1
vote
1answer
3k views

Timezone, Time setting in Linux using shellscript

I really need your help on a job of setting timezone and time on a router using Linux OS remotely from Web ( Linux OS based on Linux Kernel 2.6.30). For fulfilling this job, I use CGI and ...
3
votes
1answer
504 views

Get load average excluding niced processes

Is there a way to return the load averages, excluding any load caused by nice'd processes? We have a load balancing mechanism in place that checks the load of multiple Linux servers, and submits a ...
5
votes
1answer
394 views

Blacklisting Drivers

What does it mean to blacklist a driver in Linux/Unix? How do you go about doing it?
3
votes
1answer
161 views

Does linux have Blackbox like mechanism when system crashed in embeded linux?

In embeded linux, some times after the system crashes, we hope there is a blackbox (will record the key info before the system restart) , in linux, is there have such kind of mechanism to record the ...
4
votes
2answers
293 views

Non-interactive configuration of linux kernel

Is there any method to configure linux kernel in such way (just an example): make config CONFIG_OPTION=y && make config CONFIG_OPTION1=no CONFIG_OPTION3=64 CONFIG_OPTION4=/path/ and all the ...
3
votes
2answers
2k views

How to remove/change the message displayed when opening a terminal?

Using Ubuntu 10.10 .In GUI mode when I open up a terminal, a message is displayed at top left above the prompt: Ghost@work-Ubuntu:~$ , I would like to change it, so I would like to know in which file ...
2
votes
2answers
481 views

Chkrootkit warning about infected port 600

I run the Tiger Automatic Auditor on my Debian Linux system, and recently got emailed the following: # Running chkrootkit (/usr/sbin/chkrootkit) to perform further checks... OLD: --ALERT-- ...
4
votes
1answer
194 views

linux patches related to time measurement accuracy?

Is there a set of patches around for linux kernel that address accuracy of (system, rather than user) process time? i've heard about RTLinux, but i don't really need the actual real-time scheduling ...
4
votes
2answers
1k views

Sort behaves strangely on case sensitive sorting

Sort is sorting differently than I would expect. I have this file, call it text.txt: a 1 A 1 a 11 (the space is always one \t) I want to sort them alphabetically by the first column. ...
2
votes
0answers
493 views

Why are packets not moving forward? [closed]

I have a server with forwarding turned on. I placed an iptables LOG target in the PREROUTING, INPUT, and FORWARD chains of the mangle table. I can see the LOG messages from PREROUTING, but not INPUT ...
5
votes
2answers
1k views

What do these commands (`tar`) actually do? Is there a better way?

I am going over some documentation pertaining to creating a distro repo. However, I cannot understand exactly what these commands perform: # cd /mnt/ # ls centos-1 centos-2 centos-3 # for i in 1 2 ...
2
votes
6answers
1k views

A Live Linux Distro which is as small as possible (no X, no networking, bash) [duplicate]

I've been trying to find a Linux distribution to fit my needs but I need something that seems to be more minimal then "minimal" distributions (Eg: Microcore Linux) seem to provide. I don't need X, I ...
18
votes
3answers
31k views

Yum: How can I view variables like $releasever, $basearch & $YUM0?

I am setting up a yum repository, and need to debug some of the URLs in the yum.conf file. I need to know why is Scientific Linux trying to grab this URL, when I was expecting it to grab another URL: ...
0
votes
1answer
1k views

Convert text to image in centos from bash

I want to create an image [jpg, png, doesn't matter] from shell but I don't have convert command. The image is very simple - white background with a medium-size black text in the middle. Is it ...
2
votes
4answers
1k views

Use “grep” to match text in multiple files

I have data in multiple files. I want to find some text that matches in all files. Can I use the grep command for that? If yes then how?