These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

3
votes
1answer
7k views

Kill TIME_WAIT sockets immediately?

Is there anyway to kill those TIME_WAIT sockets immediately ? e.g output of netstat: tcp 0 0 127.0.0.1:8080 127.0.0.1:41500 TIME_WAIT - tcp 0 ...
0
votes
2answers
3k views

How to set up firewall on Debian Squeeze

I have set up Apache, MySQL, PHP, SSH (which I use to connect to the VPS), Node.js, MongoDB and ProFTPd. Now, I want to have a firewall on the system, so that no one hacks the system. For instance, ...
0
votes
0answers
1k views

ffmpeg: problems when copying the audio

When I run this ffmpeg -i video.mp4 -codec copy video.avi I get a broken audio: a crackling like a stuck LP. The input-audio is aac When I re-encode the audio like this ffmpeg -i video.mp4 -codec:v:0 ...
5
votes
3answers
19k views

Rename files by incrementing a number within the filename

I have a directory which contains numbered image files, something like this: 01.png 02.png 03.png 03.svg 04.png 05.png 06.jpg 07.png 08.png 09.png 09.svg 10.png Sometimes there may be multiple ...
0
votes
2answers
446 views

Linux for a writer, running on a Pentium II [duplicate]

Possible Duplicate: Linux for low-end hardware and internet browsing My dad has a rather old computer that's just sitting there that I want to repurpose. Now I know could probably get a ...
3
votes
2answers
3k views

Help understanding modifiable in Vim

During a OS upgrade (Linux), Vim or some part of it has been updated as well. Now it happens that sometimes when I save a file (the file is not saved) I get this error: E21: Cannot make changes, '...
1
vote
0answers
589 views

Mon Configuration

I am trying to get the hang of the mon daemon, in linux. I was wondering, can you set up dependencies in mod, if so how. As far as I understand it the script below will run ping then http regardless. ...
1
vote
1answer
131 views

Can CONFIG_NTFS_FS be disabled completely?

I use ntfs-3g as file system type , I'm wondering if CONFIG_NTFS_FS is still necessary ? Seem you could remove that. Also does ntfs-3g have better performance than kernel ntfs driver ?
8
votes
3answers
2k views

Linux Bulk/Remote Administration

Beside our internal IT infrastructure, we've got around 500 Linux machines hosting our services for the on-line world. They are grouped in a bunch of clusters like Database A-n, Product A-n, NFS, ...
5
votes
3answers
340 views

Linux flavor for beginners

I bought a new notebook (HP Probook 4530s - i5, 4gb RAM) which has just DOS on it. The idea is to install a flavor of Linux which can serve as an alternative to Windows for my regular work (software ...
3
votes
2answers
445 views

Network issue in vsat

In my server-client architecture, I multicast 100 MB files to many clients from server via satellite link. Network traversal is through 5 hops. I have the 10Mbps ( i.e. 1250 Kilo Byte per second ) ...
10
votes
2answers
1k views

Where is best place to find sources of standard linux command line tools?

Into: I like learning by reading sources. But it's tiring of searching them across internet splited on many many different project sites. I'd love to see central browsable repo with sources of many ...
27
votes
6answers
26k views

How do I correlate /dev/sd devices to the hardware they represent?

A drive is beginning to fail and I only know the device by its /dev/sdb device file designation. What are the ways that I can use to correlate that device file to an actual hardware device to know ...
2
votes
0answers
2k views

Printing failure at a network printer in linux

I added a network printer to my network by the RedHat Enterprise workstation 6 linux GUI. It seemed that the printer setting did find the network printer. However, whenever I tried to print, the job ...
1
vote
4answers
18k views

How to find information about the RAM using the Terminal? [duplicate]

Possible Duplicate: Can I identify my RAM without shutting down linux? I need to know it to check the compatibility... I wanna know the type/size/model, etc. Can someone help? Thanks.
1
vote
2answers
7k views

How to install Gnome 3 on Debian Squeeze (Gnome 2)?

I would like to remove my Gnome 2 desktop to replace it with Gnome 3, because I do not want to update to Debian Wheezy. How can I do that?
3
votes
2answers
7k views

How can I trim the carriage return from text that is being piped in bash?

I'm using this command to get my last typed command: history | cut -c 8- | tail -n 2 | head -n 1 It works very well in bash, removing the line numbers, but there is one problem I have with it, (er, ...
9
votes
2answers
22k views

How get the best quality when converting from mp4 to avi with ffmpeg?

When I use this, the quality doesn't look bad. ffmpeg -same_quant -i video.mp4 video.avi In the ffmpeg documentation is written: "Note that this is NOT SAME QUALITY. Do not use this option unless ...
2
votes
2answers
257 views

Running script once when X is initialized

Where should I put a bash script if I want it to be executed once during X startup as part of system bootup. For example, I want to start up VPN on my machine as root user once X starts up. When X ...
1
vote
1answer
394 views

Edit the .config file when en/disabling a particular option like CONFIG_CPU_FREQ?

From here: http://www.xenomai.org/index.php/FAQs#Which_kernel_settings_should_be_avoided.3F Which kernel settings should be avoided? Note that Xenomai will warn you about known invalid ...
6
votes
1answer
3k views

WARNING: modpost: Found 10 section mismatch(es)

Is this error message something that I should be worried about? linux-y3pi:/usr/src/linux-2.6.38.8 # make modules scripts/kconfig/conf --silentoldconfig Kconfig CHK include/linux/version.h ...
5
votes
1answer
2k views

Is it possible to find times of past user sessions?

Using the who command, I can find which users are currently logged into a machine. I would like to determine which users have logged into my machine in the past, and the length of those sessions. Is ...
3
votes
2answers
357 views

GNU/Linux distribution for network virus || malware identification

I'm looking for a GNU/Linux distro that I can install in transparent setup to look for infected hosts on a LAN. I don't need to stop viruses and malwares but only identify them and the host where they ...
1
vote
2answers
780 views

Where to find source code of Linux NTFS driver?

Brief description : Linux driver gives us a chance to interface with an NTFS filesystem. Thanks to this driver, we can use built-in Linux commands on an NTFS filesystem. Ex : ls, chown, chmod, cd, ...
0
votes
1answer
439 views

What is the realtime equivalent of the module r8169?

From here: http://www.xenomai.org/index.php/RTnet:Installation_%26_Testing#Testing_with_a_single_node_.28local_loopback.29 TODO: simplify the following steps. - Then you need to edit the file ...
0
votes
1answer
206 views

What's the difference between CONFIG_R8169 and CONFIG_R8169_VLAN?

.config from /usr/src/linux-2.6.38.8 contains: CONFIG_R8169=m CONFIG_R8169_VLAN=y What's the difference between CONFIG_R8169 and CONFIG_R8169_VLAN?
2
votes
1answer
617 views

Running a query without the OS cache

I want to emulate a client site who doesn't have much caching because they have so much I/O all the time. I want to run a SQL query on my machine (on my VM to be precise) with the same limitations ...
0
votes
1answer
5k views

Lightest Debian Linux Distribution : Console Only - StandAlone (not net install)

Please suggest to me the lightest Debian Linux release with console only (no GUI). Please don't suggest any net install like netinst. I need an ISO of that release which is capable to boot and install ...
1
vote
2answers
3k views

How to make a program which run from shell still live after close terminal? [duplicate]

Possible Duplicate: How do I prevent a script from terminating when the shell exits? I use gnome-terminal, and I run emacs under the terminal in the background by executing emacs &, but ...
-8
votes
1answer
325 views

What is the difference between Unix and Linux? [duplicate]

Possible Duplicate: Is Linux a Unix? i'm the very new one to this platform. So i want to know the main differences between the Unix and Linux ?
0
votes
1answer
4k views

IPtables string match

I'm trying to write iptables string match rule To block http://domain.com:8888 and https://domain.com:8888 when it matches the supplied string in the rule. And another rule to redirect the ports also ...
1
vote
1answer
571 views

Bring up alias interface on boot, when the main interface is down

In my CentOS 6.2 server, I have the following configuration for networking: The NetworkManager package wasn't installed on eth0 I have a DHCP configuration on eth0:1 alias interface I have a static ...
1
vote
1answer
167 views

Linux tools to choose suitable Cisco ASA 5500

I have a linux webhosting server which attracts DDOS attacks. I want to use Cisco ASA 5500 Series Adaptive Security Appliances to protect the linux server from them. I know there are many factors ...
1
vote
1answer
4k views

How to install a Debian package from internet?

I am trying to install Debian kernel sources using the following commands - sudo apt-get install linux-headers-$(uname -r) It prompts me to insert the Debian disk to continue the installation. ...
4
votes
3answers
2k views

In linux, would it be possible to run a script every day 3 minutes later than the previous day?

My first solution to this was to execute date +%Y%m%d%H%M and put that format of numbers into a file, and run the script every minute from cron. Then if the date from the file matches the date command,...
5
votes
0answers
419 views

Pulseaudio/X permission other user/SSH

My user user1 is running a graphical X session with pulse configured per-user. I need to run a graphical program that uses audio with user2. If I do su user2; program program doesn't start and I ...
3
votes
1answer
859 views

Is it necessary to enable CONFIG_USB_OHCI_HCD , when there's only USB 2.0 ports

Is it necessary to enable CONFIG_USB_OHCI_HCD on a system that has USB 2.0 port only ? I'm not sure those devices present , e.g bluetooth , camera use that driver ? Bus 001 Device 001: ID 1d6b:0002 ...
4
votes
5answers
5k views

From df device name to physical drive name (vendor / type)

Seeing the device name by df, is it somehow possible to resolve it to the physical drive name such as vendor / type. /dev/sda3 915.4G 34.9G 880.0G 4% /share/HDA_DATA /dev/sdd3 ...
3
votes
1answer
1k views

sysrq won't reboot with a keystroke, but will with echo “b” > /proc/sysrq-trigger

CentOS 6.2, 2.6.32-220.el6.x86_64 laptop. SysRQ is enabled for keyboard input, as is witnessed by: $ cat /proc/sys/kernel/sysrq 1 Common Magic SysRQ Keys are working such as alt-sysrq-h. However, ...
1
vote
0answers
162 views

Battery not detected on my embedded device on reboot

I have an ARM based embedded device with Linux Kernel 2.6.31 running on it. I have seen that while rebooting the device sometimes battery won't get detected and the device will just fail to boot. Any ...
6
votes
2answers
26k views

How to fix non-responsive Ubuntu system?

I use Ubuntu. Sometimes, the system does not have any response with mouse and keyboard. Is there any way to solve this problem except hitting the reset button on the machine?
5
votes
2answers
665 views

/etc/motd is not displayed when a named pipe?

Running Gentoo 3.4.0 Having recently heard about the /etc/motd file, i tried to have it display random cowsay fortunes. I wrote some random bash script to act as a daemon, feeding the /etc/motd as a ...
4
votes
0answers
145 views

Restricting sound control

I need to restrict users so that they cannot output sound from built-in speakers. They should plug their headphones to hear any sound. They should be able to control headphone volume level, but not ...
1
vote
3answers
1k views

How to find all disks & their size before using them?

I need to know the following information, before using the harddisk to create logical volumes or database.. Any perl modules or snippet would be of great help. how many hard disks are presented to ...
6
votes
2answers
3k views

How can I tell what memory RAM address range is being used by uboot?

I am in uboot and was wondering, how could I tell what RAM address range is being used by uboot. uboot needs memory to run so it might be using some of the RAM. I want to avoid modifying those RAM ...
1
vote
0answers
654 views

How to achieve fast user switching with multiple graphics adapters, prevent virtual terminal switch?

My boxen has two video nVidia graphics adapters which I'd like to assign to separate seats, including virtual terminals. This question most likely isn't display manager specific, but in this case I'm ...
3
votes
2answers
2k views

how to find offset of one binary file inside another?

I have two binary files. One of few hundreds kilos and other of few gigabytes. I want to know whether the whole, smaller, file is contained within the larger one and if so then what is the offset from ...
26
votes
1answer
9k views

Why doesn't Linux use the IANA Ephemeral port range?

According to Wikipedia The Internet Assigned Numbers Authority (IANA) suggests the range 49152 to 65535 for dynamic or private ports. Many Linux kernels use the port range 32768 to 61000. Even ...
5
votes
2answers
576 views

`mpirun -np N`: what if `N` is larger than my physical cores?

Say I have a 4-core workstation, what would Linux (Ubuntu) do if I execute mpirun -np 9 XXX Will 9 run immediately together, or they will run 4 after 4? I suppose that using 9 is not good, because ...
0
votes
1answer
2k views

how to make a large ISO storage on xen cloud platform (XCP) or XenServer

i've downloaded XCP 1.5 beta from http://www.xen.org/download/xcp/index_1.5.0.html. i've managed to install it too. my physical system specifications are 3.01 GHz i7 24 GB Ram 3 TB HDD now i would ...