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
2answers
3k views

lsof for a specific process?

There's a bzip2 process running in the background and I have no idea where it came from. It's eating up a lot of resources. Can I do a reverse lsof to see which files are being accessed by this ...
1
vote
2answers
136 views

Use Linux to backup a MSWindows network?

Is it possible to use a Linux machine to backup everything on a Windows network? I would like to backup MS databases and also drives, so if a database record needs restoring, it can be done easily, ...
0
votes
2answers
2k views

Grub MD5 Crypt algorithm

How does Grub's MD5 algorithm work? When you run grub-md5-crypt and enter the same password each time you get different results. Generally md5 is supposed to always return the same hash, so why does ...
17
votes
4answers
40k views

How to check password with Linux?

I want to check, from the linux command line, if a given cleartext password is the same of a crypted password on a /etc/shadow (I need this to authenticate web users. I'm running an embedded linux.) ...
9
votes
3answers
2k views

How can I exclude files by default with rsync?

How can I exclude files by default with rsync? Here is how my normal rsync syntax starts out: rsync --exclude ".ht*" --exclude "error_log" --exclude ".DS*" --exclude "old" ... I've seen a lot of ...
10
votes
2answers
4k views

How to restrict internet access for a particular user on the lan using iptables in Linux

Let's say there are two users on the LAN, A and B. How do I restrict user A from internet access using iptables rules and saving the rules so that after reboot, they are still effective. And suppose I ...
4
votes
4answers
258 views

Internet SSH Server Security Considerations

What steps should I take to reasonably secure my linux desktop before opening sshd to the Internet so I can connect from anywhere?
1
vote
1answer
369 views

BluRay Burner High I/O Wait State with UDF; Optimization Possible?

I've recently scaled back my home network, with one of the bigger changes being a switch-over to using a BD-RE drive for backup. With years of pictures and home video consuming about 25GB, and ...
5
votes
3answers
13k views

How to run a program on boot up?

So I have this program which I manually run as root : sudo gammu-smsd -c /etc/gammu-smsdrc -d What this does is it runs the Gammu (software to manage gsm modems) and 'daemonize' it. My problem is ...
5
votes
2answers
3k views

/dev/sda2 has gone 49710 days without being checked, check forced

Why the shell show "/dev/sda2 has gone 49710 days without being checked, check forced." at centos start and then reboot? ...... /dev/sda2: Superblock last mount time is in the future. FIXED. ...
1
vote
3answers
742 views

How to know which compiler is used to compile Python programs?

How can I know which compiler is used when I type python myapp.py in terminal?
5
votes
1answer
5k views

Configure wireless network from the command line

I know I can use ifconfig to configure my ethernet network interfaces. But can I also configure my wireless network interfaces using ifconfig. (It seems to be listed as eth1 in ifconfig output, why is ...
3
votes
1answer
1k views

How can I pass module parameters for bonding driver when compiled into kernel 2.4?

I have an old 2.4 kernel based linux device using NIC Bonding. Instead of having the NIC Bonding module build as a module and modprobe'ed into the system, its compiled directly into the kernel. I'd ...
2
votes
1answer
135 views

Rosewill RC-212 and Fedora 15

I recently bought a Rosewill RC-212 and configured it in the BIOS for RAID0. Windows 7 recognizes the array without any extra drivers and installed to it without problems. I installed Fedora 15 on a ...
14
votes
3answers
4k views

Increasing kernel memory size

I have an embedded board with 512MB of RAM running Linux 2.6.29 and UBoot bootloader. But the kernel is able to utilize only 128MB of RAM. I tried changing the value of XCODE_MEMSIZE, which I think ...
1
vote
1answer
1k views

Linux kernel 2.6.38 compilation error

When I try to compile the Linux 2.6.38 kernel on my Linux PC, I get: $ make defconfig $ make I get: ubuntu/ndiswrapper/iw_ndis.c:1966:2: error: unknown field ‘num_private’ specified in initializer ...
3
votes
1answer
2k views

How to capture from instensive pro in Ubuntu, Fedora, CentOS using HDMI interface?

I am trying to use PCI-X1 capture card (intensiy pro) using Ubuntu 10.04 (now) / 11.04 (failed) or Fedora (failed). None of them is yet capturing. I did my best but now i need some backup on this. ...
3
votes
2answers
5k views

How do I cause a watchdog reset of my embedded Linux device

Is there a command like vi > out vi | out That I could use to cause a watchdog reset of my embedded linux device?
2
votes
1answer
681 views

X -config Leaves a Blank Screen

In Slackware, when I use the command "Xorg -configure" to setup the X server, I get the following: (EE) Failed to load module "vmwgfx" (module does not exist, 0). (EE) vmware: Please ignore the above ...
5
votes
3answers
18k views

Yum Cannot Retrieve Repository CentOS 6

I just installed CentOS 6. I tried running yum update and was having trouble getting that to work, so I tried yum clean all and now my situation seems even worse than before. Based upon what I pasted ...
5
votes
1answer
3k views

Getting disk i/o statistics for single process in Linux

I need to monitor the I/O statistics of a process that writes to disk. The purpose is to avoid write rates too high for long periods. I know there's iostat tool to accomplish this task on a ...
45
votes
2answers
46k views

Difference between pts and tty

Possible Duplicate: What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'? I always see pts and tty when I use the who ...
4
votes
1answer
7k views

Moonlight in Debian

What is the preferred way to install moonlight in Debian (Testing)? I searched the repositories, but there seems to nothing relevant. Also this wiki: ...
202
votes
3answers
107k views

How do directory permissions in Linux work?

In my CMS, I noticed that directories need the executable bit (+x) set for the user to open them. Why is the execute permission required to read a directory, and how do directory permissions in Linux ...
2
votes
1answer
850 views

Equivalent to “copies=2” feature of ZFS in Linux with LVM

I have a laptop with only one HDD and is impossible add other HDD. The feature "copies=2" of ZFS is the perfect solution for to add redundancy to my /home in the laptop. I would like emulate the ...
5
votes
2answers
10k views

“sys/ioctl.h” header in linux

I am on Linux 2.6.32-26-generic When I look in to the linux source code for "ioctl.h" hearer file, I could see many variants. (for different platforms, I guess). i.e. ./fs/ocfs2/ioctl.h ...
10
votes
6answers
47k views

How to search for a word in entire content of a directory in linux

need to search for something in entire content I am trying: find . | xargs grep word I get error: xargs: unterminated quote How to achieve this?
2
votes
6answers
2k views

Unable to do paswordless ssh even after following standard procedure

I have two systems named Interface(10.1.1.87) and Client-Interface(10.1.1.91). I want to automatically mount an sshfs share from Client-Interface on Interface on boot. I am using the command: sshfs ...
38
votes
3answers
22k views

What are pseudo terminals (pty/tty)?

This might be really basic question but I want to understand it thoroughly. What is a pseudo terminal? (tty/pty) Why do we need them? How they got introduced and what was the need for it? Are they ...
3
votes
5answers
7k views

How to determine why a machine is running slowly?

I log into a linux server (installed as a virtual machine) using a graphical ssh client (securessh). This server runs a tomcat5.5 server where nexus is installed. When I type commands or delete/copy ...
3
votes
2answers
7k views

How to use command line to change brightness and color?

Is there any way to change the brightness and color? Using any command line tools? I am trying in Fedora and Ubuntu but no luck so far. Follow up: [command] [conneccted output] [effects R:G:B, ...
15
votes
3answers
40k views

Output traffic on different interfaces based on destination port

My question is basically the same as Only allow certain outbound traffic on certain interfaces. I have two interfaces eth1 (10.0.0.2) and wlan0 (192.168.0.2). My default route is for eth1. Let's say ...
25
votes
2answers
46k views

How to use command line to change volume?

I am trying to control the volume using my programming script. How can I do the following in Fedora 15, Ubuntu linux? Mute/ Unmute Volume up and volume down Note: Please note that I use a web USB ...
5
votes
2answers
8k views

Don't require root to add printers

When a user wants to add a new printer it's asking for a root password. I have an LTSP environment and the system is asking for a root password all the time; it's not asking even for a sudo'ed user's ...
3
votes
1answer
4k views

How can I easily copy one user's profile to another's in GNOME?

I have a multi-user environment. I would like them to use one profile (with specific settings like: themes, shortcuts, installed keyboard layouts, wallpaper, main menu items, etc.). Currently I need ...
2
votes
1answer
246 views

Can I use the same binary on Linux, *BSD and Illumos?

I want to know, if I can use the binary of a program without modification on the three systems? After all they are all Unices. I talk about the same architecture.
0
votes
1answer
1k views

Install Slackware on a USB Pendrive

I have a nice, smooth flash drive which requires a mounting of a DVD ISO image for Slackware to install. For whatever reason, Ubuntu's Startup Disk Creator refuses to notice the iso, so I can't use ...
0
votes
0answers
328 views

Which is the best KDE-based distribution? [duplicate]

Possible Duplicate: Linux distribution that offers a good KDE experience We have deployed Gnome and Ubuntu on our desktops for a long time until Gnome was split into Unity and Gnome 3. Both ...
1
vote
1answer
837 views

Resize LV's in a LUKS encrypted VG - Ubuntu 11.04

I wanted to resize the FS on a machine but i ran into problems: Purpose: the LV of /home is too big, the LV of / is too small (they're on 1 VG.) - I need to put 10 GByte from /home to /!! Problem: ...
3
votes
2answers
693 views

Recommended reverse firewall applications for linux? [closed]

I'm looking for a reverse firewall, something like Little Snitch for Linux, but my google-fu is failing me. Does something like this exist on Linux?
3
votes
1answer
1k views

Timer interrupts count in `/proc/interrupts` is updated very slowly and is very small

There is the result of cat /proc/interrupts|grep timer on my Ubuntu 11.04 machine: 0: 63 0 0 0 IO-APIC-edge timer LOC: 59 44 27 ...
14
votes
5answers
29k views

Is there a way to set the size of the history list in bash to more than 5000 lines?

No matter how much I set the HISTSIZE environment variable to be larger than 5000, when printing the history list with the history builtin, it prints only the last 5000 commands. I need that because I ...
10
votes
2answers
4k views

Is there a linux equivalent of the Mac OS X command “textutil”?

On Mac OS X there's a very handy command called textutil, that can be invoked from the terminal and allows to convert a document from a format to another; Sometimes I use it to convert a RTF file into ...
2
votes
2answers
859 views

How good is the support for NUT-based UPSs against APC?

My choice of UPS is this -- CyberPower CP900EPFCLCD or APC Smart-UPS 750VA (SMT750I). I intend to connect UPS with USB for data transfer, not Ethernet. According to UPS HowTo ...
0
votes
1answer
862 views

Can't connect remotely to server running redhat (ec2)

I created a RedHat 6.1 VM with EC2. Logged in as root, I installed (unzipped) JDK1.7 in /root/bin/jdk1.7.0 and installed (unzipped) GlassFish 3.1.1 in /root/bin/glassfish3. I set JAVA_HOME and ...
4
votes
3answers
166 views

How can I make a public variable in Linux that all users would see?

I need to have a variable $FOO on the system that contains a string all users could use, but I have no idea how to create one. The Upstart job is obviously not a solution as from this thread - Is it ...
145
votes
17answers
200k views

How can I resolve a hostname to an IP address in a Bash script?

What's the most concise way to resolve a hostname to an IP address in a Bash script? I'm using Arch Linux.
5
votes
3answers
8k views

Is it possible to export env variable via Upstart?

I need to export a variable FOO=stringhere so that system processes could use it. And the place I would like to do this, is Upstart job. Unfortunately, I tried as per Upstart manual to do env ...
3
votes
1answer
1k views

Using syslog from a kernel module

I am writing a linux kernel module to report statistics and send some log messages. Can I use syslog to accomplish this job? Or is printk the only way?
2
votes
1answer
267 views

Managing disk space on servers

Are there any open source tools to view (and possibly restrict) disk usage per user? I need to track disk usage on a server by user.