LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2010, 02:49 PM   #1
ltannenbaum
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Overwrote the Wireless.h file By Mistake


Well here's another dumb newbie mistake. I tried to modify the wireless header file in order to install airpwn. When I tried to save the new wireless.h file, I realized that I hadn't changed the file permissions and went to chmod to allow me to save the modified file (as wireless.h). Without checking, I saved the wireless.h file -- only to find out later that I had apparently completely altered it. My first lesson was never screw around with system files at 2 am and second, if I forget the first, is drink a lot of caffeine.

Does anyone know how I can find/download/ or reimport the original wireless.h file? I'm using Ubuntu 10.04.

Feel free to ridicule me -- I'm feeling pretty stupid right now.

Thanks in advance for any help someone could offer.

Best regards,

Larry
 
Old 08-27-2010, 05:01 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 208Reputation: 208Reputation: 208
Have you checked to see if an automatic backup of the original exists?

I've posted the contents of the original file here: http://pastebin.com/bZY7y5j7

Always backup files before editing.
 
Old 08-28-2010, 05:23 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ. .. ..

Probably libiw-dev. ( > /usr/include/wireless.h )
http://packages.ubuntu.com/search?se...rds=Wireless.h

When you have no file copy ( like the one provided by @{BBI}Nexus{BBI} )
you can just reinstall the package with "Synaptic".
And all files are "refreshed".
.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Important Folder deleted by mistake using the Gnome File Manager. chirucu Linux - General 4 03-08-2006 09:55 AM
samba file have been tempered by mistake... b0nd Slackware 2 12-22-2005 04:47 PM
help: accidentally overwrote on crontab auden Slackware 1 02-14-2005 07:40 AM
WinXP overwrote Grub JohnHawes Linux - Newbie 14 02-13-2004 09:23 PM
Overwrote a file mistake - what can i do? Bungle Linux - Newbie 4 11-10-2003 08:09 PM


All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration