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

0
votes
2answers
102 views

Daemon not running when started over ssh

I'm trying to start the rngd daemon by remotely starting it via ssh. Unfortunately it does not seem to run until I log onto the machine. The command I'm using is: ssh -n -o StrictHostKeyChecking=no ...
1
vote
3answers
105 views

Confused on user and su in linux

How could I run a script as a specific user (non-root)? As this? sudo su - john /usr/share/script.pl for user john?
3
votes
1answer
362 views

Obtaining/Packaging RPM dependencies for Fedora/RHEL linux application — no network access

I currently have an RPM file with 2-3 dependencies specified in the 'Requires' section. When this application is installed using yum, it works fine and the dependencies are installed if they are ...
2
votes
0answers
61 views

LXC: Have rootfs mounted without nosuid

I have the container's rootfs in a volume mounted with the nosuid option. When I start the container, its / mounted is then also mounted nosuid, which breaks programs such as sudo. How can I avoid ...
3
votes
2answers
636 views

Debian-Windows dual boot: which one should I install first? [closed]

I have a fresh desktop with no OS that I want to run Windows 7 and Debian stable on. All guides for dual boot setups I found so far assume a pre-installed Windows (possibly because so many PCs come ...
3
votes
1answer
1k views

viewing dll and exe file properties/attributes vi command line

I have a need to see some additional file properties for exe and dll files. If I open windows explorer and add the additional columns to my view, I can see things like Company, Copyright, Product ...
2
votes
1answer
347 views

Generate interrupts for purpose of stress testing

I'm testing the quality of a generated PWM signal on a Raspbery Pi. I would like to test how it behaves if there are lots of interrupts coming. Is there a way to fake interrupts or force 2000 ...
5
votes
2answers
2k views

Why does Linux require moving IP from eth interface to bridge interface

When a network interface (e.g., eth0) is added to a Linux bridge (e.g., br0), the IP address must be removed from eth0 and added to br0 for the networking to function properly. I recall reading in ...
1
vote
2answers
444 views

Prevent dhcpcd from setting hostname

How to prevent dhcpcd from setting hostname got from server? Change of it breaks a lot of things (including X session). My current distribution is Gentoo, init system is systemd and dhcpcd is spawn ...
1
vote
2answers
6k views

How to know why server keeps restarting?

It seems that my server keeps restarting. I want to know why. How can I know when the last time server was rebooted and why? root pts/0 139.193.156.125 Thu Aug 8 21:10 still logged in ...
1
vote
1answer
129 views

How to ftp as root?

I can ftp to a linux server by doing ftp server But I can't do that with root. Need sftp or something or what?
2
votes
2answers
6k views

Debugging iptables using live packet views

Are there any CLI or GUI functions that I can use to monitor hits to iptables and watch as packets interact with iptables?
1
vote
1answer
1k views

Attempting to detect acceptable LDAP base DN defaults for various directory servers in a bash script

Basically, I'm writing a script that determines an acceptable default for a base DN when pointed at a particular hostname. I'm wrapping it around ldapsearch output. I can do Active Directory by ...
25
votes
1answer
2k views

Were all Unix commands re-written in Linux?

I would like to know which commands were re-written for Linux and which were retained from Unix? I'm new to Linux.
1
vote
1answer
2k views

What does “sudo chown -R hadoop:hadoop hadoop” do?

I saw the following script, posted online, that was used during the hadoop installation process. sudo tar xzf hadoop-0.20.2.tar.gz sudo mv hadoop-0.20.2 hadoop sudo chown -R hadoop:hadoop ...
1
vote
3answers
1k views

How can I start a process using cpulimit?

I am trying to use cpulimit for testing an app I'm developing under low resource conditions, and I need the process to start under the influence of cpulimit. It is not sufficient to start the program ...
1
vote
1answer
3k views

Redirect Output with Iptables

Is possible on Debian to change the port of packets that are going to a specific port, using iptables? Example: I want packets going in the outbound direction to a.b.c.d for port 1723 to be ...
1
vote
3answers
96 views

Virtualizing a Low End Virtual Server

I have started to teach the lesser fortunate children in my area about technology and computers in general. Some of them show some real promise and I'm planning to introduce them to Linux and Open ...
1
vote
1answer
289 views

can linux be configured to blink an LED (GPIO) on disk activity?

I'm hoping to blink an LED that is wired up to a GPIO line whenever the USB connected disk has activity is there an easy way to pull this off?
1
vote
0answers
132 views

AR9485 Wireless Network Adapter with Linux

Lately I change my VivoBook 500ca for Linux. I installed the latest Mint Cinnamon. I have been having some problems with my wireless card : description: Wireless interface product: AR9485 ...
1
vote
3answers
1k views

Recover Windows partition in a GPT disk (previously MBR)

I have tried installing Arch Linux and what I ended up with was a partition scheme like this: /dev/sda: /dev/sda1 NTFS partition (Windows 7) /dev/sda2 ext4 (Arch) /dev/sda3 swap I don't know ...
2
votes
2answers
229 views

How to turn off single user mode on a remote machine?

I have a linux machine that I was accessing remotely and I made the mistake of doing #init 1 which turned off networking on the machine. What is the easiest way to turn networking back on and/or get ...
8
votes
1answer
3k views

Are limits.conf values applied on a per-process basis?

I'm tuning the nofile value in /etc/security/limits.conf for my oracle user and I have a question about its behavior: does nofile limit the total number of files the user can have open for all of its ...
4
votes
1answer
123 views

Are there any security risks when mounting as root?

Are there any security related risks when mounting with root privileges compared to mounting with regular users? I have a script which does some ecryptfs mounting with non-root privileges (by design), ...
5
votes
1answer
2k views

How do I find package URLs with Yum?

I want to update my system (Fedora) with Yum, but I want to use aria2 to download the packages. There was something in pacman that you could use to get the update URLs (and put all links in a file.) ...
3
votes
2answers
980 views

insert text in a file using echo command [duplicate]

I am trying to insert some text in a file in the following way sudo echo "abc-abc/abc/abc" >> /etc/portage/make.conf but it give me the error Permission denied although I am using sudo ...
0
votes
1answer
308 views

gstreamer: no element >>x264enc<<

I want to encode a videostream to h264. But when I start the gstreamer program I get the following error. No Element >>x264enc<< I installed the gst-plugins-bad, gst-plugins-ugly and ...
7
votes
1answer
2k views

What is the safe way to allow Java 7 to run on SELinux

Short version: What is the most secure way to allow Java 7 to run on (with?) SELinux? Long version: Sorry in advance if I use incorrect terminology. I'm really just a Java developer with a meager ...
3
votes
1answer
2k views

Difference between a.out and ./a.out

My Confusion a.out is the output of the programs which I execute in my Ubuntu 12.10. In Red Hat system when I execute a.out in the terminal it executes. While in Ubuntu I have to execute ./a.out to ...
4
votes
1answer
454 views

Tell tcpdump to skip custom header

I have an IP packet with x bytes of custom header coming in on an interface. Is there a way to tell tcpdump or tshark to ignore the first x bytes and decode and display the IP packet? Any pointers ...
2
votes
1answer
284 views

lxde-rc.xml: set keybindings for PgDn

I am using LXDE, and I need to create keybinding for ALT + PgDn and ALT + PgUp in my $HOME/.config/openbox/lxde-rc.xml I already have the necessary code, the only thing missing is the correct ...
2
votes
1answer
49 views

Can I install a distro booted from a drive to the same drive?

I know how stupid this sounds BUT is it possible to install a linux distro that has been loaded to the drive it was booted from? I was thinking of installing Arch or Puppy to a flashdrive that Would ...
2
votes
2answers
701 views

a handy tool to measure memory consumption of a program [duplicate]

I develop a C code on Debian. I am looking for a program to monitor memory consumption of my code in real-time. The only value I care is the maximum RAM consumption, it should hold the value even if ...
0
votes
1answer
224 views

Fresh installation of debian and raid10 array with SSD and HDD

I have one 120Gb SDD and four 2Tb HDD at disposal. I would like to install Debian Squeeze on the SSD and create a software RAID10 array with the four HDD. According to your experience, how to ...
1
vote
1answer
377 views

Command line error in OpenSUSE (old version)

I'm using an old version of OpenSUSE and when I try to update some package via the command line, e.g. Zypper update firefox it shows the message listed below. System management is locked by ...
1
vote
0answers
142 views

Assigning an identity to an IPsec policy in Linux

Page 36 of RFC2367 (PF_KEYv2 Key Management API) states that when the kernel needs an IPsec security association for an outbound packet, but does not have one, it will ask the key management daemon ...
10
votes
1answer
16k views

How to see process created by specific user in Unix/linux

I want to see list of process created by specific user or group of user in Linux Can I do it using ps command or is there any other command to achieve this?
1
vote
2answers
666 views

how to escape unusual/uniq characters from expect scripts?

in expect script I can set any command or character to run it on remote machine but the sad thing is that expect cant send the same character as they defined in the expect script for example I want ...
2
votes
1answer
306 views

how to replace IP address on remote host using expect

I wrote the following expect script in order to replace the IP address on remote Linux machine I use a perl one-liner for this task I get errors about can't read "HOME": no such variable , Please ...
0
votes
1answer
281 views

Choppy sound when recording sound from my microphone

I've just installed a fresh copy of Linux Mint 15 and so far everything is working ok, but sound from my mic. While talking on skype or just recording the sound produced is very very choppy. I tried ...
1
vote
1answer
224 views

Is there a list of NICs that work with linux?

I built a new computer and want to install Linux on it. I loaded a couple different flavors and they detect there is a NIC but it won't connect to the network. It looks like it tries and tries but ...
2
votes
0answers
92 views

Linux child processes not being culled [closed]

This is causing significant problems for script portability between BSD and Linux. I am on a CentOS 6.4 where this happens. I have a nice compact test case: bash -c "inotifywait -mcr . | sed ...
1
vote
1answer
1k views

How to disable respawn for terminal?

In old 5.3 rhel, we used to define the number of terminals and their respawn settings in /etc/inittab file as below. 1:2345:respawn:/sbin/mingetty tty1 1:2345:respawn:/sbin/mingetty tty2 ...
8
votes
2answers
1k views

Temporarily change time

I need to test aspects of my software that only happen at certain times of the day. Rather than waiting whole days (and getting here at 2:00 AM), I'd like to change the time. But I'd rather not ...
3
votes
1answer
124 views

Linking Ethernet interfaces

I'm quite new to Linux networking. I have a Debian PC with two Ethernet interfaces, one embedded on the motherboard and another on a PCI card. The first one, let say eth0 is connected to my router ...
0
votes
1answer
9k views

What's the approximate percentage of Linux servers in the world? [closed]

I did so many searches on search engines, but could not find a relevant solution. Is there any research or source that shows an approximate value for servers?
2
votes
1answer
97 views

Why do I get one more number of bytes reported in a file?

Why do I get one byte more reported? I do not have a newline at the end. I tested other files with similar result. Using linux 3.2. $ cat testfile.txt aabbcd $ wc -c testfile.txt 7 testfile.txt ...
0
votes
0answers
45 views

my IP is deallocated by itself after a time later

I use ssh to connect a remote Linux device and assign IP address manually by ifconfig eth0 192.168.0.2 (I know ifconfig is depreciated and I should use ip instead). More or less each half an hour or ...
0
votes
1answer
244 views

Installing Domjudge in Fedora 19

I tried to install Domjudge in Fedora 19 (based on its documentation) and it installed successfully but when I try to start it in browser (localhost/domjudge) I get the following error: Forbidden ...
1
vote
2answers
79 views

Privileges on Linux?

In Linux, I had created a userid. After creating this, I encountered a problem that the .EXE Files are not opened on simple click. They seem to be not privileged for my user account. How can I ...