i installed ubuntu from a usb instead of running alongside windows i made it the main os... i now have a laptop with ubuntu on it and i really want windows back on the pc  *ive tired sticking the windows recovery disc in nothing   ive tried booting from recov disc nothing .. is there anyway i could earse everything and start from scratch   my computer is "hp pavilion p6536f-b pc bundle"
I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.
How to ensure OpenVPN connection uses specific DNS? I'm using OpenVPN through Tunnelblick on MacOS X Lion.  I need to set specific DNS (with local IP, which works only when VPN is up) for the duration of this VPN session only.  I do not have access to the OpenVPN server configuration. Only client config. Also, DNS from the server doesn't work.  So it works like this: I connect to VPN, go the Network preferences and manually set DNS. After VPN is disconnected, I switch back to default. It works, but it needs to be automatic.  After some exploration I found that OpenVPN up- and down- scripts might help me with that. Unfortunately, I haven't found any specific documentation about how exactly it can be done.  How it can or can't be done? Any advice would be appreciated! Recursive bash script to collect information about each file in a directory structure How do I work recursively through a directory tree and execute a specific command on each file, and output the path, filename, extension, filesize and some other specific text to a single file in bash. `test` and `[` - different binaries, any difference? I noticed while answering another question that test and [ are different binaries, but the [ manpage pulls up test's. Besides the requirement for an ending ], is there any difference?  If not, why are they separate binaries instead of being symlinked? (They are also bash builtins, and bash doesn't show a difference either.) How to accomplish SQL Server 2012+2014 high availability Maybe I'm searching for the wrong thing, but I can't see how I can do this.  I have two servers:   Server A (has SQL Server 2012 installed) Server B (has SQL Server 2014 installed)   Server A provides an API via IIS. The code both inserts and gets data from the database depending on the API call.  Server B does exactly the same for its local database.  I would like to have it so that the two databases are consistent copies of each other. I do believe this is what HA accomplishes.   So a load balancer, for example, might direct API calls to A sometimes, and B sometimes, but the data needs to be consistent either way.  I found some documentation on HA for SQL Server 2012, but not on how to do this for a mixed environment of 2012 and 2014.  Any help or pointers to documentation would be great! Thanks. How can I cite a range of papers, the output is a range of numbers, instead of a list of numbers? In other words, when I type  ... some dummy text here is due to me \cite{me1, me2, me3, me4} ...   I want the output to be     ... some dummy text here is due to me [3-6] ...   instead of     ... some dummy text here is due to me [3.4.5.6] ...   (I use LaTeX, and am currently using the amsart class and whatever it includes. But I am open to other suggestions.) Transit in LA after 90 days in North America under VWP/ESTA I am from NZ and have spent 90 days in the USA with an ESTA visa waiver, and I am going to Canada before returning to NZ. My return flight is from LA but I have already used my 90 days of my ESTA and have not technically 'left' North America (Canada apparently doesn't count). My question is, how do I catch my return flight from LA? Can I get another ESTA even though I haven't left North America? What are our policies regarding self-harm and suicide? What should I do as a Moderator when I encounter situations regarding self-harm and suicide? Is it possible to download using the Windows command line? Without using any non-standard (Windows included) utilities, is it possible to download using the Windows command line?  The preferred version is Windows XP, but it's also interesting to know for newer versions.  To further clarify my question:   It has to be using HTTP The file needs to be saved Standard clean Windows install, no extra tools   So basically, since everybody is screaming , I want simple Wget functionality, without using Wget. How to locate a font in Ubuntu? Ubuntu desktop with 12.04 is about to crash.  Installed 13.04 on a new machine, want to transfer Book Antiqua font from old machine to the new one.  How do I find it on the old machine?  My /usr directory is empty. My fonts.conf file has these lines: &lt;!-- Font directory list --&gt; &lt;dir&gt;/usr/share/fonts&lt;/dir&gt; &lt;dir&gt;/usr/x11R6/lib/X11/fonts&lt;/dir&gt;  &lt;dir&gt;/usr/local/share/fonts&lt;/dir&gt; &lt;dir&gt;~/.fonts&lt;/dir&gt;  Don't know what this means, but my /usr directory has nothing in it. What is Skynet's ultimate goal after defeating the resistance? Is it stated in any expanded universe what Skynet's plans were after wiping out the Human race (assuming that was its plan)?  Maybe space travel to colonise different planets or something else entirely? When I play Black Ops 2, it seems that my xbox controller is inverted. Example: if I press up, my character looks down and vice versa. It was not like this before. Does anyone know how to reset the controller back to its original settings? sequence $x_{n+1}=x_n+e^{-2018x_n}$ Extra slash added to the chat room URLs in the side bar Why is no root pass needed to access MariaDB after upgrade to Ubuntu 16.04? How exactly does Knuth's Up-Arrow notation work? Update: Failed to lock /var/cache/apt/archives/lock I am running the upgrade(12.10 to 13.04) through terminal and it keeps getting stuck at this:  Failed to lock /var/cache/apt/archives/lock   What do I do? I have root access. I have no idea what else to try other than a clean install.  Checking package manager Reading package lists... Done     Building dependency tree           Reading state information... Done Building data structures... Done   Calculating the changes Calculating the changes  Do you want to start the upgrade?   3 packages are going to be removed. 155 new packages are going to be  installed. 1204 packages are going to be upgraded.   You have to download a total of 595 M. This download will take about  1 hour 15 minutes with a 1Mbit DSL connection and about 23 hours with  a 56k modem.   Fetching and installing the upgrade can take several hours. Once the  download has finished, the process cannot be canceled.    Continue [yN]  Details [d]y  Fetching  Could not download the upgrades   The upgrade has aborted. Please check your Internet connection or  installation media and try again. All files downloaded so far have  been kept.   Failed to lock /var/cache/apt/archives/lock    Restoring original system state  Aborting Reading package lists... Done     Building dependency tree           Reading state information... Done Building data structures... Done  root@chaitanya-XPS-Ubuntu:~# Remove spaces from std::string in C++ What is the preferred way to remove spaces from a string in C++? I could loop through all the characters and build a new string, but is there a better way? How do you unpin and move the form in the Visual Studio designer? After logging in on terminal with user name and password, how do I start the GUI? Which is correct: "one or more is" or "one or more are"?