Click here to load reader
Upload
irfan-ahmed
View
605
Download
1
Embed Size (px)
Citation preview
How to Start Programming inLinuxMint / Ubuntu
Me?
Irfan Ahmed Rizvi 10th Semester, CSE University of Liberal Arts Bangladesh(Ulab)
Professional Web Application Developer(Ruby on Rails Framework) (Freelancing through Odesk)
Topics
How To Program With C/C++ on LinuxMint/Ubuntu Distro Standard Tools Text Editors Practical Session
How To Setup Lamp Server and Develop Web App with PHP Setup Lamp Server Configure Virtual Host Running PHP file Practical Session
How To Contribute on Open Source?
How To Program With C/C++ on LinuxMint/Ubuntu Distro
Standard Tools for C/C++
GCC Tool Set for C/C++ It is command line driven Various IDE available that wrapped with GCC tool set. To Setup GCC easily:
sudo apt-get install build-essential sudo apt-get install gcc
Compile and Run C/C++ program
Write Down the Code using you favorite text editor Run Terminal/Console If C program:
To compile run gcc <directory>/<File.c> -o <Output file name> To Run: /.<output file name> Done!
If C++ program: To compile run g++ <directory>/<File.c> -o <Output file name> To Run: /.<output file name>
Done!
Text Editors
There are lots of Text Editors Vim gVim Kate gEdit Nano Emacs Eclipse(Powerful IDE) Geany Codeblock
Practical Session For C/C++
How To Setup Lamp Server and Develop Web App with PHP
Installing Server Writing Script with PHP Configuring Virtual Host Enable It
Installing Lamp Server
No Hassle! Just A Single Command! Simply Run the Following Command on Your Console/Terminal:
sudo apt-get install lamp-server^ Provide root passwords for mysql Done! Easy nah? :P
Configuring Virtual Host
Save it on /etc/apache2/sites-available (and give a name with now extension)
Example: <VirtualHost *:80> ServerAdmin [email protected] ServerName 127.0.0.1 ServerAlias 127.0.0.1 DocumentRoot /var/www/ <Directory /var/www/>
Order Deny,Allow Allow from all
</Directory> </VirtualHost>
Save it on: /etc/apache2/sites-available/ Enable It
sudo a2ensite <name of sites-available directory/file> sudo a2ensite hello (example: hello is save on sites-available directory)
Reload service apache2 sudo /etc/init.d/apache2 reload sudo service apache2 reload
Run PHP file on Browser
Run localhost/<filename.php> http://127.0.0.1/myphp.php (example) http://localhost/myphp.php
How To Contribute on Open Source?
Thank You!
Q/A