Create iso images

To make an ISO from your CD/DVD, place the media in your drive but do not mount it. If it automounts, unmount it.
dd if=/dev/dvd of=dvd.iso # for dvd
dd if=/dev/cdrom of=cd.iso # for cdrom
dd if=/dev/scd0 of=cd.iso # if cdrom is scsi
To make an ISO from files on your hard drive, create a directory which holds the files you want. Then use the mkisofs command.
mkisofs -o /tmp/cd.iso /tmp/directory/

SSH Fedora start

  1. Create the new user for SSH
  2. Start SSH with: # /etc/init.d/sshd start
  3. Add sshd to the default runlevel so it starts up on boot:

    # chkconfig sshd on
To install g++
yum install gcc-c++
Install QT3
yum install qt qt-devel

yum install qt qt3-devel

    Compile linux kernel under Fedora

    Fedora 13: fix for the ncurses library

    How to compile a Vanilla kernel on Fedora, the easy/lazy way.

    [Log in to get rid of this advertisement]
    OK, I thought I would give some instructions on how I compile my kernels. My long-time windows user parts trader recently asked me how to compile a kernel on Fedora. He was confused with all the tutorials requiring you to build an RPM, so I showed him how I do it, the standard/easy/lazy way.
    Before I start, here are a couple things I assume. I assume you are a Fedora user and that you are NOT in text mode, but in GNOME. I also assume you realize that this can take up to SIX HOURS on an old Pentium 3 1.3Ghz. Remember that some proprietary drivers as well as some free ones are not included in the kernel, so make sure you don't delete your existing one.

    First get the dependencies you need.
    su -c "yum -y install gcc ncurses-devel"

    Next get the kernel source. I use 2.6.33.3 as an example.
    To download it, click here.

    Extract it by right-clicking on the file and then choosing extract here. This will take about five minutes.

    Now open a terminal, become root, and cd to the directory linux-2.6.33.3. It is important to cd here and not to the kernel directory inside of there, even though make has an extra variable that specifies there.

    Now we need to configure the kernel before we build it with make O=kernel menuconfig. It will take a couple minutes to set up, then you will be presented with a cheap psuedo-gui in your terminal. Just select exit and yes to save your config. You usually don't need to change anything here.

    Ready to compile and install? Remember this can take up to six hours, and your machine may become VERY slow. It is not recommended that you attempt to use your machine with this in progress. OK then. As root, in the same directory, type:

    make O=kernel && make O=kernel modules_install install

    This will compile the kernel and install the kernel and it's modules.

    Done? Now change the kernel and initrd in your bootloader to match the new kernel. If you ever want to reuse the same source code folder, use make mrproper to clean things up and build it again.

    Hope this helps.
    Last edited by bendib; 05-01-2010 at 06:30 AM..

    set up apache php mysql on linux

    Very useful, i found here: http://www.flmnh.ufl.edu/linux/install_apache.htm
    This will install the basic components for a dynmaic, database-driven web site. We use yum to handle dependencies and gather all of the required packages.


    1. Install Apache (httpd), PHP, MySQL (server and client), and the component that allows php to talk to mysql.
    yum -y install httpd php mysql mysql-server php-mysql 
    

    2. Configure the new services to start automatically
    /sbin/chkconfig httpd on
      /sbin/chkconfig --add mysqld         [this is not required with FC4 and above]
      /sbin/chkconfig mysqld on
    
    
      /sbin/service httpd start
      /sbin/service mysqld start
    

    3. IMPORTANT! Set up the mysql database root password. Without a password, ANY user on the box can login to mysql as database root. The mysql root account is a separate password from the machine root account.

    mysqladmin -u root password 'new-password'           [quotes are required]
    

    4. Make additional security-related changes to mysql.
    mysql -u root -p
    
     mysql> DROP DATABASE test;                            [removes the test database]
     mysql> DELETE FROM mysql.user WHERE user = '';        [Removes anonymous access]
     mysql> FLUSH PRIVILEGES;
    
    5. Following the above steps, the document root for Apache is /var/www/html/

    Create a test PHP script (such as phpinfo.php) and place it in the document root. A useful test script sample:
    <?php
        phpinfo();
     ?>
    
    6. Create a database and database user for your data. You will use this database and user name in your database connection string. The GRANT statement actually creates a new MySQL user account.
    mysql> CREATE DATABASE web_db; 
     mysql> GRANT ALL PRIVILEGES ON web_db.* TO 'web_user'@'localhost' IDENTIFIED BY 'thepassword';