I had a directory with number of files and need to check the count of files present in it. I tried the following two commands: and found there are differences while using both commands. (ie. number of files is greater in the usage of second command while comparing to the first command.) I would like to know t…
Tag: linux
Ptrace prevents signal from interrupting pselect() in traced process
I’m trying to monitor syscalls for a binary using ptrace. The binary sleeps in pselect() and without ptrace, a SIGQUIT makes it return from pselect. The mask of blocked signals passed to pselect includes SIGQUIT. When executed with ptrace, it exits from sys_pselect6 but not all the way out of glibc̵…
How do I debug Android native code into kernel?
I compiled goldfish kernel with: I started the AVD with the compiled kernel. emulator -kernel goldfish/arch/arm/boot/zImage -avd TestAVD I pushed a compiled c program onto AVD. And I downloaded the libs (I’m not sure if it’s the proper way) run gdbserver: forward port: run gdb specify the search d…
how to install software on linux without root permissions
I need some help to install the ABySS assembler on PuTTY (virtual Linux) without root permission (as it takes a long time going via IT department etc.). To be honest I’ve no idea where to start from, so I’ll be very appreciated for step-by-step guide if that is not too much to ask. Thanks in advan…
Concept of Virtual Environments
Hope this question belongs here. As a linux noob, I am sure my question sounds confusing and heavily non-technical, but please help me understand this. Anaconda Python Distribution comes with the concept of creating environments where I can maintain a variety of python versions and specific packages based on …
updating product/vendor id on Raspberry Pi (CP210X)
Running “uname -a” on my Raspberry Pi will yield the following: Linux tm-gw 4.4.14-v7+ #896 SMP Sat Jul 2 15:09:43 BST 2016 armv7l GNU/Linux My problem is that I have a USB device which vendor and product ID isn’t registered in CP210x.c file, which – again – means that even thoug…
Closing then opening standard input in C under Linux
I have a C console application under Linux (Raspbian – Raspberry Pi). The program has some character animation – it prints out messages character by character. For example, the text Please give me your name! is printed out completely after 5 seconds (char by char). Afterwards, the user is asked to…
How to run Linux on a QEMU ARM Versatile machine?
I’m trying to run linux on qemu, especially the versatile version. I downloaded qemu and linux from github. (qemu : https://github.com/qemu/qemu.git, linux : https://github.com/torvalds/linux.git) I think these two repositorys are the main project of them. Anyway, I compiled linux with 2 steps. make ARC…
Optimal way to install clang locally when GCC is outdated
I need to use tools that depend on clang on a Unix machine I remote onto at work. Anything I install is locally installed onto ~/local. I do not have root permissions. /usr is pretty outdated, with gcc being at version 4.4.7. clang requires gcc 4.7+ I read on linux from scratch that a gcc 6.1 installation req…
Installing libxcb – No package ‘xcb-proto’ found
I’m attempting to install Xorg on linux (CentOS 6.6) by following “Beyond Linux From Scratch”(http://www.linuxfromscratch.org/blfs/view/cvs/x/xorg7.html), and had an issue while installing libxcb-1.12 with: where: And I got the error: I’ve already installed below by following the instr…