1
vote
1answer
30 views

diskio/diskiograph in Conky only understands physical device names?

In case this is so, it can be a huge downer in modern Linux distros, since the device names are very often assigned arbitrarily. So if you have no more than two HDDs in your system, but two USB flash ...
6
votes
1answer
71 views

Getting wrong $LINENO for a trapped function

I am writing a Bash script for myself to learn scripting. At some point, I need to add trap in order to clean unwanted directories and files if script is killed. However, for some reason I do not ...
1
vote
0answers
11 views

Cannot login to svn server

I have a SVN server on my Raspberry Pi (Raspbian). It has a project under the directory /welcome, I want to add users to it. My users would be admin with password admin and user2 with password ...
1
vote
0answers
13 views

man causes a broken pipe when using a pager other than less

I'm trying to write a simple script to format my man pages, but I've run into a broken pipe error. These lines both cause the error: env MANPAGER=cat man $foo man -P cat $foo and this is the ...
28
votes
4answers
1k views

Is there a downside to deleting all of the broken symbolic links in a system?

I was running a script that iterates over all the files on my linux system and creates some metadata about them, and it threw an error when it hit a broken symbolic link. Newish to *nix, but I get ...
2
votes
1answer
38 views

Compile Node.js for Raspberry fast

I wan't to know if there is a faster way to compile the node.js code for raspberry then letting the raspberry itself compile the code. Assuming I have cloned the nodejs source into /home/pi/node/ ...
3
votes
1answer
21 views

Debian netinst with usb modem

Im trying to install 64-bit debian on machine with windows and I have no way to connect internet over ethernet at this moment. I have only ZTE USB modem and Nokia N900 linux mobile phone with wifi ...
0
votes
1answer
7 views

How to configure Apache Rivet on openSUSE with YaST2

I need to configure my Apache web local server to view Tcl Apache Rivet web dynamic applications. The problem I run into is my browser forces me to download the file, so Apache doesn't interpret the ...
2
votes
3answers
57 views

Script to ssh and run a command doesn't work

Below is the script. I wanted to login several servers and check for the kernel version. #!/bin/bash #input server names line by line in server.txt cat server.txt | while read line do sshpass -p ...
2
votes
1answer
16 views

ionCube shell script gives error

I have this shell script to install ionCube loader: if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi echo "Welcome to this script to install the ionCube loader on CentOS!" cd ...
1
vote
4answers
77 views

Why is mono-complete completely outdated on all versions of Debian?

The current stable Debian 7/Wheezy is running on my server. With apt-get the latest mono version I can get is 2.10 which is three years old. I looked up the mono-complete package and even on unstable ...
5
votes
0answers
96 views

Echo difference between Ubuntu and Red Hat

I have mostly been experimenting with Ubuntu but recently was using a Red Hat Enterprise system and was surprised at a difference I found setting and displaying environment variables. In Ubuntu I ...
0
votes
0answers
18 views

Raspbian - Can't spoof a MAC address through HostAPD

I'm trying to let my Raspberry Pi function as an access point, but I keep running into some problems. Specifically when it comes to spoofing the MAC address. The purpose is to create a Nintendo 3DS ...
0
votes
1answer
16 views

Installing rvm and a specific version of ruby using rvm on linux based systems

UI testing is done using ruby and selenium. Installation of rvm Installation of specific version of ruby and setting a default version of ruby Note: Using a linux based operating system.
2
votes
1answer
26 views

What can I (not) shred from root while it is mounted?

I am performing a test migration from old server to new one. Part of the procedure involves cleaning up the old server of any traces of passwords, php scripts and custom configurations while remotely ...
0
votes
1answer
44 views

ELAN Touchscreen on Ubuntu 14.04 and Debian 7.6

I recently purchased an ASUS Q550LF laptop with Windows 8.1 preinstalled, and subsequently installed Ubuntu 14.04 and Debian 7.6. I use Ubuntu for most tasks, but occasionally have reason to boot ...
1
vote
1answer
36 views

Converting documents to text with UTF-8 encoding

unoconv uses LibreOffice to convert any file that LibreOffice can convert. Now I need export to text with the UTF-8 character encoding. I use the following command: unoconv -f txt -e ...
1
vote
1answer
14 views

Where can I set global Java Options?

I have horrible, improperly-rendered fonts in Java programs such as jabref and rubymine. This can be fixed by running _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on' jabref I understand that I ...
0
votes
1answer
41 views

What are PCI devices?

In Linux, the lspci command lists all the devices in my laptop (including AGP, USB, SATA, SCSI, bridges, ethernet, etc.). The man lspci command gives me this information: lspci - list all PCI ...
2
votes
1answer
30 views

Permissions to change only directory content and not itself

We have a directory and want to protect that from remove and rename, but we need to be able to rename, remove and create contents. What we can do?
1
vote
1answer
14 views

Got the “ERROR: Cannot decode data link type 239” message when turn on sniffer mode

I would like install snort 2.9.6 into Centos 7 the installation is ok and the result of the self-testing mode is correct but when I run this command to change Snort into sniffer or nids mode. I got ...
0
votes
0answers
45 views

Unable to mount root fs over NFS

I am attempting to set up the first (of many) Raspberry Pis running Pidora (a Fedora Remix) to boot from an NFS share. It is my goal to eventually place a dozen or more Raspberry Pis in the datacenter ...
3
votes
1answer
26 views

Does it matter what state I set if both locations are in the same timezone

Is there any difference if I set the timezone to timezone: "America/New_York" verses timezone: "America/Detroit" Both States are in the same timezone but other than identifying exactly where ...
5
votes
1answer
20 views

Upstart and bash function names containing “-”

I inherited some bash scripts where the author used "-" in the function names instead of the more normal "_" e.g.: function a-b { ... } Ugly but legal in bash. Problem is I sourced this inside an ...
2
votes
2answers
27 views

How to add specific directories to “updateb” (locate) search path?

I keep my digital music and digital photos in directories in a Windows partition, mounted at /media/win_c on my dual-boot box. I'd like to include those directories—but only those directories—in the ...
2
votes
2answers
20 views

How to escape a Whole Variable?

In the answer of thisquestion: https://superuser.com/questions/163515/bash-how-to-pass-command-line-arguments-containing-special-characters It said that we have to put an arg of a function in ...
7
votes
2answers
102 views

How can I instruct yum to install a specifc version of package X?

If there are 2 versions of a given RPM available in a YUM repository, how can I instruct yum to install the version I want? Looking through the Koji build service I notice that there are several ...
5
votes
2answers
48 views

Alternative command for coloured viewing the size of all files and folders

Is there a nice alternative for this? I always use du -shc * to check the size of all files and folders in the current directory. But it would be nice to have a colored and nicely formatted view ...
2
votes
1answer
18 views

attron(A_BLINK) using Ncurses does nothing

I'm using Ubuntu 14.04, gcc 4.8.2 and Ncurses 5.9.20140118; whenever I run any code like attron(A_BLINK); printw("Hi"); refresh(); the text that gets printed to the terminal doesn't blinks (or do ...
3
votes
1answer
12 views

How to block abusive IP addresses with pf in OpenBSD?

We can see from the nginx logs that there is an IP address doing nasty things. How can we block it with a pf command and then later permanently with the /etc/pf.log? How can we block a x.x.x.x/24 ...
5
votes
2answers
84 views

How do I preserve coloured output when piping to `less -R`?

$ ffmpeg -v debug ... Coloured output. $ ffmpeg -v debug ... |& less -R Dull output. How do I make the output coloured while piping it to something?
2
votes
2answers
53 views

Is reading a file on UNIX faster than writing a file?

Sorry for the sheer simplicity of this question. A rather obtuse performance bottleneck has boiled down to this very small query. I have done some empirical analysis and I think I might be getting ...
0
votes
0answers
16 views

How is user space process/thread controlled by the operating system

I understand this: User code executes in a process/thread context in a process address space, in user mode, and can address only user code/data defined for the process, with no access to privileged ...
3
votes
2answers
23 views

Should I install npm in Kubuntu?

I am using Kubuntu. I am looking into installing a plugin to help in javascript. This seems to be good jshint but it mention npm install What is this? My understanding is that in Kubuntu I should only ...
1
vote
2answers
19 views

Compile source with later libraries on one server and use the binary on an older server

I may have a noob question regarding the compiling software from source. I need the latest libpcre3-dev library to compile a software from source, however, the current distribution of the OS (Ubuntu) ...
3
votes
3answers
41 views

Removal of lines with more than 'N' fields?

I am working on mac with sed, perl, awk, bash.. I have a large-ish (10GB) text file which has 13 fields (columns) of TAB delimited data. Unfortunately some of these lines have extraneous TABs , so I ...
3
votes
1answer
50 views

Tokenize string from $REPLY in bash script

This is my first post, and I have no idea how I managed anything before StackExchage, Google, Wiki, GNU, Internet, the list goes on :) I am trying to find a way to construct a SQL database generator ...
2
votes
3answers
50 views

Checking if an input number is an integer

I'm trying to check if an input is an integer and I've gone over it a hundred times but don't see the error in this. Alas it does not work, it triggers the if statement for all inputs ...
1
vote
2answers
30 views

Debian VM Can see other computers on the network but can't connect to the WWW

Similar to this SU question: http://superuser.com/questions/667631/network-is-unreachable-when-attempting-to-ping-google-but-internal-addresses Actually, it's pretty much the same base issue. I went ...
0
votes
1answer
20 views

How set glib environment variable: g_slice

I've been told I need to set the following environment variable in order to work around a glib bug: G_SLICE=always-malloc But I don't know how to do it, and anywhere I've seen it's use recommended, ...
5
votes
0answers
45 views

USB HDD not working on linux

I have a WD My Passport 1 TB external hard drive which is giving me some problems on different linux machines: When I plug it in, nothing happens Gparted when detecting connected devices says "Error ...
0
votes
0answers
24 views

Can a process running in a linux container communicate with another process running on the host OS via IPC?

I have 2 processes A and B. Currently, both A and B are running on the same OS (RHEL6.2) and the processes can intercommunicate via TCP sockets. My objective is to run process B in a Linux Container ...
3
votes
1answer
37 views

BSD Net/1 was a free fully operating system?

I think that the old BSD Net/1 was not a fully operating system, but an add-on to 4.3BSD for VAX, as I realize from http://gunkies.org/wiki/Net/1 and http://gunkies.org/wiki/Net/2 Is it right? In ...
6
votes
1answer
40 views

How should I combine many compressed files into one archive?

I have a few hundred .tar.xz files which are almost identical (they are daily database dumps, and the database changes slowly). I believe that due to the similarities in the uncompressed files, they ...
0
votes
1answer
32 views

Compiling Awesome from source on CentOS: cannot find libraries

I am trying to install awesome (v3.5.5) on CentOS7. Since I could not find a repository that carries it, I am compiling it from source. However, I am getting this error on running make: -- checking ...
0
votes
0answers
11 views

automated bug reporting tool always says “invalid password or login”

Every time I get an ABRT bug in Fedora 20 and I try to report it, I have to enter my BZ login/PW again. How do I setup ABRT so that it saves my ID/PW and/or just logs in and reports my bugs when I ...
0
votes
0answers
20 views

Installing CentOs 6 with Direct Admin

I'm trying to install CentOS with a Direct Admin package. I have done it almost 10 already times but this time I can't get it to work. I've written down all of my steps here: Give root password: ...
2
votes
1answer
41 views

How to disable systemd's “Time has been changed” message spam in /var/log/syslog on Debian jessie?

Due to combined use of Debian jessie, that uses systemd by default, and sdwdate (that uses Slow Clock Adjuster ( gh )), my system clock is frequently changed. As a result /var/log/syslog gets ...
0
votes
0answers
8 views

How to get Samba link option in Midnight Commander in Cygwin? [on hold]

I have successfully set up smbclient in Cygwin. How do I configure Midnight Commander to work with it?
2
votes
1answer
18 views

Comparison of columns in two files and appending the first file

I need a help on this :- I have a file : emp.txt 21356 suresh 12/12/2012 23511 ramesh 11/06/2011 31456 biswajit 09/08/2013 53134 archan 06/02/2009 first field:- employee id, 2nd field is name and ...

15 30 50 per page