0
votes
1answer
9 views

script to log temperature

I have been trying to write a BASH script to log my raspberry pi's temperature. My plan is to run it as a crontab every 15 mins or something. However I keep getting errors, I think it's something to ...
0
votes
0answers
5 views

lsd-slam installation failed during rosmake

I am trying to install the lsd-slam library without success. When typing during the last step of the installation: rosmake lsd_slam I got this output: [ rosmake ] rosmake starting... ...
0
votes
0answers
4 views

Make OpenVPN accessible from outside the network

I'm trying to get openvpn working on my centos machine but I'm having some issues and I don't really know much about openvpn. I've managed to get it working and I can connect to it with another ...
0
votes
0answers
9 views

Pack installed system in tar.gz file

I have arch linux installed, with partition scheme like this: /dev/mapper/lvm-root -> / /dev/mapper/lvm-home -> /home /dev/mapper/lvm-opt -> /opt /dev/mapper/lvm-pkg -> ...
1
vote
1answer
8 views

Failed umount /home (ZFS) on shutdown

During shutdown I notice an error reported in the logging messages on the screen that the umounting of /home (a ZFS filesystem) failed. (After restart I don't find any respective log entry in the ...
0
votes
0answers
13 views

Number of Programs Crashing when Started

I am using Debian GNU/Linux 7.8 (wheezy) and I am having an issue with opening a number of programs. The story goes that a couple months ago, I ran Debian with little-to-no issues. After updating it, ...
0
votes
1answer
14 views

How to restrict a VMWare linux from distribution?

How to restrict a VMWare Linux from distribution, e.g. restrict the copy and move to another computer? In a case, I have sold a specific VMWare Linux (which contains a specific software) to someone ...
0
votes
1answer
14 views

Xlib: extension “RANDR” missing on display

I'm trying run Firefox headless with Xvfb in Debian 7.8. I run Xvfb (I tried with +extension RANDR and -extension RANDR) $ sudo Xvfb :10 -ac [dix] Could not init font path element ...
0
votes
1answer
8 views

to allow certain ips and block all other connections on AMAZON EC2 ubuntu 12.04

How do I allow certain IPs and block all other connection in iptables on AMAZON EC2?
0
votes
0answers
5 views

Finding cd/dvd drive iso pickup location in esx VM using perl VI toolkit

I am using perl for managing my VM's in esx using VMWare's perl VI toolkit. I need to find the path of iso image to which cd/dvd drive is currently pointing to in datastore.
0
votes
2answers
13 views

I can not install MySQL using yum on Centos7

I've installed centos7 recently, but, when I am trying to install MySQL using the command: yum install mysql-community-server I keep getting Exiting on user cancel while I am not hitting any ...
3
votes
3answers
83 views

How to use printf and %s when there are color codes?

I had these lines: if [[ $# -eq 0 ]]; then printf "$fail_color Error - Function: $function, Line: $line_number \n" printf "do_test: Third parameter missing - expected result\n" exit 1 fi This ...
0
votes
0answers
9 views

Virtual VGA connected

I have new Board to work on. I connect the HDMI monitor to it. This board have support for VGA, DVI-I and HDMI. Now when I connect the VGA monitor only. xrandr shows me that DVI-I, HDMI are ...
2
votes
1answer
22 views

systemd service can't access user home

I am trying to setup a systemd service on Ubuntu 15.04 (and Debian 8). I have a program /home/testuser/server/prrserver. My systemd service is configured to run prrserver as testuser:testuser. What ...
1
vote
0answers
15 views

grub/systemd boot removed partition

I have an Asus Zenbook UX32VD. This laptop has a 500GB HDD and a built in 24GB iSSD (not sure what the i is for). Since I first got it three years ago I have been installing various linux ...
0
votes
0answers
15 views

bash - ignore case but disallow autocomplete if ambiguous

Recently i face inconvenient when using bash auto complete with ignore case. Let's say i have this directories: [xiaobai@xiaobai test]$ l total 20K 3407873 drwx------. 60 xiaobai xiaobai 4.0K May 25 ...
-11
votes
0answers
39 views

unix standard file streams [duplicate]

Each Unix process has three standard file streams associated with it. Give two of these streams and give a command line example of each being re-directed
1
vote
1answer
13 views

Xampp installer Error

I tried to install xampp ver 5.5.24 on Debian using terminal, after setting it to run as executables in permissions with. ./xampp-linux-5.5.24-0-installer.run I get Segmentation fault Then I ...
1
vote
2answers
6 views

how does Thunar generate thumbnails?

How does Thunar generate thumbnails? Does it generate them themself or does it use some external tool?
2
votes
1answer
19 views

Auto disconnect from WLAN if unused

For Nokia N900 there is an app called AutoDisconnect which monitors the WLAN usage and closes the connection if the traffic is very low. I'd like to have something like this on my future notebook in ...
0
votes
0answers
6 views

In Ansible dynamic inventory JSON, can I “render” hostvars based on the hostname?

The Ansible documentation gives an example here on how to return an inventory in JSON format: { "databases" : { "hosts" : [ "host1.example.com", "host2.example.com" ], "vars" ...
1
vote
1answer
32 views

How to grep whitespace exclude new-line character?

Today I need to check which lines of my files containing trailing whitespace. And I figured out a solution: grep -Enr --color "\s+$" ./ This works well except for those lines containing non-Unix ...
0
votes
0answers
11 views

openbsd: mpls provider doesn't forward packets

Can anybody help me with next question: I am trying to get mpls test network up like in http://lteo.net/blog/2013/09/03/a-small-mpls-test-network-built-with-openbsd/ or ...
1
vote
1answer
29 views

sudo apt-get update doesn't work

I am using ubuntu 14.04 LTS. when I run sudo apt-get update command in terminal, following error will appear E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) ...
0
votes
0answers
17 views

Error in Python multiprocessing process [migrated]

I am trying a write a python code having multiple processes whose structure and flow is something like this: import multiprocessing import ctypes import time import errno m=multiprocessing.Manager() ...
2
votes
1answer
18 views

Releasing linux software - compatibility

I want to release a C++ library for Linux. Is it true that (when no other libs are dynamically linked) only the glibc version decides compatibility to other Linux distributions? Is there a better way ...
2
votes
2answers
48 views

How to change suffix of the files

In a dir structure which has multiple subfolders and files in it. some of the file names has the suffix _create (java1_create) and some of them with _bak (java2_bak). I need to rename only the ...
3
votes
2answers
91 views

What's the difference between poweroff and halt? [duplicate]

To turn off my system, I can use one of these three commands: sudo halt Or: sudo poweroff Or: sudo shutdown -h now What are the differences between these commands, or are they all just ...
1
vote
0answers
10 views

How to get miniature(live thumnail preview) of open windows on linux?

Gnome-shell does it in the 'activities' screen, unity/compiz has it in 'Spread','Shift','ALT-Tab'. How do I get those live window previews in C++?
0
votes
0answers
17 views

Split adds extra LINE FEED (LF) with Character " (Doubel Quote)

I'm using the follwoing script to split a large file into smaller ones... but the lines in the files generated looks like this split -d -a 5 -l 1000 - ${in_file}"_" ...
0
votes
1answer
12 views

Connections without Virtualhost

I saw tons of connections on port 80. But no requests from these IP addresses were logged in Apache access/error logs. I deleted all the virtual hosts, stopped Apache, and restarted it after there are ...
0
votes
0answers
14 views

Depends: libqtgui4 (>= 4.6.2) but it is not installed

I want to install the Wing IDE for python. When I executed it, dpkg showed me some qt packages that were not installed. I installed a few of them via Synaptic Package Manager, but the rest cannot be ...
0
votes
0answers
14 views

Find out the changes in virtual OS when copping it

I have installed CentOs 5 by means of VMware in a computer named "computer_A". Now I have copied this virtual OS files (I mean VMware files) from "computer_A" to another computer named "computer_B". ...
0
votes
1answer
22 views

Restrict VM Linux installed on a computer to run in another one [on hold]

My host OS is Windows. Using VMWare I installed an image of Linux CentOS 5. In this VM I have installed a software named "mySoft". I want to sell the VM to one person to run only on his computer. ...
0
votes
0answers
18 views

Using `minicom` not able to access the root file system

I am trying to use minicom for my serial cable communication to the target but I am not able to access the / of my remote device.I tried setting up ttyXX for minicom using sudo minicom -s but still I ...
1
vote
2answers
32 views

Want to find a file Name starting with a pattern and ending with .csv

I have a folder in which I have many subfolders. The Root folder name is allCSV and sub foldername is will be like a_date(s), b_date(s), c_date(s) ... I want a file which is in a_date(s) and ends ...
0
votes
0answers
10 views

Random crashes on XFCE - how to diagnose what's happening?

I'm on Parabola (a fork of Arch), and I'm running the XFCE desktop environment. However, I periodically get these weird crashes, where my entire desktop freezes. I have no ability to move my cursor ...
1
vote
1answer
13 views

Phrase search in recoll

I would like to know whether I could avoid Recoll searching uses of any of the words in a term and only search the exact term. For example I'm trying to search for register indirect and it gives ...
2
votes
0answers
8 views

How to use blktrace to monitor the eMMC Flash access pattern?

I'm trying to simulate a FTL(Flash Translation Layer) algorithm and evaluate its performance. What I need is a trace file of a flash access(containing information about block and page access). I'm ...
-1
votes
1answer
35 views

Extending awk one-liner from identifying matching pair of columns (row by row), to multiple columns

I am using Win7 with Cygwin. I have a one-liner that will work for identifying matches in a PAIR of columns, but when I try to introduce additional columns (i.e. >2) I cannot get it to work. So the ...
0
votes
0answers
17 views

read failure error while connecting to the server

There was a problem last night when I tried to connect to a remote server from my personal computer having Linux. First, I received the following error: ssh_exchange_identification: read: Connection ...
0
votes
0answers
7 views

Problems Setting Up DHCP Server On CentOS 6

I have been trying to set up a DHCP server on CentOS 6 running on an Intel NUC i7. I have installed dhcpd and am using the example dhcpd.conf subnet 192.168.1.0 netmask 255.255.255.0 { option ...
0
votes
0answers
11 views

Debian won't accept my network's password during installation

I'm trying to install Debian Jessie on a Toshiba Satellite M45-S331, but I'm stuck on the "Configure the network" step. I successfully installed the firmware for my wireless card, and I am able to ...
0
votes
2answers
25 views

Log file processing [on hold]

I have a log file like this; I can get NOW=HOUR=date +'%H' I can get login time in hour with something like cat file | awk '{print $2}' | cut -d: -f1 Is there a way I can compare the login times ...
1
vote
1answer
15 views

USB hard drive doesn't auto mount

I just bought a raspberry pi and want to start using it as a NAS. I'm fairly new to this, but I've gotten this far.. I've got an external hard drive (freshly formatted NTFS) connected with a USB cable ...
0
votes
0answers
17 views

Internet connection in Grub2 [on hold]

Would it at all be possible to create an internet connection in Grub2? During boot that is? I realize the imminent security threat in doing so. Not asking if this is a good idea. I am more asking of ...
3
votes
3answers
155 views

grep command not working in conditional statement

I've a bash script that's supposed to go over all the filenames and print them only those that contain a certain letter (let's say it's 'o'). What I've done: command=`ls -l` for file in $command do ...
0
votes
1answer
22 views

cant run dd command on android device

The main objective is to send a splited file to an android and join it back up with a .sh script, the file is splited to 5MB parts but its total size is unknown (trying to make an universal script), ...
0
votes
0answers
5 views

Arch and Windows 7 dual boot with encryption, replacing existing Linux install

I have a computer with 3 hard drives: 120 GB SSD, which Arch identifies as sdb 1 TB spinny drive, which Arch identifies as sdc 160 GB spinny drive, which Arch identifies as sda Currently, Windows ...
5
votes
3answers
170 views

Easiest way to find missing quote in a bash a script?

I have a bash script which is currently 700+ lines long. After a particularly long round of editing, it now errors like so: ./run_me.sh: line 693: unexpected EOF while looking for matching `'' ...

15 30 50 per page