LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2005, 05:41 PM   #1
cuscus1986
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core 3
Posts: 5

Rep: Reputation: 0
Several questions: In short Java SDK, Dual Boot with XP and Installing Nvidia Drivers


Hi,

Right I am new to this linux lark, so please resist to snigger at my ignorance but hopefully I will address that in time.

As the subject of this thread suggests I have a number of issues with my system at the moment.

Before I launch off on my rather long essay I am running Fedora Core 3.

So here goes the list;

1. I am trying to get the Java 1.5 SDK running on my system. Now I understand the principle of environment variables from Windows and as far as I can understand from my perusing of the internet Linux runs on them in a similar way. What I want to know is if there is any specific location where the environment variables are listed. I did see also that bash ahad a command called export. I tried to read the man page on the matter but I made little sense of it.

2. At the moment on my system I am using GRUB to boot linux. I have a dual hard-disk setup on my computer. One of them is on an IDE channel while the other is on SATA. I have windows XP installed on the SATA drive while Linux is on the IDE channel. When I get the boot menu for GRUB and I choose the Windows XP option I have found that all that happens is the screen goes blank except for the line 'chanloader +1' and then nothing else happens. I went and had a poke around in the GRUB conf file and found that GRUB is trying to boot linux off of hd0,0 and Windows off of hd1,0 . I assume that the numbering works based on the boot order set in the BIOS. If it helps in this matter here is the drive map;

(hd0) /dev/hdc
(hd1) /dev/sda

3. This is the final thing, honestly! I am trying to install the NVIDIA drivers. Now I understand that I need to change the runlevel in order to stop the X server so that the driver can be installed. I read somewhere that it is best to change down to runlevel 3 and then back up to 5 when you're done. So I use telinit to drop down to 3. But as the system loads the various packages I get no command line and the last thing displayed is Starting anacron [OK] at which point nothing happens. Any ideas on what's going on?

Sorry about that rather long winded essay but any help would be greatly appreciated.

Thanks

Last edited by cuscus1986; 01-07-2005 at 05:42 PM.
 
Old 01-07-2005, 06:49 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
1. I am trying to get the Java 1.5 SDK running on my system. Now I understand the principle of environment variables from Windows and as far as I can understand from my perusing of the internet Linux runs on them in a similar way. What I want to know is if there is any specific location where the environment variables are listed. I did see also that bash ahad a command called export. I tried to read the man page on the matter but I made little sense of it.
In some distributions, it is located in /etc/profile.d. Almost all distributions will use /etc/profile to make sure the environment variables are set for everybody. For setting different variables you place it in ~/.bashrc. You can look at the list of environment variables by using env. To set an environment variable, type export variable_name="text". If you want to call an environment variable you type echo $variable_name. Linux has a lot less characters to type than DOS or Windows 2000/XP.

Quote:
2. At the moment on my system I am using GRUB to boot linux. I have a dual hard-disk setup on my computer. One of them is on an IDE channel while the other is on SATA. I have windows XP installed on the SATA drive while Linux is on the IDE channel. When I get the boot menu for GRUB and I choose the Windows XP option I have found that all that happens is the screen goes blank except for the line 'chanloader +1' and then nothing else happens. I went and had a poke around in the GRUB conf file and found that GRUB is trying to boot linux off of hd0,0 and Windows off of hd1,0 . I assume that the numbering works based on the boot order set in the BIOS. If it helps in this matter here is the drive map;

(hd0) /dev/hdc
(hd1) /dev/sda
Well you need to look into re-mapping the boot device because chainloader will not work to boot into Windows. Look up the manual for grub. Sorry I have not use the re-mapping commands in grub because I did it with LILO a few years ago. Since then I have never used Windows and I switched to GRUB as my bootloader.

Quote:
3. This is the final thing, honestly! I am trying to install the NVIDIA drivers. Now I understand that I need to change the runlevel in order to stop the X server so that the driver can be installed. I read somewhere that it is best to change down to runlevel 3 and then back up to 5 when you're done. So I use telinit to drop down to 3. But as the system loads the various packages I get no command line and the last thing displayed is Starting anacron [OK] at which point nothing happens. Any ideas on what's going on?
You did everything right, but telinit is still running. Try hitting CTL+C. It should bring you to the prompt. Then run the nVidia installer. If its not executable, type sh before the file name. After you have installed nVidia's drivers, you have to edit /etc/X11/XF86Config or /etc/X11/xorg.conf to change nv to nvidia. The nVidia documentation will tell you more what you can do.
 
Old 01-08-2005, 04:54 AM   #3
cuscus1986
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core 3
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks very much for your help. Just a small problem with solution 3. I ran the telinit command and swapped down to runlevel 3. I tried Ctrl-C and the same result...nothing happened. I then pressed Ctrl-Alt-Del for a retro windows moment and the system switched to runlevel 6 and restarted. Any other ideas?
 
Old 01-08-2005, 04:59 AM   #4
cuscus1986
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core 3
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
An abstract of what Electro said
In some distributions, it is located in /etc/profile.d. Almost all distributions will use /etc/profile to make sure the environment variables are set for everybody. For setting different variables you place it in ~/.bashrc. You can look at the list of environment variables by using env. To set an environment variable, type export variable_name="text". If you want to call an environment variable you type echo $variable_name. Linux has a lot less characters to type than DOS or Windows 2000/XP.
I read around a little more and found something suggesting that I would have to type in the export command everytime I wanted to use Java. Now obviously this would get very boring. Do I add an export line to one of the files that you mentioned in your post?
 
Old 01-08-2005, 03:50 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Thanks very much for your help. Just a small problem with solution 3. I ran the telinit command and swapped down to runlevel 3. I tried Ctrl-C and the same result...nothing happened. I then pressed Ctrl-Alt-Del for a retro windows moment and the system switched to runlevel 6 and restarted. Any other ideas?
I keep forgetting that Slackware 10 is a little screwy when changing runlevels. Linux has a way that you can have multiple prompts running. After you change the runlevel, hit CTL+ALT+F2. Slackware is set so you can go through the function keys up to 6. F7 is GUI, if X is running. I think it is easier to just reboot and in grub hit e. Then add a 3 at the end of the kernel line. This will get you in runlevel 3 bypassing whatever your default runlevel is set at.

Quote:
I read around a little more and found something suggesting that I would have to type in the export command everytime I wanted to use Java. Now obviously this would get very boring. Do I add an export line to one of the files that you mentioned in your post?
You do not have to type export variable_name to make java work. You can place something like
JAVAPATH="path"
JAVALIB="path"

export JAVAPATH JAVALIB

In either ~/.bashrc, /etc/profile, or in /etc/profile.d/java. When you reboot or login, these variables will be loaded in the environment. This also means if you open up xterm, konsole, rxvt, etc, these variables will be set.
 
  


Reply



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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Java SDK 1.4.2_05 hevykevy7 Linux - Software 4 09-11-2004 04:39 AM
Installing JAVA SDK 1.3 on RedHat7.3 jenze76 Linux - Software 2 08-15-2004 10:31 AM
JAVA:problem in installing ECLIPSE SDk on LINUX nedian123 Programming 1 06-26-2004 09:37 PM
A few Java SDK questions. vdogvictor Programming 14 05-14-2004 03:27 PM
Installing Java SDK 1.4.2 grrr........... hadding Linux - Newbie 1 11-09-2003 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:41 PM.

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