Posts

Showing posts from March, 2016

Reset old password of Ubuntu OS

Good morning everybody. Today I would like to share new knowledge I get from www.liberiangeek.net. It's really help me a lot. I have been not using my ubuntu PC quite long, so I forgoot password to log into super user account. And I googled ( :p) to solve the problem and I found what I looked for... First, you restart or reboot your computer and at Boot menu, choose "Advance Options for Ubuntu". Second, select last version ubuntu recovery mode! and choose root. Third, execute this two commands below: max@my-PC:~$ mount -rw -o remount / max@my-PC:~$ sudo passwd [username] replace username with your username account. Last, input your desire password. Hope it will help you

How to compile C++ program in Ubuntu

As we know, there are so many texteditor and compiler to create and compile any program. Generally, texteditor and compiler is to be one packet and it makes us easy to work with besiades it is user friendly as well. That all facillity spoiles us even we have to learn as well. But, how if we find new compiler that have difference way to use like g++ in Ubuntu. It gives us a little bit effort to understand it of course even for some people it can make them lazy. Here I will explain how to compile C++ programs using g++ compiler in Ubuntu. I assume you create the program using nano text editor and you have installed g++. Let's say you name the program as example.cpp and we will do all work from terminal first, open terminal. You can use hot keys ctrl+alt+T to open terminal. second, create compiling program "g++ example.cpp" third, check location of file in which directory it's been saved. use "ls" command to show or list any file and directory at cert...