Linux [Archive] - C Board

PDA

View Full Version : Linux


chandramouli_cm
08-13-2002, 03:46 AM
Dear Sir,

I am new to LINUX. So iam asking these below doubts.

1) How to run a simple java program under LINUX o.s (ie How to compile, and how to see the out) from command prompt.

2) How can we see the contents of floppy and C.D drive contents from command prompt?

3) How can we change LILO.conf File in LINUX

4) How can we create boot floppy creation in linux

5) How can we add a user from root from the command prompt?

Please show me the solution.

Regards
mouli.

MY MAIL ID : chandramouli143_p@yahoo.co.in

Sfin
08-13-2002, 07:52 AM
1) You will need to download J2EE from the sun website, and use it to compile, and run your java programs.

2) depending on what Linux Distro you use, you might or might not need to mount your drives.

In the command prompt, or Shell:

i) mkdir /mnt/floppy
ii) mount -t vfat /dev/fd0 /mnt/floppy

iii) mkdir /mnt/cdrom
iv) mount -t iso9660 /dev/hdc /mnt/cdrom

P.S. --> The above assume that your floppy is /dev/fd0 && cdrom is /dev/hdc

Now you can just do a :

i) cd /mnt/cdrom or /mnt/floppy

to change to your floppy and Cdrom drives.

3) well it depends on what editor you have installed

i) su -
ii) put in the root password
iii) vi /etc/lilo.conf OR pico /etc/lilo.conf

depending on what editor you have installed.

4) you will need to use the dd command if I remember correctly

do a:

man dd

to check out the manual page for it.

5) I think the command was

useradd <username>

do a:

man useradd ---> to get all the options you can use with it

starX
08-14-2002, 10:38 PM
to see contents of other drives, you need to mount them first. Check out man mount, especially the "-t" option for more info, and see what is described in your /etc/fstabd file.

After mounting them, you view their contents with ls, just like anything else.

starX
www.axisoftime.com

Unregistered
08-15-2002, 06:34 AM
you can also download the Blackdown JDK. Itīs a linux optimized version of the Sun JDK.

onurak
09-05-2002, 04:35 PM
you can download java from www.sun.com

kwigibo
09-05-2002, 04:49 PM
most of the new Linux distros have java support on the CD's. Something like gcc-java or gcc3.0-java

Steve Jobs
09-06-2002, 09:49 AM
>>most of the new Linux distros have java support on the CD's. Something like gcc-java or gcc3.0-java<<

which is a non-standard piece of garbage :) It's awfully slow too. The newest SDK and JRE (1.4.x) from Sun have been the most impressive to me...it's simple to install...just read the the README file.

$javac foo.java // compiles into java class
$java foo // executes the vm and your program

About the boot floppy...I would read you distrobution's documentation. Most of the decent ones come with a utility that will handle it for you safely. I would use that, instead of messing around with the 'dd' command, which can ruin everything if it is used carelessly (or if you're sleepy...trust me)...

About adding users...some distrobutions come with a utility called 'adduser', which is more interative than the 'useradd' command. It's much simpler to use. Again, it depends on your distro.

and make sure you 'unmount' your drive before you remove the media else your data might be corrupted.

face_master
09-06-2002, 06:42 PM
LOL: 'Steve Jobs'.

*Covers Windows Logo tattooed on face and runs...*