Jump to content

anyweb

Admin
  • Content Count

    3,635
  • Joined

  • Last visited

  • Days Won

    83

Everything posted by anyweb

  1. If you are using Mozilla 1.2.1 (shipped as default with Red Hat 9) then go here or if you want to add the Java plugin to Mozilla 1.4 then read on... Mozilla 1.4 and later, and Mozilla Firebird, are compiled with gcc 3.2.3. A gcc 3.x compatible version of the Java plugin must be used. JRE 1.4.2 contains a compatible plugin. go here java.sun.com and download the file j2re-1_4_2_02-linux-i586-rpm.bin. Now, make the file executable as root by typing:- chmod +x j2re-1_4_2_02-linux-i586-rpm.bin then (as root) run the file by typing:- ./j2re-1_4_2_02-linux-i586-rpm.bin Please notice the 'dot slash' infront of the filename (allows you to RUN the file). Next, accept the license aggreement and it will then expand the rpm for you. Lets rpm the file now, (as root) do:- rpm -ivh j2re-1_4_2_02-linux-i586-rpm logout as root and login as a normal user (eg: anyweb), create a plugins directory in your mozilla directory:- eg: mkdir /home/anyweb/.mozilla/plugins eg: mkdir /home/anyweb/.phoenix/plugins (for firebird) and now change directory to the plugins directory:- eg: cd /home/anyweb/.mozilla/plugins eg: cd /home/anyweb/.phoenix/plugins (for firebird) Assuming you downloaded the file above (current) then issue the following command as normal user while in the plugins directory:- ln -sf /usr/java/j2re1.4.2_02/plugin/i386/ns610-gcc32/libjavaplugin_oji.so note the f in the ln -sf statement, that forces any previous symlink out the window, and it works !. (thanks Ritter) Thats it, close mozilla and then start mozilla again, if all went well, click on help/plugins and you should see several Sun Java references ! note: the above works fine for ONE user, if you want ALL users to access the JAVA plugins then do this instead create a symlink (after installing the rpm) to /usr/lib/mozilla/plugins by doing the following as root ln -sf /usr/java/j2re1.4.2_03/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/mozilla/plugins/ now all USERS will have access to the JAVA plugin in mozilla cheers !
  2. How to change the default login to Xwindows to console or vice versa. do as follows: open a console and login as su - then, as root type the following:- cp /etc/inittab /etc/inittab.org That has just copied (cp) a text file called 'inittab' to a new text file called 'inittab.org'. The reason for that is incase you accidently screw up the text editing that comes next ;-) once done, type the following:- vi /etc/inittab that opens a pretty cool (or anal depending on how you think) console based text editor, and opens a text file. Use your up and down (and left and right) cursor keys to navigate the flashing cursor around this file. Scroll down to the line that reads: id:5:initdefault: ^^ yes that line there ^^ and change the number five (5) to a number three (3) so that it now reads id:3:initdefault: ^^ now it's a 3 ^^ If you find you cannot type the number 3, try pressing the INSERT key on your keyboard. (hint: pressing INSERT will toggle between INSERT and REPLACE mode, also, pressing ESC will CANCEL out of those modes and allow you to enter commands). Once you have managed to get the line looking like this id:3:initdefault: press ESC to get control back, and press :wq Thats right, just a colon with a w (to write) and a q (to quit) ok, you are done ! now let's exit from X windows, easiest way is to reboot ! so go ahead and reboot, once you have rebooted you'll be presented with a console login prompt... (to get Xwindows to load automatically at boot time change the 3 in /etc/inittab back to 5).
  3. First things first i'd suggest you PRINT this document if you have access to a printer. By default, and out of the box with Red Hat 9 you will have no OpenGL acceleration with your Nvidia card. It will not be optimised for 3D games, or opengl applications. Installing this driver will hopefully fix that and allow you to play Quake 3 and more ;-) To get this support back, you'll need to get nvidias 3d accelerated linux driver and install it as follows, so click on the nvidia link below (for Intel Pentium based systems) or, go to their website directly to download your computers version. nvidia Download that rpm somewhere handy (or check here and get the right driver for your machine) and do as follows:- login as root in a console by typing:- su - Then do sh NVIDIA-Linux-x86-1.0-4496-pkg2.run Now i'm willing to bet that you will get the following error:- NVIDIA Accelerated Graphics Driver for Linux-x86 (1.0-4496) ERROR: You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at www.nvidia.com. OK NVIDIA Software Installer for Unix/Linux www.nvidia.com Dont worry about that, i'm just proving a point here, so lets press 'ok' and fix that problem. Pressing ok will pop up this MESSAGE: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com. One more 'ok' exits from the routine. So.... how do i fix the 'log out of X windows' problem ? do as follows: open a console and login as su - then, as root type the following:- cp /etc/inittab /etc/inittab.org That has just copied (cp) a text file called 'inittab' to a new text file called 'inittab.org'. The reason for that is incase you accidently screw up the text editing that comes next ;-) once done, type the following:- vi /etc/inittab that opens a pretty cool (or anal depending on how you think) console based text editor, and opens a text file. Use your up and down (and left and right) cursor keys to navigate the flashing cursor around this file. Scroll down to the line that reads: id:5:initdefault: ^^ yes that line there ^^ and change the number five (5) to a number three (3) so that it now reads id:3:initdefault: ^^ now it's a 3 ^^ If you find you cannot type the number 3, try pressing the INSERT key on your keyboard. (hint: pressing INSERT will toggle between INSERT and REPLACE mode, also, pressing ESC will CANCEL out of those modes and allow you to enter commands). Once you have managed to get the line looking like this id:3:initdefault: press ESC to get control back, and press :wq Thats right, just a colon with a w (to write) and a q (to quit) ok, you are done ! now let's exit from X windows, you could exit from X by pressing CTRL + ALT + BACKSPACE together or the easiest way is to reboot ! so go ahead and reboot, once you have rebooted you'll be presented with a console login prompt... login as root and type this sh NVIDIA-Linux-x86-1.0-4496-pkg1.run Click ACCEPT to accept the license and then click OK to the 'compiling the kernel' message, and watch as it works it's way... Once done you are nearly there. Let's BACKUP a file thats fairly critical to our X windows operation, by logging in as root and typing: cp /etc/X11/XF86Config /etc/X11/XF86Config.org Now, you have to edit the original file, your XF86config file. Login again as root (if you are not already) and type: vi /etc/X11/XF86Config find the line with Driver "nv" (or Driver "vesa") and REPLACE WITH Driver "nvidia" now (taken directly from the Nvidia README) In the Module section, make sure you have: Load "glx" You should also remove the following lines: Load "dri" Load "GLcore" (if they exist). Thats it, save your settings with :wq ok, .... finally, lets test ! logout as root and login as normal user type startx you'll KNOW you have succeeded becuase the big NVIDIA WHITE login splash screen is there (to get Xwindows to load automatically at boot time change the 3 in /etc/inittab back to 5). well done !!
  4. To take a screenshot of your beautiful desktop in Red Hat you could either try pressing the 'Prt Scr' key on the keyboard.... or if that fails (and it sometimes does) then try this. Open a console and type the following:- import -window root filename.ext Where filename.ext is the filename you want to give to your work of art. You can then check the directory you are in, and there will be the screenshot waiting for you. If you want to add a delay BEFORE the shot is taken (so you can move stuff out of the way) then add a sleep command as follows:- sleep 3s; import -window root screenshot.png The above waits 3 seconds before taking the screenshot and saves it in PNG format. That's it, have fun
  5. First things first, why would you want to install these fonts ? Well, the default fonts provided with Red Hat just don't look as 'smooth' and 'clean' as those standard Microsoft TrueType Fonts (especially if you ZOOM into them). This is my own humble opinion of course, but users of Open Office who like to print documents, or just read them clearly on screen will know what I mean. Ok, I assume that you have access to a Windows machine, if so, copy the TTF fonts from the /fonts directory on your Windows Machine (usually c:\windows\fonts) to a cd or local or network based directory that you can access. Once you re finished copying the TTF fonts from the Windows machine, we'll start adding them to our Red Hat Linux box. First lets create a directory in our 'home' user path, so that we can access the fonts. Login as normal user (you probably already are, if you are reading this - don't surf as root ;-)) and open a console. type this:- mkdir ~/.fonts This instruction might look a bit odd so i'll explain it. mkdir creates a new folder called 'fonts' ~/ points the directory location to your home user path (for example /home/anyweb) '.' (dot without the ' marks) makes the directory hidden from view. Let's copy those fonts now:- [anyweb@c-76aa70d5 anyweb]$ cp /home/anyweb/download/ttf/Microsoft\ TTF\ Fonts/*.ttf /home/anyweb/.fonts [anyweb@c-76aa70d5 anyweb]$ and lets check that they are indeed copied cd ~/.fonts ls [anyweb@c-76aa70d5 .fonts]$ ls arialbd.ttf courbd.ttf l_10646.ttf tahomabd.ttf trebuc.ttf arialbi.ttf courbi.ttf micross.ttf tahoma.ttf verdanab.ttf ariali.ttf couri.ttf palabi.ttf timesbd.ttf verdanai.ttf arial.ttf georgiai.ttf palab.ttf timesi.ttf verdana.ttf ariblk.ttf georgia.ttf palai.ttf times.ttf verdanaz.ttf comicbd.ttf georgiaz.ttf pala.ttf trebucbd.ttf webdings.ttf comic.ttf impact.ttf symbol.ttf trebucbi.ttf wingding.ttf Yup we have them now, and in the right place, ok lets add them to Open Office. login as root by typing su - in a console and then type oopadmin click on the Fonts button click Add click on the ... button and browse to the folder where the fonts are stored (in my case it's /home/anyweb/.fonts) click Select and you'll be presented with lots of lovely TTF fonts. Finally, click Select All and then click OK. If you are lucky it should say '32 new fonts added'. Test it out by firing up Open Office and selecting your new TTF fonts
  6. how do i do that mate ? do i need a paypal account or something ? cheers anyweb
  7. The version of Mozilla shipped in Red Hat 9 is Mozilla 1.2.1. Since then, some newer versions have arrived, and if you'd like to install the latest version (at the time of writing this it's 1.5 which is alpha, but we'll use the 'stable' version). To start with, get on over to http://www.mozilla.org and download the latest rpm's, or actually, the latest fully packaged installer, for Version 1.4 you need this:- mozilla 1.4.tar.gz Once you have downloaded it, you'll need to decompress the file. Open a console and type this:- tar zxvf moz*.tar.gz -z processes the gunzip portion of the file, -x extracts, -v is for verbose (so we see messages) and -f is for local file (or something like that ;-)) heres my output:- [anyweb@c-72aa70d5 mozilla]$ tar -zxvf mozilla-i686-pc-linux-gnu-1.4-sea.tar.gz mozilla-installer/ mozilla-installer/xpi/ mozilla-installer/xpi/xpcom.xpi mozilla-installer/xpi/browser.xpi mozilla-installer/xpi/psm.xpi mozilla-installer/xpi/mail.xpi mozilla-installer/xpi/chatzilla.xpi mozilla-installer/xpi/talkback.xpi mozilla-installer/xpi/deflenus.xpi mozilla-installer/xpi/langenus.xpi mozilla-installer/xpi/regus.xpi mozilla-installer/xpi/venkman.xpi mozilla-installer/xpi/inspector.xpi mozilla-installer/mozilla-installer mozilla-installer/mozilla-installer-bin mozilla-installer/installer.ini mozilla-installer/README mozilla-installer/MPL-1.1.txt mozilla-installer/config.ini [anyweb@c-72aa70d5 mozilla]$ Now that we have it all unpackaged and decompressed, lets install it. Login as root by typing su - Now change directory (cd) to the path you decompressed the tar file to, in my case it was /home/anyweb/rpms/mozilla [root@c-72aa70d5 root]# cd /home/anyweb/rpms/mozilla/ The installer is in the /mozilla-installer folder so lets cd to that and get going [root@c-72aa70d5 mozilla]# cd mozilla-installer/ To 'run' the installer we use a ./ command to tell linux to 'run' a file. [root@c-72aa70d5 mozilla-installer]# ./mozilla-installer click next and choose your type of install, i chose complete (2nd option). Thats it!. Once done lets test it (it should auto-start, if not lets start it) type cd /usr/local/mozilla (thats where it wants to install by default) then type ./mozilla that should bring it up, click on help/about and it should say Mozilla version 1.4
  8. thanks mate ! see you in #redhat on EFNET cheers anyweb
  9. my original wine guide (with screenshots) is here http://anyweb.kicks-ass.net/computers/os/l...wine/index.html ---------------------------------------------------------------------- To install Wine for Red Hat 9 or Fedora Core Release 1/2 choose a link below corresponding to your CPU/Processor type and download the appropriate rpm from SourceForge:- Pentium 4 Other Pentiums Athlon Please note that a full list of available WINE downloads and up to date rpms is located right here http://prdownloads.sourceforge.net/wine ok to make this easier for y'all (lazy and uninformed ;-) ) check this list below (it's reasonably current) and match your DISTRO VERSION with the corresponding RPM. in other words, if you are using FEDORA then do not try to install an RPM for SUSE, it won't work. SUSE ------- SUSE 9.1 professional http://prdownloads.sourceforge.net/wine/wi...inux91.i586.rpm SUSE 9.0 http://prdownloads.sourceforge.net/wine/wi...inux90.i586.rpm SUSE 8.2 http://prdownloads.sourceforge.net/wine/wi...inux82.i586.rpm SUSE 8.1 http://prdownloads.sourceforge.net/wine/wi...inux81.i586.rpm REDHAT ----------- REDHAT ENTREPRISE 3 http://prdownloads.sourceforge.net/wine/wi...winehq.i386.rpm REDHAT 9 http://prdownloads.sourceforge.net/wine/wi...winehq.i386.rpm REDHAT 8 http://prdownloads.sourceforge.net/wine/wi...winehq.i386.rpm REDHAT 7.3 http://prdownloads.sourceforge.net/wine/wi...winehq.i386.rpm FEDORA CORE RELEASE x ------------------------------------ FEDORA CORE RELEASE 3 http://prdownloads.sourceforge.net/wine/wi...winehq.i386.rpm FEDORA CORE RELEASE 2 http://prdownloads.sourceforge.net/wine/wi...winehq.i386.rpm FEDORA CORE RELEASE 1 http://prdownloads.sourceforge.net/wine/wi...winehq.i386.rpm Once you have downloaded your rpm, open a console and login as root change to the directory that you downloaded the rpm file to, and then do:- rpm -ivh wine* The output should look something like this:- [root@c-52aa70d5 rpms]# rpm -ivh wine* Preparing... ########################################### [100%] 1:wine ########################################### [100%] [root@c-52aa70d5 rpms]# Provided you didn't get any dependancy errors, you have now got wine installed so let's test it. Go and download mIRC (that's a Windows Program). When you have downloaded it, LOGOUT as root and LOGIN as a normal user (for example anyweb or whoever you are) and go to (cd) the directory you downloaded the mIRC executable to, and type as follows:- wine mirc603.exe This command tells wine to 'run' a windows 'program'. After a lot (an awful lot :-)) of scrolling in the console (and it can take a few minutes) you could be lucky like me and see the mIRC installtion setup screen. Continue with the install by clicking on next... and next and so on and please ignore any non-fatal errors relating to 'desktop icons'. Once done, you should now have mIRC working (or whatever windows application you were testing). In this example we assume that we have installed it successfully so we are going to search for the application (mirc.exe). We do know that mIRC ends up as an executable called 'mirc.exe' however we cannot search for it yet, we need to update the file system database. As root, open a console and type updatedb It will take some minutes. Once done, type locate mirc.exe This is the result i got:- [anyweb@c-52aa70d5]$ locate mirc.exe /home/anyweb/.wine/c/Program Files/mIRC/mirc.exe [anyweb@c-52aa70d5]$ Now that we know where mirc.exe is, we can cd (change directory) to the mIRC folder now and run mIRC by typing:- cd /home/anyweb/.wine/c/Program Files/mIRC/ and then wine mirc.exe
  10. How to enable NTFS read support in Red Hat Linux 8/9/Fedora Core Release 1/2/3. NTFS partitions can be read and even written to in Linux, but by default in Red Hat, it's not included for legal reasons. I do not recommend write support unless you don't care about your data. Windows NT/2000/XP/2k3 Server all use NTFS so using this howto will allow you to mount shares on a dual boot system. To find out what your kernel version is open a console and login as su - then type uname -a The console should display something like this That's your kernel version. If you have a Pentium 4 then download the i686 version, if its a Pentium 3, go for I586 and so on. Once downloaded do as follows: Login as root and type rpm -ivh kernel-ntfs-version.cpu.rpm Obviously, in the example above, kernel-ntfs-version.cpu.rpm must match your downloaded rpm otherwise it will not work. Look at how it appears below when i installed the rpm. Thats it, now you have read access to NTFS partitions, now its time to mount a those partitions. Open a console and as root type fdisk -l to list the partitions on your linux/windows system. the output should look something like this:- The fdisk -l command (that's as lowercase L as in list) we did above tells us that Windows XP in this case, is on /dev/hda5. We now have enough info to start mounting it. Now you must create a directory that will hold the windows XP 'mount point'. To do that type mkdir /home/anyweb/winXP or similar. It will be read/write as root but thats sufficient for this TIP. Once you have created the directory, now is time to mount it, so as root type the following:- mount -t ntfs /dev/hda5 /home/anyweb/winXP The two important parts above are /dev/hda5 which we identified with fdisk -l and /home/anyweb/winXP which is simply a directory that we created to 'hold' the winXP mount. to let NON root users have access to your NTFS mnt, add a line similar to the following (change to suit your mount setup) to /etc/fstab /dev/hda5 /home/anyweb/winXP ntfs ro,umask=000 0 0 once done, lets 'submit' those changes to /etc/fstab mount -a cheers anyweb
  11. I assume you have some sort of dualboot already setup, i'm not going into that here, but in my examples below i have a triple boot win98/winxp/red hat 9 linux system. Open a console and as root type fdisk -l to list the partitions on your linux/windows system. the output should look something like this:- Disk /dev/hda: 40.0 GB, 40007761920 bytes 255 heads, 63 sectors/track, 4864 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 1360 10924168+ c Win95 FAT32 (LBA) /dev/hda2 1361 4863 28137847+ f Win95 Ext'd (LBA) /dev/hda5 1361 3059 13647186 7 HPFS/NTFS /dev/hda6 3060 3077 144553+ 83 Linux /dev/hda7 3078 4776 13647186 83 Linux /dev/hda8 4777 4863 698796 82 Linux swap The fdisk -l command (that's as lowercase L as in list) we did above tells us that Windows 98 in this case, is on /dev/hda1, don't worry that it refers to it as Win95 thats not important. We now have enough info to start mounting it. Now you must create a directory that will hold the windows 98 'mount point'. To do that type mkdir /home/anyweb/win98 or similar. It will be read/write as root but thats sufficient for this TIP. Once you have created the directory, now is time to mount it, so as root type the following:- mount -t vfat /dev/hda1 /home/anyweb/win98 The two important parts above are /dev/hda1 which we identified with fdisk -l and /home/anyweb/win98 which is simply a directory that we created to 'hold' the win98 mount. That's it we are all done, now as root you can read/write to that share (partition or hard disc) with ease. Use chown to change your rights so a normal user can access it if you wish.
  12. I've installed fluxbox (http://www.fluxbox.org) in Red Hat 9 and Red Hat 8.0 and for those of you who haven't tried it yet perhaps now is the time If you want to install Fluxbox in Fedora then read this instead Fluxbox is perfect for those with old video cards... and new video cards too To installl Fluxbox in Red Hat 9 (or 8.0) do this:- First go here (click on the link) http://prdownloads.sourceforge.net/fluxbox...x-0.1.14.tar.gz Once you are done, gunzip it and then untar it to some local folder. cd to the folder you have untar'd it in and do this:- ./configure then login as su and do make then make install Now you probably want to add fluxbox to the 'session' part of your login screen in Red Hat 9. To do that, login as su and do:- cd /etc/X11/gdm/Sessions cp GNOME Fluxbox vi Fluxbox Leave the first line alone and change the second line so that it now just reads exec fluxbox save by doing :w :q Logout of Gnome (or whatever) and now, at the graphical login screen click on 'sessions' you'll see Fluxbox listed there alongside Gnome/Kde etc...
  13. How to install the Java PLugin in Mozilla 1.2.1 in Red Hat 9 First of all, be aware that the version of Mozilla Web Browser that ships with Red Hat 9 is 1.2.1 (does not have the Java Plugin included) and at the time of writing this, version 1.3 is already available. If you want to stay with the default and need to install Java then read below. If you want the latest version of Mozilla then don't bother with this and get over to Mozilla's website. You may want to print this out for easy reference as you will be logging in and out. First of all, create a new (hidden) folder in your home directory by doing as follows while logged in as yourself and not su or root. In an xterminal, type the following: mkdir ~/.mozilla/plugins/ You are doing this because you will later create a link to this folder and it's not created automatically. Once done, logout of X and login again as root. You must do the next bit logged in as root to get Java to install correctly. Open the Mozilla 1.2.1 web browser and paste in this address, click yes to download and install it as root, once done, you can verify if it has installed the Java plugin by clicking on help/plugins in Mozilla. http://cgi.netscape.com/cgi-bin/pi_moreinfo.cgi?PID=10048 Now that it's installed as root, logout of X and log back in again as your normal username. Open an xterminal and type the following (this is to update the location of files on your Red Hat installation, it takes a while so please be patient). su - root updatedb Once it has finished type the following: locate libjavaplugin_oji.so One of the returned results will be the plugin itself. To find out which one it is type: ls -l $(locate libjavaplugin_oji.so) and look for the one that's owned by "root" and doesn't have a right pointing arrow -> pointing to another location. The file without the -> is the plugin path and is the one we will create a symbolic link to in our ~/.mozilla/plugins/ so that Java works as a normal user. Once you now have the path to that file, copy it in xterminal by marking the text in full and issuing a copy command (ctrl+alt+c) so that you can paste it later (ctrl+alt+v). Execute this final command: ln -s /usr/lib/mozilla-1.2.1/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so ~/.mozilla/plugins and that's it, all done, Java is now installed. Open Mozilla and click help/plugins to see it listed there :-). When I did the above commands this is exactly what I saw in my xterminal in case you are interested: [anyweb@localhost anyweb]$ mkdir .mozilla/plugins [anyweb@localhost anyweb]$ [root@localhost root]# updatedb [root@localhost root]# locate libjavaplugin_oji.so /usr/lib/mozilla-1.2.1/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so /usr/lib/mozilla-1.2.1/plugins/libjavaplugin_oji.so [root@localhost root]# ls -l $(locate libjavaplugin_oji.so) -rwxr-xr-x 1 root root 269600 Mar 15 2002 /usr/lib/mozilla-1.2.1/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so lrwxrwxrwx 1 root root 75 Mar 29 13:12 /usr/lib/mozilla-1.2.1/plugins/libjavaplugin_oji.so -> /usr/lib/mozilla-1.2.1/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so [root@localhost root]# [anyweb@localhost anyweb]$ ln -s /usr/lib/mozilla-1.2.1/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so ~/.mozilla/plugins [anyweb@localhost anyweb]$
  14. Speed up Red Hat 9's default disk access. To do this it helps if you have knowledge of vi (a console based text editor). As root issue this command in a console vi /etc/sysconfig/harddisks This will open a text file with certain settings disabled by default, we are going to enable those commands and as a result increase the speed of hard disc access in Red Hat. First, lets find the line which reads as follows #USE_DMA=1 and now delete the # so that the line now reads USE_DMA=1 Now, scroll down and find the line which reads #EIDE_32BIT=3 and delete the # so that the line now reads EIDE_32BIT=3 Next, find a line which reads #LOOKAHEAD=1 and again, delete the # so that the line now reads LOOKAHEAD=1 Thats it, you are done, now lets SAVE our changes in vi by typing :wq The : (colon) allows use to 'type' a command in vi, if you see INSERT or REPLACE instead, press ESC then try again. Think of the w and q as:- w=write q=quit Once done, time how long something takes to start like Mozilla or OpenOffice. Then reboot the computer and time again, notice the difference ? ;-)
  15. First things first, to do this i assume you have TWO working network cards in your computer, one is connected to the internet (WAN) and the other is connected to your local network (LAN), or think of it as eth0 (WAN) and eth1 (LAN). I also assume that you want eth1 to share the internet with others, however, i am not going to enable a dhcp server, so your 'clients' will have to have their ip settings entered manually. If you want to try this then read on... First off we need to know the ip address of our WAN network card (eth0 the one connected direct to the internet ;-)). So, as root type ifconfig. That should present you with an output like the following example:- In the example above i have a WAN (eth0) address which is my connection to the internet via another NAT (lol), and it has the ip address of 192.168.0.58 The LAN (eth1) IP address in this example has been set to 100.0.0.1. Ive deliberately set eth1 to 100.0.0.1 so i know its my 'sharing' NAT ip address, and it's the one to point to later. To set/change your IP settings for a Network card in Red Hat 9 type this as root:- neat or redhat-config-network Now that you have set your LAN (eth1) IP address, lets get sharing !!! As root in a console type the following two lines:- iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 192.168.0.58 >>>PRESS ENTER<<< echo 1 > /proc/sys/net/ipv4/ip_forward >>>PRESS ENTER<<< Obviously the first line which points to 192.168.0.58 MUST point to your CURRENT WAN IP address (eth0) and NOT my example here. So if your eth0 ip address= 163.211.12.44 then the line should read iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 163.211.12.44 Ok, now that is done, now its time to test it, if you have lokkit running (redhats firewall) disable it temporarily to test please. On a client pc, edit it's TCPIP properties as follows IP address=100.0.0.2 (or any value above 1 and up to 255) SubNet= 255.255.0.0 Default Gateway=100.0.0.1 (eth1) DNS server 1=192.168.0.58 (eth0) DNS Server 2=192.168.0.1 (my first NAT, which shares ips to my eth0 WAN connection, change this to your WANS DNS server ip) You will have to put the lines below in /etc/rc.d/rc.local if you want to turn it (the NAT) on every time your system boots up. iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to xxx.xxx.xxx.xxx echo 1 > /proc/sys/net/ipv4/ip_forward Obviously replace xxx.xxx.xxx.xxx with the ip of your current WAN (internet) address. Thats it, test it by pinging www.google.com. you might also want to read the following....
  16. hi guys im having a problem getting the ati radeon 9800 pro to work with Need For Speed Unleashed, the game plays fine but all the menus are distorted and i cannot read some text, ive updated the ati catalyst drivers to the latest and no joy, and ive applied the latest update to NFSU my other pc is similarly configured and has an nvidia geforce 4 ti 4600, and the same game doesnt have any problems any ideas ? cheers anyweb
  17. anyweb

    heh

    thanks dude, keep on coming, i intend to develop this place and get it busy and useful cheers anyweb
  18. anyweb

    Hello

    hi Andridy this is the off topic area, i will add more areas as i start to develop this place, thanks for coming mate cheers anyweb
×
×
  • Create New...