Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, July 30, 2014

Ubuntu 12.04 – The System is running in low-graphics mode

How do we fix it?
There is simple fix for this issue. Once you get the error on your screen press ALT+CTRL+F1, once in new screen type/run these commands
sudo apt-get update
sudo apt-get purge flglrx
sudo reboot
The message should be gone, if not there is good chnage that you have also trouble with gdm and you can fix it in these steps:
Again press ALT+CTRL+F1 and run these commands
sudo apt-get install gdm
sudo service gdm restart

Sunday, September 2, 2012

04.10.10 - Installing OpenGL/Glut libraries in Ubuntu

from http://www.kiwwito.com
The first step is to install the development libraries of OpenGL/Glut in Ubuntu:
sudo apt-get install freeglut3 freeglut3-dev

For newer versions of Ubuntu (>= 11.10) you have to install another package because the linker does't link anymore

.
sudo apt-get install binutils-gold

Create a test file (test.c):


#include <GL/glut.h>

//Drawing funciton
void draw(void)
{
  //Background color
  glClearColor(0,1,0,1);
  glClear(GL_COLOR_BUFFER_BIT );
  //Draw order
  glFlush();
}

//Main program
int main(int argc, char **argv)
{
  glutInit(&argc, argv);
  //Simple buffer
  glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB );
  glutInitWindowPosition(50,25);
  glutInitWindowSize(500,250);
  glutCreateWindow("Green window");
  //Call to the drawing function
  glutDisplayFunc(draw);
  glutMainLoop();
  return 0;
}

Compile the file linking the OpenGL/Glut libraries:
gcc -lGL -lglut test.c -o test