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

1
vote
0answers
15 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
27 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
14 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
34 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
36 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
47 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
33 views

How to change position of unity launcher in Ubuntu?

How can I change the position of unity launcher?
0
votes
0answers
22 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
28 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
43 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
48 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, ...
0
votes
1answer
50 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
51 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
19 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
52 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
61 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
23 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
210 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
69 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
62 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
38 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
80 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
44 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
118 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 ...
2
votes
0answers
37 views

Dual boot Solaris and Linux

I have a laptop running Oracle Solaris and Gentoo Linux. First I installed Gentoo Linux. I used GPT partitioning scheme. In order to boot Gentoo Linux I have GRUB 2. Then I installed Solaris 11.1. ...
5
votes
1answer
69 views

Copy/paste across vim without X

In vim, "+p pastes from the system clipboard. However, when working remotely over SSH on a non-GUI box, this is not available. Is it possible to implement copy/paste in this environment? Merely ...
0
votes
0answers
16 views

how to find where buffers/cache are and how to clean them up? [duplicate]

I want to create 20gb ram disk for ANSYS to work in yet on free -g I see: And personally I have not created any ram drives yet. So I wonder how to maximize avaliable ram: how to locate what is using ...
2
votes
0answers
49 views

How to use a dongle as HotSpot on Linux?

I'm running Linux on a virtual machine on MAC OS. Currently, I've written a script to use a dongle to connect to a WiFi network and use web services. Now, I am looking to use my dongle as a WiFi ...
3
votes
2answers
54 views

How to manage error_log and access_log of apache?

I noticed my error_log file grows larger and larger. I tried changing the LogLevel in httpd.conf from LogLevel debug to LogLevel emerg But I still see errors being posted about favicon.ico not ...
2
votes
0answers
43 views

Reduce cache size of flash storage devices

For various benefits Linux uses a memory cache for writes to removable stogare devices like memory sticks. This cache seems to be quite large on my system, which leads to some annoying behavior. For ...
5
votes
1answer
43 views

forward outgoing traffic port using iptables

I am trying to forward all outgoing traffic from port 80 to port 8080 using iptables and I tried the following rule, though it did not work: iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT ...
0
votes
0answers
37 views

Canon MF4550d refuses to print from Linux server

We have several Canon mf4550d printers at the office directly connected to Windows 7 machines. I need to print from a Linux server to those printers. I have installed the latest drivers for my model ...
1
vote
3answers
30 views

Sed + how to set parameters in sed command in order to display lines from text file

I find the following way to print line from file In this example we want to print the first line from the hosts file sed -n '1,1p' /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 ...
-2
votes
1answer
32 views

How to send a message in Minecraft before rebooting the server? [duplicate]

I have a Ubuntu Linux Server 14.04 LTS which is running a Minecraft server. I want it to reboot every 6 hours. I have that now and after the reboot, it starts the Minecraft server. Now what I want. I ...
1
vote
2answers
45 views

get CPU usage of a VM (linux) using java

Is there an API for Java in getting the CPU usage of a VM in KVM? I want to know how I could get the CPU usage of a guest (from the host's perspective) using Java. Also, does anybody know where I ...
0
votes
2answers
99 views

Linux memory usage?

We have 1TB of memory on a server which hosts an SAP application. When the app is running the memory usage shown in top is around 700GB. When the app is stopped the memory usage shown in top comes ...
1
vote
3answers
46 views

Could it cause any problem if I not reboot after a kernel upgrade?

I know there are solution for not rebooting after kernel update: https://en.wikipedia.org/wiki/Ksplice But If Ksplice isn't installed, and the user doesn't reboots it's notebook after even several ...
3
votes
1answer
69 views

How to tell if two ethernet interfaces are on the same lan?

I have to secure interfaces on Linux servers by setting bonding interfaces. The cabling information is not accurate. Is there a simple way to know if two interfaces are connected to the same LAN? ...
0
votes
1answer
43 views

Recommended partition size of SD card for Ubuntu for BeagleBone black [closed]

I am using 16GB SD card for building Ubuntu from scratch for BeagleBone Black. So, I have to make two partition of my SD card, one for Rootfs and second one for Zimage and other stuff. Initially I ...
2
votes
1answer
67 views

Accumulate Filename in a Log file using shell script

I have files with their names as ABC_-_123321.20140505_-_161500.CSV ABC_-_654145.20140506_-_135020.CSV String_-_SerialID.Date_-_Time.CSV StartDate, StartTime, EndDate and EndTime are given as ...
3
votes
4answers
145 views

Match two words that is on the same line

The command that I have prints out two of the lines whenever FW_6.0.0 is found, below is the code: grep -oP 'FW_6.0.0, (.*)$' file Below is the output, both has the same value of FW_6.0.0 ...
1
vote
0answers
14 views

How do I mcast multiple pcap files simultaneously with guaranteed ordering and controllable speed?

We capture many pcap files every day on many different multicast groups. For the purposes of testing & benchmarking, we wish to replay these files in an isolated environment and in a controlled ...
8
votes
6answers
155 views

iptables rule adviser script

There is a server without any iptables defense: ACCEPT all.. There could be custom applications on this server. If we should need to harden this server (so deny all, and only let what is needed by ...
2
votes
1answer
22 views

LFS-7.5 util-linux `make check` fails

When I run make check in util-linux, it fails saying: 3 tests of 127 FAILED According to LFS - 7.5 test logs found here, 2 tests fail and that is acceptable. But my cal command fails while ...
0
votes
0answers
38 views

Mail Delivery too slow with sendmail

We are using javamail to deliver mail for our applications. The mail function runs in a loop to deliver around 100 to 200 mails depending on the range we use. However, it taking more than an hour to ...
3
votes
1answer
77 views

How to programmatically retrieve the GID of a running process

I need to write some C code to check the effective GID of a running process whose PID I know. I've not found any direct way to do this. There are a number of heavyweight kludges I could use, such as ...
1
vote
1answer
25 views

masscan. how to configure Linux?

I've set this in my sysctl.conf: net.netfilter.nf_conntrack_max=268435456 Because, this border 16,777,216 achieved very quick. Also, I've decrease timeouts: net.ipv4.tcp_fin_timeout = 30 ...
1
vote
1answer
30 views

Using Netis WF2123 Wifi Adapter on an AMD64 Ubuntu System

I'm having trouble getting the drivers for a Netis WF2123 wifi adapter to work under Linux Mint 17 (effectively Ubuntu 14.04 LTS) 64-bit. As it turns out the drivers are not available in any binary ...