Help - Search - Members - Calendar
Full Version: Rh9 Basics
Linuxhelp > Support > Technical Support
Robert83
There are a few things that I would like to know regarding any linux [well actualy RH9].

1. When installing Linux, is it a good thing to install almost every package?, I mean they are just like drivers under Windows, I think that if I don't use it, it can't hurt me that I let it be on the hd, since one day I may need it. Is this a good idea? [since I'm using brand new computers with my Linux servers/clients , AMD XP 2000 256/512MB DDR-400 Gigabyte nForce2,40GB,Nvidia GF4MX440, Planet ethernet 10/100Mbit ]

2. Is there a website on a net, that only has quality rpms, since I was looking around , there are a lot of programs, but it seems to me that most of this are very beta, and not always so good.

3. Important ! , I'm using Linux Bridges in my network [WAN with 60-70 Computers, wireless, wired network] , these Bridges don't have keyboards , mouse, monitor, I monitor them trough webmin.
I would like to ask you, what software can I use in Linux to be able to connect to it, either in console mode, or some other way, so I could install rpm-s, update the computer, scan for viruses [file server]. Please help, this would make my life a lot easier.


Thank you foreward
Sincerely
Robert B.
hughesjr
[quote]1. When installing Linux, is it a good thing to install almost every package?, I mean they are just like drivers under Windows, I think that if I don't use it, it can't hurt me that I let it be on the hd, since one day I may need it. Is this a good idea? [since I'm using brand new computers with my Linux servers/clients , AMD XP 2000 256/512MB DDR-400 Gigabyte nForce2,40GB,Nvidia GF4MX440, Planet ethernet 10/100Mbit ][/quote]
If you have the hard drive space and don't start services you don't need then installing extra software is not a big deal ... except that it gives your users more things to mess with (and use that might potentially break their system), and if your box is compromised, it gives the badguy more stuff without having to load it.
---------------------------------------------------------------
[quote]2. Is there a website on a net, that only has quality rpms, since I was looking around , there are a lot of programs, but it seems to me that most of this are very beta, and not always so good.[/quote]
FreshRPMs.net, Dag Wieers' APT Repository, Rudolf (Che) Kastl's APT Repository (newrpms) and Axel Thimm's APT Repository in conjuction with the program apt provide an excellent method to obtain RH9 (and FedoraCore) programs and updates ....

Specifically for RH9, Alex Thimm's RH9 List tells you his opinion on what is stable ... see the legend at the bottom of the page.

I recommend using apt-get for all RedHat/Fedora installs ....except for RHEL (and I even recommend Dag's apt-get for RHEL for add on packages, just not for doing your updates).

Here is how I install apt-get on a RH9 (or FedoraCore1) machine :

1. Download the latest apt from freshrpm.net ... go here (redhat 9) or here (Fedora Core 1) and download the top file.

2. Install apt via the command (do this as root in a command window):

rpm -Uvh apt-0.5.5cnc6-fr1.i386.rpm
(at the time of this post, that is the name of the RH9 package ... substitute the actual package name you download for apt-0.5.5cnc6-fr1.i386.rpm)

3. Update the file /etc/apt/sources.list for your situation ... If you only want to do updates that are pushed by RedHat?Fedora and nothing else, find the entry for freshrpms (on my RH9 system it looks like this):

CODE
rpm http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms

and remove the freshrpms, to change it to this:
CODE
rpm http://ayo.freshrpms.net redhat/9/i386 os updates


Now you will only update and/or install the RedHat base OS and RedHat updates ... you can also skip down to step 5

4. If you want the extra packages from freshrpms, leave the freshrpms in the /etc/apt/sources.list above ... here are the extra items maintained by freshrpms (for RH9 ... here is the list for Fedora). You may want to add some of the other APT repositories to your list ... I added all 4 ...

Dag Wieers has the most avaiable packages with 639 seperate projects (there are 147 at freshrpms, 190 at Alex Thimm's, 162 at NewRPM's, and 953 unique projects packaged in total between the 4 right now).

If you want to have all the packages available for selection with APT, add these lines to your /etc/apt/sources.list file for RedHat 9 (I remarked out the source RPMS repositories ... most users won't need them ... if you do need the src rpms, then you know why ... if you don't know what src rpms are then you don't need them):
For RedHat 9
CODE
#For RedHat 9
#NewRPMs
rpm http://newrpms.sunsite.dk/apt/ redhat/en/i386/9.0 newrpms
#rpm-src http://newrpms.sunsite.dk/apt/ redhat/en/i386/9.0 newrpms

#FreshRPMs
rpm http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms
#rpm-src http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms

#Alex Thimm's
rpm http://apt.physik.fu-berlin.de redhat/9/en/i386 at-good at-stable at-testing
#rpm-src http://apt.physik.fu-berlin.de redhat/9/en/i386 at-good at-stable at-testing

#Dag Wieers's
rpm http://apt.sw.be redhat/9/en/i386 dag
#rpm-src http://apt.sw.be redhat/9/en/i386 dag


For Fedora Core 1 it would be:
CODE
#For FedoraCore1
# FreshRPMS
rpm http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms
#rpm-src http://ayo.freshrpms.net fedora/linux/1/i386 core updates freshrpms
                                                                             
# Dag Wieer's
rpm http://apt.sw.be redhat/fc1/en/i386 dag
#rpm-src http://apt.sw.be redhat/fc1/en/i386 dag

# Axel Thimm's
rpm http://apt.physik.fu-berlin.de fedora/1/en/i386 at-good at-stable at-testing
# rpm-src http://apt.physik.fu-berlin.de fedora/1/en/i386 at-good at-stable at-testing

#NewRPMs
rpm http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc1 newrpms
#rpm-src http://newrpms.sunsite.dk/apt/ redhat/en/i386/fc1 newrpms


5. You should import all the GPG keys for the sites you add to your sources.list file ... you only need to do the keys you will be using (it doesn't hurt to download them all ... this is the same for both RH9 and fedora). Issue the following commands at the command line:
CODE
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
rpm --import http://atrpms.physik.fu-berlin.de/RPM-GPG-KEY.atrpms
rpm --import http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt

6. Now you are ready to update your install ... the first command updates the apt database so you have the latest versions listed:

apt-get update

the next command upgrades all your currently installed packages to the latest levels:

apt-get dist-upgrade

You can look for packages using the command:

apt-cache search criteria

or show packages with

apt-cache show package name

you can install packages with the command:

apt-get install package name

7. There is a graphical package called synaptic that can be used ... as root, install via the command:

apt-get install synaptic

(I normally just use the console and the commands in step 6...but synaptic is there if you want it)
---------------------------------------------------------------
[quote]3. Important ! , I'm using Linux Bridges in my network [WAN with 60-70 Computers, wireless, wired network] , these Bridges don't have keyboards , mouse, monitor, I monitor them trough webmin.
I would like to ask you, what software can I use in Linux to be able to connect to it, either in console mode, or some other way, so I could install rpm-s, update the computer, scan for viruses [file server]. Please help, this would make my life a lot easier.[/quote]

Install sshd on the bridges and set it to start on bootup .... (it may already be configured, use this command from another Linux machine to see):

ssh ip_address_of_bridge

If sshd is running, you can install apt on the machines and keep updated using ssh and the console commands...

If you have installed Xfree86, GNOME and/or KDE, you can turn on X11 forwarding in the file /etc/ssh/sshd_config ... here is what I have unremarked in my sshd_config files for machines I want remote access to (in your case, the bridges):

Port 22
Protocol 2
SyslogFacility AUTHPRIV
X11Forwarding yes
Subsystem sftp /usr/libexec/openssh/sftp-server


restart sshd with the command:

/etc/init.d/sshd restart

On the clients you want to connect from .... (ie your Linux workstation), you need to edit the file /etc/ssh/ssh_config and turn on X11 Forwarding ... here is what I set on all my clients for /etc/ssh/ssh_config:

Port 22
Protocol 2
Host *
ForwardX11 yes


(there are some security issues with Protocol 1 for SSH ... so always use Protocol 2 if Protocol 1 is not required)

After you login, you are connected in console mode ... you can do all the console commands as if you were setting in a console on the machine.

With this setup, you can run graphical (X) programs in the window after you connect and they will show up on your client PC ... so if you login to the bridge and type the command:

nautilus

It will open on your client and you can make changes on the bridge ....

You could use a feature called XDMCP to open a whole desktop from the remote system, but I wouldn't recommend that ... just SSH with X should give you all you need ... you will just need to figure out the command line name to run your program. If it is installed on your client, you can right clicking on it (in the Gnome Menu) and select properties to get the name ...

for example, If I use the Gnome Menu and point to Menu - System Settings - Users and Groups and right click, a menu opens and one of the selections is Properties ... in the properties, it says the command is:

/usr/bin/redhat-config-users

So after logging in on the bridge (vai SSH), you can just enter the command (as root):

redhat-config-users

(/usr/bin is normally in root's path) and add users on the bridge with the GUI users/groups client.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.