PDA

View Full Version : Linux Mint



Pages : 1 [2] 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

RichGem
03-01-2008, 01:55 PM
I'm sorry, but I've gotta go with "Bro".

Manzier just sounds wrong... :tongue:


I would never let my bro (if I had one) wear a "bro" OR a "manzier." :rolleyes:

gugi
03-01-2008, 02:21 PM
what is it a couple of hours till the big moment :)
Corey, post here when you're about to start the fight with the evil dell

Lynchmeister
03-01-2008, 02:36 PM
what is it a couple of hours till the big moment :)
Corey, post here when you're about to start the fight with the evil dell

Will do! Here's the game plan starting in 1hr 27mins (but who's counting?):

*Beat it like Hell out of company parking lot.
*Pit stop at the lovely St. Croix Cigar Company.
*Fire up a big fat maduro.
*Pit stop at the local liquor emporium.
*Eat.
*Take dog out for pee.
*Cross fingers, do rain dance, and attempt step one: upgrade to BIOS32.

:lol:

rabidpotatochip
03-01-2008, 02:58 PM
Will do! Here's the game plan starting in 1hr 27mins (but who's counting?):

*Beat it like Hell out of company parking lot.
*Pit stop at the lovely St. Croix Cigar Company.
*Fire up a big fat maduro.
*Pit stop at the local liquor emporium.
*Eat.
*Take dog out for pee.
*Cross fingers, do rain dance, and attempt step one: upgrade to BIOS32.

:lol:

Sounds like a good plan. Love the new avatar by the way. :biggrin:

Lynchmeister
03-01-2008, 03:28 PM
Sounds like a good plan. Love the new avatar by the way. :biggrin:

Thanks! It felt appropriate, given my (hopefully) past situation. :biggrin:

BTW, what do you think of my mad paint skillz? :tongue_sm

gugi
03-01-2008, 03:40 PM
hmm - what do i think about the paint skills....
well, i'll just provide the link (http://www.youtube.com/watch?v=FRR8Y0axNvU) it's at 0:40 :)

Lynchmeister
03-01-2008, 03:47 PM
hmm - what do i think about the paint skills....
well, i'll just provide the link (http://www.youtube.com/watch?v=FRR8Y0axNvU) it's at 0:40 :)

Work blocked the link...and they don't block too much...interesting...

RichGem
03-01-2008, 04:19 PM
Guys, I'll be in chat on and off tonight if needed.

EDIT: I tried to create a room for us, but apparently it's been deleted. <shrug>

gugi
03-01-2008, 05:10 PM
i went into the chat and if the bugs don't kill it i'll be available most of the time too

rabidpotatochip
03-01-2008, 05:32 PM
Thanks! It felt appropriate, given my (hopefully) past situation. :biggrin:

BTW, what do you think of my mad paint skillz? :tongue_sm

I think I speak for all of us when I say "Paint FTW!" :biggrin:

Also... this whole thread has reminded me of the 90/90 rule. The first 90% of a project takes 90% of the time. The last 10% takes the other 90.

Lynchmeister
03-01-2008, 06:50 PM
Ok, guys. I'm home. I'm off to the chat now, but I'm still eating a sub sandwhich in one hand and fending the dog and cat off with the other.

Lynchmeister
03-01-2008, 11:14 PM
Gugi is the MAN! Linux/Windows are rockin', George and the Sable hat are coming back pronto, and worlds will no longer be colliding.

Rich and Chip, you guys rock too!

Everyone's continued advice, patience, and humorous interjections have been appreciated beyond comprehension.

So a big thank you to all.

...of course we don't really have to let this little gem die if we don't wan to...:wink:

...at present, linux works, the wirelless card is recognized, but it needs to be configured with the wireless network.

Ah...four hours and four beers later, I'm finally off to hit the sack.

RichGem
03-02-2008, 05:44 AM
Corey,

That's GREAT news! I'm glad everything finally worked out. I'm sure you've set some kind of record for patience and installation time.

Sorry I couldn't hang around to see the triumph, but I did have a sucessful str8 shave today (no blood anyhow and had to do a 3rd pass w/ a DE for smoothness).

Did anyone save the chat transcript from last night? I'd like to read it if so.

Lynchmeister
03-02-2008, 06:26 AM
Corey,

That's GREAT news! I'm glad everything finally worked out. I'm sure you've set some kind of record for patience and installation time.

Sorry I couldn't hang around to see the triumph, but I did have a sucessful str8 shave today (no blood anyhow and had to do a 3rd pass w/ a DE for smoothness).

Did anyone save the chat transcript from last night? I'd like to read it if so.

First post from Linux! (wired connection, but we'll get there :wink:)

Great news on the straight shave.

As for the transcript, I didn't have the mind to save it as by the time Gugi and I called it a night, it was after 1:00am and I was a bit sleep deprived and drunk. :blush: If anyone did save it, I'm sure it's long. :lol:

Lynchmeister
03-02-2008, 06:58 AM
I'm just browsing through the available applications and and for pretty much all of the ones that didn't auto-install, I'm getting messages like the example below. What do you guys make of this?


Canonical Ltd. provides technical support and security updates for KArm
KArm cannot be installed on your computer type (i386). Either the application requires special hardware features or the vendor decided to not support your computer type.

I'm pretty sure I switched something to i870, but that could be something totally different.

RichGem
03-02-2008, 07:05 AM
I'm just browsing through the available applications and and for pretty much all of the ones that didn't auto-install, I'm getting messages like the example below. What do you guys make of this?



I'm pretty sure I switched something to i870, but that could be something totally different.

Corey, I don't know about that error message specifically but can perhaps provide a little clarity.

i386 refers to the Intel-386 family of processors and work-alikes (486, pentium, etc). The "i870", however, probably referrs to your friend the video card (family).

It sounds as if your computer is trying to install an non-i386 version of a program and of course realizes it can't.

Go to a terminal box and type uname -a and tell me what the output is. It could be that somehow the wrong processor family version of the kernel got installed, tho that would be very strange.

Lynchmeister
03-02-2008, 07:32 AM
Corey, I don't know about that error message specifically but can perhaps provide a little clarity.

i386 refers to the Intel-386 family of processors and work-alikes (486, pentium, etc). The "i870", however, probably referrs to your friend the video card (family).

It sounds as if your computer is trying to install an non-i386 version of a program and of course realizes it can't.

Go to a terminal box and type uname -a and tell me what the output is. It could be that somehow the wrong processor family version of the kernel got installed, tho that would be very strange.

I popped back to windows for a sec, but I'll get you that output shortly. So far, really enjoying the new OS. :thumbsup:

RichGem
03-02-2008, 07:42 AM
I popped back to windows for a sec, but I'll get you that output shortly. So far, really enjoying the new OS. :thumbsup:

Glad to hear you're liking it. And, if nothing else, it's done wonders for our post counts. You're one away from 3k, so make the next one title worthy. lol

biomesh
03-02-2008, 07:44 AM
Generally if you use Ubuntu's package management utilities you won't run into this problem, as it only lists packages available for your architechture. I wouldn't really start surfing around and installing random packages as you never know what you will get.

Lynchmeister
03-02-2008, 07:44 AM
Here's the output:


Linux cory-laptop 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

RichGem
03-02-2008, 07:45 AM
corey,

one more thing... from the same text box, also type

cat /proc/cpuinfo|grep model

and give me the output. the line before "grep" is the "pipe" character (shift + \ on most keyboards).

Lynchmeister
03-02-2008, 07:45 AM
Generally if you use Ubuntu's package management utilities you won't run into this problem, as it only lists packages available for your architechture. I wouldn't really start surfing around and installing random packages as you never know what you will get.

Good point.

RichGem
03-02-2008, 07:48 AM
OK... so the uname command shows that you've installed a pentium-III or better kernel.

now give me the "cat" command output

Lynchmeister
03-02-2008, 07:51 AM
OK... so the uname command shows that you've installed a pentium-III or better kernel.

now give me the "cat" command output

just type cat? It didn't do anything...that I'm aware of.

biomesh
03-02-2008, 07:53 AM
Here is how you can add repositories in Ubuntu. (https://help.ubuntu.com/community/Repositories/Ubuntu) This should make it easier to install a wider range of software.

Lynchmeister
03-02-2008, 07:55 AM
Ok, I have to comment on the "desktop." It's literally like an open book that you can flip between pages. That's awesome!

RichGem
03-02-2008, 07:55 AM
just type cat? It didn't do anything...that I'm aware of.

press ctrl-c to get back to a prompt and then read above...

cat /proc/.... etc.

and go over to chat; this will be easier

Lynchmeister
03-02-2008, 07:56 AM
Here is how you can add repositories in Ubuntu. (https://help.ubuntu.com/community/Repositories/Ubuntu) This should make it easier to install a wider range of software.

Thanks Robert. I'll give this a thorough read today.

Lynchmeister
03-02-2008, 08:01 AM
I can't get into the chat. It won't install the plugins...

RichGem
03-02-2008, 08:04 AM
I can't get into the chat. It won't install the plugins...

oh. yea forgot. you can install the flash plugin from the macromedia site, but I think you have to compile it yourself for ubuntu/debian. it's easy enough, but involved and t you don't want to attempt that just yet.

Lynchmeister
03-02-2008, 08:07 AM
oh. yea forgot. you can install the flash plugin from the macromedia site, but I think you have to compile it yourself for ubuntu/debian. it's easy enough, but involved and t you don't want to attempt that just yet.

Fair enough.

RichGem
03-02-2008, 08:10 AM
Cory,

gotta run... church time... .what i'm thinking is going on is that you may or may not have a 64 bit processor and may or may not have the wrong kernel istalled. right now you seem to have an i686 32-bit kernel going. that's fine, but if you have a 64 bit processor that can be a bit problematic at points.. sounds like karm is 64 bit prog which of course can't run on a 32 bit processor. if karm is something you installed yourself, you may have installed the 64 bit version instead of the 32.

catch up w. u later.

RichGem
03-02-2008, 08:13 AM
the full cat command above will give the processor type.

in summary... im' thinkin you have a 32 bit processor w/ the correct kernel installed but are tyring to run a 64 bit prog which won't work. just remove and install the 32 bit version.

alteratively, you ahve a 64 bit processor and a 32 bit kernel installed.

good luck

Lynchmeister
03-02-2008, 08:13 AM
Cory,

gotta run... church time... .what i'm thinking is going on is that you may or may not have a 64 bit processor and may or may not have the wrong kernel istalled. right now you seem to have an i686 32-bit kernel going. that's fine, but if you have a 64 bit processor that can be a bit problematic at points.. sounds like karm is 64 bit prog which of course can't run on a 32 bit processor. if karm is something you installed yourself, you may have installed the 64 bit version instead of the 32.

catch up w. u later.

Sounds like a plan.

biomesh
03-02-2008, 08:19 AM
Here is the file you need to download, and save it to your home directory:

http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz

Open up a terminal window.

Run the following command (on one line, it will most likely prompt you to close your browser or restart the browser):

tar zxvf install_flash_player_9_linux.tar.gz && cd install_flash_player_9_linux/ && ./flashplayer-installer

Once this is done and your browser is restarted, you should have the plugin installed. You can type "about:plugins" in your address bar to verify.

Confuzius
03-02-2008, 08:21 AM
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash

Cory
Download the .tar.gz version of flash player and extract it anywhere (I used /home/jordan/downloads/) its as easy as double click the .tar.gz and drag and drop the folder in the tar.gz to where you want it to go.

From there you should have a folder called "install_flash_player_9_linux" Open up terminal and navigate to that directory. Always remember that when in terminal "tab" autocompletes stuff to make it really easy. so somthing along the lines of "cd /home/cory/downloads/install_flash_player_9_linux" then you'll be in the right directory.

from there type " sudo ./flashplayer-installer" and follow the instructions.

You will have to close your browser window.

It's easy, there's no compiling or anything, it takes care of everything.

Lynchmeister
03-02-2008, 08:28 AM
Using Robert's link, I was able to download and install. I even got into the chat room, but everything slowed to a grinding halt and my screen went to black and white...

gugi
03-02-2008, 08:51 AM
that sounds pretty crazy. i don't think flash should be that slow.
one thing - the point of ubuntu is to do things a bit easier, so you should be able to install virtually everything through their packaging system (there's gotta be add programs or something like this item in one of the menus)
ubuntu is not debian and they let you add repositories with different licensing. not 'supported' in the same sense as the rest, but they contain the flash plugin the mp3 decoder etc.

So installing flash on it should go something along the way: search for 'flashplugin' in the 'install software' application, accept when it tells you it needs to enable 'unsupported repositories' and that's it.

As far as the wireless, yeah, we've gotta configure it - i may have some time later today.

And the installation was actually pretty straightforward. There were really only 2 things to do
- upgrade the BIOS to the latest version and configure 8MB video memory
- set the videodriver to i810 (intel's driver)
Paritioning was easy - gparted is included and is part of the process and the default was perfect (resize windows to 13Gb and use the freed 5Gb as / and swap).
So yeah, there really wasn't much to do - I mostly confirmed that indeed the defaults are good and pressing OK is fine :)
As far as the 4 hours and the various beverages, that were shared virtually - that's a whole other story :)

rabidpotatochip
03-02-2008, 09:04 AM
Sounds like this thread is almost over... I'm going to miss it. *sniffle*

Anyway, congratulations on getting Linux up and running... I'm sorry I couldn't be there for the event, but I'll have a beer in your honor tonight. You'll be a borderline guru in no time. And a little Linux humor in your honor; I've been saving this one just for you... :biggrin:

who && gawk && uname && talk && date && wine && touch && unzip && strip && touch && finger && mount && fsck && more && yes; yes; more; yes; umount && make clean && sleep

Lynchmeister
03-02-2008, 09:12 AM
Chip, I think we'll be seeing this thread for years to come. :wink:

But yeah, the chat is just not happening for me at the moment and I'm on 4 hours of sleep with a large to do list today, so I'm gonna step away for a while.

Hopefully we'll get the wireless going and figure the other hiccups out. In general, though, my connection just seems slower...don't know if it's the changes I've made or if it's my ISP, but my brain is lagging behind even the slow (wired!) connection, so...see you guys later today.

Lynchmeister
03-02-2008, 09:14 AM
Sounds like this thread is almost over... I'm going to miss it. *sniffle*

Anyway, congratulations on getting Linux up and running... I'm sorry I couldn't be there for the event, but I'll have a beer in your honor tonight. You'll be a borderline guru in no time. And a little Linux humor in your honor; I've been saving this one just for you... :biggrin:

who && gawk && uname && talk && date && wine && touch && unzip && strip && touch && finger && mount && fsck && more && yes; yes; more; yes; umount && make clean && sleep

I don't think you need to be a Linux guru to, ah..., get the jist. :lol:

RichGem
03-02-2008, 10:46 AM
Sounds like this thread is almost over... I'm going to miss it. *sniffle*

Anyway, congratulations on getting Linux up and running... I'm sorry I couldn't be there for the event, but I'll have a beer in your honor tonight. You'll be a borderline guru in no time. And a little Linux humor in your honor; I've been saving this one just for you... :biggrin:

who && gawk && uname && talk && date && wine && touch && unzip && strip && touch && finger && mount && fsck && more && yes; yes; more; yes; umount && make clean && sleep


bad chip. bad. lol.

For Cory's sake... the part you may not be getting is the "&&" which basically means "Do the next command only if the previous one succeeded." Oh, and btw, those are all valid linux commands.

RichGem
03-02-2008, 10:49 AM
Chip, I think we'll be seeing this thread for years to come. :wink:

But yeah, the chat is just not happening for me at the moment and I'm on 4 hours of sleep with a large to do list today, so I'm gonna step away for a while.

Hopefully we'll get the wireless going and figure the other hiccups out. In general, though, my connection just seems slower...don't know if it's the changes I've made or if it's my ISP, but my brain is lagging behind even the slow (wired!) connection, so...see you guys later today.


It's just a question of how soon and how severe Cory's nervous breakdown will be.

Oh, and Cory, congrats on 3k+ posts.

Lynchmeister
03-02-2008, 11:12 AM
bad chip. bad. lol.

For Cory's sake... the part you may not be getting is the "&&" which basically means "Do the next command only if the previous one succeeded." Oh, and btw, those are all valid linux commands.

That's funny!


It's just a question of how soon and how severe Cory's nervous breakdown will be.

Ye of little faith...I made it this far, didn't I? :lol:

Oh, and Cory, congrats on 3k+ posts.

Thanks!

ScottS
03-02-2008, 11:44 AM
Chip, I think we'll be seeing this thread for years to come. :wink:


I know I'll link to it when anyone posts suggesting that Linux is Plug-n-Play:rolleyes:

RichGem
03-02-2008, 12:32 PM
I know I'll link to it when anyone posts suggesting that Linux is Plug-n-Play:rolleyes:


bwhahahahahah. that's a good one. p-n-p linux.


(but in all reality, it does recognize a lot automatically even some really ancient hardware. it's just that some of the newer hardware is closed spec and also that auto mounting of external drives is considered a security violation so automounting must be manually configured. (tho most distros now automatically allow automounting)).

rabidpotatochip
03-02-2008, 12:35 PM
bad chip. bad. lol.

For Cory's sake... the part you may not be getting is the "&&" which basically means "Do the next command only if the previous one succeeded." Oh, and btw, those are all valid linux commands.


That's funny!

I wouldn't post it if it wasn't funny. :tongue:


It's just a question of how soon and how severe Cory's nervous breakdown will be.

Oh, and Cory, congrats on 3k+ posts.

I think the long road to recovery can finally begin now... until he screws something up while playing around. That's half the fun though. :biggrin:

biomesh
03-02-2008, 01:33 PM
I'm waiting for Cory to ask how he should do with a core dump :biggrin:

RichGem
03-02-2008, 05:14 PM
I'm waiting for Cory to ask how he should do with a core dump :biggrin:

The first "kernel panic" can be loads of fun too.

biomesh
03-02-2008, 05:18 PM
and the inevitable question.. what happened to make the kernel go Oops?

RichGem
03-02-2008, 05:21 PM
and the inevitable question.. what happened to make the kernel go Oops?

nothing (usually) that can't be cured by the <reset> button. :biggrin:

edit: and occasionally a large hammer.

rabidpotatochip
03-02-2008, 06:35 PM
The first "kernel panic" can be loads of fun too.

I find kernel panic usually results in user rage. :biggrin:


nothing (usually) that can't be cured by the <reset> button. :biggrin:

edit: and occasionally a large hammer.

Oh man... that hammer thing... I pulled some hard drives from an old server today... Chip smash... I don't have one of those industrial hard drive shredders so I had to use a sledgehammer instead. I think I had a truly zen moment going there.

RichGem
03-02-2008, 07:25 PM
I find kernel panic usually results in user rage. :biggrin:



Oh man... that hammer thing... I pulled some hard drives from an old server today... Chip smash... I don't have one of those industrial hard drive shredders so I had to use a sledgehammer instead. I think I had a truly zen moment going there.

So.... what ur sayin' is that you're totally de-stressed and de-frustrated at the moment? "Concussive therapy, much cheaper than the real thing."

gugi
03-02-2008, 07:42 PM
I find kernel panic usually results in user rage. :biggrin:

not if you have a mac - then you get a beautiful semi-transparent notification with antialiased fonts in 4-5 languages....
i'd much prefer if 1/10 of the effort they put in eye-candy goes into improving the os....

Lynchmeister
03-03-2008, 07:07 AM
Anyone feeling particularly anxious to see if we can get the wireless working today?

RichGem
03-03-2008, 07:31 AM
Anyone feeling particularly anxious to see if we can get the wireless working today?

not a good day for me, sorry.

biomesh
03-03-2008, 07:45 AM
Do you remember/know what wireless card it is?

rabidpotatochip
03-03-2008, 08:14 AM
Anyone feeling particularly anxious to see if we can get the wireless working today?

I don't think I'd touch wireless with a 3.048 meter pole. (I'm feeling metric today)

biomesh
03-03-2008, 08:31 AM
Certain cards / drivers are easier than others. The ipw2200 and iwl3945 drivers work well and are easy to get working. The broadcom chipsets are another story since broadcom doesn't release specs on the wireless chipsets.

Lynchmeister
03-03-2008, 08:31 AM
Trouble in paradise, guys. Linux won't boot today. I hit ctrl+alt+del and briefly saw a weird error message and could only make out something about x not being able to start.

Not to mention the fact that my computer's performance (windows too) has really taken a hit. It's slow as :censored: today. :mad:

biomesh
03-03-2008, 08:34 AM
How much space is left on your windows partition? If you didn't leave enough space for windows that would be the only reason that the linux install has affected windows.

Lynchmeister
03-03-2008, 08:37 AM
Certain cards / drivers are easier than others. The ipw2200 and iwl3945 drivers work well and are easy to get working. The broadcom chipsets are another story since broadcom doesn't release specs on the wireless chipsets.

As fate would have it, I have a broadcom chipset. :frown:

And get this...I'm trying to multi-task at the moment and I just heard this weird trickling noise. I'm doing a water change in my 55gal aquarium and my python (basically a reversible suction hose) was malfunctioning and putting water into the tank rather that sucking it out...needless to say, I'm not having the best day and now have a little bit of a cleanup effort (as well as a manual water change) ahead of me...ugh.

I'll check back in when I can. :frown:

Lynchmeister
03-03-2008, 08:37 AM
How much space is left on your windows partition? If you didn't leave enough space for windows that would be the only reason that the linux install has affected windows.

I gave it 13GB out of a total 18.

Lynchmeister
03-03-2008, 08:38 AM
I don't think I'd touch wireless with a 3.048 meter pole. (I'm feeling metric today)

Thanks for the laugh! :lol:

rabidpotatochip
03-03-2008, 08:44 AM
Thanks for the laugh! :lol:

It's what I'm here for. :biggrin:

In all seriousness, I think you need a good sense of humor when dealing with computers because it's pretty tiring throwing them out the window every time something goes wrong.

RichGem
03-03-2008, 10:25 AM
Trouble in paradise, guys. Linux won't boot today. I hit ctrl+alt+del and briefly saw a weird error message and could only make out something about x not being able to start.

Not to mention the fact that my computer's performance (windows too) has really taken a hit. It's slow as :censored: today. :mad:


This is weird and I have no idea why it happened, but...
When this did happened, did you get dropped to a command prompt? If so (and it happens again) try typing in: configx && startx

and see what happens. You should/could be back to up and running.

Now, pop quiz for Cory... what's the "&&" mean?

Lynchmeister
03-03-2008, 10:57 AM
This is weird and I have no idea why it happened, but...
When this did happened, did you get dropped to a command prompt? If so (and it happens again) try typing in: configx && startx

and see what happens. You should/could be back to up and running.

Now, pop quiz for Cory... what's the "&&" mean?

Nope. No command prompt.

Answer: execute command if previous was successful. :wink:

RichGem
03-03-2008, 11:02 AM
Nope. No command prompt.

:censored: !

hmmm... try hitting ctrl+alt+backspace first . that may get you to a prompt then try commands above.



Answer: execute command if previous was successful. :wink:

:clap:

rabidpotatochip
03-03-2008, 11:20 AM
:censored: !

hmmm... try hitting ctrl+alt+backspace first . that may get you to a prompt then try commands above.


Try hitting the computer... that usually helps too. :biggrin:

I can't really help with this problem, but this (http://ubuntuforums.org/showthread.php?t=25683) might help with your wireless at least.

Edit: Don't worry, you won't have to read all 56 pages. :wink:

RichGem
03-03-2008, 11:30 AM
Try hitting the computer... that usually helps too. :biggrin:

I can't really help with this problem, but this (http://ubuntuforums.org/showthread.php?t=25683) might help with your wireless at least.

Edit: Don't worry, you won't have to read all 56 pages. :wink:

ndiswrapper is probably the way (ie: easiest) to go especially since he'd already have the windows drivers on disk, or at least, on site. however, I've never used ndiswrapper before and have only a vague idea how to set it up. if he's lucky, it's already compiled and installed for him.

Lynchmeister
03-03-2008, 11:57 AM
Good news, guys. Ubuntu is back up and running.

I think it was a combination of, swearing, threatening the computer with violence, carrying out acts of violence against the computer, and rebooting. :biggrin:

God help me, I'm gonna look into the wireless now.

rabidpotatochip
03-03-2008, 12:09 PM
Good news, guys. Ubuntu is back up and running.

I think it was a combination of, swearing, threatening the computer with violence, carrying out acts of violence against the computer, and rebooting. :biggrin:

God help me, I'm gonna look into the wireless now.

That reminds me of a great management tip: never make a threat you won't follow through with. By the sound of it, you've got that one covered. :lol:

Lynchmeister
03-03-2008, 12:12 PM
Off to reboot windows again to get some driver information...I've never rebooted more in my life!

RichGem
03-03-2008, 12:16 PM
Off to reboot windows again to get some driver information...I've never rebooted more in my life!

If you every switch over to linux fully, reboots will be a very very very (did I say very) rare thing. Unlike windows, you will not have to reboot every time you install new software. In fact, pretty much the only time you need to reboot is if you install a new kernel.

Lynchmeister
03-03-2008, 12:23 PM
Ok, from Chip's link:


First, you need to find out if this How To is for you. Broadcom wireless cards come under many brand names and, in particular, are used in many Dell and Acer laptops. Look for the drivers supplied with your card (Dell usually store a copy in C:/DRIVERS/NETWORK/ADDON); if you have a file called bcmwl5.inf or bcmwl5a.inf then keep on reading. You won't succeed without following these instructions!

My directory is a bit different... C:/DRIVERS/NETWORK/ONBOARD and I found the following files in there:


1) BCM4SBXP (security catalogue) 2)BCM4SBXP (setup information) 3)BCM4SBXP (system file) 4)BCM4SBXP.PNF (precompiled setup information)

Any thoughts guys?

RichGem
03-03-2008, 12:29 PM
Ok, from Chip's link:



My directory is a bit different... C:/DRIVERS/NETWORK/ONBOARD and I found the following files in there:



Any thoughts guys?

yup... go into the windows search utility and do a search over the whole drive for those two file names. there are some differences in directory names depending on what version of windows is installed

Lynchmeister
03-03-2008, 12:35 PM
yup... go into the windows search utility and do a search over the whole drive for those two file names. there are some differences in directory names depending on what version of windows is installed

Good call Richard, thanks.

Running the search now.

RichGem
03-03-2008, 12:38 PM
Good call Richard, thanks.

Running the search now.

you're welcome. that's why I'm here ... well that and the fact that work is slow at the moment. (how any of us hold down jobs is sometimes beyond me).

Lynchmeister
03-03-2008, 12:44 PM
you're welcome. that's why I'm here ... well that and the fact that work is slow at the moment. (how any of us hold down jobs is sometimes beyond me).

:biggrin:

Today's actually one fo my days off, but of course I was given a list of "productive" things that I'm supposed to get done today. Needless to say, my performance in the "domestic arts" has been a bit lacking since taking on an unhealthy interest in Linux and self-punishment.

I did manage to overflow clean the fish tank and make lunch though, so I must be doing something right! :lol:

RichGem
03-03-2008, 12:46 PM
:biggrin:

Today's actually one fo my days off, but of course I was given a list of "productive" things that I'm supposed to get done today. Needless to say, my performance in the "domestic arts" has been a bit lacking since taking on an unhealthy interest in Linux and self-punishment.

I did manage to overflow clean the fish tank and make lunch though, so I must be doing something right! :lol:


now if you could just manage to feed the poor starving cat, do the laundry, vacuum, and clean the gutters out, everything would be peachy. :lol:

RichGem
03-03-2008, 12:47 PM
oh, and we're up to 331 posts, in case anyone (other than me) is counting.

Lynchmeister
03-03-2008, 12:54 PM
oh, and we're up to 331 posts, in case anyone (other than me) is counting.

*cough*332*cough*

:biggrin:

rabidpotatochip
03-03-2008, 12:55 PM
I did manage to overflow clean the fish tank and make lunch though, so I must be doing something right! :lol:

I can't help but wonder if those two activities are related... "Guess what hon! I made sushi for lunch!"


oh, and we're up to 331 posts, in case anyone (other than me) is counting.

No need for anyone else to count if you're doing it. :biggrin:

I just remembered that setting up ndiswrapper relies on you having the proper number of bits in your driver (oh god, I can't believe I just said it like that). If you're running 64-bit Ubuntu and you only have 32-bit drivers you won't be met with success... *shakes fist at the last wifi adapter he bought* Otherwise, it's pretty straightforward in Ubuntu.

Lynchmeister
03-03-2008, 12:57 PM
I can't help but wonder if those two activities are related... "Guess what hon! I made sushi for lunch!"



No need for anyone else to count if you're doing it. :biggrin:

I just remembered that setting up ndiswrapper relies on you having the proper number of bits in your driver (oh god, I can't believe I just said it like that). If you're running 64-bit Ubuntu and you only have 32-bit drivers you won't be met with success... *shakes fist at the last wifi adapter he bought* Otherwise, it's pretty straightforward in Ubuntu.

Well, first things first, the Plecostomus sashimi was de-lightful!

Second, is there an easy way to nail down which driver (32 or 64 bit) I have? I can't imagine that I would have a 64 bit, but I suppose it's possible?

Lynchmeister
03-03-2008, 01:02 PM
yup... go into the windows search utility and do a search over the whole drive for those two file names. there are some differences in directory names depending on what version of windows is installed

Searched the entire C: drive and neither of those two files listed in the Ubuntu help thread are on my laptop. :confused:

rabidpotatochip
03-03-2008, 01:04 PM
Well, first things first, the Plecostomus sashimi was de-lightful!

Second, is there an easy way to nail down which driver (32 or 64 bit) I have? I can't imagine that I would have a 64 bit, but I suppose it's possible?

In case anyone else was wondering (stolen from Wikipedia*): Plecostomus, algae eater, or algae sucker, is a general name for a type of freshwater tropical Central and South American fish belonging to the family Loricariidae.

It's unlikely that you have 64-bit drivers, but it's certainly worth hitting Google for. I can't recall at the moment which version of Ubuntu you're running and I'm too short on time to find it (sorry!), but if you're running the 32-bit version you'll be fine. I really have to run back to work though, an interesting project literally got dumped on my desk.

*Technically, since I cited them it's not plagiarism. :biggrin:

RichGem
03-03-2008, 01:14 PM
In case anyone else was wondering (stolen from Wikipedia*): Plecostomus, algae eater, or algae sucker, is a general name for a type of freshwater tropical Central and South American fish belonging to the family Loricariidae.

It's unlikely that you have 64-bit drivers, but it's certainly worth hitting Google for. I can't recall at the moment which version of Ubuntu you're running and I'm too short on time to find it (sorry!), but if you're running the 32-bit version you'll be fine. I really have to run back to work though, an interesting project literally got dumped on my desk.

*Technically, since I cited them it's not plagiarism. :biggrin:


To Chip... thanks for the fish info. I thought it was some kinda dinosaur but was too lazy to check.

To Cory... unless you're running an AMD64 chip, don't worry about 64 bit drivers; they won't be installed and on the linux side, you do have a 32bit kernel installed from what I can tell. And in any case, a 64 chip is usually able to cope with 32 bit drivers. (we won't touch how many bits or chips are in limecat's driver :eek:)

RichGem
03-03-2008, 01:18 PM
Searched the entire C: drive and neither of those two files listed in the Ubuntu help thread are on my laptop. :confused:

ok, so you don't have those two files installed which you may or may not need depending on what the directions say that you are following. I didn't read that link, but I assume the point of the search was to determine and cope with a possible problem (edit: if those files were present).

Lynchmeister
03-03-2008, 02:30 PM
ok, so you don't have those two files installed which you may or may not need depending on what the directions say that you are following. I didn't read that link, but I assume the point of the search was to determine and cope with a possible problem (edit: if those files were present).

Ok, back from my chiropractor appointment. Had to reverse all the damage I've done by crouching over this wretched laptop...1/2 hour later, guess where I am? :rolleyes:

Hmm...so if I don't have those files...

I'm guess I'm confused here...big surprise, right?

gugi
03-03-2008, 02:57 PM
Guys, I was busy yesterday and today I'm busy too, but to clarify the situation as I last saw it:

1.) wireless card is broadcom but it is recognized. Meaning there is a working driver for it already. 'iwconfig eth1' does show all the usual info
2.) It may not be a good driver and we may need something through ndiswrapper, but that would be the last resort IF it's proven the driver is no good.
3.) The wireless cfg applet didn't work when Corey tried it. I'm not sure why, but he may have chosen wrong encryption scheme for example... May be worth somebody taking a look
4.) If the driver is good it's a one line fix:
iwconfig eth1 essid="wireless network name" <some passwd options>; dhclient eth1

Then you can put it in the network interfaces script to make it work automatically... you know...

So I think at this point somebody has to figure out the passwd and encryption options to iwconfig. I am busy and can't do it today.

Corey, if you want read 'man iwconfig' and see if you can figure it out yourself. If you're gonna get proficient in linux it's not a bad idea.

As far as windows stopping to a crawl - there's 3GB free space. Windows has some options in the control panel of how much disk it should use for virtual memory - i.e. swap - you probably want to make that few hundred megs.

Sorry, gotta go now.

Lynchmeister
03-03-2008, 03:08 PM
Corey, if you want read 'man iwconfig' and see if you can figure it out yourself. If you're gonna get proficient in linux it's not a bad idea.

As far as windows stopping to a crawl - there's 3GB free space. Windows has some options in the control panel of how much disk it should use for virtual memory - i.e. swap - you probably want to make that few hundred megs.

Sorry, gotta go now.


Yes, I will gladly read 'man iwconfig' ...can someone tell me what it is and where I find it? :blush:

I also found my partition info in windows. I have four partitions.

1)FAT (EISA Configuration) <-- Is this the windows virtual memory?
2)NTFS <--of course this is the windows partition
3) & 4) are the "unknown" Linux and Linux swap partitions.

If I'm correct in assuming #1 is the windows virtual memory, how do I go about resizing it?

RichGem
03-03-2008, 03:16 PM
Yes, I will gladly read 'man iwconfig' ...can someone tell me what it is and where I find it? :blush:

I also found my partition info in windows. I have four partitions.

1)FAT (EISA Configuration) <-- Is this the windows virtual memory?
2)NTFS <--of course this is the windows partition
3) & 4) are the "unknown" Linux and Linux swap partitions.

If I'm correct in assuming #1 is the windows virtual memory, how do I go about resizing it?

To find out about the iwconfig business, go to a terminal (text box) and type: man iwconfig

to move to the next page, press space. to go back a page press 'b'

get used to this type of proceedure, the terminal box will be your best friend. In short the 'man xxx' command means "display the manual pages for command xxx"

as to the partitions: FAT = old ms dos format. if it were the newer one, it'd say "FAT32". EISA configuration indicates that it is a rescue partition put there by Dell. It should be pretty small and can be ignored. EDIT: IT is not windows vm or swap space and should not be tampered with unless you want to manually reconfigure the windows bootloader. Best to Leave that partition alone or windows won't boot correctly (unless you monkey with the win bootloader)

NTFS is windows NT format (used since NT 4.0)

3 & 4 are the linux parts as you mentioned

RichGem
03-03-2008, 03:20 PM
for ease of ref, you can also look up the various "man pages" (as we call them) on google in your browser by googling for "man xxx"... just be sure you click on the linux version of the command. (there are a few differences in options between the various flavors of UNIX-like operating systems; all of which use man pages).

rabidpotatochip
03-03-2008, 03:27 PM
Interesting trivia includes the following:

"man woman" returns zero results indicating no one has been able to write proper documentation on the subject.

FAT = File Allocation Table, basically where the bytes of one file stop and another one starts. This used to be the only available option for having a shared partition accessible by both Windows and Linux, but limited you to approx. 2GB in size.

NTFS = New Technology File System and started with NT 4.0. Until recently NTFS support in Linux sucked, but they finally figured it out through trial and error and you now get full read-write support (yay).

Lynchmeister
03-03-2008, 03:32 PM
To find out about the iwconfig business, go to a terminal (text box) and type: man iwconfig

to move to the next page, press space. to go back a page press 'b'

get used to this type of proceedure, the terminal box will be your best friend. In short the 'man xxx' command means "display the manual pages for command xxx"

as to the partitions: FAT = old ms dos format. if it were the newer one, it'd say "FAT32". EISA configuration indicates that it is a rescue partition put there by Dell. It should be pretty small and can be ignored. EDIT: IT is not windows vm or swap space and should not be tampered with unless you want to manually reconfigure the windows bootloader. Best to Leave that partition alone or windows won't boot correctly (unless you monkey with the win bootloader)

NTFS is windows NT format (used since NT 4.0)

3 & 4 are the linux parts as you mentioned


Thanks Richard, I'm gonna now reboot again and check out the iwconfig stuff.

Note: I did some poking around the control panel via the Help menu, found out how to resize the VM. I was way off thinking it was something to do with those partitions, as Richard noted above...so another disaster averted.

If anything gugi said above in his post about the wireless makes sense to any of you and you have the motivation to try to hold my hand through it, consider this my formal plea. :biggrin: Until then, however, I'll be doing some homework (not literally).

Lynchmeister
03-03-2008, 03:34 PM
So when you guys say, for example, do "this" or do "that," basically what you're saying is [go to terminal and type what I told you to do]?

RichGem
03-03-2008, 03:37 PM
So when you guys say, for example, do "this" or do "that," basically what you're saying is [go to terminal and type what I told you to do]?


um.... theoretically :biggrin: unless of course, we tell ya to click on something.

RichGem
03-03-2008, 03:39 PM
Interesting trivia includes the following:

"man woman" returns zero results indicating no one has been able to write proper documentation on the subject.

FAT = File Allocation Table, basically where the bytes of one file stop and another one starts. This used to be the only available option for having a shared partition accessible by both Windows and Linux, but limited you to approx. 2GB in size.

NTFS = New Technology File System and started with NT 4.0. Until recently NTFS support in Linux sucked, but they finally figured it out through trial and error and you now get full read-write support (yay).


I was mentally cringing against someone bringing that up. Tux is not pleased. lol. How did I know that Chip wouldn't be able to resist?

RichGem
03-03-2008, 03:42 PM
Thanks Richard, I'm gonna now reboot again and check out the iwconfig stuff.

Note: I did some poking around the control panel via the Help menu, found out how to resize the VM. I was way off thinking it was something to do with those partitions, as Richard noted above...so another disaster averted.

If anything gugi said above in his post about the wireless makes sense to any of you and you have the motivation to try to hold my hand through it, consider this my formal plea. :biggrin: Until then, however, I'll be doing some homework (not literally).

unfortuately, I stink at setting up wireless; especially when I'm not on site. And, in any case, I'm going to be out much of the night.

rabidpotatochip
03-03-2008, 03:44 PM
So when you guys say, for example, do "this" or do "that," basically what you're saying is [go to terminal and type what I told you to do]?

:lol: Yeah, basically...


um.... theoretically :biggrin: unless of course, we tell ya to click on something.

But +1 on what he said. :biggrin:

Edit:


I was mentally cringing against someone bringing that up. Tux is not pleased. lol. How did I know that Chip wouldn't be able to resist?

I'm sorry, but if you leave the door open someone's going to come in. :biggrin:

RichGem
03-03-2008, 03:47 PM
Thanks Richard, I'm gonna now reboot again and check out the iwconfig stuff.

<snip>




There is one very useful solution to all this rebooting business.....







.... at your earliest opportunity







..... wipe out Windows. (go on, ya know ya want to).

Lynchmeister
03-03-2008, 03:51 PM
There is one very useful solution to all this rebooting business.....







.... at your earliest opportunity







..... wipe out Windows. (go on, ya know ya want to).

:biggrin: At the expense of sounding brash...


F*** that. I've tried 5+ times to boot up Ubuntu. Yep, I'm typing this from Windows. That one time it worked today must've been a fluke.

RichGem
03-03-2008, 03:58 PM
:biggrin: At the expense of sounding brash...


F*** that. I've tried 5+ times to boot up Ubuntu. Yep, I'm typing this from Windows. That one time it worked today must've been a fluke.

That's really really weird. Once linux is set up and works there should be nothing more to do. I wonder if your laptop isn't really resetting when you do a warm reboot. Have you tried doing cold restarts instead?

edit: at the risk of sounding like an advertisement for linux; I'd almost bet on the fact that the problem is with Windows in that case. My bro-in-law (who works in IT) was really against my initial (and long gone) dual boot set up b/c, as he said, windows doesn't play nice in any dual boot situation.

edit2: of course, it could always be a hardware issue . not that such a thing would ever be possible. :eek:

gugi
03-03-2008, 05:02 PM
quick check from me :)
yeah, sorry corey, indeed "do <that thing>" usually means go to a terminal and type "that thing" (w/o the quotes around) - remember we're geeks here and tend to use geekspeak w/o regard to who are we talking about.

I have no idea of why is linux not booting properly - it should just do it, intermittent problems like these are very hard to diagnose. if it fails at starting the GUI, aka X (after the initial text messages that run on the screen) it may be a problem with the screen resolution or something - 'killing X' by ctrl+alt+backspace may work.

I was thinking if you haven't gotten it by the time i can help, i'd ask you to create an account for me so that I can login on see if I can fix it. I haven't used wireless encryption in more than a year (and I rarely use wireless anyways), so telling you what to type may be quite inefficient.... Anyways,
catch you later.

Lynchmeister
03-04-2008, 06:08 AM
That's really really weird. Once linux is set up and works there should be nothing more to do. I wonder if your laptop isn't really resetting when you do a warm reboot. Have you tried doing cold restarts instead?

edit: at the risk of sounding like an advertisement for linux; I'd almost bet on the fact that the problem is with Windows in that case. My bro-in-law (who works in IT) was really against my initial (and long gone) dual boot set up b/c, as he said, windows doesn't play nice in any dual boot situation.

edit2: of course, it could always be a hardware issue . not that such a thing would ever be possible. :eek:

Interestingly, the cold restarts seem to yield better results. Booted up on the first try this morning.

Lynchmeister
03-04-2008, 06:15 AM
Ok, I read through the iwconfig manual, but it might as well have been written in Chinese.

biomesh
03-04-2008, 08:31 AM
iwconfig eth1 essid NetworkName key ABC1234ABC

This would be if you have a wireless interface of eth1, a wireless network name of NetworkName, and a 64 bit WEP key of ABC1234ABC.

RichGem
03-04-2008, 12:29 PM
]iwconfig eth1 essid NetworkName key ABC1234ABC [/B]

This would be if you have a wireless interface of eth1, a wireless network name of NetworkName, and a 64 bit WEP key of ABC1234ABC.


as noted above, this is geek-speak Cory, for type the bold stuff (with proper substitutions) in a terminal window. sorry I can't be of more help with this, I'm a total spaz with wireless in general, and with linux more so.

Lynchmeister
03-05-2008, 05:59 AM
iwconfig eth1 essid NetworkName key ABC1234ABC

This would be if you have a wireless interface of eth1, a wireless network name of NetworkName, and a 64 bit WEP key of ABC1234ABC.


as noted above, this is geek-speak Cory, for type the bold stuff (with proper substitutions) in a terminal window. sorry I can't be of more help with this, I'm a total spaz with wireless in general, and with linux more so.

Thanks guys. I will try this at my earliest chance. I was totally burnt out yesterday and just took a few steps away from the computer to "recompose" myself. :lol:

Back at work today, so it may be a day or so before I jump back in the saddle, but I'll be sure to update the thread with any news.

Lynchmeister
03-05-2008, 06:02 AM
Just thought of this. We're using TKIP encryption...will the above still apply if I substitute the WEP key with my TKIP key?

RichGem
03-05-2008, 06:28 AM
Just thought of this. We're using TKIP encryption...will the above still apply if I substitute the WEP key with my TKIP key?

My knowledge on this might be dated (see spaz warning above), but if I'm still up-to-date, linux only does WEP .

biomesh
03-05-2008, 06:43 AM
You can use TKIP, WPA, WPA2, etc, but there is usually another program involved (i.e. wpa-supplicant). Generally if you are using something other than WEP or no key at all you will want to use one of the distributions management utilities to do this. Network Manager is a fairly reliable network configuration tool if you use gnome and does support TKIP with WPA and WPA2.

RichGem
03-05-2008, 08:13 AM
You can use TKIP, WPA, WPA2, etc, but there is usually another program involved (i.e. wpa-supplicant). Generally if you are using something other than WEP or no key at all you will want to use one of the distributions management utilities to do this. Network Manager is a fairly reliable network configuration tool if you use gnome and does support TKIP with WPA and WPA2.

Thanks, Robert, for updating me.

Lynchmeister
03-05-2008, 03:13 PM
You can use TKIP, WPA, WPA2, etc, but there is usually another program involved (i.e. wpa-supplicant). Generally if you are using something other than WEP or no key at all you will want to use one of the distributions management utilities to do this. Network Manager is a fairly reliable network configuration tool if you use gnome and does support TKIP with WPA and WPA2.

Ok, so we've cracked part of Linux's diamond hard WiFi shell...I would have been spinning my tires for all of eternity had I not mentioned the TKIP key...:w00t::eek:

Edit...maybe not. So Network Manager supports TKIP...hmm...ok.

rabidpotatochip
03-05-2008, 03:15 PM
Edit...maybe not. So Network Manager supports TKIP...hmm...ok.

Uh... isn't that a good thing™? :confused:

TstebinsB
03-05-2008, 03:19 PM
13 pages about Linux? :eek: Who would've thunk it! :confused: Not I.

rabidpotatochip
03-05-2008, 03:24 PM
13 pages about Linux? :eek: Who would've thunk it! :confused: Not I.

I was going to correct you and say 19, but then I realized you probably arrived that number by cutting out all the witty banter. :tongue:

TstebinsB
03-05-2008, 03:26 PM
I was going to correct you and say 19, but then I realized you probably arrived that number by cutting out all the witty banter. :tongue:

Maybe we have a different setup. I have 367 posts on page 13. You have 19 pages?

rabidpotatochip
03-05-2008, 04:03 PM
Maybe we have a different setup. I have 367 posts on page 13. You have 19 pages?

I do. Hrm... I wonder where I can change that. Probably in the User CP, but it's not a big deal.

RichGem
03-05-2008, 05:31 PM
13 pages about Linux? :eek: Who would've thunk it! :confused: Not I.

And we're just getting started. <mad scientist laugh>

rabidpotatochip
03-05-2008, 05:39 PM
And we're just getting started. <mad scientist laugh>

Corey probably read that and cried.

For what it's worth though, his level of success has been higher than mine with MythTV. :smile:

RichGem
03-05-2008, 05:56 PM
Corey probably read that and cried.

For what it's worth though, his level of success has been higher than mine with MythTV. :smile:


MythTV is definitely a "female dog" to set up (so I've read), but once you do get it done....

Anyhow, Cory probably did cry. I suppose we'll soon have to pick out the penguin-themed wall paper to go with his rubber room any day now.

RichGem
03-05-2008, 06:00 PM
For Cory's new room, I think this (http://www.creativewallcovering.com/wallpaper-penguinbath.html) will be suitably soothing post-break down.

rabidpotatochip
03-05-2008, 06:04 PM
MythTV is definitely a "female dog" to set up (so I've read), but once you do get it done....

Anyhow, Cory probably did cry. I suppose we'll soon have to pick out the penguin-themed wall paper to go with his rubber room any day now.

I have the backend and the web interface running pretty flawlessly. The frontend crashes when I exit video playback, but that's because I have an ATI IGP and I'm using somewhat unstable video drivers. Basically I can record any darn thing I want from anywhere I want but I'd better be damn sure I wanna watch it. :biggrin:

At least Ubuntu is pretty easy to set up. Eventually it still requires the endless tinkering we so love, but that's part of the charm. :smile:

gugi
03-05-2008, 06:15 PM
13 pages about Linux? :eek: Who would've thunk it! :confused: Not I.
Yeah, the page is determined by posts/(posts_per_page), the second can be changed in your control panel.
But yes, you are right - installing Linux on problematic hardware, but somebody who has no idea what they are doing is indeed not an easy thing. Of course it is all a matter of perspective - if you try to install a Windows on my Linux computer it'll be very easy - just one response - 'Impossible, it is not supported.'.

Corey, yes, NetworkManager is what you want to use if you can, but I thought that's the first thing you tried it and it didn't work. Why don't you give it another try. Make sure you select your encryption scheme from a drop-down menu, otherwise I think you can safely assume it is not going to work.

RichGem
03-05-2008, 06:15 PM
I have the backend and the web interface running pretty flawlessly. The frontend crashes when I exit video playback, but that's because I have an ATI IGP and I'm using somewhat unstable video drivers. Basically I can record any darn thing I want from anywhere I want but I'd better be damn sure I wanna watch it. :biggrin:

At least Ubuntu is pretty easy to set up. Eventually it still requires the endless tinkering we so love, but that's part of the charm. :smile:


Ya mean, another video card causing problems???? What are the chances? :rolleyes:

Lynchmeister
03-05-2008, 06:16 PM
Uh... isn't that a good thing™? :confused:

Yeah. :blush:

Ok, so here's the low-down fellas:

I was feeling adventurous and popped up Linux and did some nosing around. In doing so, I've learned that my restricted driver for the Broadcom chipset driver thingy (technical term) was disabled. :frown: So I tried to enable it and got an error message while trying to download it. :mad: Then I realized I didn't have an internet connection. :redface:

Connected, I was able to download something, but then it prompted me to specify the Firmware location. Hmmm....

I can either browse my hard disk (presumably Windows partition, too?) or download from the internet from : http://xeve.de/down/wl_apsta.o (this was a defaulted, greyed out field, which I don't think I can modify.

Questions/Suggestions:

Would it make more sense for me to try and track down the disk that came with my wireless stuff? Can I find the driver in the windows partition somewhere? Can the defaulted internet site be trusted? (loaded question, I know. :redface:)

Thanks guys!

Lynchmeister
03-05-2008, 06:18 PM
And we're just getting started. <mad scientist laugh>


Corey probably read that and cried.

For what it's worth though, his level of success has been higher than mine with MythTV. :smile:

Yes...I cried. You're a bad man, Richard! :mad:









































































:lol::lol::lol::lol::lol::lol::lol::lol::lol::lol: :lol::lol::lol::lol::lol::lol:

RichGem
03-05-2008, 06:20 PM
Yeah. :blush:

Ok, so here's the low-down fellas:

I was feeling adventurous and popped up Linux and did some nosing around. In doing so, I've learned that my restricted driver for the Broadcom chipset driver thingy (technical term) was disabled. :frown: So I tried to enable it and got an error message while trying to download it. :mad: Then I realized I didn't have an internet connection. :redface:

Connected, I was able to download something, but then it prompted me to specify the Firmware location. Hmmm....

I can either browse my hard disk (presumably Windows partition, too?) or download from the internet from : http://xeve.de/down/wl_apsta.o (this was a defaulted, greyed out field, which I don't think I can modify.

Questions/Suggestions:

Would it make more sense for me to try and track down the disk that came with my wireless stuff? Can I find the driver in the windows partition somewhere? Can the defaulted internet site be trusted? (loaded question, I know. :redface:)

Thanks guys!

Observations/responses :biggrin:
a) it's always helpful to have an active internet connection when trying to download something. :tongue_sm
b) you can get the drives either from the install disk or (theoretically) from your windows partition.
c) it may be worth it to d/l from the web site since those drivers may (theoretically) be newer and more updated... theoretically.

gugi
03-05-2008, 06:21 PM
corey, accept the DL location
it won't be on the disk, restricted means that the licensing doesn't allow it to be distributed in the normal way, but ubuntu was nice to give you the option to get it from whoever distributes it.
see, you're making good progress :)


P.S. Just went on the chat in case you are there, but I guess not this time

RichGem
03-05-2008, 06:24 PM
Yes...I cried. You're a bad man, Richard! :mad:






Just doin' my job Cory. bwah ha ha ha ha ha

Did ya like the wallpaper I picked out for you?

Lynchmeister
03-06-2008, 04:34 AM
corey, accept the DL location
it won't be on the disk, restricted means that the licensing doesn't allow it to be distributed in the normal way, but ubuntu was nice to give you the option to get it from whoever distributes it.
see, you're making good progress :)


P.S. Just went on the chat in case you are there, but I guess not this time

Yeah, I actually got really excited when I started to make those connections. :smile:


Just doin' my job Cory. bwah ha ha ha ha ha

Did ya like the wallpaper I picked out for you?

As a matter of fact, I did. It was lovely. :tongue_sm

Lynchmeister
03-07-2008, 08:58 AM
I've been poking around the Ubuntu forums and documentation and found this promising nugget of information:


4) Now you can navigate to System/Administration/Restricted Drivers Manager and see if the Broadcom BCM43xx shows up as available firmware to enable. (If it does not show up, you may be better suited for utilizing the Ndiswrapper program available at http://ndiswrapper.sourceforge.net/joomla/ . Driver documentation and listing of usable drivers will be located at http://ndiswrapper.sourceforge.net/joomla/index.php?/component/option,com_openwiki/Itemid,33/id,list_b/ .)

5)When you check the box to enable the card, a new window will pop up and prompt you for a driver. Select the second option to download from the internet.

If this is successful, you will have your light turn on and can begin using your Wifi connection.


This is encouraging because (as gugi mentioned) my wireless card is being recognized and most recently I discovered that my Broadcom BCM43xx does show up as available firmware to enable, which I started to do, but stopped short of downloading the driver. Armed with more knowledge, heres hoping that "my light will turn on and I can begin using my WiFi connection."

I'm pulling up on another 5 days off, so as we've seen before, we might be on the verge of another milestone...or another spot on the side of the road. :tongue:

rabidpotatochip
03-07-2008, 09:36 AM
I've been poking around the Ubuntu forums and documentation and found this promising nugget of information:



This is encouraging because (as gugi mentioned) my wireless card is being recognized and most recently I discovered that my Broadcom BCM43xx does show up as available firmware to enable, which I started to do, but stopped short of downloading the driver. Armed with more knowledge, heres hoping that "my light will turn on and I can begin using my WiFi connection."

I'm pulling up on another 5 days off, so as we've seen before, we might be on the verge of another milestone...or another spot on the side of the road. :tongue:

The fact that it's recognized is definitely a fantastic start. I'm not sure if I said this earlier, but if you manage to get wireless working you'll be ahead of me in that department. I ultimately set up a second router as a wireless bridge and physically connected my mythbox because it was easier than trying to find an adapter that was supported.

Lynchmeister
03-07-2008, 09:46 AM
The fact that it's recognized is definitely a fantastic start. I'm not sure if I said this earlier, but if you manage to get wireless working you'll be ahead of me in that department. I ultimately set up a second router as a wireless bridge and physically connected my mythbox because it was easier than trying to find an adapter that was supported.

I've been looking into the whole MythTV deal since I've read so many of your references to it and it sounds like an awesome concept. I'd love to have the damn cable company of my back...$10 for the service, $5 for the box rental...grrr...monetarily speaking, the thing would pay for itself fairly quickly...then again, there's a good chance that it would just go right back to the Hair Club For Men. :biggrin:

Afterthought: Psychiatrists aren't cheap either. :wink:

gugi
03-07-2008, 12:22 PM
Afterthought: Psychiatrists aren't cheap either. :wink:
Indeed they aren't, but you can just pick a cute one and you won't even notice the pricetag ;)

I've used wireless with linux for quite a bit and while I usually don't encrypt the wireless protocol so that it's as fast as it can be (I have 802.11b and not g), it's not very hard at all.
The good thing is that Corey is learning to find the solutions himself :)

yes, we do hope that "your light will turn on and you can start using the wireless" :biggrin:

Lynchmeister
03-07-2008, 03:51 PM
The good thing is that Corey is learning to find the solutions himself :)

yes, we do hope that "your light will turn on and you can start using the wireless" :biggrin:

Unfortunately I can't ride your guys' coat tails forever...:biggrin:...and thanks for the well wishes. :thumbsup:

rabidpotatochip
03-07-2008, 06:28 PM
Unfortunately I can't ride your guys' coat tails forever...:biggrin:...and thanks for the well wishes. :thumbsup:

Yeah, all my shirts are stretched thanks to you... :tongue:

Don't worry, eventually you'll be able to grep some meaning from all this, and once you do it'll snowball. You're a smart guy (seriously) so it shouldn't take you long to figure it out.

RichGem
03-07-2008, 06:44 PM
Don't worry Cory, I'm sure we'll find some way to make you pay us back... I mean, um, :blush: I'm sure you'll find some way to pay us back. :biggrin:

Kairtane
03-08-2008, 03:58 PM
Don't worry, eventually you'll be able to grep some meaning from all this, and once you do it'll snowball.

I see what you did there! :wink:

SlyGI
03-08-2008, 04:01 PM
Ok, 11 pages of thread is just too long for me to figure this out. Are we talking about the Linux computer stuff, or is there a music group called Linux, or is this some sort of disease I should be worried about?

Confuzius
03-08-2008, 05:57 PM
Ok, 11 pages of thread is just too long for me to figure this out. Are we talking about the Linux computer stuff, or is there a music group called Linux, or is this some sort of disease I should be worried about?
Disease. Very contagious. Beware.

SlyGI
03-08-2008, 06:07 PM
Disease. Very contagious. Beware.

Disease! :eek: I think my computer has it because it's running slooooooooooooooooooooooooooooooooooooooooooooooow . :001_smile

rabidpotatochip
03-08-2008, 06:25 PM
Disease! :eek: I think my computer has it because it's running slooooooooooooooooooooooooooooooooooooooooooooooow . :001_smile

That's what happens when you use an unprotected floppy. :biggrin:

gugi
03-08-2008, 08:32 PM
Ok, 11 pages of thread is just too long for me to figure this out. Are we talking about the Linux computer stuff, or is there a music group called Linux, or is this some sort of disease I should be worried about?
no, don't worry about it

RichGem
03-09-2008, 06:33 AM
no, don't worry about it

Just wash your hands thoroughly and protect your floppies.

Aperture
03-09-2008, 07:10 AM
Disease. Very contagious. Beware.

Diesease? It's the cure baby! :lol:

RichGem
03-09-2008, 07:35 AM
Ok, 11 pages of thread is just too long for me to figure this out. Are we talking about the Linux computer stuff, or is there a music group called Linux, or is this some sort of disease I should be worried about?

twenty pages by my settings and almost 400 posts. :w00t:

rabidpotatochip
03-09-2008, 07:42 AM
twenty pages by my settings and almost 400 posts. :w00t:

+1 on that. After we get Corey fully up and running we should take a stab at DVD playback on MythTV*. :biggrin:


*It does work, it just occasionally gets those weird lines from the video not refreshing fast enough.

RichGem
03-09-2008, 08:01 AM
+1 on that. After we get Corey fully up and running we should take a stab at DVD playback on MythTV*. :biggrin:


*It does work, it just occasionally gets those weird lines from the video not refreshing fast enough.

That can be accomplished by a very simple mkfs.ext3 on the "right" partition. LOL.

Corey.. DO NOT, repeat DO NOT get creative and try that.


EDIT: That's #400 folks. And it was even about Linux. :biggrin:

Lynchmeister
03-09-2008, 10:58 AM
I'm Running Linux And I'm Wireless!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!

Lynchmeister
03-09-2008, 10:59 AM
I'm Running Linux And I'm Wireless!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!

Not too shabby for being hungover. :wink:

P.S. I hope this thread doesn't die...I feel like it's a part of all of us now. :tongue:

RichGem
03-09-2008, 11:27 AM
Yeah Cory! Wasn't it all worth it now?

:clap: :clap: :clap:

Lynchmeister
03-09-2008, 11:33 AM
Yeah Cory! Wasn't it all worth it now?

:clap: :clap: :clap:

Yes. :biggrin:

It's been a trying, but confidence building experience and I'm stoked to continue to learn and experiment now.

gugi
03-09-2008, 12:55 PM
I'm Running Linux And I'm Wireless!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!
yay, congratulations!
see :) if you look back at it and what did it, you'll probably realize it wasn't that bad - enable the extended drivers and trust that it'll do it's job :)


Yes. :biggrin:

It's been a trying, but confidence building experience and I'm stoked to continue to learn and experiment now.
here's your next challenge then - delete windows altogether and install linux mint on it's place - make sure you have separate home partition which then you could share with ubuntu.

See, the gibberish isn't over yet :)

It's actually a psychological, not a technical challenge - do you have the cajones to get rid of windows, that is the question :biggrin::biggrin::biggrin:

rabidpotatochip
03-09-2008, 01:05 PM
I'm Running Linux And I'm Wireless!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!

So many exclamation marks! And congratulations!!!! :biggrin:


Not too shabby for being hungover. :wink:

P.S. I hope this thread doesn't die...I feel like it's a part of all of us now. :tongue:

Yeah, it was a real bonding experience... I hope this thread never dies. :biggrin:

Edit: And here to alcohol. The cause of, and solution to, all of the world's problems.

Lynchmeister
03-09-2008, 01:39 PM
yay, congratulations!
see :) if you look back at it and what did it, you'll probably realize it wasn't that bad - enable the extended drivers and trust that it'll do it's job :)


here's your next challenge then - delete windows altogether and install linux mint on it's place - make sure you have separate home partition which then you could share with ubuntu.

See, the gibberish isn't over yet :)

It's actually a psychological, not a technical challenge - do you have the cajones to get rid of windows, that is the question :biggrin::biggrin::biggrin:

I have the cajones to ditch Windows, but not to face the aftermath with my wife. She's still a bit iffy on the whole deal. :rolleyes:


So many exclamation marks! And congratulations!!!! :biggrin:

You might even call it haphazard. :biggrin:


Yeah, it was a real bonding experience... I hope this thread never dies. :biggrin:

Edit: And here to alcohol. The cause of, and solution to, all of the world's problems.

:lol:

rabidpotatochip
03-09-2008, 02:21 PM
I have the cajones to ditch Windows, but not to face the aftermath with my wife. She's still a bit iffy on the whole deal. :rolleyes:

That's why it's psychological... you have to trick her. :tongue:

Actually, I know how you feel. My wife is extremely happy to use whatever I set up, but I'd better only have to teach her how to use it once and it'd better work for her the first time. It was easier to get her DE shaving in the end. :wink:

RichGem
03-09-2008, 05:05 PM
Morpheus (http://www.imdb.com/name/nm0000401/): This is your last chance. After this, there is no turning back. You take the blue pill - the story ends, you wake up in your bed and believe whatever you want to believe. You take the red pill - you stay in Wonderland and I show you how deep the rabbit-hole goes.

......


Morpheus (http://www.imdb.com/name/nm0000401/): The pill you took is part of a trace program. It's designed to disrupt your input/output carrier signal so we can pinpoint your location.
Neo (http://www.imdb.com/name/nm0000206/): What does that mean?
Cypher (http://www.imdb.com/name/nm0001592/): It means fasten your seat belt Dorothy, 'cause Kansas is going bye-bye.

So, in other words, Cory... take the red pill and give some to the wife.

Lynchmeister
03-09-2008, 06:37 PM
Hehe.

Umm...so I'm back in windows for the moment because I was having, you guessed it, trouble connecting to my wireless! It didn't take me long to figure it out though...I think. Heres my theory (and I would have tested it had my computer not froze).

The first time I got it working, I had to go into the network manager and, despite the fact that my password was entered, I had to re-enter it, which brought up a green "loading" bar and then, BAM!, I was golden.

Well, after bringing the computer out of hibernation, I couldn't get onto the internet, but it was registering an 88&#37; signal strength. Hmm...tried playing with a couple things, but nothing. Then I figured, even though the password seemed to be entered, I would re-enter it and see what happens. Well, somehow the computer froze and I said to hell with this now, I want to get online while my battery holds out and I booted windows. While windows was coming up, it came to me. I haven't gone into the key-ring manager yet and set up my password there! So I suppose that's the next step. I'll save that for tomorrow, though, and will be sure to keep you all posted.

RichGem
03-09-2008, 06:45 PM
Hehe.

Umm...so I'm back in windows for the moment because I was having, you guessed it, trouble connecting to my wireless! It didn't take me long to figure it out though...I think. Heres my theory (and I would have tested it had my computer not froze).

The first time I got it working, I had to go into the network manager and, despite the fact that my password was entered, I had to re-enter it, which brought up a green "loading" bar and then, BAM!, I was golden.

Well, after bringing the computer out of hibernation, I couldn't get onto the internet, but it was registering an 88% signal strength. Hmm...tried playing with a couple things, but nothing. Then I figured, even though the password seemed to be entered, I would re-enter it and see what happens. Well, somehow the computer froze and I said to hell with this now, I want to get online while my battery holds out and I booted windows. While windows was coming up, it came to me. I haven't gone into the key-ring manager yet and set up my password there! So I suppose that's the next step. I'll save that for tomorrow, though, and will be sure to keep you all posted.

Sounds like you're on the right track.

And a +1 whoo hoo for the thread that will never die (well, not until the internet melts down anyhow). Now take the @$%@# red pill, darn it! :lol:

Lynchmeister
03-09-2008, 06:49 PM
Sounds like you're on the right track.

And a +1 whoo hoo for the thread that will never die (well, not until the internet melts down anyhow). Now take the @$%@# red pill, darn it! :lol:

Damn...that rabbit hole is deep. :lol:

rabidpotatochip
03-09-2008, 07:01 PM
Damn...that rabbit hole is deep. :lol:

But why is there a penguin in it? :confused:

You're officially further along than I am with wireless support.

Lynchmeister
03-09-2008, 07:02 PM
But why is there a penguin in it? :confused:

You're officially further along than I am with wireless support.

The student becomes the master...does that sound familiar to anyone else? :lol:

RichGem
03-09-2008, 07:06 PM
The student becomes the master...does that sound familiar to anyone else? :lol:

I'm thinkin' "The Police"... "Wrapped Around Your Finger" :biggrin:

(line about student becoming the master)

RichGem
03-09-2008, 07:09 PM
Damn...that rabbit hole is deep. :lol:

I suggest starting slowly introducing the Mrs.... something sensitive and caring, like, "Hey Honey... I've installed a new version of "windows" (make air quotes with your fingers if needed) on all our computers. It's called Linux." :tongue:

biomesh
03-10-2008, 06:05 AM
If you do setup the password with the keyring manager, just be aware you still need to enter a password for the application to access the keyring manager. This means that you will have to enter an extra password the first time you login.

There might be other ways around it, or maybe a passthrough mechanism, but hasn't bothered me too much.

Lynchmeister
03-10-2008, 06:24 AM
If you do setup the password with the keyring manager, just be aware you still need to enter a password for the application to access the keyring manager. This means that you will have to enter an extra password the first time you login.

There might be other ways around it, or maybe a passthrough mechanism, but hasn't bothered me too much.

Interesting...

You know what, I may just leave it as is then. It's really no more difficult than getting the windows side up. Over there (hehe), if the computer has been idle for long enough, sometimes it won't auto-acquire the signal again, so that requires entering the TKIP key again.

At any rate, a small price to pay as I've finally cracked the Ubuntu-Dell Laptop WiFi hurdle. :biggrin:

"I'm bustin', Jerry! Bustin'!"

Mr. Gillette
03-10-2008, 07:23 AM
The key to successfully running it is to appear annoyed the whole time.

We all get a little cuckoo sometimes, George. I used to be like you. Berating personnel until they cried, calling managers on the field during a game, threatening to move the team to New Jersey, just to upset people. Then I found a way to relax. I've got two words to say to you, George... Hot Tub!

biomesh
03-10-2008, 07:26 AM
Interesting...

You know what, I may just leave it as is then. It's really no more difficult than getting the windows side up. Over there (hehe), if the computer has been idle for long enough, sometimes it won't auto-acquire the signal again, so that requires entering the TKIP key again.

At any rate, a small price to pay as I've finally cracked the Ubuntu-Dell Laptop WiFi hurdle. :biggrin:

"I'm bustin', Jerry! Bustin'!"

That is where the keystore manager comes into play, as it will provide the passphrase to the Network Manager without prompting you.

Lynchmeister
03-10-2008, 07:27 AM
That is where the keystore manager comes into play, as it will provide the passphrase to the Network Manager without prompting you.

Ah...so it's a one-time set up?

biomesh
03-10-2008, 07:38 AM
You setup the passphrase once, then when you boot/login to your laptop, you will be prompted for a password for the keyring. The keyring manager will only prompt you once for each time the computer is booted.

The password use for the keyring can be anything that you want it to be.

rabidpotatochip
03-10-2008, 08:19 AM
The key to successfully running it is to appear annoyed the whole time.

We all get a little cuckoo sometimes, George. I used to be like you. Berating personnel until they cried, calling managers on the field during a game, threatening to move the team to New Jersey, just to upset people. Then I found a way to relax. I've got two words to say to you, George... Hot Tub!

That's the key to tech support. It makes people think your time is worth more than theirs because you must be busy if you're so annoyed all the time, and you must be important if you're busy enough to be so annoyed. :biggrin:

RichGem
03-10-2008, 09:40 AM
That's the key to tech support. It makes people think your time is worth more than theirs because you must be busy if you're so annoyed all the time, and you must be important if you're busy enough to be so annoyed. :biggrin:

Hmm... maybe in Canada. But, here the true key to tech support is to NOT speak the same language as the caller. Or, at the very least, to speak such an exotically and heavily accented version of said language that no one can understand you in the least and therefore won't even want to call you in the first place. :rolleyes:

RichGem
03-10-2008, 09:43 AM
The key to successfully running it is to appear annoyed the whole time.

We all get a little cuckoo sometimes, George. I used to be like you. Berating personnel until they cried, calling managers on the field during a game, threatening to move the team to New Jersey, just to upset people. Then I found a way to relax. I've got two words to say to you, George... Hot Tub!


Two other words (as someone already mentioned):

Serenity NOW !!! (a "damn it" at the end, is optional)

Lynchmeister
03-10-2008, 11:05 AM
Does anyone know if there is a C or C++ compiler included in either Windows or Ubuntu?

Yes...you guessed it...my new project is to learn C and (hinging on the success of my C exploits) C++.

I read something about DOS working (?), so would the Linux terminal also function as a C compiler?

I'm off to search google now.

Lynchmeister
03-10-2008, 11:07 AM
I may have answered my own question...

http://ubuntuforums.org/showthread.php?t=112575

I'll let you know. :biggrin:

rabidpotatochip
03-10-2008, 11:13 AM
Does anyone know if there is a C or C++ compiler included in either Windows or Ubuntu?

Yes...you guessed it...my new project is to learn C and (hinging on the success of my C exploits) C++.

I read something about DOS working (?), so would the Linux terminal also function as a C compiler?

I'm off to search google now.

You just love trouble, don't you? :tongue:

I'd recommend jumping straight into C++; you'll love object-oriented programming. I also think the name is a great joke, to increment a variable by 1 in C (or C++) you use x++, so C++ is one step up. Learn about structures before classes, otherwise your brain will implode. Oh, and the fastest way to learn programming is just to do it and see what happens. Dissecting other peoples' code is a good way to learn too, but not until you've mastered the basics.

Here are two C++ lessons that will hopefully help in the future:
Nothing is false. Everything else is true.
When dealing with inheritance, private stays private and public stays public, protected becomes private.

Lynchmeister
03-10-2008, 11:14 AM
Just installed build-essential (through the terminal for practice rather than through the package manager), so now I need to find it and figure out what to do with it.

Lynchmeister
03-10-2008, 11:19 AM
You just love trouble, don't you? :tongue:

I'd recommend jumping straight into C++; you'll love object-oriented programming. I also think the name is a great joke, to increment a variable by 1 in C (or C++) you use x++, so C++ is one step up. Learn about structures before classes, otherwise your brain will implode. Oh, and the fastest way to learn programming is just to do it and see what happens. Dissecting other peoples' code is a good way to learn too, but not until you've mastered the basics.

Here are two C++ lessons that will hopefully help in the future:
Nothing is false. Everything else is true.
When dealing with inheritance, private stays private and public stays public, protected becomes private.

Well...it certainly has a way of finding me! :lol: Are you sure about jumping straight into c++? My library has books on both and I checked out C, reasoning that it's the first step, which is what the first few pages of the book reiterate. You can't learn C++ without learning C first.

So you're saying "forget C" and just "go for it" with C++? Hmm...

To be fair, I have less background info at this point on C(++) than I did when I took the first steps with Linux, so I'm open to any and all suggestions.

Lynchmeister
03-10-2008, 11:24 AM
Hmm...so I installed the build-essential package, but now I don't know where to find it? :blush: Can someone please throw me a life-saver?

Also for future reference, is there a default location where things of this nature that I install get installed to? I poked around some folders, but I'm baffled at this point. :001_rolle

biomesh
03-10-2008, 11:36 AM
You will need gcc and g++ for c and c++ code compiling. If you are going to use standard libraries, you will need to install glibc-devel and libstdc++-devel packages.

Depending on the libaraies you want to use in your program, you will need to install the devel packages for the respective library/program.

RichGem
03-10-2008, 11:50 AM
Hmm...so I installed the build-essential package, but now I don't know where to find it? :blush: Can someone please throw me a life-saver?

Also for future reference, is there a default location where things of this nature that I install get installed to? I poked around some folders, but I'm baffled at this point. :001_rolle

The short answer there is, no, not really. Most stuff ends up in /bin or /usr/bin or /opt. Root only stuff ends up in /sbin or /usr/sbin ... usually. Shared libraries end up in their own spot, etc. Unlike windows where (most) everything for program "xxx" will get installed in (say) c:\program files\xxx or the directory of your choosing if you override.

RichGem
03-10-2008, 11:53 AM
btw, Cory.. you sure are a GLUTTON for punnishment. :a30::a7::a53:
way to go!

Chip, Gugi, we've created a monster!

RichGem
03-10-2008, 11:54 AM
Hmm...so I installed the build-essential package, but now I don't know where to find it? :blush: Can someone please throw me a life-saver?

Also for future reference, is there a default location where things of this nature that I install get installed to? I poked around some folders, but I'm baffled at this point. :001_rolle

don't worry about finding it. the system will know where it is when you invoke it.

Lynchmeister
03-10-2008, 12:08 PM
You will need gcc and g++ for c and c++ code compiling. If you are going to use standard libraries, you will need to install glibc-devel and libstdc++-devel packages.

Depending on the libaraies you want to use in your program, you will need to install the devel packages for the respective library/program.


don't worry about finding it. the system will know where it is when you invoke it.

So...I think gcc and g++ were installed when I installed build-essential...I'll try looking for them in the possible folders you (Richard) mentioned above.

Yes, you're all responsible for this creation! :lol:

Lynchmeister
03-10-2008, 12:14 PM
Just installed build-essential (through the terminal for practice rather than through the package manager), so now I need to find it and figure out what to do with it.

No luck in my search. Still clueless and not really sure what I'm looking for...if I even have it installed (which I'm confident I do, but then again, who the hell really knows?).

RichGem
03-10-2008, 12:35 PM
No luck in my search. Still clueless and not really sure what I'm looking for...if I even have it installed (which I'm confident I do, but then again, who the hell really knows?).

I'm pretty sure that Ubuntu does not (pre-edit that said "doe snot" lol) installs the build environment by default and what they call it, I do not know. But, sneak over to the graphical package manager (probably "synaptic") and check that out; it should give you the right package name to d/l, but you'll have to look through all the avail packages, probably.

RichGem
03-10-2008, 12:41 PM
No luck in my search. Still clueless and not really sure what I'm looking for...if I even have it installed (which I'm confident I do, but then again, who the hell really knows?).


this may or may not work for you...

sudo updatedb && sudo locate gcc

if you get anything printed out (after a good wait), then gcc (the compiler) is installed

RichGem
03-10-2008, 12:44 PM
alternatively, look through /bin and /sbin to find gcc. the program itself may or may not be there, but a symlink (like a windows shortcut) will be in one of them.

you can use the terminal or the graphical file manager to do this. graphical will probably be easier. but since you're a glutton....

in terminal:

ls /bin/gcc*

and/or

ls /sbin/gcc*

if nothing prints or an error pops up, gcc aint' there.

(ls = list directory; like DOS "dir")

biomesh
03-10-2008, 12:48 PM
You can also just try to run cc or c++ as they should be symlinks to gcc and g++ respectively.

I am betting that they are going to be installed as separate packages.

RichGem
03-10-2008, 12:51 PM
3rd alternative... don't worry about it. the system knows where it is and that's all that's important. If it's not installed (which would be very odd after you did the above, providing you did so with a "sudo" in front of the install commands), you're attempts to compile will fail with an error message.

linuxman
03-10-2008, 01:46 PM
Have not taken the time to read the full 23 page thread so apologies if this has been said already, but I would have thought if gcc and g++ are installed properly (using apt-get install or synaptic) then the environment should also be setup. So gcc -v should print the version details; as should g++ -v (for the cpp compiler) eg for my Debian Etch laptop:

typing gcc -v in a console gives:

Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu

Typing g++ -v in a console gives:

Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
ead model: posix

Lynchmeister
03-10-2008, 02:02 PM
this may or may not work for you...

sudo updatedb && sudo locate gcc

if you get anything printed out (after a good wait), then gcc (the compiler) is installed

Just did this and after a few moments, it spewed out a healthy bit of output.



cory@cory-laptop:~$ sudo updatedb && sudo locate gcc
[sudo] password for cory:
/lib/libgcc_s.so.1
/usr/lib/libgccpp.so.1
/usr/lib/libgccpp.so.1.0.2
/usr/lib/gcc
/usr/lib/gcc/i486-linux-gnu
/usr/lib/gcc/i486-linux-gnu/4.1.3
/usr/lib/gcc/i486-linux-gnu/4.1
/usr/lib/gcc/i486-linux-gnu/4.1/libgcc_eh.a
/usr/lib/gcc/i486-linux-gnu/4.1/crtbeginS.o
/usr/lib/gcc/i486-linux-gnu/4.1/crtend.o
/usr/lib/gcc/i486-linux-gnu/4.1/cc1plus
/usr/lib/gcc/i486-linux-gnu/4.1/libgcov.a
/usr/lib/gcc/i486-linux-gnu/4.1/libstdc++.so
/usr/lib/gcc/i486-linux-gnu/4.1/crtfastmath.o
/usr/lib/gcc/i486-linux-gnu/4.1/collect2
/usr/lib/gcc/i486-linux-gnu/4.1/crtendS.o
/usr/lib/gcc/i486-linux-gnu/4.1/cc1
/usr/lib/gcc/i486-linux-gnu/4.1/libstdc++.a
/usr/lib/gcc/i486-linux-gnu/4.1/libgcc.a
/usr/lib/gcc/i486-linux-gnu/4.1/libgcc_s.so
/usr/lib/gcc/i486-linux-gnu/4.1/include
/usr/lib/gcc/i486-linux-gnu/4.1/include/mm3dnow.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/stdbool.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/linux
/usr/lib/gcc/i486-linux-gnu/4.1/include/linux/a.out.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/stddef.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/mm_malloc.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/pmmintrin.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/asm
/usr/lib/gcc/i486-linux-gnu/4.1/include/asm/posix_types.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/README
/usr/lib/gcc/i486-linux-gnu/4.1/include/xmmintrin.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/stdarg.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/unwind.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/syslimits.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/mmintrin.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/limits.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/iso646.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/varargs.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/emmintrin.h
/usr/lib/gcc/i486-linux-gnu/4.1/include/float.h
/usr/lib/gcc/i486-linux-gnu/4.1/crtbegin.o
/usr/lib/gcc/i486-linux-gnu/4.1/libsupc++.a
/usr/lib/gcc/i486-linux-gnu/4.1/crtbeginT.o
/usr/lib/gcc/i486-linux-gnu/4.1.2
/usr/lib/gcc/i486-linux-gnu/4.1.2/libgcc_eh.a
/usr/lib/gcc/i486-linux-gnu/4.1.2/crtbeginS.o
/usr/lib/gcc/i486-linux-gnu/4.1.2/crtend.o
/usr/lib/gcc/i486-linux-gnu/4.1.2/libgcov.a
/usr/lib/gcc/i486-linux-gnu/4.1.2/crtfastmath.o
/usr/lib/gcc/i486-linux-gnu/4.1.2/collect2
/usr/lib/gcc/i486-linux-gnu/4.1.2/crtendS.o
/usr/lib/gcc/i486-linux-gnu/4.1.2/cc1
/usr/lib/gcc/i486-linux-gnu/4.1.2/libgcc.a
/usr/lib/gcc/i486-linux-gnu/4.1.2/libgcc_s.so
/usr/lib/gcc/i486-linux-gnu/4.1.2/include
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/mm3dnow.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/stdbool.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/stddef.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/mm_malloc.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/pmmintrin.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/xmmintrin.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/stdarg.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/unwind.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/mmintrin.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/iso646.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/varargs.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/emmintrin.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/float.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/crtbegin.o
/usr/lib/gcc/i486-linux-gnu/4.1.2/crtbeginT.o
/usr/lib/openoffice/program/libsalhelpergcc3.so.3
/usr/lib/openoffice/program/libgcc3_uno.so
/usr/lib/openoffice/program/libuno_cppuhelpergcc3.so.3
/usr/lib/openoffice/program/libvos3gcc3.so
/usr/lib/openoffice/program/libuno_salhelpergcc3.so.3
/usr/lib/openoffice/program/libstlport_gcc.so
/usr/lib/openoffice/program/libucbhelper4gcc3.so
/usr/lib/openoffice/program/libcppuhelpergcc3.so.3
/usr/lib/openoffice/program/libcomphelp4gcc3.so
/usr/lib/openoffice/program/libi18nregexpgcc3.so
/usr/lib/openoffice/program/libuno_purpenvhelpergcc3.so.3
/usr/lib/openoffice/program/libi18nutilgcc3.so
/usr/lib/openoffice/program/libjvmaccessgcc3.so.3
/usr/lib/openoffice/program/libi18nisolang1gcc3.so
/usr/src/linux-headers-2.6.22-14/scripts/gcc-version.sh
/usr/src/linux-headers-2.6.22-14/scripts/gcc-x86_64-has-stack-protector.sh
/usr/src/linux-headers-2.6.22-14/include/linux/compiler-gcc.h
/usr/src/linux-headers-2.6.22-14/include/linux/compiler-gcc4.h
/usr/src/linux-headers-2.6.22-14/include/linux/compiler-gcc3.h
/usr/src/linux-headers-2.6.22-14/include/asm-ia64/gcc_intrin.h
/usr/src/linux-headers-2.6.22-14/include/acpi/platform/acgcc.h
/usr/src/linux-headers-2.6.22-14-generic/scripts/gcc-version.sh
/usr/src/linux-headers-2.6.22-14-generic/scripts/gcc-x86_64-has-stack-protector.sh
/usr/src/linux-headers-2.6.22-14-generic/include/linux/compiler-gcc.h
/usr/src/linux-headers-2.6.22-14-generic/include/linux/compiler-gcc4.h
/usr/src/linux-headers-2.6.22-14-generic/include/linux/compiler-gcc3.h
/usr/bin/gccbug-4.1
/usr/bin/i486-linux-gnu-gcc
/usr/bin/i486-linux-gnu-gcc-4.1
/usr/bin/gccmakedep
/usr/bin/gcc-4.1
/usr/bin/c99-gcc
/usr/bin/gcc
/usr/bin/c89-gcc
/usr/share/apport/gcc_ice_hook
/usr/share/locale-langpack/en_AU/LC_MESSAGES/gcc-4.1.mo
/usr/share/locale-langpack/en_AU/LC_MESSAGES/gcc-4.2.mo
/usr/share/locale-langpack/en_AU/LC_MESSAGES/gcc-3.3.mo
/usr/share/locale-langpack/en_AU/LC_MESSAGES/gcc-3.4.mo
/usr/share/locale-langpack/en_GB/LC_MESSAGES/gcc-4.1.mo
/usr/share/locale-langpack/en_GB/LC_MESSAGES/gcc-4.2.mo
/usr/share/locale-langpack/en_GB/LC_MESSAGES/gcc-3.3.mo
/usr/share/locale-langpack/en_GB/LC_MESSAGES/gcc-3.4.mo
/usr/share/lintian/overrides/libgcc1
/usr/share/man/man7/gpl.7gcc.gz
/usr/share/man/man7/gfdl.7gcc.gz
/usr/share/man/man7/fsf-funding.7gcc.gz
/usr/share/man/man1/gcc-4.1.1.gz
/usr/share/man/man1/gccmakedep.1.gz
/usr/share/man/man1/gcc.1.gz
/usr/share/man/man1/gccbug-4.1.1.gz
/usr/share/man/man1/c89-gcc.1.gz
/usr/share/man/man1/i486-linux-gnu-gcc-4.1.1.gz
/usr/share/man/man1/c99-gcc.1.gz
/usr/share/man/man1/i486-linux-gnu-gcc.1.gz
/usr/share/doc/gcc-4.2-base
/usr/share/doc/gcc-4.2-base/copyright
/usr/share/doc/gcc-4.2-base/changelog.Debian.gz
/usr/share/doc/gcc-4.2-base/README.Debian.gz
/usr/share/doc/gcc-4.2-base/TODO.Debian
/usr/share/doc/gcc-4.1
/usr/share/doc/gcc-4.1-base
/usr/share/doc/gcc-4.1-base/README.Bugs
/usr/share/doc/gcc-4.1-base/test-summary.gz
/usr/share/doc/gcc-4.1-base/copyright
/usr/share/doc/gcc-4.1-base/NEWS.gz
/usr/share/doc/gcc-4.1-base/changelog.Debian.gz
/usr/share/doc/gcc-4.1-base/README.ssp
/usr/share/doc/gcc-4.1-base/C++
/usr/share/doc/gcc-4.1-base/C++/libstdc++_symbols.txt
/usr/share/doc/gcc-4.1-base/C++/changelog.libstdc++.gz
/usr/share/doc/gcc-4.1-base/C++/README.libstdc++-baseline
/usr/share/doc/gcc-4.1-base/C++/README.C++
/usr/share/doc/gcc-4.1-base/C++/changelog.gz
/usr/share/doc/gcc-4.1-base/.changelog.Debian.gz
/usr/share/doc/gcc-4.1-base/.copyright
/usr/share/doc/gcc-4.1-base/NEWS.html
/usr/share/doc/gcc-4.1-base/README.Debian.gz
/usr/share/doc/gcc-4.1-base/TODO.Debian
/usr/share/doc/gcc-4.1-base/gcc
/usr/share/doc/gcc-4.1-base/gcc/changelog.gz
/usr/share/doc/gcc-4.1-base/changelog.gz
/usr/share/doc/gcc-4.1-base/FAQ.gz
/usr/share/doc/gcc
/usr/share/doc/libgcc1
/var/lib/dpkg/info/gcc.preinst
/var/lib/dpkg/info/gcc.prerm
/var/lib/dpkg/info/gcc-4.2-base.postinst
/var/lib/dpkg/info/libgcc1.postrm
/var/lib/dpkg/info/gcc-4.1-base.list
/var/lib/dpkg/info/gcc-4.2-base.md5sums
/var/lib/dpkg/info/gcc-4.1.list
/var/lib/dpkg/info/libgcc1.md5sums
/var/lib/dpkg/info/gcc-4.1.md5sums
/var/lib/dpkg/info/gcc.list
/var/lib/dpkg/info/gcc-4.1-base.md5sums
/var/lib/dpkg/info/gcc-4.2-base.list
/var/lib/dpkg/info/libgcc1.list
/var/lib/dpkg/info/gcc.postinst
/var/lib/dpkg/info/gcc-4.1-base.postinst
/var/lib/dpkg/info/libgcc1.postinst
/var/lib/dpkg/info/gcc.md5sums
/var/lib/dpkg/info/libgcc1.shlibs
cory@cory-laptop:~$

biomesh
03-10-2008, 02:08 PM
Well, at least gcc is installed..

/usr/bin/gcc

You can also use the whereis command to find a program's location.

Lynchmeister
03-10-2008, 02:21 PM
Well, I found gcc and g++, but I couldn't open gcc. I tried to open it in a text editor and got an error.


Could not open the file /usr/bin/gcc.

gedit has not been able to detect the character coding.
Please check that you are not trying to open a binary file.
Select a character coding from the menu and try again.

It also gives me a character coding option. Right now it is Current Locale (UTF-8)
I could change it to Western (ISO-8859-15)

I'll try to attach a screen shot.

biomesh
03-10-2008, 02:35 PM
Don't open gcc with a text editor, as it is a binary program (machine code). You can run the program, but I wouldn't suggest editing it.

If you want to write a c or c++ program, use a text editor or an integrated development environment (eclipse, kdevelop, etc)

You then use gcc or g++ to compile the program.

Lynchmeister
03-10-2008, 02:58 PM
Don't open gcc with a text editor, as it is a binary program (machine code). You can run the program, but I wouldn't suggest editing it.

If you want to write a c or c++ program, use a text editor or an integrated development environment (eclipse, kdevelop, etc)

You then use gcc or g++ to compile the program.

Ok, now we're getting somewhere. That makes sense to write the program using the text editor. I think my remaining question then, is: How do you compile the program using gcc or g++?

I did try looking through the gcc user manual in the Ubunutu documentation, but I didn't really get the straightforward information I was looking for.

Thanks!

RichGem
03-10-2008, 03:08 PM
Ok, now we're getting somewhere. That makes sense to write the program using the text editor. I think my remaining question then, is: How do you compile the program using gcc or g++?

I did try looking through the gcc user manual in the Ubunutu documentation, but I didn't really get the straightforward information I was looking for.

Thanks!

once you save and close your source file you then compile it by:

gcc textfilename

'course there are a slew (well, 2 slews) of options for optimizations, etc. which you may or may not use.

after the above the resulting file will be compiled (unless you need to link in libraries) which you then need to

chmod +x textfilename

to make it executable.

then you can

./textfilename (that's dot slash textfilename)

to run it.

I don't usually work this way, so my directions might be slightly off, but I think those are the basics. All the programing I do these days is in bash (which is interpreted, not compiled) so the few times I compile my own, I rely on makefiles for pre-packaged tarballs, etc.

linuxman
03-10-2008, 03:10 PM
http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html


suppose you have a text file called hello.c, then
g++ hello.c -o hello
will compile and link the program to make an excutable called hello.

Real world programs have multiple source files and a 'makefile', which describes how they are to be compiled and linked. You then just type 'make' and gcc/g++ looks for the makefile in the current directory.

Sorry if this is insulting (because you alreay know), but if not then you need to invest some time learning.

Some of the IDEs mentioned automatically make the makefile for the project (like MS VC does).

Lynchmeister
03-10-2008, 03:15 PM
once you save and close your source file you then compile it by:

gcc textfilename

'course there are a slew (well, 2 slews) of options for optimizations, etc. which you may or may not use.

after the above the resulting file will be compiled (unless you need to link in libraries) which you then need to

chmod +x textfilename

to make it executable.

then you can

./textfilename (that's dot slash textfilename)

to run it.

I don't usually work this way, so my directions might be slightly off, but I think those are the basics. All the programing I do these days is in bash so when I compile, I rely on makefiles for pre-packaged tarballs, etc.

Whoa, slow down buddy! :biggrin:

Ok, I can work with this (as long as everyone's patience holds out *fingers crossed*)

Ok, so I have written a source file in the text editor and saved it to a location I can easily find. Interestingly, it highlighted the text in different colors, so I took that as a good sign, but don't really know why.

Next, you say,


compile it by:

gcc textfilename

I need a bit more detail in how. Is gcc textfilename <--(the name I gave to the file, yes?) a command? If so, is it run in the terminal? If not, where?

For simplicity's sake, we'll start off small with that and see how far we get. :wink:

Thanks for all the help thus far!

biomesh
03-10-2008, 03:22 PM
Here is a how to compile a "Hello World program"

Create a file named hello.c in your home directory

Insert the following text into the hello.c file:


#include <iostream>

int main()
{
std::cout << "Hello, world!\n";
}


Save the file.

Open a Terminal window.

Run the following commands:


g++ hello.c -o hello && chmod +x hello && ./hello

The following commands compile the source file with the output program named "hello", make the file executable, then runs the program.

Lynchmeister
03-10-2008, 03:25 PM
http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html


suppose you have a text file called hello.c, then
g++ hello.c -o hello
will compile and link the program to make an excutable called hello.

Real world programs have multiple source files and a 'makefile', which describes how they are to be compiled and linked. You then just type 'make' and gcc/g++ looks for the makefile in the current directory.

Sorry if this is insulting (because you alreay know), but if not then you need to invest some time learning.

Some of the IDEs mentioned automatically make the makefile for the project (like MS VC does).

Not at all. I haven't read your link yet, but I will immediately after posting this. I'm very eager to learn, but at present have no prior C or C++ knowledge, so the tutorial is welcome information.

For the record, I'm just a guy who was in the library today looking for books on Linux and saw several on C and C++. Having heard of them, but knowing nothing about them, I got curious, checked out a book on C, and decided to learn. I have several examples to work through, but I can't at this point figure out how to compile the program and then execute it.

In your example above, you wrote:


suppose you have a text file called hello.c, then
g++ hello.c -o hello
will compile and link the program to make an excutable called hello.

The first thing that comes to mind for me is: what do I do with "g++ hello.c -o hello" ? Do I type it in a terminal command line? It seems logical...

I'm off to read through your link and test some of my theories. In the (probable) event that I'm way off base, I'll check back here soon to see what you guys think.

Lynchmeister
03-10-2008, 03:32 PM
Here is a how to compile a "Hello World program"

Create a file named hello.c in your home directory

Insert the following text into the hello.c file:



Save the file.

Open a Terminal window.

Run the following commands:



The following commands compile the source file with the output program named "hello", make the file executable, then runs the program.

I got the following errors:


cory@cory-laptop:~$ g++ hello.c -o hello && chmod +x hello && ./hello
g++: hello.c: No such file or directory
g++: no input files

gugi
03-10-2008, 03:41 PM
i must admit reading this is almost as good as any decent TV show :)

to clarify for non debian linuxers - build-essential is an empty package, just has the dependencies so that it's easy to install a 'code development' set. I don't remember if it had g++, but you can always 'apt-get install g++' (throw a sudo in front of it if you are not root)

So, yes Corey, you write a program in a text editor and it's nice if you name the file with decent extention. say myprogram.c or myprogram.C, myprogram.cxx, myprogram.cpp (for c/c++ files). You remember 'man' is your friend, right? So do 'man gcc' or man 'g++' if you want your head to spin faster. Soon the man pages will start making sense though, I promise.

As you may start to realize the way command-line interfaces work are by typing something like
program_name bunch_of_arguments
So if you want to compile your program, your program to use would be the compiler, in your case gcc or g++ (cc and c++ should work the same) and you have to tell it which file to be compiled, so you would type
gcc myprogram.c
that would compile it and will produce an executable file or program called a.out. Then you can run that by typing ./a.out (you need the ./ to tell it that it is located in 'the current' directory/folder, as it may not look in it)
You can tell the compiler to do things slightly differently if you give it more info. For example the compilation is really a 2 stage process,
1) compile the program source code to 'object' files
2) link all object files into one executable programs
gcc -c myprogram.c
will produce only the object file and it will call it myprogram.o
then you can do the step #2 and make the executable by telling it
gcc myprogram.o and it will make the a.out file
If you don't want it to be called a.out but myprogram.exe you can add '-o myprogram.exe' after gcc

That's kind of the basics of how to start writing programs in unix.

gugi
03-10-2008, 03:44 PM
you have not created the file in your home directory. did you put it somewhere else?
you should bee able to see the file with
ls -l hello.c

BTW you don't need the 'chmod +x' part

RichGem
03-10-2008, 03:44 PM
gcc and g++ are terminal commands (essentially... "run the program called gcc or g++). So this all gets done in the terminal box/command line.

as to the errors... did you save the text file as " hello.c " ?

the file must be shaved (oops, i mean saved) with that name for the commands to work..

to disect the command line: g++ hello.c -o hello && chmod +x hello && ./hello



g++ hello.c -o hello = run the g++ compiler (gnu c++ compiler), use "hello.c" as the input/source code and save the output (the compiled program) as "hello"

&& = you know this one

chmod +x hello = change the "execute bit" on file "hello" to a + state, ie: make program hello executable. (sidebar: even if a program is compiled and technically executable, the system will not let it execute unless the execute bit is set to on)

&&

./hello

run/execute the file/program called "hello" located in the current working directory. (./ means look in the current working directory)

RichGem
03-10-2008, 03:48 PM
If you don't want it to be called a.out but myprogram.exe you can add '-o myprogram.exe' after gcc

That's kind of the basics of how to start writing programs in unix.

my advice: don't start naming executables with a ".exe" extension b/c it's a bad hold over habit from windows environ. and b/c extensions mean nothing to linux. "No real *nixer :biggrin: would use an .exe extention, so don't get into the habit."

PHormality
03-10-2008, 03:52 PM
I got the following errors:

are you in the right directory?

cd to the right folder, unless you want to use the full path in your command which is a pain in the ass

have you learned the terminal basics yet? moving around, basic file manipulation, permissions, syntax, man pages, etc?

Lynchmeister
03-10-2008, 03:57 PM
i must admit reading this is almost as good as any decent TV show :)

Glad you're enjoying the show! :wink:

to clarify for non debian linuxers - build-essential is an empty package, just has the dependencies so that it's easy to install a 'code development' set. I don't remember if it had g++, but you can always 'apt-get install g++' (throw a sudo in front of it if you are not root)

I'm going to install g++ this way in the event that build essential didn't do what I thought it did.

So, yes Corey, you write a program in a text editor and it's nice if you name the file with decent extention. say myprogram.c or myprogram.C, myprogram.cxx, myprogram.cpp (for c/c++ files). You remember 'man' is your friend, right? So do 'man gcc' or man 'g++' if you want your head to spin faster. Soon the man pages will start making sense though, I promise.

I totally forgot about the man pages! Thanks for the reminder!

As you may start to realize the way command-line interfaces work are by typing something like
program_name bunch_of_arguments
So if you want to compile your program, your program to use would be the compiler, in your case gcc or g++ (cc and c++ should work the same) and you have to tell it which file to be compiled, so you would type
gcc myprogram.c
that would compile it and will produce an executable file or program called a.out. Then you can run that by typing ./a.out (you need the ./ to tell it that it is located in 'the current' directory/folder, as it may not look in it)
You can tell the compiler to do things slightly differently if you give it more info. For example the compilation is really a 2 stage process,
1) compile the program source code to 'object' files
2) link all object files into one executable programs
gcc -c myprogram.c
will produce only the object file and it will call it myprogram.o
then you can do the step #2 and make the executable by telling it
gcc myprogram.o and it will make the a.out file
If you don't want it to be called a.out but myprogram.exe you can add '-o myprogram.exe' after gcc

That's kind of the basics of how to start writing programs in unix.



you have not created the file in your home directory. did you put it somewhere else?
you should bee able to see the file with
ls -l hello.c

Initially I put it in my documents folder. I then did try to put it in my home directory, but it wouldn't let me. I could save in the next level titled "Cory", though.
BTW you don't need the 'chmod +x' part



as to the errors... did you save the text file as " hello.c " ?

Yes

the file must be shaved (oops, i mean saved) with that name for the commands to work..

Yes

&& = you know this one

:yesnod: :biggrin:


My comments in red.

Lynchmeister
03-10-2008, 04:00 PM
have you learned the terminal basics yet? moving around, basic file manipulation, permissions, syntax, man pages, etc?

No, not yet. I am quickly recognizing that I have a lot of homework to do before I'm simply following along with the examples in my book. I'm off to check out the man pages now.

gugi
03-10-2008, 04:13 PM
Love that! How much we take for granted :)

OK. Corey, your 'home' directory/folder is not /home, it's /home/corey
If I had an account on your computer mine would be /home/gugi
so yeah neither of us would have permisions to modify /home, but each of us can modify our own 'home'.
The folder/directory that's called /home is just the place where most 'homes' are. As in the town of HOME, but your own home is a separate house :)
Since you moved it to /home/corey do the gcc thing again and it should work now.

And if you want to know what your 'home' is you can type 'echo $HOME'
if you want to know where you are you can type 'pwd'
'ls' lists the current directory content, like dir in dos

AND don't listen to them .exe extentions are perfectly fine and very useful. You can always distinguish the ones who know *nix and the one who have no clue by them :tongue:

gugi
03-10-2008, 04:16 PM
. . . . . . . . . . . .

Lynchmeister
03-10-2008, 04:19 PM
Love that! How much we take for granted :)

OK. Corey, your 'home' directory/folder is not /home, it's /home/corey
If I had an account on your computer mine would be /home/gugi
so yeah neither of us would have permisions to modify /home, but each of us can modify our own 'home'.
The folder/directory that's called /home is just the place where most 'homes' are. As in the town of HOME, but your own home is a separate house :)
Since you moved it to /home/corey do the gcc thing again and it should work now.

And if you want to know what your 'home' is you can type 'echo $HOME'
if you want to know where you are you can type 'pwd'
'ls' lists the current directory content, like dir in dos

AND don't listen to them .exe extentions are perfectly fine and very useful. You can always distinguish the ones who know *nix and the one who have no clue by them :tongue:


. . . . . . . . . . . .

Makes much more sense now, yo! :tongue:

Wife's on her way home now, so play time's over, but I'll try out the new stuff, keep reading, and get back here when I can. :rolleyes::wink:

biomesh
03-10-2008, 04:49 PM
If you don't know where you put the hello.c in your home directory, this should help.


cd && find . -name hello.c |xargs g++ -o hello && chmod +x hello && ./hello

As long as you saved the file hello.c somewhere underneath your home directory, this will work.

This moves you to your home directory, finds anything in the current directory structure with the name hello.c and passes the arguments via the | and xargs to the g++ command. The rest has already been explained.

RichGem
03-10-2008, 06:16 PM
AND don't listen to them .exe extentions are perfectly fine and very useful. You can always distinguish the ones who know *nix and the one who have no clue by them :tongue:


:lol: Did ya want to have the flame war in this thread or start another one? j/k. :biggrin: Another example of how you can do things more than one way in *nix. But, of course, my way is the only right way. :lol:

Confuzius
03-10-2008, 06:23 PM
What about using a dedicated development environment?
Or would it be best to learn from scratch banging stuff out in gedit?

I've only ever messed around with some of the gnome-do sourcecode getting the pidgin plugin to support MSN contacts as well as AIM and JABBER. That used mono, which was pretty much a .net clone, but made me a bit comforable as it reminded me of Visual Basic which I had messed around with a while ago.

rabidpotatochip
03-10-2008, 06:26 PM
AND don't listen to them .exe extentions are perfectly fine and very useful. You can always distinguish the ones who know *nix and the one who have no clue by them :tongue:

Bah, back in my day executable files had .COM as an extension, and that's the way we liked it! We only had 64KB* and we were thankful!

*My favorite demo is called "The Product (http://www.scene.org/file.php?file=/parties/2000/theparty00/in64/fr08_final.zip&fileinfo)". The video runs around 10 minutes (I think) and it's exactly 64KB. Yes it's an EXE, but I still love it.

Edit (A slightly long one):

Cory, look into running an IDE to create your code in, they have some nice features over your standard text editors. I've never tried coding in Linux beyond shell scripts, so I don't know what's out there, but Code::Blocks is pretty nifty. As for C versus C++, it doesn't really matter how you go about it in the end, but you will have to get the concept of object-oriented programming before you can do C++. Think of an object as a variable that contains other variables and functions. A structure is just a grouping of variables; if you have a structure called bicycle you can address the parts of it like so: bicycle.tire, bicycle.handlebars, etc. If you created it as an object you could still follow the same rules, but you could also run commands like bicycle.pedal(), bicycle.fallRightOff(), and so on.

I found http://www.programmingtutorials.com/ to be extremely helpful when my profs or textbooks didn't give me enough info. If and when you run into something you think should exist but can't find there are two options: punch the idea into Google and see what you get, or make it yourself. That's what makes lower-level programming fun. I'll try and dig up some of my old university code and paste it in here if you're interested. Of course, that all depends on whether I can find it. hehe

gugi
03-10-2008, 06:33 PM
i think the .exe is extremely important. otherwise how do we know that corey isn't just taking advantage of us? he absolutely needs to start using .exe for his executables, so that we know exactly when he becomes embarrassed by this and let him find his own clueless newbies :)
haven't you ever done this before? can't believe i've got to teach you all the basics :tongue:

gugi
03-10-2008, 06:38 PM
What about using a dedicated development environment?
Or would it be best to learn from scratch banging stuff out in gedit?

I thought about this, but it seems to me he'll be better off getting to learn the command line. GUIs work really well for many people and even though I do everything in emacs I don't think everybody else should. But when learning I think it's better to separate the pieces.

On windows I use the visual studio, but I wish I don't have to. It's got some niceties, but a bit too many quirks for my taste. I don't develop on windows though, just compile and run on it since it is often available when the *nix-es aren't.

rabidpotatochip
03-10-2008, 06:45 PM
I thought about this, but it seems to me he'll be better off getting to learn the command line. GUIs work really well for many people and even though I do everything in emacs I don't think everybody else should. But when learning I think it's better to separate the pieces.

On windows I use the visual studio, but I wish I don't have to. It's got some niceties, but a bit too many quirks for my taste. I don't develop on windows though, just compile and run on it since it is often available when the *nix-es aren't.

Oblig. XKCD at mention of emacs. :tongue:

http://imgs.xkcd.com/comics/real_programmers.png

Confuzius
03-10-2008, 06:48 PM
Cue obligatory XKCD reference;

http://imgs.xkcd.com/comics/real_programmers.png


EDIT: LMAO! I got distracted in the xkcd forums and Rabid beat me by 3 minutes....

RichGem
03-10-2008, 07:06 PM
What about using a dedicated development environment?
Or would it be best to learn from scratch banging stuff out in gedit?

I've only ever messed around with some of the gnome-do sourcecode getting the pidgin plugin to support MSN contacts as well as AIM and JABBER. That used mono, which was pretty much a .net clone, but made me a bit comforable as it reminded me of Visual Basic which I had messed around with a while ago.


Nope, it'd be best for him to learn using the only tool a 'real" programmer would use, vi. :lol:

RichGem
03-10-2008, 07:08 PM
i think the .exe is extremely important. otherwise how do we know that corey isn't just taking advantage of us? he absolutely needs to start using .exe for his executables, so that we know exactly when he becomes embarrassed by this and let him find his own clueless newbies :)
haven't you ever done this before? can't believe i've got to teach you all the basics :tongue:

ROTF ! Yeah, he could be having someone else write his code for him.

rabidpotatochip
03-10-2008, 07:22 PM
EDIT: LMAO! I got distracted in the xkcd forums and Rabid beat me by 3 minutes....

*flex* :tongue:

gugi
03-10-2008, 07:31 PM
ROTF ! Yeah, he could be having someone else write his code for him.
What do you mean - he already did - check post #452 again!
Definitely gotta keep a watch on him before he starts making his millions off of our programming - I never trusted him from post #0, or was that 1--
:lol:

RichGem
03-10-2008, 07:41 PM
What do you mean - he already did - check post #452 again!
Definitely gotta keep a watch on him before he starts making his millions off of our programming - I never trusted him from post #0, or was that 1--
:lol:

452? That was like 90 pages ago, wasn't it? lol. but, I see what you mean. Still, he can't be all that bad, after all he's put up with us && with linux && even got wireless to work all on a laptop.

RichGem
03-10-2008, 07:43 PM
I can see the holiday conversation at the Lynchmeister home now...

Mrs.: Cory dear, what can I get you for a gift?

Cory: Oh, nothing really. No really. Well, maybe some penguin pajamas and a straight jacket. You know, those shaving guys....

Lynchmeister
03-10-2008, 07:52 PM
Ok, so I wrote a simple program from my book:


#include <stdio.h>

int main(void)
{
printf("This is a short C program.");

return 0;
}

Then I compiled it and got this output:


cory@cory-laptop:~$ gcc program.C
/tmp/ccC3v3nv.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status


Then I tried to execute it and got:


cory@cory-laptop:~$ ./program.C
bash: ./program.C: Permission denied


Do I not have access to something?

Lynchmeister
03-10-2008, 07:54 PM
452? That was like 90 pages ago, wasn't it? lol. but, I see what you mean. Still, he can't be all that bad, after all he's put up with us && with linux && even got wireless to work all on a laptop.


I can see the holiday conversation at the Lynchmeister home now...

Mrs.: Cory dear, what can I get you for a gift?

Cory: Oh, nothing really. No really. Well, maybe some penguin pajamas and a straight jacket. You know, those shaving guys....

:lol:

gugi
03-10-2008, 08:00 PM
Corey, use lowercase .C extention! Really! It's .c .C is for c++
Alternatively try g++ instead of gcc and it should work.

Mr. Gillette
03-10-2008, 08:03 PM
The problem here, obviously-- this is a new version of Linux, and it won't work on Cory's Timex Sinclair. He is going to have to upgrade (at great expense) to either a Mac Classic or a TRS-80! Then it should run right....

...using a 120 minute cassette in your cassette recorder/memory is probably not working in a file this large. You're going to have to run the 5" floppy on this one, I'm afraid. The C-120 cassette is simply too thin and fragile to run on a consistent basis.

"Insert Disc 1 into Drive A-- Eject Disc 1 and insert Disc 2 into Drive A" When program has booted (approximately 22 minutes) remove Disc 2 and insert PROGRAM Disc 1 into Drive A until prompted otherwise."

Hope all of this helps.

If all else fails, at the DOS command prompt, type: FORTRAN/IV and see what happens.

Warmly,

HAL 5000

Lynchmeister
03-10-2008, 08:05 PM
Corey, use lowercase .C extention! Really! It's .c .C is for c++
Alternatively try g++ instead of gcc and it should work.

D'Oh! So let me get this straight... .C (C++) and .c (C). gcc (compiles C) and g++ (compiles C and C++).

I'm such a dolt. :lol: Thanks for getting me back on track. :blush:

biomesh
03-10-2008, 08:11 PM
Ok, so I wrote a simple program from my book:



Then I compiled it and got this output:



Then I tried to execute it and got:



Do I not have access to something?

If you run gcc or g++ without the -o option the default output executable is going to be named "a.out".

gugi
03-10-2008, 08:13 PM
D'Oh! So let me get this straight... .C (C++) and .c (C). gcc (compiles C) and g++ (compiles C and C++).


Correctamundo, and .exe is for all executables (that is until you become embarassed by using it)

It's in the man gcc, line 308 (at least for me). The gcc man page for gcc is a bit unusual because it is actually gcc and g++ compiler. Even the fortran compiler on linux used to use the c-compiler as a back end (haven't checked in a while).
And that's probably more than you want to know right now :)


Oh, and yes on the output, i.e. the resulting compiled program - it will be called a.out by default if you don't use the -o option to specify something else.

Lynchmeister
03-10-2008, 08:14 PM
Used extension .c and compiled with g++. No go. Same message saying permission denied.

biomesh
03-10-2008, 08:15 PM
Next lesson: Assembly 101 for x86...

biomesh
03-10-2008, 08:16 PM
Used extension .c and compiled with g++. No go. Same message saying permission denied.

Check out post 484.

Lynchmeister
03-10-2008, 08:17 PM
If you run gcc or g++ without the -o option the default output executable is going to be named "a.out".

:w00t:

Yes! So it did work! Like you said, I didn't use the -o option...lo and behold, I find a.out in my home location...

./a.out and BOOM!


cory@cory-laptop:~$ ./a.out
This is a short C program.cory@cory-laptop:~$

Thanks for the tip, Robert!

gugi
03-10-2008, 08:22 PM
see, it was easy :)
now you can reread the posts again and/or you can write other programs

Lynchmeister
03-10-2008, 08:26 PM
see, it was easy :)
now you can reread the posts again and/or you can write other programs

Yes, the actual computing is easy. It's figuring out the right questions to ask you guys that's the tough part! :lol:

Lynchmeister
03-10-2008, 08:38 PM
Awesome! I just spent a few minutes adding different printf functions to the original program as a bit of practice and I discovered that by simply re-compiling and executing the program, it works! Absolutely no practical use for it, but hey (!), the pieces are starting to fall into place. Not bad for spending a total (cumulative) of about 2 hours on it.

As much as I'd like to keep going tonight, my wife is getting a bit impatient (can't blame here), so I'll catch up with you all tomorrow. Thanks for all the help today!

RichGem
03-11-2008, 03:43 AM
Awesome! I just spent a few minutes adding different printf functions to the original program as a bit of practice and I discovered that by simply re-compiling and executing the program, it works! Absolutely no practical use for it, but hey (!), the pieces are starting to fall into place. Not bad for spending a total (cumulative) of about 2 hours on it.

As much as I'd like to keep going tonight, my wife is getting a bit impatient (can't blame here), so I'll catch up with you all tomorrow. Thanks for all the help today!

Cory... congrats on reaching a new level of geekdom! :biggrin:

If I remember correctly -- again I don't use it often -- but I thought "gcc" would invoke whatever compiler you needed whether c, c++, fortran, etc.

RichGem
03-11-2008, 03:44 AM
The problem here, obviously-- this is a new version of Linux, and it won't work on Cory's Timex Sinclair. He is going to have to upgrade (at great expense) to either a Mac Classic or a TRS-80! Then it should run right....

...using a 120 minute cassette in your cassette recorder/memory is probably not working in a file this large. You're going to have to run the 5" floppy on this one, I'm afraid. The C-120 cassette is simply too thin and fragile to run on a consistent basis.

"Insert Disc 1 into Drive A-- Eject Disc 1 and insert Disc 2 into Drive A" When program has booted (approximately 22 minutes) remove Disc 2 and insert PROGRAM Disc 1 into Drive A until prompted otherwise."

Hope all of this helps.

If all else fails, at the DOS command prompt, type: FORTRAN/IV and see what happens.

Warmly,

HAL 5000


Wow, does that take me back to the days... when my favorite "dev" environment was UCSD Pascal on an Apple IIe. Those were the days. <sigh>

Mr. Gillette
03-11-2008, 05:20 AM
Awesome! I just spent absolutely no practical use for it, but hey (!), the pieces are starting to fall. Not bad for spending a total (cumulative) of about 2 hours on it.

As much as I'd like to keep my wife with you all tomorrow, she is getting impatient. Thanks for all the help today!

Cory:

I think if you re-read what you posted, in SOME of our systems, what you typed came out garbled...check out the copy of the post in my message...did you really mean all of that?

Guys, hitting is not about muscle. It's simple physics. Calculate the velocity, v, in relation to the trajectory, t, in which g, gravity, of course remains a constant.

rabidpotatochip
03-11-2008, 07:02 AM
Man, I'm falling behind here... work really is getting crazy. Just for kicks, try changing your code from this:

#include <stdio.h>

int main(void)
{
printf("This is a short C program.");

return 0;
}

to this:

#include <stdio.h>

int main()
{
printf("This is a short C program.\n");

return 0;
}

The void in main() isn't really necessary. In fact, its sole purpose is to indicate that main() doesn't take any variables. The "\n" in the printf puts a new line after, so your output is nicer.

Lynchmeister
03-11-2008, 07:36 AM
Cory:

I think if you re-read what you posted, in SOME of our systems, what you typed came out garbled...check out the copy of the post in my message...did you really mean all of that?

Guys, hitting is not about muscle. It's simple physics. Calculate the velocity, v, in relation to the trajectory, t, in which g, gravity, of course remains a constant.


:lol::lol::lol::lol::lol::lol::lol::lol::lol::lol: :lol::lol::lol::lol::lol::lol::lol::lol:

Well...if at any time a Portuguese waitress comes around, I think it's safe to say this thread (and my new found skills) we be immediately derailed. Haha!

Lynchmeister
03-11-2008, 07:37 AM
Man, I'm falling behind here... work really is getting crazy. Just for kicks, try changing your code from this:

#include <stdio.h>

int main(void)
{
printf("This is a short C program.");

return 0;
}

to this:

#include <stdio.h>

int main()
{
printf("This is a short C program.\n");

return 0;
}

The void in main() isn't really necessary. In fact, its sole purpose is to indicate that main() doesn't take any variables. The "\n" in the printf puts a new line after, so your output is nicer.

Cool! I'll give it a shot now.

Lynchmeister
03-11-2008, 07:40 AM
Cool! I'll give it a shot now.

Worked great.

...again with the questions (and I may be getting way ahead of myself here), but what are some practical uses of C and C++ programming?

biomesh
03-11-2008, 08:26 AM
Worked great.

...again with the questions (and I may be getting way ahead of myself here), but what are some practical uses of C and C++ programming?

Creating programs and/or operating systems. For an operating system, much of it is still written in assembly since the performance is much greater.