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

2
votes
0answers
27 views

How to build an equivalent of littlesnitch or zonealarm under linux? [duplicate]

The question : Recommended reverse firewall applications for linux? asks for a reverse firewall used to monitor, preventing or permitting network access, at the process level, with a GUI. There is two ...
1
vote
0answers
46 views

External VGA monitor port not working on HP Elitebook 2540p running RHEL 6.5

I'm running RHEL 6.5 on an HP EliteBook 2540p. When I connect the external VGA port to a projector or external monitor and press Fn+F3 to switch to the external port, nothing happens. Under System ...
3
votes
2answers
39 views

Delete IP address alias by label name

I would like to delete an alias I created using: ip addr add 192.168.1.1 dev eth0 label eth0:100 without having to know the IP address. Basically, I would like to do ip addr del dev eth0 label ...
0
votes
0answers
18 views

SLES 10 SP4 - how to get specific kernel source?

I want to look at the kernel source for some specific kernel versions on SLES 10 SP4. I don't want to see just the Linux kernel source, but the one SLES is actually running. Suppose I wanted to get ...
1
vote
3answers
30 views

listing package dependents

I stupidly did "yum remove python" which also ended up removing all the packages that required python as well. Luckily, I have access to another Linux machine that is a near clone of this machine, ...
0
votes
1answer
33 views

Is there a good way to poll in a real-time process which is kernel friendly?

I have an application which uses boost asio and I would like to use poll() to detect ready network events (packets) and process them as quickly as possible. Additionally, I would like to use ...
2
votes
0answers
24 views

Last data traffic time for a TCP socket

Is it possible, to find out when was the last time there was any traffic on an opened TCP socket? Keepalive and timeout timers are based on this statistic, so I guess it has to be stored somewhere. ...
2
votes
2answers
70 views

How would I build a linux based router?

I am looking into building a Linux based router out of a home-built Linux server. I don't have much experience with the software required however. I would like the server to run the following ...
0
votes
0answers
16 views

Eclipse lint plugin for C language on Linux?

Can anybody suggest a best Eclipse lint plugin for C code? My C code has a dependency on glib. The lint plugin should be able to identify glib macros too.
1
vote
2answers
34 views

Unpack, modify and pack initrd as a user

I've got a problem with rebuilding the initrd image as a user. Firstly, when I try to "unpack" the original initrd image: cpio -idm < initrd-base cpio: dev/tty8: Cannot mknod: Operation not ...
-2
votes
0answers
25 views

GUI installer for linux in Qt

Im trying to write a Linux OS installer in Qt. I need to know how can i manage partitions. Eg. format shrink and create them. Also some other tips if you guys have. Well i have all the scripts all i ...
2
votes
1answer
36 views

Why does Alt+SysRq+B not always trigger while REISU do?

On many different machines, when I come across a lockup, I often use Alt+SysRq+REISUB to reboot without too much losses. But I often noticed that although REISU commands work even when I just hold ...
2
votes
0answers
64 views

If statements into Array [closed]

I'd like to ask if below code (multiple if statements) can be converted into array? Here: if [ "$(egrep -l 'NU.PRODUCT' $LINE)" ]; then VALUE='PRODUCT' elif [ "$(egrep -il 'NU.SERVICE' $LINE)" ]; ...
2
votes
1answer
59 views

How do I resolve an error when booting, “Couldn't find device with UUID…”

I have a RHEL 6 system, running on a VMWare machine. The admin of the VM server added a second RAID volume to the server, which my RHEL system does not use. Now, when I boot the RHEL system, I get a ...
3
votes
1answer
81 views

Check ping statistics without stopping

Is there a way to tell ping to show its usual termination statistics without stopping the execution? For instance, I'd like to quickly view: --- 8.8.8.8 ping statistics --- 2410 packets transmitted, ...
1
vote
1answer
24 views

Serial communication not working in both directions

I am working with a SOM mounted on a carrier board running Ubuntu 14.04 with the generic 3.13 kernel. While testing out the peripherals, I hit a problem with serial communication. Basically, I can ...
0
votes
0answers
54 views

inotify does not work with linux kernel 3.4.11

I have a Linux running with kernel 3.4.11. I tried to run inotify-tools, but it does not work (in fact it does not detect the file changes). I checked the .config file of Linux kernel and I found ...
4
votes
0answers
44 views

Linux kernel dropping custom keyboard scan codes

I have a vintage IBM 122 key model M keyboard that I am adapting for use on a modern computer. I am using a Teensy 2.0 to do the encoding and to handle the USB side of things. I borrowed the firmware ...
4
votes
2answers
94 views

Preprocess packets send to/from interface

Is it somehow possible to intercept packet data just before it reaches an interface, and just after it is received? E.g. preprocess it and send it back on its way? I wanted to create a custom ...
1
vote
0answers
40 views

Route to LAN subnet via OpenVPN client

I am trying to route to a LAN subnet that is connected via an OpenVPN client. I am having trouble with the route command - I cannot make sense of it. The OpenVPN link is established and I can ping ...
2
votes
1answer
26 views

How to install package via yum in Fedora

How do I install software using yum? Can you tell me another way to install package in Fedora?
1
vote
1answer
58 views

How to run java service as a non-root user on CentOs 6

I have a script that starts a Java application as a service on CentOS 6: #!/bin/sh # chkconfig: - 80 20 SERVICE_NAME=cn4server PATH_TO_JAR=/usr/local/share/myserver/cn4server.jar ...
4
votes
1answer
49 views

Are writes to eventfd counted as io?

I am trying to reduce hard-disk activity on my system. Running iotop shows that Eclipse (the IDE, latest version (Luna)) is writing kilobytes of data every few seconds. So I ran strace on the eclipse ...
4
votes
1answer
56 views

Maximum memory usable by a 32 bit RHEL 6 system

I have installed a 32 bit RHEL OS on a 64 bit system. From the wiki page of PAE: The Linux kernel includes full PAE mode support starting with version 2.3.23, with Linus Torvalds mentioning ...
1
vote
0answers
17 views

Rfkill refuses to unblock the WiFi device

Running rfkill list indicates the USB WiFi adapter is softblocked. I can run rfkill unblock 0 with no error message, yet running rfkill list again indicates the device is still softblocked. ...
1
vote
0answers
32 views

Build Mini Linux and Embedded Linux

How to build Mini Linux with Busybox, Kernel-3.15.3, Syslinux? I've built my Mini Linux using these steps: Steps in Building Base Mini Linux Distro 0 . Compile the kernel and see ...
0
votes
1answer
15 views

bonding mode4 without 802.3ad switch support

using two switches without 802.3ad support I can configure bonding mode 4? ie: server linux with 2nics: put nic1 cable on switch1, nic2 cable on switch2 and put another cable from switch1 to pc1 and ...
1
vote
0answers
36 views

Chromium does not Render webpage (arm)

I am trying to run Chromium (the browser) on a Ubuntu install within Android (ARM) and am facing a weird issue: Webpages are not rendering at all. Links etc within the page are still clickable, ...
1
vote
1answer
42 views

Focusrite Scarlett 8i6 With linux mint

I have a focusrite scarlett 8i6 soundcard and I would like to make many sounds with it. Currently it's deadly silent and I want to crack on with some programming whilst listening to music! I usually ...
1
vote
0answers
52 views

mount: / not mounted or bad option

I'm running a custom Raspbmc build on my raspberry pi. On startup, I always see the message mount: / not mounted or bad option The filesystem is still mounted, but still want to know whats causing ...
1
vote
0answers
46 views

How to change position of unity launcher in Ubuntu?

How can I change the position of unity launcher?
0
votes
0answers
34 views

Forced reread of partition table: difference between BLKRRPART and BLKPG ioctl? (Linux)

When I want Linux to consider newly created partitions without rebooting, I have several tools available to force a refresh of the kernel "partition cache": partx -va /dev/sdX kpartx -va /dev/sdX ...
0
votes
0answers
30 views

Internal secondary hard disk suddenly failing to mount

In RHEL5, my internal secondary hard disk (1TB) suddenly fails to mount after some unexpected power failure and after my system got off. But it's showing in BIOS and while Booting checking as sdb ...
2
votes
1answer
45 views

Make sense of this strace output

Can anyone make sense of this strace output? [pid 25302] read(34, "}B\311\204\n\250\347$\220\266kRb\304a^^\2504\303k\235\227T\223\16\231\306\277\254\256\306", 32) = 32 It's from a Linux system ...
1
vote
1answer
56 views

Too many levels of symbolic links

I created this file structure: test/src test/firefox When I run this command: ln -s test/src test/firefox I would expect a symbolic link test/firefox/src to be created pointing to test/src, ...
1
vote
1answer
52 views

Slow Linux machine [closed]

Every time I login (via ssh) in my Linux/debian computer it takes too long for the password prompt to appear. Also, every time I try to run a python script or a tcpdump it takes too long until it ...
-1
votes
1answer
42 views

man command: is there a way to know the meaning of the output of a command >

Is there a way to know the meaning of the output of a command? Example given: If I type ls -l, I get this ouput: [root@localhost junk]# ls -l total 8 -rw-r--r-- 1 root root 1862 2012-08-25 16:20 a ...
3
votes
1answer
57 views

how to get exit status from command in expect script

Below is an shell script I have written to automate entering the password for the vpnc command. The expect works fine and vpnc activated automatically after password entered, but I need to get the ...
0
votes
0answers
27 views

Understanding Mixing of sounds in ALSA

I can't seem to bend ALSA completely to my will, even after I spent a lot of time configuring it. I just do not seem to understand it well enough. Here is my /etc/asound.conf: pcm.dmixed { ...
0
votes
0answers
59 views

vdsm service won't start

I am currently evaluating Red Hat Enterprise Virtualization and have managed to set up the management server and the bare metal hypervisor. Now I'm trying to add a regular box running RHEL server 6.5 ...
2
votes
0answers
74 views

Mounting NTFS Drives in Linux Mint

My laptop is an Aspire E1 -431. When I installed Linux Mint 15 and 17, I found that the NTFS drives cannot be mounted: Error mounting /dev/sda3 at /media/kutti/BE6C20D66C208B6B: Command-line `mount ...
1
vote
0answers
27 views

How do I know from a BeagleBone Black if it is connected via USB (as a client/slave)?

BeagleBone Black has an USB port which allows the user to access it through ssh. In general, we could say that when you plug it to a PC, the PC is the USB host and the BBB is the USB client. On the ...
3
votes
1answer
213 views

What permissions do I need to write to a card reader?

I have a card reader attached on /dev/sdb. What I do is giving all permissions to owner, group and the rest of the world, using: sudo chmod 777 /dev/sdb Can I just use another combination, ...
2
votes
1answer
74 views

Bash script and processes

I have created a bash script for use with a graphical bar in Linux, however the script seems to spawn too many processes. The script: #!/usr/bin/bash executable="/usr/local/bin/bar" monitor=${1:-0} ...
0
votes
1answer
67 views

Windows 7 not working correctly after partition resize

I resized the Windows partition from Linux in order to be able to install Elementary OS. After resizing I tried booting to Windows, however it asks to boot normally or in recovery mode. When I select ...
14
votes
2answers
1k views

Why writing to /dev/random does not make parallel reading from /dev/random faster?

Typically reading from /dev/random produces 100-500 bytes and blocks, waiting for an entropy to be collected. Why doesn't writing information to /dev/random by other processes speed up reading? ...
1
vote
1answer
43 views

multiple ffmpeg library paths, how can exclude older ffmpeg installations?

I am trying to compile Simple Screen Recorder. I had a linker error due to a wrong library path relating to ffmpeg. When I checked installation paths with whereis ffmpeg, I get: ffmpeg: ...
7
votes
2answers
88 views

DNS lookups sometimes take 5 seconds

I have a VM running Debian Wheezy on which some hostname lookups take several seconds to complete, even though the resolver replies immediately. Strangely, lookups with getaddrinfo() are affected, ...
2
votes
3answers
46 views

Un-mount active partition

Is it possible to umount the partition, whose files/directories are in use? The underlying files and directories are in memory so un-mounting the partition is technically safe (I guess). But umount ...
1
vote
0answers
154 views

Low performace of Intel Haswell HD Graphic 4600 in 3D Games

I have a notebook (Lenovo IdeaPad G510) with Linux Debian Jessie. It has got a built-in, integrated GPU - Intel Haswell HD Graphic 4600. I've read postive opinions about the GPU, it has got good ...