All pastes #336211 Raw Edit

Mine

public unlisted text v1 · immutable
#336211 ·published 2007-02-01 21:47 UTC
rendered paste body
/* testing program for C++ #1 */

#include <iostream>

using namespace std;

int main(void)

{
	int option = 0;
	int empty = 0;
	string name; // this is the user's name;
	
	cout<<"How are you today? Please enter your name"<<endl;
	 cin>>name;
	cout<<"Welcome "<<name<<", Now we can begin, please choose an option."<<endl;
	
		cout<<"Option #1: How to compile a kernel"<<endl;
		cout<<"Option #2: How to install Ndiswrapper"<<endl;
		cout<<"Option #3: How to create ~/bin/ and ~/source/ and why"<<endl;
	
	cin >> option;
	
	 if (option == 1)
	 	cout << "How to compile a kernel! First, download the newest kernel from http:///www.kernel.org and mv/cp it to /usr/src. Then extract it there, cd into the dir that was created (usually /usr/src/linux-VERSION)" << endl;
	 	
	 else if (option == 2)
	 	cout << "How to install Ndiswrapper! Usually installing ndiswrapper requires that you downlaod the package from ndiswrapper.sourceforge.net. Then after you get it install it, if you have the tar do a 'tar xfvz <filenamehere>.tar.gz' then cd into that dir and do ' ./configure' 'make' and as root finally do 'make install'. Next plugin your wireless card, copy the windows drivers to a dir of there own, then cd into that dir. run these following commands 'ndiswrapper -i <drivernamehere>.inf' then 'ndiswrapper -l' to see if its present. Then do 'modeprobe ndiswrapper', if it doesn't connect you might have to run 'iwconfig wlan0 essid <networks_name>' and then 'dhclient wlan0."<<endl;
	 	
	 else if (option == 3)
	 	cout << " How to create ~/bin/ and ~/source/ and why. The purpose of ~/bin/ is that thats where you can place your scripts and apps you write. ~/source/ is where you place your files that you want to install. to make these dirs cd into your home directory and run these following commands. 'mkdir bin' and 'mkdir source'" << endl;
	 	
	 	
	 return 0;
	 
}