Posts

Showing posts from September 10, 2018

How can I test that the bash interactive shell handles the signal using the handler that I set up via `trap`?

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite In a bash interactive shell, when I run a trap command (e.g. trap "echo You hit control-C!" INT ) to set up a signal handler, does that set up how the bash interactive shell handles the signal? How can I test that the bash interactive shell handles the signal by using the handler that I set up via trap ? Is it possible to test i.e. to generate the signal within the bash interactive shell? within the terminal emulator where the shell runs? Or must I test from the outside of the bash interactive shell, or outside the terminal emulator? Thanks. bash signals trap share | improve this question asked Oct 19 '17 at 22:44 Tim 22.9k 66 225 407 What do you expect to happen, and what's happening instead? The definition of trap is "The commands in arg are to be read and executed when the shell receives signal sigspec." – Jeff Schaller Oct 19 '17 at 23:

Install Linux side by side on an encrypted disk running Windows 10

Image
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite I have a workplace issued laptop that has Windows 10 installed and BitLocker encyrption enabled. So when I power on the machine, the first thing that happens (after the vendor logo) is BitLocker key prompt, after which Windows starts loading. Is it even possible to install Linux (Ubuntu or Elementary OS) for dual boot on such a set up? If it is, what is the most minimally invasive method? I am OK with having Windows loader as the primary loader etc. I know running in VirtualBox is an option, but that is too slow and I would prefer native feel. dual-boot disk-encryption share | improve this question asked Oct 19 '17 at 23:04 shikhanshu 113 3 You mentioned that it has installed Windows 10, Have you tried enabling bash which will give you a Linux-terminal. (I know that's not exactly what you want, but it's pretty close...) Note: this requires access to control panel –

maximizing image display rate

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I am trying to consecutively display images as rapidly as possible without encoding the images in a video format. The images in question are 8-bit grayscale PNGs between 10k and 10M in size; the entire image set can easily fit into RAM. The fastest image viewer I have found for GNU/linux systems is feh , but its maximum display rate on my system is ~23/s for 25-kB images and ~10/s for 2-MB images. Disk I/O is not rate-limiting since copying the files to a RAM disk has no effect on the display rate. The refresh rate of the monitor is 60 Hz, and is therefore is also not limiting. I conclude that the rate-limiting process is some aspect of graphical rendering, about which I know little. How could I determine which aspect? What, if anything, could be done to improve the display rate (alternate image viewers, optimizing GPU caching, disabling unneeded functions in X11, hardware replacement, etc.)? x11 graphics displ