Linux: Content of /dev/fb0 not displayed to screen as expected - c++

I make a small c++ program on Ubuntu 14.04 virtual machine (run by VMWare) to draw some PNG files to framebuffer "/dev/fb0".
I expect content of the PNG files will be displayed on a window on Ubuntu.
But after i run program, VMWare switch to other screen (see the picture1.png below)
Then, if i make the VMWare full screen, the VMWare switch back to screen of Ubuntu (see the picture2.png below)
Are there something wrong when run Ubuntu virtual machine by VMWare ?

I have solved my problem.
Basically, content of /dev/fb0 not diplayed on x window but displayed on virtual console.
I have to switch to virtual console by press 'Ctrl + Alt + F1', then run my program. After that my PNG files displayed Ok.

Related

How to resize screen resolution in Windows 10 guest Virtual box

I have windows 10 as guest PC. Problem is that I can't change window resolution in guest PC. Guest Addtions are installed but nothing is changed when I choose any of resolutions above 1024*768. I have installed 5.1.6 version of virtual box.
UPDATED: I have restarted my PC and resize screen works fine.

Virtual Box on a 15-inch MacBook ProYosemite with Retina display

I am installing Windows 7 in a 15-inch MacBook Pro Yosemite with Retina display, using a Virtual Box 4.3.28,
Would be possible to see the virtual machine in full screen mode ???
What version of VB do you have? I have 4.3 and OSX Yosemite and was able to fullscreen with View -> Switch for Fullscreen Mode
Yes, navigate to View -> Switch to Fullscreen Mode (or HOST+F)
Make sure you install the Guest Additions.
While in Virtual Box, select the Devices Menu, Insert Guest Additions CD. This will show up on the Windows Computer section. Run the installation, reboot and the screen will now be full screen.

BeagleBone Black: Cannot execute binary on MicroSD

I recently purchased a BeagleBone Black Revision C. To test my first program this is what I did:
I plugged an old spare MicroSD card into BeagleBone Black's MicroSD Slot.
Connected BeagleBone Black directly to my Ubuntu PC using a USB cable and powered it on.
Used SSH to connect directly with the BBB board.
Debian OS on BeagleBone shows the contents of the MicroSD inside the /media/xxx folder.
I used nano to create a "hello world" C++ program and saved it on the microSD and used the on-board g++ to compile/link it.
Compilation/linking created an a.out binary on the MicroSD.
My Issue:
When I try to run the binary using the command ./a.out from my SSH prompt I receive a Permisison Denied message.
I unsuccessfully tried to set the executable flag using chmod command.
But everything works when I save the program on the on-board storage, compile and link it, and run the binary from there.
Please assist, I am a complete novice. My first guess is that Debian OS on the BeagleBone Black doesn't allow execution of binaries stored outside the on-board eMMC, but I might be wrong.

Windows XP Mode loading in small screen in vmware player

I am running windows 7. I have just finished downloading and converting (using vmware converter) the Windows XP Mode vmware image to a .vmx file for vmware player.
I can then play the Windows XP image fine in VMWare player. There is however and issue where the windows xp screen inside vmware does not take up the whole screen. In face it only takes up a very small area. I've read on some forums that this might be a compatibility issue between windows 7 and windows xp.
Does anyone know how to fix this please?
Install VMWare Tools on the guest XP machine and bounce it. It contains several virtualization drivers among them one for the virtual graphic card. This allows you to dynamically change the screen resolution of the guest, just by resizing the VMWare Player window.

Blackberry simulator: can't lower graphics settings in view menu

I downloaded the simulator for BB Bold 9930 (v. 7.1) at http://us.blackberry.com/sites/developers/resources/simulators.html
My Windows VM follows the system requirements at http://developer.blackberry.com/bbos/java/documentation/the_bb_smrtphn_simulator_447179_11.html, except for one thing: OpenGL 1.x compatibility, which I can't figure out how to test (see Windows 7 on Virtualbox virtual machine: is it OpenGL 1.x compatible?).
So installing this and launching C:\Program Files\Research In Motion......\9930.bat causes the following error to come up:
"An OpenGL 1.x + compatible video card with recent video drivers is required for graphics acceleration. Please try a lower graphics acceleration setting by navigating to the view menu".
Clicking on the view menu is impossible until I click OK on the modal dialog, but when I do so, the program immediately crashes with the message "BlackBerry Handheld Simulator has stopped working".
Is there any way around (through the command line, for instance?)
You should be able to force the simulator not to use the graphics acceleration at all (which hopefully would work around your problem).
See this BlackBerry forum thread here.
Basically, just include this in your simulator config file:
<?xml version="1.0" encoding="utf-8"?>
<fledge-configuration>
<BodyBuilder::opengl-acceleration>0</BodyBuilder::opengl-acceleration>
The setting of 0 turns off graphics acceleration. You can either turn it off by default in your simulators, or just in one particular simulator, by using the fledge-saved.conf file, or 9900-saved.conf file (for example, to change the setting on the 9900 simulator).
On a Windows system, these config files would be located somewhere like:
C:\Users\myname\net\rim\fledge-2\