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

9
votes
2answers
3k 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 ...
3
votes
4answers
247 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
358 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
11k 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
2k 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
552 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
4k 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
130 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 ...
13
votes
3answers
3k 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
928 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
4k 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
669 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
15k 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
2k 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 ...
36
votes
2answers
33k 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
6k 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: ...
155
votes
3answers
70k 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 ...
6
votes
5answers
590 views

PATH environment variable in linux

I want to know how the standard environment variables given by the linux OS like PATH, HOME are set automatically. In which file are these read from. There should be some file from which these ...
2
votes
1answer
722 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 ...
4
votes
2answers
8k 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 ...
8
votes
6answers
32k 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
1k 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 ...
24
votes
3answers
17k 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 ...
2
votes
5answers
4k 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 ...
2
votes
2answers
6k 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, ...
12
votes
3answers
29k 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 ...
17
votes
1answer
32k 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 ...
4
votes
2answers
6k 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
234 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
326 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
765 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
618 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 ...
12
votes
5answers
22k 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
3k 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
700 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
783 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
161 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 ...
108
votes
16answers
147k 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
7k 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
889 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
251 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.
4
votes
2answers
504 views

Knowing Privilege rights on a file in Linux

i wanted to know the Read / Write Access on to a file , so i did this way ls -l Denem.sh This command displayed -rwxr-xr-x 1 pavan employee 672 DEC 20 2000 pavan.sh Could anybody please tell ...
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 ...