LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 07-25-2008, 12:23 PM   #1
agayer
LQ Newbie
 
Registered: Dec 2006
Location: Michigan City, IN USA
Distribution: Debian Linux 4.0r3 "Etch"
Posts: 9

Rep: Reputation: 0
Smile Experienced Windows tech, Very new to Linux, looking to learn basics...


I'm in need of a little (a lot of) help. I've only toyed with Linux in the past but have NO real knowledge of the system. I installed Debian Linux 4.0r3 "Etch" on my system, but know none of the common commands, instructions, methods, of doing anything after an install. In Windows, here is where I would install my chipset drivers, graphics, NIC, audio, etc... My graphics are a little flaky now, probably need drivers installed. I'm running a GeForce 5200. Also, to run certain Windows-only things, I want to try to install and run VirtualBox from a .run file. After probing LQ, I managed to figure out how to make the file executable by running a "chmod" command, and after a little more probing, learned to "su" into "root," then "./" the file to run, but when I run it it tells me "Please install the build and header files for your current Linux kernel. The current kernel version is 2.6.18-6-amd64 ... Please install the GNU Compiler. Problems were found which would prevent VirtualBox from Installing. Please correct these problems and try again." I don't mean to sound like a total flake, but... What the heck does that mean? I have years of experience with Windows 95/98/2000/XP/2003, and even supported an Active Directory domain environment with a few hundred clients for a few years, but I'm having trouble "un-learning" what I know about i386 and amd64 based systems and Windows to take a shot at Linux, but I'm getting a bit discouraged. Any pointers or tutorials would be awesome.

"I'm a Windows user. Speak slowly."

Alex
 
Old 07-25-2008, 12:39 PM   #2
pdtpatrick
LQ Newbie
 
Registered: Mar 2008
Posts: 11

Rep: Reputation: 0
do this

can you copy and paste the exact error .. first make sure you are installing the proper version of virtual box.. then to install gcc .. i guess since you are using debian it would be sudo apt-get install gcc and press enter...

but you might want to full update your system .. you can probably go to system > administration > add/remove software (well im on fedora so it might be different for you).


any whatever error you get, take a ss of it and paste it here and we'll help you troubleshoot. BTW im also a windows system admin but with enough time you will get to understand linux although at first it can drive you nuts
 
Old 07-25-2008, 12:50 PM   #3
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, SolydK 2013
Posts: 7,435

Rep: Reputation: 134Reputation: 134
You want to use some programs that you did not include in the original install. If you have a broadband connection then you should try to install these extra packages from the Debian repository.

You can use either the command line program apt-get or the GUI program synaptic. The packages that you want to install are the C compiler (gcc) and the source files for kernel version 2.6.18-6-amd64. I suggest that you start synaptic and use the search function to find the names of the packages you want and then tell synaptic to install those packages.

Once you get gcc and the kernel headers installed then you can compile your graphics driver.

----------------
Steve Stites
 
Old 07-25-2008, 02:11 PM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,860

Rep: Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768
Quote:
Originally Posted by agayer View Post
In Windows, here is where I would install my chipset drivers, graphics, NIC, audio, etc... My graphics are a little flaky now, probably need drivers installed.
OK, first bit of unlearning. While, in windows, you'd go scurrying round the net for .ddls and .exes to add stuff, that's not what you want to do in Linux. Your distro - more or less whichever distro, but Debian certainly - maintains repositories of common things that you might want to add after installation (extra software, in odd cases drivers). You want to use the provided mechanisms for installing them both because it will make your life easier in the short term and because it will leave you with a more stable system (none of this adding slightly dubious dlls that upset some other program on your system).

Debian (plus Ubuntu Mepis and others) use .deb files and RedHat (plus fedora, SuSE, Centos et al) use rpm files, but you don't really need to worry about that much, just be sure to get the right ones for your system.

I would say that the first thing that you want to add is synaptic (a GUI-updater) although there are others you might want to try (kpackage - particularly if you use kde - for example).

You can then use the graphical tool to get stuff that you want. Debian is pretty much "pure"/"hard-line" about the free software part of free software so don't expect them to have installed any proprietary stuff at all (even if it is zero cost) by default. You may even need to add extra repositories to add proprietary stuff. (Something like Ubuntu, for example, is rather "softer line" on this even though derived from Debian, although I don't recommend that you swap right now.)


Quote:
I'm running a GeForce 5200.
There are nvidia's proprietary drivers for GeForce cards (that's an old card, isn't it and I'm not sure that's covered, so check) and that will almost certainly improve the 3-d performance of the system, if that's a factor.

Quote:
... Please install the GNU Compiler. Problems were found which would prevent VirtualBox from Installing. Please correct these problems and try again."
Probably one of
  • You haven't installed the Gnu Compiler Collection (GCC) at all. probably needed to compile a C program. I'm a little surprised if Debian don't include this by default, but..
  • You have installed GCC, but its not in your path (In principle, Windows paths were "copied" from the Unix-style system so there shouldn't be a problem understanding that)
  • The user trying to execute the command doesn't have execute permissions for the compiler

Quote:
I don't mean to sound like a total flake, but... What the heck does that mean?
If you've got this far by yourself, you've done pretty well. I was recently forced to pick up windows again after five-ish years and I was surprised at how hard I found it. Not trivial at all.
 
Old 07-25-2008, 02:44 PM   #5
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
A quick way to setup the compiler and grab the header files you need to compile your nvidia drivers (or anything else that would need the compile environment) can be done like this in Debian.

(in a shell as root)

Code:
userer@it-etch:~$ su - 
Password: 
it-etch:~# aptitude update
it-etch:~# aptitude install build-essential module-assistant
it-etch:~# m-a update
it-etch:~# m-a prepare

then run the script again.


That card is supported by the most recent nvidia display driver
http://www.nvidia.com/object/linux_d...173.14.05.html

Last edited by farslayer; 07-25-2008 at 02:48 PM.
 
Old 07-25-2008, 03:03 PM   #6
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Centos
Posts: 4,969

Rep: Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075Reputation: 1075
Quote:
Originally Posted by agayer View Post
In Windows, here is where I would install my chipset drivers, graphics, NIC, audio, etc...
In Debian, there is a central installation system for installing almost everything you might want to install. (BTW, chipset drivers, NIC, audio, etc. are typically included in the original install. You're unlikely to need to install such things. But the best Nvidia graphics driver is not included in the original install).

When you want to install something, look there first. Use other methods only if it isn't there.

There are a bunch of different UI's giving you access to that same installation system. They all access the same data structures and install software the same way. They just differ in how you talk to them.

The most user friendly of those is Synaptic. One of the most important things I had to learn when I started with Debian is use Synaptic

Quote:
My graphics are a little flaky now, probably need drivers installed. I'm running a GeForce 5200. Also, to run certain Windows-only things, I want to try to install and run VirtualBox from a .run file.
For each of those (Nvidia proprietary driver and Virtualbox), I don't know if you can install via Synaptic.

There are .run files as (more Windows like) installers for various packages (Nvidia has them and apparently VirtualBox as well). They are designed to install to a wider range of Linux distributions (then the distribution specific packages in .deb files), but as you discovered, they don't know how to manage their own dependencies, just complain to you about what is missing.

So installing with such a file, should be your fallback after you can't get what you want through Synaptic. Even then, you might want to use Synaptic to install those missing dependencies.

Notice farslayer's post above mine. The Virtualbox installer you chose needs to compile some things from source. Depending on versions of various things, the Nvidia driver might or might not need to. You may hit other packages (that you can't install via Synaptic) that will need to compile from source.

The first time I hit one of those (for me it was Nvidia), I tried the .run file several times, each time manually requesting, from Synaptic, one package that the .run file said was missing. That got the job done after a few iterations and future packages that needed to compile from source rarely needed anything else.

But farslayer gave you a better way. aptitude is a different UI for the same installation system as Synaptic. Those commands install all the things that a typical package would need for compiling.

Last edited by johnsfine; 07-25-2008 at 03:19 PM.
 
Old 07-25-2008, 03:15 PM   #7
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
...and to make life even easier:
Debian has VirtualBox as an installable package in its repositories - so you don't _have_to_ compile if you want to avoid it.
With the help of apt-get or synaptic ... you just install it.
http://packages.debian.org/de/etch-b...virtualbox-ose

[edit]
oops - the english version:
http://packages.debian.org/en/etch-b...virtualbox-ose

Last edited by jomen; 07-25-2008 at 03:18 PM.
 
Old 07-26-2008, 01:55 PM   #8
agayer
LQ Newbie
 
Registered: Dec 2006
Location: Michigan City, IN USA
Distribution: Debian Linux 4.0r3 "Etch"
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for all the feedback, I was able to successfully install the build and header files for my kernel, and the GCC compiler. I was also able to successfully compile and install VirtualBox! WindowsXP installed within with no issues. I am still trying to figure out how to get USB devices to work in my VirtualBox. I was able to figure out how to install and configure SAMBA so that my VBox and Linux are able to share resources, so I'm now able to get access to files on ThumbDrives, etc. through network shares. But I still need USB access in Windows XP. No USB controllers even appear in Device Manager. I have a MagicJack and a video capture device I would still like to use in XP, so I need to figure out how to forward the controllers to the VBox. I was able to get the CD/DVD drives, and floppies, now I just need USB. (If anyone has written a MagicJack app for Linux, let me know!) Also, in Linux, I'm still trying to get the graphics drivers loaded. I installed a bunch of packages through Synaptic that appear to pertain to configuring and installing NVidia cards, but I try to run the driver installer and I get an error regarding "X Server." It says, "ERROR: You appear to be running an X Server; please exit X before installing." Oh, I was wrong about my card, it's a 6200, not a 5200. One more thing: How do you post screen shots in LQ?

Thanks again for all the great tips!

Alex
 
Old 07-26-2008, 03:34 PM   #9
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
usb-support is only enabled in the pre-built version - not in the one you can compile yourself.
Check out the VirtualBox website - it is explained there.
Debian has the prebuilt version too, as I said previously.

You can always make your usb-drives available by working around this - by mounting them in linux and make them seen to VirtualBox as with any other directory.
 
Old 07-26-2008, 04:27 PM   #10
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Ubuntu 12.04 X86_64
Posts: 956

Rep: Reputation: 34
just use synaptic to install virtual box,

that will automajically resolve all dependencies for you
and will give you a virtual box install with usb support avalable.
 
Old 07-26-2008, 05:14 PM   #11
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
Quote:
How do you post screen shots in LQ?
find some service to host your image (I saw people who used imageshack but there are more) upload it and post a link to it.
 
Old 03-10-2009, 05:12 AM   #12
addux
Member
 
Registered: Dec 2006
Location: In the middle of the ocean.
Distribution: Ubuntu 12.04, Debian Squeeze, Windows 7
Posts: 67

Rep: Reputation: 16
magicjack

My irrelevant comments have been moved

Last edited by addux; 03-11-2009 at 12:30 AM. Reason: farslayer/my irrelevant questions
 
Old 03-10-2009, 07:29 AM   #13
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Quote:
Originally Posted by addux View Post
I have some questions about magicjack and Vbox-XP(closed source version). ...
With a previous install of Debian (i think etch; currently I'm using lenny) I would plug it in and both the usb and 'cdrom' partitions automatically mounted. Which made my experience with Vbox-XP and magicjack pleasant. I abandoned the project when I test called my wife and the sound was very choppy. I want to try this again but it doesn't automount when I plug it in (other usb devices do automount though). Manually I can mount the .iso image and the usb partition separately. I have Vbox's usb filter set for this device, but once I'm logged on XP I cannot access it. The .iso image that is also on there can be accessed, though. As I have already said it was working previously, perhaps I have changed something minor in a .config file or some package wasn't installed this time around. I'm so very close...



add1kt
You should really start a new thread for new issues, your post seems unrelated to the original threads issue. It's also not nice good forum etiquette to hijack other threads.

Last edited by farslayer; 03-10-2009 at 07:30 AM.
 
Old 03-11-2009, 12:29 AM   #14
addux
Member
 
Registered: Dec 2006
Location: In the middle of the ocean.
Distribution: Ubuntu 12.04, Debian Squeeze, Windows 7
Posts: 67

Rep: Reputation: 16
OK I was trying not to create another thread rather ask relevant questions in an already existing thread. I suppose next time I can quote how my questions were similar if not the same as some of the originator's.

And since the last post is going on a year old, I didn't consider it hijacking, more of a re-opening

"usb-support is only enabled in the pre-built version."

"I am still trying to figure out how to get USB devices to work in my VirtualBox.....But I still need USB access in Windows XP. No USB controllers even appear in Device Manager."

but for your sake, I will start A new thread, thank you so many.

add1kt
 
  


Reply

Tags
build, compiler, debian, headers, install


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Learn the basics of the Perl/Tk module LXer Syndicated Linux News 0 10-19-2007 11:40 PM
LXer: Windows Tech Writers Wrong About Linux LXer Syndicated Linux News 0 08-20-2007 01:20 PM
Windows User Wants To Learn To Use Linux As Good As He Uses Windows Tux1986 LinuxQuestions.org Member Intro 11 06-01-2006 08:22 PM
good reading material to learn linux basics? Sir Robin Linux - Newbie 6 02-04-2006 04:57 AM
Best way to learn the basics? Corallis Linux - Newbie 2 01-18-2004 12:18 PM


All times are GMT -5. The time now is 03:43 PM.

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