I’m sorry, but I don’t understand how use picocom to send a request/command to the device. Official doc: http://linux.die.net/man/8/picocom I want to be IN the OS I reach, I connect to an Arduino YUN using linux OS inside and I want to be root on it, it’s probably easy, I’m already con…
Linux display currently running processes
What is the command to display currently running processes and the option to display PPID’s? I thought that it might be: jobs -p jobs -pl Neither worked though. Any hints? Answer ps -ef will display all processes and include PPIDs.
Ansible after ‘vagrant provision’ gives this error “Could not import python modules: apt, apt_pkg. Please install python-apt package.”
I have a very simple VagrantFile and Ansible Playbook. I just want to test install httpd. But every time I run vagrant provision after the VM is up I get this error: This is my VagrantFile: And this is my simple playbook.yml: And my inventory.yml: I did install the python-apt package on the virtual machine, b…
Script for root to git pull as another user
I have a script that I would like to have do a git pull inside another user’s git directory. This script is run by the root user. For example: When I run this, I get: Is there a way to have my script do a git pull as username? Answer Try without the -i option to sudo. That option is
comparing two files with different columns
i have the two files(count.txt, count1.txt). i need to do the following 1. get the values from count.txt and count1.txt where 1st column is equal. 2. if its equal need to compare the 2nd column like ((1st column value + 5) >= 2 column value) count.txt order1,150 order2,165 order3,125 count1.txt order1,155 …
obtaining received signal strength of neighboring devices
I use AR9271 chipset usb WiFi device on Debian 7 on kernel 3.12.rc5. I use ath9k_htc and nl80211 drivers. I create an ad-hoc WLAN via wpa_supplicant 2.0 and I would like to obtain received signal strength of the neighboring device in a C program. What function or API can I use to obtain that information? Answ…
Capturing user-space variables at “perf” events
I’ve now been able to get perf to capture a user-space stack`, but I’m not sure how to convince it to capture values passed by reference as pointers, or to snapshot globals of interest. Specifically, I’m trying to analyse the system-wide performance of PostgreSQL under various loads with and…
Segfault from ld-linux in my build of glibc
Running Ubuntu 10.04 Downloaded the source and did the following: This works: This fails: But this works: False, grep, and cat and everything else I’ve tried in /bin segfault in the same manner. Is there an issue with the source? Am I compiling it incorrectly? Also of note is that i downloaded the corre…
How do I detect the Ubuntu version?
I’m currently writing a Python app that changes some network configuration files. The app needs to run on Ubuntu 10.04 to 13.10. The problem is, that NetworkManager is broken in different ways on different versions (though they seem to have finally fixed it in 13.04+), and this causes incompatibilities …
Shuffling a large text file without/with group order maintained
Instead of making a script, it there a one liner to shuffle a large tab separated text file, based on the unique elements in the first column. That means, for each unique element in the first column, number of rows will be equal and be specified by the user. There are two output possibilities, maintaining the…