LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RPM's and up2date Q (https://www.linuxquestions.org/questions/linux-newbie-8/rpm%27s-and-up2date-q-82392/)

sallas 08-15-2003 07:55 PM

RPM's and up2date Q
 
Guys/Gals,

Just a few Q's, have just installed RH9 and being fairly new to linux have run into some probs:

1. After running up2date and installing all packages (incl new kernal), when I run up2date and recieve confirmation that my system has everything, it mentions that I should restart the computer as the new kernal is not installed yet??? But I have downloaded the kernal using up2date and restarted several times and up2date shows no updates left to download, yet everytime get this msg???

2. I am finding that a lot of RPMs that i download and expand/install (just by double clicking on them) dont appear anywhere. Where do they install to, as I am unaware of how to access the programs and run them, is there a default launch directory?

3. On trying to set up Samba, i am seeing conflicting stories form various sites that swat is not installed ?? Checking the options on what packages to install, there is no swat (RH9) option i can see. Am trying to use this as having probs getting the samba server to run at all( on selecting it a message, too quickly, pops up then dissapears- then nothing!). And downloading swat and webmin doesnt work as see pont 2 above.

any ideas much appreciated (yes, have and am still doing lots of research on these, but would be nice for a tip!!).

Cheers.

TheOneAndOnlySM 08-15-2003 08:02 PM

well, can't help u on samba, but as for the kernel, it's probably because you're not running the new kernel (that is, u haven't configured your boot loader to load the new kernel)

check to see if this is the case, do a uname -r in a terminal and see if u get 2.4.20-19.9 (i believe this is the newest kernel); if this number does not show up, u haven't loaded the new kernel

what boot loader are u using? if using grub, post your /boot/grub/grub.conf here; if lilo, post your /etc/lilo.conf

make sure u have an entry for the new kernel:
make sure the kernel image is set to vmlinuz-2.4.20-19.9 (or something similar, whatever your kernel is named, just check your /boot directory)


edit: rpm's basically make it easy to install things without going through actual sources, and they normally install where they need to go; if it is a program that can be run, type the name of the program in a terminal and it should launch; normally they are installed in bin folders, so do a whereis bin in a terminal to see where those are (i know one is /usr/local/bin)

edit again: i'm don't remember the command to check for installed rpm's, but don't do the double-click thing to install them; go into a terminal, cd into the directory of the rpm, and then to rpm -ivh nameoffile.rpm (this way u can see the two 100% signaling a successful install, if it doesn't install, u will get a messge telling u why)

sallas 08-15-2003 09:26 PM

Good call!!!

Carried out the RPM in terminal and found for some that there were dependencies, once they were installed they appear on the gui menus. There are some other issues, but i think there related to the actual install file.

In regards to the kernel, i use a floppy disk to boot (wasnt too confident with lilo). It seems that I have all files of BOTH kernels in the boot folder:

vmlinuz-2.4.20-8
vmlinuz-2.4.20-19.9
System.map-2.4.20-8
System.map-2.4.20.19.9
module-info-2.4.20.8
module-info-2.4.20.19-9
config-2.4.20-8
config-2.4.20.19-9

Plus a few others. How am I able to implement the new? (o, and trying uname -r shows the old kernal).

Cheers.

Mathieu 08-15-2003 10:05 PM

If you want to use the new kernel, you will have to edit /etc/lilo.conf
Change all references of 2.4.20-8 to 2.4.20-19.9

To make a new boot disk, type:
Code:

mkbootdisk 2.4.20-19.9
To search the RPM database for a package, use the following syntax:
Code:

rpm -qa | grep <software_name>
If you want to configure Samba, you can use the RedHat GUI tool.
At the command line, type: redhat-config-samba

sallas 08-17-2003 07:06 AM

Thanks mathieu, using the new bootdisk worked a treat! Funny though, as wouldnt start X as had problems recognising the nvidia drivers. Edited XF86Config back to nvidia (after the system changed it back to nv to get X working) and it worked, go figure.

I tried using the redhat-config-samba but got some weird error. Have made sure all the samba services start on boot up, but still selecting the samba server does nothing. Downloaded webmin, will play with this for a while seeing if it has any effect. Although if webmin simply utilises the samba service, i dont think its going to do much. Might remove samba then reinstall and start from scratch as the samba server has never worked from install. Oh well, through all this I should end up becoming a samba wiz, hopefully!!

Thanks ppl for the right advice!

Mathieu 08-17-2003 08:49 AM

I forgot to mentioned :o
For Lilo, if you want the changes to take effect, type:
Code:

lilo -v
Concerning Samba, what is the error message :Pengy:

sallas 08-23-2003 08:08 AM

Sorry bout the lateness of the repy, but typing in the samba line returns the following:

[root@Lin]# redhat-config-samba
Traceback (most recent call last):
File "/usr/share/redhat-config-samba/redhat-config-samba.py", line 20, in ?
mainWindow.MainWindow(debug_flag)
File "/usr/share/redhat-config-samba/mainWindow.py", line 58, in __init__
self.samba_data = sambaParser.SambaParser(self)
File "/usr/share/redhat-config-samba/sambaParser.py", line 24, in __init__
self.parseFile()
File "/usr/share/redhat-config-samba/sambaParser.py", line 55, in parseFile
token = self.createToken(line)
File "/usr/share/redhat-config-samba/sambaParser.py", line 127, in createToken token = sambaToken.SambaToken(sambaToken.SambaToken.SAMBA_TOKEN_KEYVAL, (name, value), self.parent)
File "/usr/share/redhat-config-samba/sambaToken.py", line 20, in __init__
raise AttributeError, value
AttributeError: ('default', 'global')
[root@Lin]#

Any ideas much appreciated.


All times are GMT -5. The time now is 09:30 AM.