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
1answer
24 views

Why is my Netstat not returning the desired output and just getting hung up?

My remote Linux machine is able to ping an IP address on an internet, but the same is unable to get the netstat report for that IP, please help through. ping a.b.c.d 64 bytes from a.b.c.d: icmp_seq=1 ...
2
votes
1answer
23 views

Debian installer - customize busybox and live system/environment

I'm trying to reinstall Debian on a netbook and do it without sloppy tricks so that I can repeat the process if necessary. Specifically, I'm trying to customize the installer to include the wifi ...
1
vote
1answer
53 views

How to transfer data “offline” between osx and ubuntu?

I need to transfer around 50gb of data from my Ubuntu to my OSX. scp and samba are both too slow it seems - even with the Ethernet cable connected (14-15 hours!). I have physical access to both ...
6
votes
2answers
285 views

How does stack allocation work in Linux?

Does the OS reserve the fixed amount of valid virtual space for stack or something else? Am I able to produce a stack overflow just by using big local variables? I've wrote a small C program to test ...
1
vote
0answers
40 views

Essential tasks of a routing daemon in Linux [closed]

What I have understood so far from some software router projects already there (e.g. bird), there are some essential subtasks for routing in Linux. Task 1: Get a routing table first (using ip route ...
1
vote
1answer
23 views

Could I set flag “barrier=0” when using SSD?

I'm using ext4 filesystem in SSD,when mounting SSD,could I use flag "barrier=0"? I knew this flag is safe for BBU(battery backup unit),but is it safe for SSD?
6
votes
1answer
109 views

ssh from linux into mac - permission denied

I'm running a Oracle Linux VM on a Windows 7 host and I'm trying to ssh into my MacBook. I've already created the private/pub keys in my Mac. I have copied the id_rsa.pub contents into the ...
2
votes
0answers
27 views

Focusrite Scarlett on Linux input mapping?

Does anyone use these interfaces on Linux? If so, how do the inputs map (e. g. with ALSA/PulseAudio)? E. g. the Scarlett 6i6 has the following connections. Inputs: 2x symmetric XLR inputs (one for ...
2
votes
1answer
27 views

Which distributions can have a network installation started from a floppy?

Suppose I have computer with no USB boot option; no CD/DVD drive; an unformatted HDD; and a working connection to the Internet (via a local network segment with a DHCP server etc)... and an FDD. Can ...
2
votes
1answer
37 views

What is the use of “magic arguments” in Linux reboot system call?

As I was reading Linux source code, and more specifically the system calls code, I came across sys_reboot implementation: http://lxr.free-electrons.com/source/kernel/reboot.c#L199. 199 ...
2
votes
0answers
18 views

Qstat error in Eqw [closed]

can any one help to understand how to solve that problem? 365227 0.50500 towhee jmaia Eqw 07/19/2014 19:22:55 when I do: qstat -j 365228 | grep error that appears: error reason ...
3
votes
1answer
25 views

Linux console: only kernel messages are printed

My Linux system is built by Buildroot and runs on a Raspberry Pi. I use a Usb to TTL Serial cable to get a console. Here comes cmdline.txt dwc_otg.fiq_fix_enable=1 sdhci-bcm2708.sync_after_dma=0 ...
1
vote
0answers
61 views

How to boot Linux [closed]

I have a Linux box that I used to write my dissertation. I have used the Linux box for composition and email for a number of years. Unfortunately, for the past couple of years I have been in a ...
4
votes
1answer
151 views

ifconfig command not found

I've just installed CentOS7 as a virtual machine on my mac (osx10.9.3 + virtualbox) .Running ifconfig returns command not found. Also running sudo /sbin/ifconfig returns commmand not found. I am root. ...
0
votes
2answers
28 views

Using /proc/stat for the number of processes running on the system

How does one find out the true number of processes that is running on your system. A number of articles mention using ps in order to count the number of processes. But recently I looked at cat ...
3
votes
1answer
56 views

Spoofing or removing DHCP client hostname in response to DHCP server

In linux, when my machine requests an IP address it also sends the hostname back to the DHCP server. How can I stop my machine from sending back this hostname? I use dhclient, possibly via ...
1
vote
0answers
51 views

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) [closed]

When I try to start MySQL it says "failed!", so I try using mysqladmin ping and get the following: mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server ...
0
votes
2answers
29 views

Know which partitions are primary and which logical

I have Windows and Ubuntu installed on the same laptop. How can I know which partitions are logical or primary using the command line?
4
votes
2answers
55 views

Booting a Raspberry Pi from an NFS share

I am trying to boot my Raspberry Pi using an NFS share. I have copied the boot partition of the Raspbian Wheezy image to the SD card and copied the root partition to a networked hard drive. I have ...
2
votes
1answer
45 views

Use two NICs for different subnets

In my office I have use a system with two network cards. I want to use both at same time. I have four subnets in my LAN. I want to route two subnets (192.168.2.0 and 192.168.4.0) through eth0 and ...
0
votes
1answer
27 views

laptop enery management for improving battery lifetime Linux

I have bought a Lenovo Ideapad that cames with Windows preinstalled. I installed Ubuntu 14.04 to dual boot. There is a tool for Windows called Lenovo Energy Manager that allows to control the charge ...
-4
votes
2answers
57 views

How to print numbers horizontally? [duplicate]

I would like to print something as 5,4,3,2,1. This is my program, but it prints the numbers vertically. numbers=5 i=1 while [ "$i" -le "$numbers" ] do echo “$i” i=$(( $i + 1 )) done Do you have ...
1
vote
0answers
21 views

Recover deleted files on Raspberry Pi? [duplicate]

So I just rm -rf'ed a folder with a few files I need. Yes I know I should've had a backup, but it's just a Pi. It's designed to be played around with! Is there anything I can do to recover that ...
1
vote
1answer
47 views

Excessively high disk usage freezes my server

I have a laptop converted to a Linux Mint server running a variety of services. Recently, it started being unaccessible at random. The situation seems intermittent. The server is usually blazing ...
1
vote
1answer
29 views

How can I exclude some library paths listed in “ pkg-config --variable pc_path pkg-config”?

I have Ubuntu 14.04 upgraded from 12.04 making dist-upgrades. I did many manual installations such as ffmpeg, libglib and so on, in the past. I have a nice custom distro now, it works well but I have ...
0
votes
1answer
23 views

ARM cross compilation package not found

I'm trying for arm cross compilation on my i386 machine using sysroot and chroot.I want to set environment variables like PKG_CONFIG_PATH to sysroot.Right now my code is not compiling because it is ...
2
votes
1answer
49 views

Does pgrep output ever include the parameters supplied to the process?

The snippet below (from an existing script) is used to check the xvfb processes and whether they are listening on a specific port: my_list=`pgrep -u $CurrentUserID -fl Xvfb | grep :${XVFBPORT}` ...
2
votes
2answers
125 views

Remove all lines in file A which contain the strings in file B

I have a CSV file users.csv with a list of userNames, userIDs, and other data: username, userid, sidebar_side, sidebar_colour "John Lennon", 90123412, "left", "blue" "Paul McCartny", 30923833, ...
3
votes
1answer
29 views

Openbox pipe-menu script error

This is the weirdest thing. The script works when run from the shell with no problems. When I run it as an Openbox pipe-menu I get the error "Invalid output from pipe-menu". After playing around with ...
3
votes
1answer
56 views

Artificially prime buffer cache?

Is it beneficial to artificially prime the buffer cache when dealing with larger files? Here's a scenario: A large file needs to be processed, line by line. Conceptually, it is easy to parallelize ...
1
vote
1answer
20 views

Need data after Last comma in field1 from the Text in Unix [closed]

$ cat sample.txt 414d51204d5150525447575648415050529a6af298e,,,002330618820140707134048 ,+0657,45675 414d51204d514e55533732355051543051696344201645c6,002330618820140707134048 ,+0657,tgre,ghty Need ...
0
votes
1answer
38 views

Hard drive making strange sound

It sounds like the HDD is put into a power saving/sleep mode, spun down, but immediately started up again, and then this repeated 3-4 times, very quickly. How could I find out what this exactly is, ...
0
votes
2answers
33 views

Where is the bugtracker for `ifconfig` located?

Is there an official place to file bugs for the package in which ifconfig can be found? Do most major distributions have their own implementation of the library, or does the library come from one ...
0
votes
3answers
29 views

Python compile error on openSUSE: no module named wx

I'm new to Linux. After installing openSUSE I'm trying to make my VPN software running. I've followed the site's direction: Unpack the general package [Other / Source code], install OpenVPN and ...
1
vote
0answers
24 views

ideal live cd distro to build LFS 7.5 [closed]

I was thinking of building my first LFS system but I can't seem to figure out which live cd distro to use. Because most distros are either out of date or are too fresh. However I did try out a few ...
3
votes
2answers
52 views

How to programatically detect when a device raises an interrupt?

How to programatically detect when a device raises an interrupt? This can be when a device is connected or disconnected. And also this case: for example: when a finger is held over a fingerprint ...
1
vote
0answers
17 views

using gmake and make

My Makefile entry has this snippet: ####### Compiler, tools and options CC = cl CXX = cl LEX = flex YACC = byacc CFLAGS = -nologo ...
0
votes
3answers
46 views

Where to find a list of device drivers supported by linux?

I have read here that linux supports a large number of device drivers and by extension, it also supports a large number of devices connected via the USB port. Excerpt from that site: Linux today ...
4
votes
1answer
119 views

FILE size limitation according to Robert Love's textbook

From Robert Love's Linux System Programming (2007, O'Reilly), this is what is given in the first paragraph (Chapter 1, Page 10): The file position’s maximum value is bounded only by the size of ...
5
votes
4answers
525 views

generate consistent machine unique ID

Can we generate a unique id for each PC, something like uuuidgen, but it will never change unless there are hardware changes? I was thinking about merging CPUID and MACADDR and hash them to generate ...
1
vote
0answers
30 views

How to Run a script on USB removal?

I want to execute the script on removal of usb drive. In that script I want to restart the server. Is there any way to do the same ? I know I have to modify the rules in /etc/udev/rules.d/.
2
votes
0answers
55 views

HTTP request failed after listening on multiple ports or after enabling SSL Module on my Linux Board

I have one custom Linux board on which I want to run apache web server to test HTML and other web based services. I have configured, cross compiled and installed default httpd (2.2.24, 2.4.1, 2.4.4 ...
2
votes
0answers
39 views

Vagrant: failed to mount nfs shared folder (mount.nfs: Operation not permitted)

Vagrant throws error message: ==> default: Mounting NFS shared folders... mount -o 'vers=3,udp' 192.168.33.1:'/home/xxx/vagrant/www' /home/www mount.nfs: Operation not permitted ssh to the ...
4
votes
1answer
16 views

How can I disable a part of the screen in X.Org

I'm running a Laptop with Arch Linux, X.org and i3. Due to a broken LCD panel, I would like to disable/ignore the left ~228 Pixels of the screen until I have time to get it repaired. So far, I've ...
0
votes
0answers
33 views

Debian disables IRQs

It's been two days that my Debian Wheezy 7 randomly disables IRQs apparently with no reason. After the IRQs are disables, I'm unable to mount hard disks and I have to reboot. This is the output of ...
1
vote
0answers
75 views

Have tmux wait until I SSH in, to complete rest of Tmuxinator script

After recently discovering tmux and Tmuxinator, I've been trying to set up a development environment to use. Per protocol, we aren't allowed to store passwords/passphrases in scripts. So what I'm ...
0
votes
1answer
26 views

Desktop settings no longer being applied

So my Mint setup (Mint 17 on a Lenovo Yoga 13) was working perfectly fine earlier this morning. However, I pressed Ctrl+Alt+PgDn while trying to change between workspaces and it turned the entire ...
0
votes
1answer
38 views

Tomcat: no xmx/xms value set, where is the heap value being defined?

I have a Tomcat 7 install running with Java 1.7 on a Linux 2.6 server, and jinfo shows no xmx or xms values. ps output shows nothing set for xmx/xms on the command line for the java process. Tomcat ...
0
votes
0answers
24 views

Mint: locale problem

When compiling a java application, I got an issue with some characters that are encoded in ISO-8859-1. On my machine I am using UTF-8. How can I change temporarily the locale so compilation goes fine? ...
2
votes
2answers
76 views

CSV file + set CSV parameters and values in bash script

I have the following CSV file: Alabama,Alaska,Arizona,Arkansas,California,Colorado,Connecticut,Delaware,Florida,Georgia,Hawaii,Idaho,Illinois,Indiana,Iowa 1000,"1 0 0 1",1002,1002,1003,1004,1005,"1 0 ...