Linux books

which book is good for linux OS

Linux - Operating Systems Books Programming, Networking & System Administration, Red Hat, Servers & More
http://www.amazon.com/Linux-Operating-Systems-Books/b?ie=UTF8&node=3849
Red Hat Documentation
http://www.redhat.com/docs/

Similar Messages

  • [BOOKS] Linux Books

    Hi,
    I'm searching a book, about advanced Linux functions, I wan to become network administrator.
    I would like your opinion about the two books I wanted to buy.
    - UNIX and Linux System Administration Handbook
    - Linux Bible
    And if you have any other suggestions ?

    small list of books I have in various format from when I took my first steps to recent:
    A Practical Guide To Linux Commands, Editors, And Shell Programming (2005).chm
    A Practical Guide To Red Hat Linux, 3rd Edition (2006).chm
    An introduction to linux.pdf
    Automating UNIX And Linux Administration (2003).chm
    Beginning SUSE Linux - From Novice To Professional (2005).chm
    Beginning Ubuntu Linux - From Novice To Professional (2006).pdf
    Building your own Linux distro.htm
    Building your own Linux distro_files/
    Common files of the -etc directory and their uses.txt
    Compiling your own kernel under Linux.htm
    Compiling your own kernel under Linux_files/
    CompleteIdiotsGuidetoLinux.pdf
    Debian GNU-Linux Bible (2001).pdf
    Debian reference.en.pdf
    Debian users-guide.en.pdf
    Do i need to Defrag in linux.doc
    Easy Local Repository for apt-get.txt
    Emac speak users guide.pdf
    Embedded Linux Primer - A Practical Real-World Approach (2006).chm
    Fedora Linux (2006).chm
    HACKING LINUX EXPOSED ch09.pdf
    Hacker Linux Uncovered (2005).chm
    How Linux Works - What Every Super-User Should Know (2004).chm
    Installing & Hacking From Linux.txt
    LPI Linux Certification In A Nutshell, 2nd Edition (2006).chm
    Learning Red Hat Enterprise Linux & Fedora, 4th Edition (2004).chm
    Learning Red Hat Linux, 3rd Edition (2003).chm
    Linux All-In-One Desk Reference For Dummies (2006).pdf
    Linux Bible 2005 Edition (2005).pdf
    Linux Bible 2006 Edition (2006).pdf
    Linux Complete Command Reference.pdf
    Linux Cookbook (2004).chm
    Linux Debugging And Performance Tuning - Tips And Techniques (2005).chm
    Linux Desktop Garage (2005).chm
    Linux Desktop Hacks (2005).chm
    Linux Device Drivers, 2nd Edition (2001).pdf
    Linux Firewalls Attack Detection and Response with Iptables, PSAD, and Fwsnort.pdf
    Linux For Dummies, 6th Edition (2005).pdf
    Linux For Dummies, 7th Edition (2006).pdf
    Linux For Non-Geeks - A Hands-On, Project-Based, Take-It-Slow Guidebook (2004).chm
    Linux In A Nutshell, 4th Edition (2003).chm
    Linux Kernel Development, 2nd Edition (2005).chm
    Linux Phrasebook (2006).chm
    Linux Power Tools (2003).chm
    Linux Security Cookbook.chm
    Linux Shell Scripting With Bash (2004).pdf
    Linux Smart Homes For Dummies (2006).pdf
    Linux System Administration.pdf
    Linux System Poster (2001).pdf
    Linux Timesaving Techniques For Dummies (2004).pdf
    Linux Toys II - 9 Cool New Projects For Home, Office, And Entertainment (2006).pdf
    Linux Troubleshooting Bible (2004).chm
    Linux Troubleshooting For System Administrators And Power Users (2006).chm
    Linux Unwired (2004).chm
    Linux sysadmin guide.pdf
    Linux+ Certification Bible (2002).pdf
    Linux.Bible.2010.Edition.pdf
    Linuxfordummies.pdf
    McGraw.Hill.Osborne.Media.Linux.Administration.A.Beginners.Guide.Fifth.Edition.Sep.2008.eBook-DDU.pdf
    Newbie BASH Scripting Tutorial.htm
    OReilly.Automating.System.Administration.with.Perl.2nd.Edition.May.2009.pdf
    RHL-linux-complete-command-ref.pdf
    RUTE.PDF
    SSH tutorial.rtf
    Teach_Yourself_Linux_in_24_Hours.pdf
    The Linux Kernal.html.lnk
    Ubuntu Unleashed (2006).chm
    Understanding the Linux Kernel, 3rd Edition (2005).chm
    VI crash course.txt
    WHYLINUX.TXT
    Why Linux Defrags Slowly.txt
    an introduction to BASH shell scripting.txt
    apt-howto.en.pdf
    comon files in etc.rtf
    debian-faq.en.pdf
    dwarfs-debian-guide.pdf
    file system tips
    gentoo handbook/
    linux - Advanced Bash Shell Scripting Guide.pdf
    linux from scratch.pdf
    linux-certidication-bible2.pdf
    newbie admin guide.pdf
    revert to legacy grub from grub2 with live cd.txt
    the linux users guide.pdf
    tlk-0.8-3.html/
    tlk.html.lnk
    working_with_gentoo.txt
    I will not provide sources to these as I got them of of friends & work colleagues over the years but I am sure a quick DDG search will provide you with a way to obtain them.
    good luck

  • Linux Book Reccomendations

    Hi,
    I've been using ArchLinux for quite a few years now, but a problem is I only learned Linux through using KDE, installing packages, and following step-by-step descriptions from the Internet. Setting up a fully working ArchLinux that works perfectly and remains up to date for 4 years doesn't require that much Linux knowledge, which is of course a Good thing. Editing config files also doesn't. But when I need to install something that's not in pacman, the limitations of my knowledge always become obvious and annoying...
    Like, bash, shell scripting, why are there multiple lib and bin folders, what steps does linux follow during boot up, how do I properly search for files in a terminal, what is it that keeps me from liking vim no matter how hard I try, where does linux software need to put what libraries, files and links to be properly integrated in the system, daemons, which linux component is it that parses rc.conf, setting up an ftp server, why are the user accounts so messy with things like an "audio" group displaying in the rights of files that have nothing to do with audio, isn't the 3-octal number system for rights of files quite limiting and are there better alternatives, different kinds of "link" files, properly setting up alsa and what other audio components does audio go through from the flash game / audacious / ... to the speakers, etc.....
    Is there a good book for linux from which I can learn all these things and everything else basic as well as advanced about the structure and workings of linux, bash, xorg, ...?
    Thanks!

    This would probably be your most involved method, but I'd actually recommend you get, of all things, a C book, learn the very basics of C - enough to write a 20-40 line app, just come to terms with the basics of programming and C in and of itself - then dive into the Linux kernel and the associated utilities that make Linux tick, and actually get you to a shell prompt.
    Read what's interesting, ignore what seems boring, skim what looks like it'd be helpful but you aren't exactly interested in, etc. Explore freely and with no structure - just be spontaneous in poking about different bits and pieces - and you'll discover you've done two things at once: learnt C - the programmer's most valuable resource - and explored Linux from a sourcecode-side view, not something many people do. Of course, since the kernel/apps DO update amazingly quickly, the very code you may read may not be in use in the systems' next release, but you'd get a pretty good idea of what does what, and how.
    I've always dreamed of doing that, and one day I will.
    In addition to learning C, I also recommend you look around shell scripting and learn how that works as well; shell scripting is very string oriented and will also help automate tasks easily. And try a high-level language such as Ruby, or even PHP.
    But whatever you do, if you think that when you encounter something new, your brain will "optimize itself" for whatever you've just discovered, learn C first. High level languages have messed my head up - I learnt BASIC first, JavaScript next, and PHP after that - and it's taken me a LOT of effort to just. comprehend. and. understand. pointers. (pointers are a C-ism that I think that, after months of trying to push my brain to comprehend, am going to like very much...)
    If this has made no sense, sorry
    But just remember, UNIX is a very versatile system. With comprehensiveness comes a fair degree of complexity, but it does grow on you. And remember, there are 89346598234695872369485723 (:P) other people who have managed to "get" the UNIX concept, and you can too. Even if it takes 900 months.
    I also dislike vi/vim, no matter how much I try to like it, and in terms of a console editor, have completely, utterly given up. I also dislike Emacs. I just use Geany for editing within X, and am likely to use my newfound comprehension of C to possibly create a console text editor. Of sorts. Possibly.
    -dav7
    Last edited by dav7 (2008-07-21 03:41:16)

  • [LINUX - CentOS 5] java.lang.NoClassDefFoundError

    Okay, here it goes.. This error has been bugging me for the past few days and I really don't know what to do :(
    I'm running CentOS 5 and I installed the jdk1.5.0_14 package.
    I'm trying to run the following file:
    #!/bin/sh
    while true; do
    java -cp ../lib/jio.jar:../lib/application.jar:../lib/commons-collections-3.1.jar:../lib/commons-dbcp-1.2.1.jar:../lib/commons-pool-1.2.jar:../lib/commons-logging-1.0.4.jar:../lib/log4j-1.2.9.jar:$../lib/sqljdbc.jar authd /etc/table.xml
    sleep 10
    doneThen the command console shows me the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: authd
       at gnu.java.lang.MainThread.run(libgcj.so.7rh)
    Caused by: java.lang.ClassNotFoundException: authd not found in gnu.gc
    j.runtime.SystemClassLoader{urls=[file:../lib/jio.jar,file:../lib/appl
    ication.jar,file:../lib/commons-collections-3.1.jar,file:../lib/common
    s-dbcp-1.2.1.jar,file:../lib/commons-pool-1.2.jar,file:../lib/commons-
    logging-1.0.4.jar,file:../lib/log4j-1.2.9.jar], parent=gnu.gcj.runtime
    .ExtensionClassLoader{urls=[], parent=null}}
       at java.net.URLClassLoader.findClass(libgcj.so.7rh)
       at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
       at gnu.java.lang.MainThread.run(libgcj.so.7rh)If there's anyone that knows something to fix this, please do let me know. Just ask me if you need to know some additional info about my CentOS 5 installation.
    Best regards,
    Dirk

    hypnoticdragon wrote:
    Hope you won't mind me asking this but i'm rather new to linux aswell ;(
    But where can I find the path list that i have to modify?Sorry but you need to become familiar with Linux. This is a very basic feature of Linux which will be covered by any Unix/Linux book or tutorial. Google will find you several tutorials. It would be worth spending a few hours on the basics.

  • Install Oracle Enterprise Linux

    We have an old workstation (Dell Precision WorkStation 530 with 2.40 GHz Intel Xeon processor, 2 GB RAM, and 3 36-GB hard dirves) and I would like to use it as a test box for Oracle on Linux. I tried to install Oracle Enterprise Linux, but it stuck at the some point every time, either during installing libraries/modules or formatting disk. The place the installation stuck varies. It does give any error message, but the installation just stops there fore hours or days. I tried Oracle Enterprise Linux 4 DVD, Oracle Enterprise Linux 5 DVD, and latest image CDs downloaded form metalink. All have the same issue. That installation starts as normal, then slow down, then freeze. I tried installing Fedora Core on the box using CDs from a Linux book yesterday, but it was successful and worked fine. I am wondering where there are some hardware incompatibility or other issues associated with the box. Any suggestions are greatly appreciated. Thanks.
    George

    Hi, George.
    I think you'll have to determine the motherboard and other periferals in your machine to find out which one is incompatible with OEL. The most probable culprit is the motherboard. Find out which model it is and Google, using the model and the term "Enterprise Linux" (or RHEL or Centos, they are all the same).
    There may be workarounds, if it's indeed an incompatibility issue: settings in the CMOS Setup or advanced parameters for booting the installation -- usually related to the drives (HD, DVD, SATA mode etc) or to P'n'P periferals (USB, for instance).
    Regards,
    Marcio

  • Help needed on setting fonts up

    I've consulted my Linux books for this, I've read the Wiki, I've searched the forum and read dozens of different threads concerning this topic; I've searched the net and read tons of different stuff there as well; I've tried different configurations and to understand, what's really going on, but the only thing that helped a little bit in the end was adding the following in my xorg.conf (strange though, I never had to do this in Zenwalk and its not there in my xorg.conf either):
    Option "UseEdidDpi" "false"
    Option "DPI" "96 x 96"
    Fact is, my fonts still look like crap and the only thing I haven't tried yet is editing the /etc/fonts/local.conf and ~/.fonts.conf, simply due to the fact that both files don't exist on my Arch system. Do I have to set them up myself?
    And if you have any further recommendations what can be done to make fonts look good, they are very welcome!
    Thanks in advance.

    Thank you!
    But I guess I have to accept the fact that, for whatever reason (which is beyond my understanding), fonts look different in Arch Linux.
    I've installed the ttf-ms-fonts, ttf-dejavu and ttf-bitstream-vera fonts already. I've also installed artwiz-fonts, but Xfce doesn't find them, so there must've been gone something wrong already. I've also consulted the Wiki already and read different entries there concerning fonts. I've also checked the Gentoo Linux Wiki Howto Xorg & Fonts. I've ran fc-cache, mkfontscale and mkfontdir. The only thing I haven't done yet is creating a soft link like this:
    ln -s /usr/share/fonts/encodings/encodings.dir yourfontdirectory/encodings.dir
    Because I don't quite understand this soft link (my font directory is /usr/share/fonts ?).
    Finally, I have created a /etc/fonts/local.conf file. But neither this nor everything else I've tried up to now has helped really. Only adding the DPI stuff to my xorg.conf has changed the fonts to a reasonably size. But that's about it.
    I add some screenshots to demonstrate what I'm talking about.
    Zenwalk web page on Arch:
    http://img408.imageshack.us/img408/7171 … ts1te9.png
    ...and on Zenwalk:
    http://img253.imageshack.us/img253/7651 … ts3el1.png
    Ubuntu forums on Arch:
    http://img440.imageshack.us/img440/5857 … ts2ei3.png
    ...and again on Zenwalk:
    http://img442.imageshack.us/img442/3821 … ts1hq7.png

  • To store value

    SO PLEASE RUN THIS CODE AND TRY TO RECTIFY THE ERROR AND SOLVE THIS PROBLEMS.
    I WILL PLACE THESE TYPE TEXT NEAR BUYME BUTTON
    WHEN RUN THIS CODE FIRST IT WILL COME SCREEN LIKE "WELCOME TO SHOPPING CART"
    SELECT BOOKS AND CLICK ON SHOP YOU WILL COME "BOOK CATALOGUE" SCREEN
    TYPE AN INTEGER VALUE IN QUANTITY FIELD LIKE(2 OR 3 OR 4)
    WHEN YOU CLICK ON BUYME BUTTON THE DATA SHOULD GET SAVED WHICH IS NOT HAPPENING
    IF YOU COULD RESOLVE THIS PROBLEM IT WOULD BE GREAT
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.*;
    import java.io.*;
    public class Cart extends Frame implements ActionListener,ItemListener
         Color c;
         CheckboxGroup cbg;
         Label welcome, Se;
         Checkbox Acces, Books, Comp;
         static int Cho=0;
         protected Button shop, exit;
         TextArea inst;
         String str;
         Panel p1,p2,p3,p4,p5;
         Font f1,f2;
         static Valimesg     s0          = null;
         static Cart s1     = null;
         static Books s2               = null;
         //static Computers s3          = null;
         //static Accessories s4     = null;     
         static Purchase s5 = null;
         static Reviewcart s6 = null;
         static {
              s1     = new Cart();
    //          s0     = new Valimesg();
    /*          s2     = new Books();
              s3     = new Computers();*/
         Cart()
         setSize(1025,750);
         setLayout(new BorderLayout());
         str= " Instructions for using the Shopping Cart\n"+
    " ------------------------------------------------------\n"+
    "1. Enter the Quantity of item desired and press the BUY ME button.\n" +
    "2. Repeat step 1 for each item to be purchased.\n"+
    "3. If the quantity is less than or equal to 0 then error message will arise.\n"+
    "4. Press the link Review Cart for review the bill.\n"+
    "5. You may change the quantity of an item on your order now.\n"+
    "6. Press the button labelled 'ReCalculate' to calculate and display the total amount to be paid.\n"+
    "7. Press the link 'Purchase order' in cart and then fill out the format"+"and then press the 'Buy Items'.\n"+
    "8. If unfilled fields in the purchase order format will not save.\n"+
    "9. You should receive a copy of the order in Your e-mail. \n"+
         "Please check this e-mail copy for accuracy, if inaccurate please notify us immmediately.";
         f1=new Font("Verdana", Font.PLAIN,18);
         f2=new Font("Verdana", Font.PLAIN,12);
         p1 = new Panel();     p1.setLayout(new FlowLayout());
         p2 = new Panel();     p2.setLayout(new BorderLayout());
         p3 = new Panel();     p3.setLayout(new BorderLayout());
         p4 = new Panel();     p4.setLayout(new FlowLayout());
         p5 = new Panel();     p5.setLayout(new GridLayout(1,3));
         Panel p6 =new Panel();          p6.setLayout(new GridLayout(3,1));
         Panel p7 = new Panel();          p7.setLayout(new GridLayout(3,1));
         Panel p8 = new Panel();          p8.setLayout(new FlowLayout());
         Panel p9 = new Panel();          p9.setLayout(new BorderLayout());
         Panel p10 =new Panel();          p10.setLayout(new BorderLayout());
         Panel p11 =new Panel();          p11.setLayout(new BorderLayout());
         Panel p12 =new Panel();          p12.setLayout(new BorderLayout());
         Panel p13 =new Panel();          p13.setLayout(new BorderLayout());
         Panel p14 =new Panel();          p14.setLayout(new FlowLayout());
         Panel p15 = new Panel();          p15.setLayout(new FlowLayout());
              welcome = new Label("WELCOME TO SHOPPING CART");
              cbg = new CheckboxGroup();
              Se = new Label("The following are the items available: ");
              Acces = new Checkbox("Accessories",cbg,true);
              Books = new Checkbox("Books",cbg,false);
              Comp = new Checkbox("Computers",cbg,false);
              Button shop = new Button("Shop");
              Button exit = new Button("Exit");
              inst= new TextArea(str, 7, 500);
              inst.setEditable(false);
              welcome.setFont(f1);
              inst.setFont(f2);          
              p1.setForeground(Color.blue);
              exit.addActionListener(this);
              Acces.addItemListener(this);
              Books.addItemListener(this);
              Comp.addItemListener(this);
              shop.addActionListener(this);
              add(Acces);
              add(Books);
              add(Comp);     
              add(inst);
              add(Se);
              p1.add(welcome);
              p2.add(inst, "North");
              p2.add(Se, "Center");
              p3.add(Acces, "North");
              p3.add(Books, "Center");
              p3.add(Comp, "South");
              p4.add(shop);
              p4.add(exit);
              p5.add(p6);//p5.add(p7);p5.add(p8);
              p6.add(p2); p6.add(p3); p6.add(p11);
              //p7.add(p12); p7.add(p13); p7.add(p14);
              //p8.add(p15);
              add(p1, "North");
              add(p5, "Center");
              add(p4, "South");     
    addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent we)
                        System.exit(0);
    }     //ends Cart constructor
    public void actionPerformed (ActionEvent ae)
              try
                   if (ae.getActionCommand().equalsIgnoreCase("Shop"))
                        System.out.println(Cho);
                        if(Cho == 1) {
                             try
                                  s2 = new Books();
                                  s1.setVisible(false);
                                  s2.setVisible(true);
                                  s2.show();
                             catch (Exception e)
                                  System.out.println(e);
                        /*else if(Cho == 2) {
                             try
                                  s3 = new Computers();
                                  s1.setVisible(false);
                                  s3.setVisible(true);
                                  s3.show();
                             catch (Exception e)
                                  System.out.println(e);
                        else {
                             try {
                                  s4 = new Accessories();
                                  s1.setVisible(false);
                                  s4.setVisible(true);
                                  s4.show();
                             catch (Exception e)
                                  System.out.println(e);
                   if (ae.getActionCommand().equalsIgnoreCase("Exit"))
                   System.exit(0);
              catch(Exception e)
                   System.out.println(e);
    public void itemStateChanged(ItemEvent ie)
    String sel;
    sel = cbg.getSelectedCheckbox().getLabel();
         if(sel.equals("Books"))
              Cho = 1;
         else if(sel.equals("Computers"))
              Cho = 2;
         else
              Cho = 0;
    public static void main(String[] args)
         s1 = new Cart();
         s1.show();
    /* function to check for Valid quantity number*/
    public static int Valinum(int val)
    try
                   int test=val;
                   if(test <= 0) {
                        return 0;
                   else {
                        //s0 = new Valimesg();
                        s0.show();
                        return 1;
         catch(NumberFormatException nfe)
              //s0 = new Valimesg();
              s0.show();
              s2.setVisible(false);
              s0.setVisible(true);
              //System.out.println(nfe);
    return 0;
    }     //ends Valinum function
    public class Valimesg extends Cart
         Font f ;
         Panel p1;
         Label mesg;
         Valimesg(){
              f = new Font ("Verdana",Font.PLAIN,18);
              p1 = new Panel();
              p1.setLayout(new FlowLayout());
              mesg=new Label("Enter a valid number");
              add(p1);
              p1.add(mesg);
              p1.setFont(f);
              addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent we)
                        System.exit(0);
    }     //ends Valimesg class
    public class Books extends Cart
         TextField code, price, qty;
    TextArea desp;
         int it_code[] = {1000, 1001, 1002};
    int it_qty[] = {0,0,0};
    String it_price[] = {"125", "150", "100"};
    String des[] = {"This books combines a general introduction to\n"+"application layer network programming with\n"+"complete coverage of Java's networking classes\n",
    "See C through your eyes ! We bring exclusively for you,\n"+"by Yeshwant Kaniktar [Author] print by PBP\n",
    "Red Hat Linux 6 Unleashed shows you how to install, \n"+" configure, and manage version 6.0, the latest \n"+" version of Red Hat operating system."};
         Choice books;
         Button Home, Purchase, Buyme,Review;
         Label itcode, Description, Shopcart, Category, cost, Quantity,cat;
         Panel p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19;
    Books()
         Home = new Button("Home");
    Purchase = new Button("Purchase");
    Review = new Button("Review Cart");
    Buyme = new Button("BuyMe");
    p1 = new Panel();     p2 = new Panel();
    p3 = new Panel();     p4 = new Panel();     
    p5 = new Panel();     p6 = new Panel();
    p7 = new Panel();     p8 = new Panel();
    p9 = new Panel();     p10 = new Panel();
    p11 = new Panel();     p12 = new Panel();
    p13 = new Panel();     p14 = new Panel();
    p15 = new Panel();     p16 = new Panel();
    p17 = new Panel();     p18 = new Panel();
    p19 = new Panel();
         p1.setLayout(new GridLayout(2,1)); p2.setLayout(new GridLayout(1,2)); p3.setLayout(new GridLayout(2,1));
         p4.setLayout(new FlowLayout()); p5.setLayout(new FlowLayout()); p6.setLayout(new FlowLayout()); p7.setLayout(new FlowLayout());
         p8.setLayout(new FlowLayout()); p9.setLayout(new FlowLayout()); p10.setLayout(new FlowLayout()); p11.setLayout(new FlowLayout()); p19.setLayout(new FlowLayout());
         p12.setLayout(new FlowLayout()); p13.setLayout(new FlowLayout()); p14.setLayout(new FlowLayout()); p15.setLayout(new FlowLayout()); p16.setLayout(new FlowLayout());
         p17.setLayout(new GridLayout(5,1)); p18.setLayout(new GridLayout(5,1));
    Shopcart = new Label("BOOK CATALOGUE");
    itcode = new Label("Item Code");
    Description = new Label("Description");
    Category = new Label("Category");
    cost = new Label("Cost");
    Quantity = new Label("Quantity");
    cat = new Label("Books");
    books = new Choice();
    books.add("Learn Java in 2 hours");
    books.add("C has never been so e'c'");
    books.add("Red Hat Linux");
    books.addItemListener(this);
    code = new TextField(10);     code.setEditable(false); code.setText("1000");
    price = new TextField(10);     price.setEditable(false); price.setText("125");
    qty = new TextField(10);          
    desp = new TextArea(des[0], 5,50); desp.setEditable(false);
              p4.add(books);
              p5.add(Shopcart);
              p6.add(itcode);
              p7.add(Description);
              p8.add(cost);
              p9.add(Quantity);
              p10.add(Category);
              p11.add(code);
              p12.add(desp);
              p13.add(price);
              p14.add(qty);
              p19.add(cat);
              p16.add(Buyme);
              p16.add(Home);
              p16.add(Purchase);
              p16.add(Review);
              p1.add(p4); p1.add(p5);
              p2.add(p17); p2.add(p18);
              p17.add(p6); p17.add(p7); p17.add(p8); p17.add(p9); p17.add(p10);      
              p18.add(p11); p18.add(p12); p18.add(p13); p18.add(p14); p18.add(p19);
              p3.add(p16);          
              add(p1, "North");
              add(p2, "Center");
              add(p3, "South");
    Home.addActionListener(this);
    Purchase.addActionListener(this);
    Review.addActionListener(this);
         Buyme.addActionListener(this);
         addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent we)
                        System.exit(0);
    public void itemStateChanged(ItemEvent ie1)
         System.out.println(books.getSelectedIndex());
         code.setText(String.valueOf(it_code[books.getSelectedIndex()]));
         price.setText(it_price[books.getSelectedIndex()]);
         desp.setText(des[books.getSelectedIndex()]);
         qty.setText("");
    public void actionPerformed(ActionEvent ae)
              try
                   if (ae.getActionCommand().equalsIgnoreCase("BuyMe"))
                        try
                        int i,temp;
                        i=books.getSelectedIndex();
                        temp=Integer.parseInt(qty.getText());
                        int c=Cart.Valinum(temp);
                   if (c==1)
    /* MY PROBLEM IS WHEN I ENTER A QUANTITY FIELD ITS NOT STORING THE VALUE IN A VARIABLE it_qty[i] IN BOOK CLASS WHEN I CLICK ON BUYME BUTTON*/
                             it_qty=Integer.parseInt(qty.getText());
                             qty.setText("");
                        else {
                             qty.setText("");
                        temp=0;
                        catch (Exception e)
                        //System.out.println(e);
                   if (ae.getActionCommand().equalsIgnoreCase("Home"))
                        try
                             s1.setVisible(true);
                             s1.show();
                             s2.setVisible(false);s5.setVisible(false);s6.setVisible(false);
                        catch(Exception e)
                             System.out.println(e);
                   if (ae.getActionCommand().equalsIgnoreCase("Purchase"))
                        try
                        {     s5 = new Purchase();
                             s5.setVisible(true);
                             s5.show();
                             s2.setVisible(false);s6.setVisible(false);
                        catch(Exception e)
                             System.out.println(e);
                   if (ae.getActionCommand().equalsIgnoreCase("Review Cart"))
                        try
                        {     s6 = new Reviewcart();
                             s6.setVisible(true);
                             s6.show();
                             s2.setVisible(false);s5.setVisible(false);
                        catch(Exception e)
                             System.out.println(e);
              catch(Exception e)
                   System.out.println(e);
    }     //ends Books class
    public class Purchase extends Cart
         Label Name,Address,City,State,Zip;
         Label Phone,Fax,Email,Credit_card,CC_number,CC_owner,Comment,Expiry_date;
         TextField Name_text,Add_text,City_text,State_text,Email_text,CC_text,CCowner_text;
         TextField Phone_text,Fax_text,CCno_text,Zip_text;
         TextField Comments_text,Expdate_text;
         String Str;
         Panel p1,p2,p3,p4,p5,p6,p7,p8,p9,p10;
         Purchase()
              setLayout(new BorderLayout());
              Font f,f1;
              f = new Font ("Verdana",Font.PLAIN,14);
              setFont(f);
              f1 = new Font ("Verdana",Font.PLAIN,18);
              p1 = new Panel();
              p2 = new Panel();
              p3 = new Panel();
              p4 = new Panel();
              p5 = new Panel();
              p6 = new Panel();
              p7 = new Panel();
              p8 = new Panel();
              p9 = new Panel();
              p10 = new Panel();
              p1.setFont(f1);
              //panel3.setFont(f1);
              p1.setForeground(Color.blue);
              p1.setLayout(new FlowLayout());
              p2.setLayout(new GridLayout(8,1));
              p3.setLayout(new FlowLayout());
              p4.setLayout(new FlowLayout());
              p5.setLayout(new FlowLayout());
              p6.setLayout(new FlowLayout());
              p7.setLayout(new FlowLayout());
              p8.setLayout(new FlowLayout());
              p9.setLayout(new FlowLayout());
              p10.setLayout(new FlowLayout());
              Label purchase = new Label("PURCHASE ORDER");
              Label Name = new Label("Name");
              Label Address = new Label("Address");
              Label City = new Label("City");
              Label State = new Label("State");
              Label Zip = new Label("Zip");
              Label Phone = new Label("Phone");
              Label Fax = new Label("Fax");
              Label Email = new Label("Email");
              Label Credit_card = new Label("Credit Card");
              Label CC_number = new Label("Credit Card Number");
              Label Expiry_date = new Label("Expiry Date");
              Label CC_owner = new Label("Credit Card Owner");
              Label Comment = new Label("Comment");
              Name_text = new TextField(40);
              Add_text = new TextField(60);
              City_text = new TextField(8);
              State_text = new TextField(10);
              Zip_text = new TextField(10);
              Phone_text = new TextField(10);
              Fax_text = new TextField(20);
              Email_text = new TextField(15);
              CC_text = new TextField(8);
              CCno_text = new TextField(16);
              Expdate_text = new TextField(10);
              CCowner_text = new TextField(20);
    Comments_text=new TextField(25);
              String Str = "";
              TextArea text2 = new TextArea(Str,2,75);
              add(Name_text);
              add(Add_text);
              add(City_text);
              add(State_text);
              add(Zip_text);
              add(Phone_text);
              add(Fax_text);
              add(Email_text);
              add(CC_text);
              add(CCno_text);
              add(Expdate_text);
              add(CCowner_text);
    add(Comments_text);
              Button Buyitems = new Button("Buy Items");
              Buyitems.addActionListener(this);
              Button Reset = new Button("Reset");
              Reset.addActionListener(this);
    Button home = new Button("Home");
              home.addActionListener(this);
              Button Review = new Button("Review Cart");
              Review.addActionListener(this);
              p1.add(purchase);
              p4.add(Name);
              p4.add(Name_text);
              p5.add(Address);
              p5.add(Add_text);
              p6.add(City);
              p6.add(City_text);
              p6.add(State);
              p6.add(State_text);
              p6.add(Zip);
              p6.add(Zip_text);
              p7.add(Phone);
              p7.add(Phone_text);
              p7.add(Fax);
              p7.add(Fax_text);
              p7.add(Email);
              p7.add(Email_text);
              p8.add(Credit_card);
              p8.add(CC_text);
              p8.add(CC_number);
              p8.add(CCno_text);
              p9.add(Expiry_date);
              p9.add(Expdate_text);
              p9.add(CC_owner);
         p9.add(CCowner_text);
              p10.add(Comment);
         p10.add(Comments_text);
              p3.add(Buyitems);
              p3.add(Reset);
              p3.add(home);
              p3.add(Review);
              add(p1,"North");
              add(p2 ,"Center");
              add(p3,"South");
              p2.add(p4);
              p2.add(p5);
              p2.add(p6);
              p2.add(p7);
              p2.add(p8);
              p2.add(p9);
              p2.add(p10);
    addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent we)
                        System.exit(0);
    public void actionPerformed (ActionEvent ae1)
         String str=ae1.getActionCommand();     
         if (ae1.getActionCommand().equalsIgnoreCase("Home"))
                        try
                             s1.setVisible(true);
                             s1.show();
                             s5.setVisible(false);s6.setVisible(false);s2.setVisible(false);
                        catch(Exception e)
                             System.out.println(e);
         if (ae1.getActionCommand().equalsIgnoreCase("Buy Items"))
    System.out.println("Items");
         if (ae1.getActionCommand().equalsIgnoreCase("Reset"))
              Name_text.setText("");
              Add_text.setText("");
              City_text.setText("");
    State_text.setText("");
              Zip_text.setText("");
              Phone_text.setText("");
              Fax_text.setText("");
              Email_text.setText("");
              CC_text.setText("");
              CCno_text.setText("");
              Expdate_text.setText("");
              CCowner_text.setText("");
         if (ae1.getActionCommand().equalsIgnoreCase("Review Cart"))
                        try
                        {     s6 = new Reviewcart();
                             s6.setVisible(true);
                             s6.show();
                             s5.setVisible(false);
                        catch(Exception e)
                             System.out.println(e);
    }     //ends Purchase class
    public class Reviewcart extends Cart
         Label Item,Quantity,Rate,Total,Amount,Shipping,Subtotal,Review;
         Button home,order,recal;
         //Review review;
         String Str;
         TextArea text3;
    Panel pan[] = new Panel[120];
         String lab[] = {"Sub-Total","Shipping","Total Amount"};
         TextField c[] = new TextField[10];
         Panel p0,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15;
         Font f,f1;
         Reviewcart()
              setLayout(new BorderLayout());
              f = new Font ("Verdana",Font.PLAIN,18);
              setFont(f1);
              f1 = new Font ("Verdana",Font.PLAIN,16);
              p1 = new Panel();
              p2 = new Panel();
              p3 = new Panel();
              p4 = new Panel();
              p5 = new Panel();
              p6 = new Panel();
              p7 = new Panel();
              p8 = new Panel();
              p9 = new Panel();
              p10 = new Panel();
              p11 = new Panel();
              p12 = new Panel();
              p13 = new Panel();
              p14 = new Panel();
              p15 = new Panel();
              p0 = new Panel();
              p2.setFont(f1);
              p1.setForeground(Color.blue);
              p4.setForeground(Color.blue);
              p1.setFont(f);
              p4.setFont(f);
              p1.setLayout(new FlowLayout());
              p2.setLayout(new BorderLayout());
              p3.setLayout(new FlowLayout());
         p0.setLayout(new GridLayout(2,1));
         p5.setLayout(new FlowLayout());
              p6.setLayout(new FlowLayout());
              p7.setLayout(new FlowLayout());
              p8.setLayout(new FlowLayout());
              p9.setLayout(new FlowLayout());
              p10.setLayout(new FlowLayout());
              p11.setLayout(new FlowLayout());
              p12.setLayout(new GridLayout(1,4));
              p13.setLayout(new FlowLayout());
              p4.setLayout(new FlowLayout());
              Review= new Label("REVIEW CART");
              Item = new Label("Items");
              Subtotal= new Label("Sub-Total");
              Shipping = new Label("Shipping");
              Amount = new Label("Amount");
              Rate = new Label("Rate");
              Quantity = new Label("Quantity");
              Total = new Label("Total Amount");
              home = new Button("Home");
              order = new Button("Purchase Order");
              recal = new Button("Re-Calculate");
              home.addActionListener(this);
              order.addActionListener(this);
              recal.addActionListener(this);
              Str = "Thank You for the Order\n"+
    "5% Sales Tax will be added to all MA Orders\n"+
    "Freight is based on Shipments within India only";
         text3 = new TextArea(Str,3,50);
              text3.setEditable(false);
              add(text3);
              add(p1,"North");
              add(p2 ,"Center");
              add(p3,"South");
              p1.add(text3);
              p3.add(recal);
              p3.add(home);
              p3.add(order);
              p4.add(Review);
              p5.add(Item);
              p6.add(Quantity);
              p7.add(Rate);
              p8.add(Amount);
              p9.add(Total);
              p10.add(Shipping);
              p11.add(Subtotal);
              p12.add(p5);
              p12.add(p6);
              p12.add(p7);
              p12.add(p8);
              p0.add(p4);
              p0.add(p12);
              p2.add(p0,"North");
    int start = 17;
    int iCount = 0,i,j=0;
    float Sbtot = 0.0f;
              for (i=0;i<3;i++)
                   if (Cart.s2.it_qty[i] != 0)
                        iCount++;
                        pan[start] = new Panel();
                        pan[start+1] = new Panel();
                        pan[start+2] = new Panel();
                        pan[start+3] = new Panel();
                        pan[start+4] = new Panel();
                        pan[start].setLayout(new GridLayout(1,4));
                        pan[start+1].setLayout(new FlowLayout());
                        pan[start+2].setLayout(new FlowLayout());
                        pan[start+3].setLayout(new FlowLayout());
                        pan[start+4].setLayout(new FlowLayout());
                        pl5.add(pan[start]);
                        pan[start].add(pan[start+1]);
                        pan[start].add(pan[start+2]);
                        pan[start].add(pan[start+3]);
                        pan[start].add(pan[start+4]);
                        pan[start+1].add(new Label(Cart.s2.it_code[i]));
    pan[start+2].add(new Label(Cart.s2.it_price[i]));     
                        c[j] = new TextField(5);
                   pan[start+3].add(c[j]);
                        c[j].setText(String.valueOf(Cart.s2.it_qty[i]));
                        float tot = (Cart.s2.it_qty[i]*(Float.parseFloat(Cart.s2.it_price[i])));
                        Sbtot = Sbtot + tot;
                        pan[start+4].add(new Label(String.valueOf(tot)));
                        start = start + 5;
                        j=j+1;
         }     //ends Reviewcart constructor
         public void actionPerformed (ActionEvent ae1)
         String str=ae1.getActionCommand();     
         if (ae1.getActionCommand().equalsIgnoreCase("Home"))
                        try
                             s1.setVisible(true);
                             s1.show();
                             s6.setVisible(false);s2.setVisible(false);s5.setVisible(false);
                        catch(Exception e)
                             System.out.println(e);
         if (ae1.getActionCommand().equalsIgnoreCase("Purchase Order"))
                        try
                        {     s5 = new Purchase();
                             s5.setVisible(true);
                             s5.show();
                             s6.setVisible(false);
                        catch(Exception e)
                             System.out.println(e);
         if (ae1.getActionCommand().equalsIgnoreCase("Re-Calculate"))
              int i,j=0;
              for (i=0;i<3;i++)
                   if (Cart.s2.it_qty[i] != 0)
                   Cart.s2.it_qty[i]=Integer.parseInt(c[j].getText());     
                   j=j+1;
              hide();
    }     //ends reviewCart class
    }     //ends Cart class

    Naveen,
    If you truely want someone to work with your code then you need to follow a few points of curtesy (I would say this thread is fairly dead).
    1.) When you post know that you need to use code tags to get the code to show indents, which will help anyone that may be willing to look at your code.
    2.) CAPITLAIZATIONS IN A TEXT MESSAGE IS CONSIDERED YELLING AT THE AUDIENCE.
    3.) post what you have done to correct the problem and what symptoms you see. Specific errors and where you believe you are having problems.
    4.) know this--if you cannot get it done, and are not seamingly willing to put any more effort into getting the problem corrected than putting it out on the web in a public forum and saying: "Here it is, fix it for me." Don't expect us to care if you fail your class or not. Many of us have already been through the classes and have had to do it ourselves or fail, so we buckled down and spent many sleep deprived years earning our degrees rather than asking others to do our work for us.
    If you want help, post in a new thread and follow some curtesy and formatting.

  • Doesn't Redhat 8.0 come with Java

    I just installed RH 8.0, to test out and see if it would be a good programming environment for me. But I thought, RH 8.0 came with the Java compiler and interpreter, along with other stuff. In fact during installation I remember checking all the packages that I wanted, and I remember checking for the java compiler and interpreter. Now I looked at my path in my .bashrc (?) and it doesn't specify any java directory. So now I am really confused. If I wanted to program in java in RH, do I have to download the JDK? Or can I just find the java files somewhere hidden in my system?

    Your compiler should probably be at /bin/javac. If you don't find it there do this:
    find / -name javac
    If you get a bunch of shit try this
    find / -name javac 2> /dev/null
    If you don't get a good directory to the compiler from those, you don't have the developement environment installed.
    Last piece of advice, buy a good UNIX or LINUX book. You're not going to get far without a good library. You can ask questions here (in this thread), but this supposed to be a Java forum after all (I don't mind terribly, I know more about Linux than Java anyway).
    Another great idea is to do searches on the net for your problems. A great resource is www.redhat.com, but be careful of versioning, redhat has the potential to be the M$ if they don't stop changing everything in every version. There is also plenty of Linux resources out there, but you have to be careful with that too, they tend to be proprietary depending on who knows what about what.
    Funny that a GNU OS could get proprietary. That's what happens when folks realize you can make money off something.

  • Setting up a test server

    I am totally new to dreamweaver i have always used golive and
    with the new upgrade ended up with dreamweaver cs3
    and i need to setup a test server to use xml with my site and
    i am totally not getting it. i set up a test server it passed the
    settings test connected to it but when i try to get schema from the
    spry xlm data set i keep getting a failed to get schema from the
    dynamic feed ( test.xml) please make sure the Testing server is
    configured in the site definition,
    i have a dedicated server that i used to work directly off of
    but i am just not getting how to or why i need to setup a testing
    server just to program something correctly.
    any help would be great.
    thanks

    It is worth trying with Linux as well because a) you are more likely to be deploying Java systems on a unix based system and b) it is very useful for anyone serious about using computers to know how to use a unix shell.
    The problem is that you are then learning to use the OS as well as picking up the servlet and jsp deployment skills. It is feasible though- I learned this way, but it can be frustrating at times. The other problem is that once you start getting anywhere with it you won't want to go back to windows again ever.
    For development you may want to use Tomcat standalone rather than with Apache because you will not need the load balancing side so much and it does save on trying to configure mod_jk.
    If you do go down this path I recommend the O'Reilly "Running Linux" book as a good introduction to the operating system. There is loads of stuff available online as well so it is very well supported.

  • About handbook 3 and installation (if wrong topic let me know)

    hi. i bought the arch linux handbook 3 and i read about /arch/setup at page 27. isnt it removed? well at the latest dualboot iso i couldnt see that script and i installed manualy from guides but i just wanted to ask.
    Last edited by manolos (2012-09-22 14:31:26)

    Trilby wrote:
    Aparrently some of these books are sold and a good portion of the profits go to supporting arch development - so in that sense they are a nice item in return for your donation.  But the usefulness of a printed arch linux book will generally expire before it is finished printing.
    To your direct question: yes it has been removed.
    The one printed book like this I've seen was just many of the wiki pages formatted nicely, printed, and bound.  If you want up to date information, use the wiki.
    i remember my first install on my netbook with 2009-686.iso!! its a bit crazy how fast Arch changed things on installation. the book came out a couple of months ago and i was thinkin that they will stay with that on the new iso. thanks for your answer, i always read wiki too!

  • Oracle8i Installation

    Can you please send me what can be the possible problem.
    I have received a Oracle8i on Linux from Oracle 8i Starter Kit for Linux Book. I have done all the Pre - Installation Steps necessary with receiving any error.But when I am mounting the CD and issue this command ./runInstaller it is showing JRE invoked and it is halting, but the Welcome Screen is not appearing.Please tell me what can be the possible error

    Typical reason is that your currrent JRE launching OUI is not the correct
    you must have JRE from blackdown.com or sun.com (there is also a third , but i have not the ref here)

  • Absolute newbie question

    Folks,
    I'm talking a java class in my "spare time" and just getting started this week.
    I'm also very new to linux so it makes things tricky for me figuring out where my problems are.
    I'm copying code out of Deitel just to try to get something to compile...
    one class is as follows:
    // Fig. 3.11: GradeBookTest.java
    // GradeBook constructor use to specify the course name at the
    // time each GradeBook object is created.
    public class GradeBookTest
         // main method begins program execution
         public static void main( String args[] )
              // create GradeBook object
              GradeBook gradeBook1 = new GradeBook(
                   "CS101 Introduction to Java Programming" );
              GradeBook gradeBook2 = new GradeBook(
                   "CS102 Data Structures in Java" );
              // display initial value of courseName for each GradeBook
              System.out.printf( "gradeBook1 course name is: %s\n",
                   gradeBook1.getCourseName() );
              System.out.printf( "gradeBook2 course name is: %s\n",
                   gradeBook2.getCourseName() );
         } // end main
    } //end class GradeBookTest
    This code, and the GradeBook class it is supposed to test, both compile fine, but when I go to run it I get an error:
    Exception in thread "main" java.lang.NoSuchMethodError: method java.io.PrintStream.printf with signature (Ljava.lang.String;[Ljava.lang.Object;)Ljava.io.PrintStream; was not found.
       at GradeBookTest.main(java.lang.String[]) (Unknown Source)
    at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
    This seems like a linking type of problem to me, but I'm not really comfortable enough with java or linux to figure out what my problem is.
    Do I need to set up some type of config file so java knows where to find the printf method or something?
    Thanks a lot in advance if you have an idea
    Ben

    it looks like what is in my /bin folder is a link to an executable. i'll dig through my linux book, but do you know offhand how i would go about updating that to point to the right version?
    thanks again, or for the first time since i forgot to say it before!
    Ben

  • Solaris 10 - where to begin ?

    Hi
    I'm new to unix and solaris 10.
    Which books or websites (tutorials) can you recommend
    to begin from ?

    If you have a decent library go and check out Unix in a Nutshell. Very simple and fast read to get you started on unix. After that I would suggest Sobell's practical guide to solaris. There may be sol 10 specific books out there now but really any unix/linux book will work. Lastly, when you run into solaris specific questions (you will know when you have one) use the docs.sun.com and google.

  • Certification advise, pls

    Hi,
    Hope someone can advise me, i am looking to start studying in Oracle 10g OCA. But like the title suggests am new to oracle and sql. I have spent many years working as a wintel administrator. But would like to progress into DBA.
    As alot of you on this site are experience in the world of oracle. Where should i start ? is it worth me learning Linux/Unix before i start learning oracle 10g ?.
    Also is there a list of authorised partners i can take up my training.
    Thank you for your help. Any other advise would be very helpful.
    G

    With Oracle I initially think people should start by learning a little SQL. I usually refer complete newbies to [http://www.w3schools.com] who have a few free online tutorials (and are certification safe).
    You dont need to learn linux/unix for Oracle. Oracle runs perfectly well on Windows; and management of Oracle seems to be getting less and less OS dependent in many ways. And if you get a Oracle job it will probably be because the're looking for an experienced Wintel Administrator who knows something about Oracle. However perhaps you're feeling you need to look at linux too. If you do you may find he vi editor your main stumbing block ... though you can look at other editors as well. If your interested on a couple of books on linux then Linux Recipes for Oracle DBA's ISBN-13: 978-1430215752' okay if you can pick it up cheap enoughly (if you cant then dont) and LPIC-1: Linux Professional Institute Certification Study Guide: (Exams 101 and 102) 2nd edition - ISBN-13: 978-0470404836+ may be worth a consideration. But ther's plenty of other linux books that may suit better. I think the Ubuntu Distributions great fun BUT its not supported for Oracle and getting an Oracle Database to run on it can be difficult. For more serious stuff use Oracle Enterprise Linux or OpenSUSE. And consider running linux on a virtual machine on your server - eg sun virtualbox.
    Back to Oracle. There's a great lightweight edition of Oracle called Oracle XE but its administration is fairly unqie and nonstandard so while great for developers and learnign SQL its not so good for Administrators.
    The 2-day DBA training is worth a look here:
    [http://www.oracle.com/technology/obe/2day_dba/index.html] or [http://www.oracle.com/pls/db112/homepage] or [http://www.oracle.com/pls/db102/homepage]
    In terms of training Oracle are generally the best, so be sure to look at their offerings: [http://www.oracle.com/education]
    All things certification are accessable from here: [http://www.oracle.com/education/certification]
    Also be aware of the WDP program. This can provide training for some, though there have been reports of issues with its quality [http://workforce.oracle.com].
    Be aware that if you progress to OCP you must have attended an authorized training course from an authorized provider.
    Pleas also read forum sticky announcements posts at the top of the forum and if going for certificaiton [http://blogs.oracle.com/certification/2009/05/the_route_you_choose.html]
    rgds -bigdelboy.As always, bigdelboy came with detailed explanations and useful informations :)

  • Profile problems

    Question 1:
    Before, I logged into terminal
    Typed: mate profile
    and a profile document with some comments/paths opened in textmate.
    Now I log into terminal
    Type: open .profile
    and it returns
    The file /Users/francobarbeite/.profile does not exist.
    Type: mate profile
    and a blank document opens in textmate.
    Did I actually delete my profile by mistake? And if that's a problem, what is/ is there a fix?
    Question #2
    Log into terminal
    type: ls /etc
    Get a list of files, one is named "profile"
    type: mate profile
    this opens in textmate:
    # System-wide .profile for sh(1)
    if [ -x /usr/libexec/path_helper ]; then
    eval `/usr/libexec/path_helper -s`
    fi
    if [ "${BASH-no}" != "no" ]; then
    [ -r /etc/bashrc ] && . /etc/bashrc
    fi
    I try to add this line of text to the profile:
    [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
    and it says I don't have permissions.
    I'm trying to install Ruby version manager.
    Am I in the right profile file?
    And if so, how can I add that line of code to make RVM a function?
    Thanks,
    F

    1: Where can I find some good documentation about what profiles are? Is there a good book or online tutorial out there?
    Profiles are just shell scripts. You can learn about shell scripts in any number of Unix books on shell scripting. The default Mac OS X shell is 'bash', so you would look in the Unix/Linux section of your bookstore, and you should find books on either 'bash' or shell scripting in general. The number you find is a function of how well stocked your local bookstore is.
    2: What exactly is the purpose or function of the /etc folder?
    In a traditional Unix/Linux system it contains system wide configuration information of all sorts. The all the files in /etc and you now have an expensive paper weight (been there, done that ).
    With respect to /etc/profile, in a multi-user system, it would establish the IT departments idea of what environment variables everyone should have. In a Mac OS X environment, it is generally best to leave it alone, as typically there is only one user, and the home folder .profile or .bash_profile is sufficient, and safer for the typical user to modify (where typical user does not have a day job as a system admin).
    3: Will creating a new .profile or .bash_profile in the home folder and modifying that, get the same result functionally as modifying the /etc profile? (The purpose of modifying the profile is have OSX see RVM as a function.)
    When you start Terminal it will create an a suitable command line environment. As part of that, the Terminal will start a 'bash' shell which will process the contents of the /etc/profile, then process the contents of a home folder .profile or .bash_profile (only one will be processed, with .bash_profile taking precedence over .profile
    You will get a command prompt after all initialization files have finished.
    Again, if you desire more knowledge about using a Terminal, you can learn a lot from various Unix/Linux books (just keep in mind that every Unix/Linux distribution preforms its admin tasks differently, so you have to take some information with a grain of salt). There are a few books which specialize on Mac OS X command line stuff. For example:
    Take Control of the Mac Command Line with Terminal
    <http://www.takecontrolbooks.com/command-line>
    And a search at Amazon.com for "Mac Command Line" will turn up several books. You might even one one of these books in your local bookstore in the Mac section (even if it is only a shelf or 2 is size ).
    And you can always Google "Mac OS X Terminal" or "Mac OS X Command Line", and will most likely find something.

Maybe you are looking for

  • How to set Icon on MenuItem

    How to set icon on MenuItem, but not in JMenuItem?

  • Photoshop cs4 questions for snow leopard

    Hello, I am having a couple of issues that I could use assistance with: 1. I understand how to use a scanner from system preferences, but am trying to scan directly from Photoshop CS4. Is there a way to do this? 2. I created numerous files on my PC i

  • IPhone Internet over WiFi problem

    Each time I try to connect to my WiFi network in my office through iPhone 4 (iOS 5.1) the WiFi signal disappears and appears again. I use proxy configuration to surf the web, and I can not enter the proxies in my WiFi tab. Please help

  • Decommission a DAG member

    I have a three member DAG group with Exchange 2010.  It's a single site with just three databases so I don't need three members.  I want to cleanly decommission the third member.  Most of the docs I've seen cover removing a failed member.  This one i

  • Why is the libraries panel in photoshop gone?

    The libraries panel is no longer visible for me to open when i click "Window" Was it moved to somewhere else or am i missing something? Photoshop for Beginners