Programming :: Running C Graphics Program?
Sep 18, 2010i want to run c graphics program on linux for that i want to install[URL]but i dont know how to install this graphic file on linux to make it un.
View 1 Repliesi want to run c graphics program on linux for that i want to install[URL]but i dont know how to install this graphic file on linux to make it un.
View 1 RepliesI am trying to use perl to run a program using the eval command but the program runs infinitely, i just need it to run basically for one second, stop then give me the output. I tried using fork but it does not really work. The child process is not being killed.
my $pid = fork;
if ($pid == 0) {
my $results = `ngrep etc...`;
[code]...
I have a script that calls another program/script, xxx, to run in the background. Supposedly this program at most should finish within five (5) minutes so after five (5) minutes, I run some other steps to run the script into completion. My problem is sometimes the program takes longer than five (5) minutes and this is causing problems when running the rest of the steps in the scripts. Can anyone suggest how to re-program my script. At the moment, the KSH script, i.e. test.ksh, is doing as below:
test.ksh:
.....
.....
xxx/xxx.ksh <--- program/script called by the script
sleep 300
..... run the rest of the script .....
..... problem is sometimes xxx/xxx.ksh takes longer than 300 seconds .....
..... any way that I can monitor that xxx/xxx.ksh finishes before I run .....
..... the rest of the scripts .....
I'm looking for a way to detect whether or not a program has been called from pipe, e.g.
Code:
whatever | my_program
versus simply just being exectuated directly:
Code:
my_program
Why? In the first case, I want to run the program non-interactively, and in the latter case I want to print out user-friendly messages. I've been thinking along the lines of some check I haven't yet found, like:
Code:
if( stream_buffer_is_not_empty() )
print_interactive_messages();
I would like to know if there is a linux command to verify the amount of memory used by a program. The programs I am using were compiled with gfortran.
View 2 Replies View RelatedThe situation is that I have an MPI-parallel fortran program. I run it and it's distributed on N processors, and each of these processes must call an external program.
This external program is also an MPI program, however I want to run it in serial, on the processor that is calling it, as if it were part of the fortran program. The fortran program waits until the external program has completed, and then continues.
The problem is that this external program seems to run on any processor, and not necessarily the (now idle) processor that called it.
how I can call the program and ensure it runs only on this processor?
Extra information that might be helpful:
If I simply run the external program from the command line (ie, type "/path/myprogram.ex <enter>"), it runs fine. If I run it within the fortran program by calling it via
CALL SYSTEM("/path/myprogram.ex")
it doesn't run at all (doesn't even start) and everything crashes. I don't know why this is.
If I call it using mpiexec:
CALL SYSTEM("mpiexec -n 1 /path/myprogram.ex")
then it does work, but I get the problem that it can go on any node.
I'm trying to test whether wget is working still or not. While [ wget is still running ] <----- but how should this look please?
do
codes
done
Running a program with arguments using a shell script
View 1 Replies View RelatedMy requirement is to save files before shutting the Linux machine down, unattended ie: when the user is not near the machine. This is done whenever the UPS battery is about to die, so that the files get saved. open-Office/text-editor applications that can be saved using keystrokes will have to be found from the running processes and keystrokes should be sent to them from a C program that was started in non-graphics stage. ie: from a C program that forks into memory as a daemon before xwindows part starts. How to I send keystrokes to a running application? (like cotrol + F and then wait and then send next set of keystrokes till the file is saved as a new file or as the same file itself), either from C program or a script?
View 1 Replies View RelatedI have a java program that runs on Debian as a background processor. Yesterday the Java program stopped running. I looked at the memory usage, the system only had 5MB memory left, so my guess is that the java program ran out of memory to use.
However, after we restarted the java program, we could see that the free memory count started to go up. It kept going up from 5MB to over 400MB. The increase of memory happened slowly, when I measured it, I could see that with each minute passing by, there were a bit more memory added into the free memory pool, and meanwhile, the java background process was running.
I wonder why this would ever happen. It's as if our java program first brought the machine done because it consumed all the memories, then after restart, it starts to give back memories.
I presume there is something in the JWM window manager - or Puppy Linux Lupu 5.01 itself that is conflicting with the normal loading of GMPLAYER....
I would like to know how to troubleshoot, and fix this problem if possible (even a workaround would be great).
I need to run graphics program by gcc .Is it possible to run graphics program in C?if so?I tried <graphics .h> but this is not working in gcc.
View 1 Replies View Relatedhow will i creat graphics program in linux...fedora-13.
View 5 Replies View RelatedYesterday i upgraded my ubuntu to version 11.04.. but found that its running on very low graphics.. My additional driver for nvidia are also activated but it seems they are not working... i cannot even see the new 11.04 theme and unity is also not working.. Desktop looks like as if my using 10.04 version of ubuntu..Ubuntu is not working with its full graphics on.
My system(Laptop) configuration is:
Model: HP Dv6000 series
RAM:4GB
Graphics:nvidia 8400 GM
Processor: 2ghz
HDD:320GB
Additional OS: Windows 7 installed alongside ubuntu
get the real graphics for Ubuntu 11.04..
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
My code to get url's radio country.htm is:
Code:
I was attempting to install conky, but I hit some errors and now my ubuntu is running in low graphics mode.
View 1 Replies View RelatedI have Ubuntu 10.10 and when I boot my PC I can see the following message: Ubuntu is running in low graphics mode and Ubuntu stops booting. I can-t boot in it I can only use command line.
I think I accidentally uninstalled some packages clicking at completelly removal at some ipod utillities in synaptic. How can I fix this?
I just installed Ubuntu 9.10 and I was messing around with some settings and all that. I went to System > Preferences > Appearance > Visual Effects. I then proceeded to enable the "Extra" option. I was prompted to restart my computer for the effects to take place. Now it is running somewhat slow, for example when I open up Firefox, or any other program, it loads very slowly. I went back to change the Visual Effects back to "None" but it was already on that option, I don't know why. I went to my Hardware Drivers and I didn't have the recommended graphics driver on, so I put the recommended on and that had no help.
View 3 Replies View RelatedI'm running Ubuntu 9.10. I tried a solution for a wifi problem (wasn't always connecting) and now when I reboot I get "Ubuntu is running in low graphics mode" along with a bunch of EE messages. When I click OK it gives me "Run Ubuntu in low-graphics mode for just one session." Which gets me back to the desktop.
View 1 Replies View RelatedI am getting the following upon booting up after upgrading from 9.10 to 10.04 Beta:
Ubuntu is running in low-graphics mode. The following encountered. You may need to update your configuration to solve this
(EE) intel(0):[drm] failed to set drm interface version
(EE) intel(0):Failed to become DRM master
(EE) intel(0):failed to get resources:Bad file descriptor
(EE) intel(0:Kernel modesetting setup failed
(EE) Screen(s) found, but none have a usable configuration.
I then press the OK button (no other option given). Then I'm presented a menu with the following options:
(x) Run Ubuntu in low-graphics mode for just one session
( ) Reconfigure graphics
( ) Troubleshoot the error
( ) Exit to console login
( ) Restart X
Cancel and OK buttons. I choose OK and the system seems to boot ok.
I'm not sure what is wrong or how to go about solving this one.
(Consider yourselves forewarned: I'm completely new and will be incredibly stupid. Give me slack. )
So I'm trying to run my S-Video cord from my HP Desktop to my television screen. Everything was set up, then I looked up how to get it to start playing on forums here. I went to my NVIDIA, and when I went to change what apparently had to be changed, it was already set up in the format I was supposed to set it up as. I hit "save", and then restarted my computer, as the step-by-step instructions said. Upon restarting, I got an interesting message saying that Ubuntu had to be run in low graphics mode. I don't know the logistics of my computer, or really anything (it was given to me, and I don't know how to check ) I've been reading some things here, and a few things sounded like what was wrong with me, but when I followed the directions, it got me no where. I'm coming to you to prevent me from chucking this thing out my window .
So, what I'm asking from you:
1)How do I get out of Low Graphic Mode
2)How do I set up my NVIDIA to play to my TV?
First off, I am still using 10.04. This hasn't happened to me until now. I was in Vista (I have vista on another partition) doing some things in Photoshop, and I saved it, and done. I restarted to go back into ubuntu and when it was booting it gave me a message saying:
Ubuntu is running in low-graphics mode. Your screen, graphics card, and input device settings could not be detected correctly. You will need to configure these yourself.
If I click OK (there are no other options) it takes me to a screen asking, "What would you like to do?" The options are:
Run Ubuntu in low-graphics mode for just one session
Reconfigure graphics
Troubleshoot the error
Exit to console login
Restart X
Ubuntu is running in low graphics mode.Your screen, graphics card And input device settings could not be detected correctly. You will need to configure these yourself. ( If we press OK ) ( A dialogue box appears.) What would you like to do
*Run ubuntu in low graphics mode for just one session
* Reconfigure graphics.
*Troubleshoot the error.
*Exit to console login.
*Restart X. cancel/ok
(If we cancel Commands appear like this
Ubuntu 10.04.2 LTS johnson-desktop tty2
johnson-desktop login:-
(If we press OK another dialogue box appears.)plz help me for solving this problem
After running for a while, often after starting a program that displays graphics, such as Shutter, Gimp, Ocular, or maybe simply having previews in Dolphin (as some of my folders default to large previews)most menus, and some windows will go completely black. Some simply grey out (only ksystemlog does this that I have noticed so far)Blindly clicking anywhere on top title bar has no effect (would expect minimize/maximize etc to work if hitAlt-leftmouse or alt-middlemouse will allow window move/resize - black actively conforms to new window size/shape.
Often this blackening is preceded by a loss of all global hotkeys, which may not be related.With no visible menus or buttons, and with no hotkeys I am forced to hit the PC power button and allow kubuntu to shutdown.If I am lucky and hotkeys still work i can simply log out with ctrl-alt-shitft-del and logging in again fixes the issue.Linux betlogbox 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 2010 x86_64 GNU/Linux
On an old laptop I needed some package (pdftk) from 11.3 and so I upgraded. But I cannot get the graphics running at a reasonable speed now. This old laptop has a Radeon RV350 (mobility Radeon 9600 M10) as shown by lspci. The current ATI closed source drivers don't support this card any more but the legacy driver doesn't support the 2.6.34.7-0.4-default kernel anymore.
Using the open source xf86-video-ati driver gives me an unacceptable alternative:
Without a kernel boot parameter it's dead slow, glxgears shows only 200 frames/sec and my Opengl application (see below) is just unusable with this setting.
Adding the 'nomodeset' kernel parameter make the graphics much faster - glxgears reports 1800 frames/sec - BUT now my Opengl application freezes the machine (only a power cycle can revive it). I'm using the Python/OpenGL application "Impressive" to present pdf files.
I just reinstalled my OS (Ubuntu 10.04) and on a new and faster drive than before. And now it's running slower! I was an IDE drive before and not it's SATA and at higher RPM's. The first thing I noticed was that my game, "Armagetron" was not the same. The graphics are really screwed up in it. It looks like a diff version altogether! And I can't find any other versions. Also the controls were different! I have never had to change the controls before. This is what it use to look like before the format: [URL]. This is what it looks like now: Then I played some other games just to see and test. They don't look different but they definitely LAG.....
View 5 Replies View RelatedOk so Basically i have 2 questions
1. i know how to create a file with c++ using but is there a way to save it to a specific location on your computer with windows and linux
Code:
2. i need to know how to run/execute/open a file in a c++ program im using and its not working
Code:
I had originally followed the advice at Mauriat Miranda's Fedora Nvidia Driver Install Guide [URL] for installing nvidia's display driver on my HP Pavilion system 64 bit running Fedora 11. I had used his first method which just installs the relevant kernel module kmod-nvidia from RPMFusion. He also suggested an alternate method: obtaining Nvidia's installer NVIDIA-Linux-x86_64-185.18.36-pkg2.run and using that. I downloaded it from Nvidia, but I didn't run it.
I recently lost X. This had happened previously after a kernel upgrade, and I just used grub to boot an earlier kernel to recover X, and then installed the upgraded kernel module to fix the problem. But this time, being deeply involved in something else, I panicked slightly, and, using dumb terminal mode I ran the Nvidia installer. It asked me to make various choices and in response to my answers, it decided to compile a new kernel module. This recovered X, but I then compounded things by installing the updated kmod-nvidia.
I realized afterwards that using both methods might create some conflicts, but X seemed to run properly. (I can tell because graphics in the program Maple doesn't work properly with the default drivers provided by Fedora 11.) Since then, when I restart nvidia, I get.
[Code]....
I installed the powerpc version of Debian Squeeze 6.0.1a on an eMac. According to the Wikipedia article, these systems had an nVidia geforce2 MX graphics card, and the system is using the Debian open nVidia drivers from install. I've gotten everything working on it, except the graphics are off. It's acting like either it can't handle the resolution or all the colors and looks a little like it wants to run in 256 colors. It's not unusable, just annoying. I know that it can handle a normal resolution because it was doing fine under Mac OS X puma before I wiped it and installed debian (I put debian on it because I needed a modern web browser, and the ones available under that version of Mac OS X weren't doing the job). I went to the nVidia website, but they only have the driver for x86 Linux. I need it for the G4 powerpc. Any ideas? I'm used to running Ubuntu on x86 machines, so the powerpc thing is throwing me a bit.
View 4 Replies View RelatedI have been running 10.4 with no problems for some time now. Today when I booted up it started checking the drive for errors, and I just left it to do its thing. I came back to this warning screen: Ubuntu is running in low-graphics mode.Your screen, graphics card, and input device settings could not be detected correctly.
I've tried all of these with no luck. When I select to run to low graphics mode, it says "Stand by one minute while the display restarts...OK".I select OK and then it gets stuck checking for battery state.I try to reconfigure the graphics, and nothing happens when I select any of the options on the next screen.