Thread: Linux

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    5

    Linux

    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 : [email protected]

  2. #2
    Registered User
    Join Date
    Aug 2002
    Posts
    14
    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
    Last edited by Sfin; 08-13-2002 at 07:57 AM.

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    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

  4. #4
    Unregistered
    Guest
    you can also download the Blackdown JDK. Itīs a linux optimized version of the Sun JDK.

  5. #5
    Registered User
    Join Date
    Jun 2002
    Posts
    106
    you can download java from www.sun.com
    C++ Makes you Feel Better

    "Gravity connot be held reponsible for people falling in love"--Albert Einstein

  6. #6
    Registered User
    Join Date
    Sep 2001
    Location
    Fiji
    Posts
    212
    most of the new Linux distros have java support on the CD's. Something like gcc-java or gcc3.0-java

  7. #7
    Steve Jobs
    Guest
    >>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.

  8. #8
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    LOL: 'Steve Jobs'.

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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thinking of upgrading to linux...
    By Yarin in forum General Discussions
    Replies: 37
    Last Post: 07-24-2009, 11:40 AM
  2. Wireless Network Linux & C Testbed
    By james457 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-11-2009, 11:03 AM
  3. Dabbling with Linux.
    By Hunter2 in forum Tech Board
    Replies: 21
    Last Post: 04-21-2005, 04:17 PM
  4. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM