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
1answer
50 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
129 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
30 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
59 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
39 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
30 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
25 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
53 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
528 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
45 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
17 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
36 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
79 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
39 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
77 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 ...
0
votes
2answers
44 views

Small build-in ssd in notebook can install linux?

I bought a samsung laptop series 5. There are a 24gb ssd and normal hard disk. I need to install linux ubuntu on this notebook. Can I just install the ubuntu on the build-in 24gb ssd? If not, how can ...
1
vote
1answer
57 views

xfreerdp keeps disconnecting

I'm logging into an rdp environment using Linux. Everything works fine if the session is constantly in use. However, if the user walks away from his/her desk, and comes back say 5 minutes later, the ...
3
votes
0answers
31 views

Is Watchdog can be disabled if once it is enabled?

I created a watchdog daemon application with time interval of 30 seconds; for every 5 seconds, I am trying to hit the watchdog counter, and it's working fine. If I kill this daemon process it shows ...
0
votes
0answers
23 views

Cannot connect to wired ethernet after hibernate

When I am at home I use wired connection on my laptop and it works fine. Then I put it to hibernate with sudo pm-hibernate and start it up again when I am work. I am not able to connect to internet ...
-4
votes
1answer
33 views

connect remote host without password in linux [duplicate]

Am trying to connect remote host by using ssh: ssh xxxx@hostname. It will connect by asking password. But I need to connect host with out password.
3
votes
0answers
38 views
+50

Reduce bad block retry / wait times in Ubuntu

How can I reduce the IO wait time and retry times so that the OS doesn't continually try to write to a failing drive? I have an system that I use to make copies of demo content that gets loaned out ...
3
votes
1answer
36 views

Switching users without the - symbol

I had to switch to a different user earlier for something that I was working on. I have originally done: su support While I was successfully able to switch to support, I found I was unable to make ...
2
votes
0answers
26 views

Mails from my server goes directly to spam

I am running an ubuntu server with plesk panel, Mails sent from this server goes directly to spam folder. All records seems perfect like spf, DKIM, Domain key, PTR etc.. I'm really stuck with this. I ...
1
vote
1answer
27 views

Built new kernel, LVM won't mount from initrd

I need to upgrade my kernel on a RHEL 5 system to build with some experimental drivers. I have configured the kernel with module loading for LVM (dm_* modules). Once the initrd runs the /init ...
1
vote
1answer
40 views

Mounting cifs: “Operation not supported”

Unlike the similar question, I cannot even connect with smbclient. The samba share works fine in windows and automagically works, but in Linux I can't mount it at all and the error message is ...
2
votes
1answer
40 views

Traffic segmentation for a particular subnet

Two questions is it possible to segment traffic for a particular subnet to use an interface and at the same time receive traffic from a different subnet via the same interface? This is the scenario. ...
3
votes
3answers
93 views

reorder GRUB to list Windows on top

I have win 7 and linux mint 14 installed. Is it possible to modify the GRUB Menu to show Windows as the first option instead of Linux, which it currently does. Mainly so that during boot it starts ...
3
votes
2answers
29 views

Source path of loop-device

Out of curiosity, I would like to know is there any way to find out the source of mounted partition ? e.g. Output of df -h is : /dev/loop1 3M 3M 0 100% /media/loop From this output, I know a ...
0
votes
0answers
43 views

How to create virtual serial port?

Is there a common way (tool?) to create two serial ports through physical /dev/ttyS0? I have to simultaneously use both to communicate. I've seen 'Socat' but I can't understand how can I use it just ...
3
votes
0answers
31 views

Output shutdown messages to multiple consoles

I have configured my system to direct console output on boot to serial and vga using kernel parameters. Serial is the last argument in the kernel parameters and will be the default used for ...
3
votes
1answer
39 views

locate java source code in jdk7

I have installed Jdk7 in Ubuntu 14.04 and it is successfully configured and I can use java libraries in code. The problem is that I am trying to locate java source code, but not able to find the jar ...
0
votes
1answer
90 views

Unresponsive desktop after resume from hibernation

After booting up my computer after hibernation (suspend to disk), my desktop is unresponsive for up to 15 minutes. I've found that the slowness is caused by the fact that all running applications seem ...
2
votes
0answers
30 views

LXDM login doesn't work

I installed Arch Linux on VirtualBox. As a login manager, I've chosen LXDM and XFCE for the window manager. I've set /usr/bin/startxfce4 as the session in etc/lxdm/lxdm.conf. The problem is that ...
0
votes
0answers
53 views

no internet connection (wireless or wired) on ubuntu 12.04

I have win7 and ubuntu 12.04 on dell inspiron 1545 with Dell Wireless 1397 WLAN MiniCard. wireless works fine on windows, but I cannot connect with ubuntu. when I tried connect with a cable - it said ...
3
votes
2answers
45 views

change tty login timeout - ArchLinux

By default when I login to my Arch linux box in a tty, there is a timeout after I type my username but before I type my password. So it goes like this Login: mylogin <enter> Password: (+ 60 ...
3
votes
0answers
29 views

Where is the input method configuration file?

My ibus input method was broken after an update. So I switched to fcitx. Actually, there are a handful IMs installed in my Fedora19 system, e.g. fcitx, ibus, yong, etc. However, I don't know how to ...
0
votes
1answer
24 views

Unable to connect to git.denx.de

I am trying to download U-boot for beaglebone black using Ubuntu 12.04, for this I am using this command git clone git://git.denx.de/u-boot.git Now, after typing this command in terminal, for about ...
4
votes
2answers
149 views

Live Distros: UBCD boot Deft, Caine, and Tails from Custom Menu

I'm building my own UBCD and I'm using dual layer to fit 7.5Gigs Useful resources for UBCD customization: The SYSLINUX Project UBCD Customize Casper Man Page Live Boot Man Page Here's my ...
0
votes
0answers
32 views

Calculate Total disk i/o by a single process [duplicate]

I am looking for some tool that will dump total disk I/O by a single process after it ends. So far my finding is :- iotop= It shows i/o per process in real time but does not give total after process ...
1
vote
1answer
40 views

How can I tell why I have permissions to read a file? [closed]

Here's what I just noticed on my CentOS SSH account: stat output $ stat /dev/kvm File: `/dev/kvm' Size: 0 Blocks: 0 IO Block: 4096 character special file Device: ...
-1
votes
1answer
36 views

How to control network bandwidth using Linux [closed]

Currently my Internet is really slow. But I want to allocate all resources to a browser that is loading a movie. How do I do that?