Koozali.org: home of the SME Server

Install RPM

Joel Thompson

Install RPM
« on: March 05, 2003, 12:31:46 AM »
Hello.

I would like to install the port opening and closing RPM for v.5.5.
found at: http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/

This is bacause i need to open ports for SIP-telephony. Because i am going to get the, a lot cheaper, SIP to PSTN service from a company, and stop using the all to expensive Telia monopoly analogue telephone.

I found a thread named "Open/Closed Ports", but i can not fugure out how to install that RPM.

I have read here about installing RPM files, but i cant figure it out.

Shall i access the server-root by some software i don't have, FTP the RPM to the server by Cute FTP (and not get it to the root), put it on a diskette and boot from it, by some way get past the console and install it from the diskette...

May someone please tell me exactly how to do it.

I have no experience what so ever in Linux.

As the other, danish guy, i apologize for my bad english and blame it on the fact that im only a Swedish student of Bio-Geography.

Abe Loveless

Things a Newbie needs to know
« Reply #1 on: March 05, 2003, 12:51:36 AM »
Here's a list of things that should get you going:

1. To access the console of the server remotely: Go to http://your-server/server-manager Login with "admin" and your password.  In Remote Access, allow SSH access and set administrative access over SSH to YES.  Then use the PuTTY.exe program to connect to the console from your workstation.  (do a google search for putty.exe)

2. Download WinSCP.exe to your workstation.  This is very handy for moving files to/from your server, as well as a few other tricks.

3. When logging into your server console, you must use the name "root" with your standard password.  There are ways to get around this, if you would rather connect as a user then change to root access... search the forums for that.

4. RPM's for SME:  The files you want will have one of the following format ".noarch.rpm" or ".ix86.rpm".  Files that have ".src.rpm" at the end are source files... they won't actually install the application.

5. Installing RPMS: Copy the files to your server.  Then to install manually, issue the command "rpm -Uvh "  If you need to use a different command, the author will usually have a readme or howto that tells you so.  Stephen Noble and the E-Smith DevInfo community have a server-manager panel add-on that will let you install rpm's through the web interface.  The most current seems to be at http://www.dungog.net/sme/howto/install.php

6. Other Resources:
http://www.e-smith.org - forums and docs
http://contribs.org
http://www.tech-geeks.org

Hope this helps.

Paul

Re: Install RPM
« Reply #2 on: March 05, 2003, 01:01:35 AM »
Joel,

You can access a command line prompt at the server by pressing ALT-F2 to open a second screen.  There you must log in as root, your password will be the same as your admin password.

After you log on you can install the RPM.

If you don't have a keyboard and monitor connected to you server then you will have to connect to the server with a secured connection like ssh.  It will be much easier for you to have a monitor and keyboard connected directly to the server but let us know if you need help with the ssh connection first.  Then we can help you install the RPM.

Mike

Re: Install RPM
« Reply #3 on: March 05, 2003, 01:14:39 AM »
First of all, you need to enable ftp access. To do that, you need to login to the SME Server Manager with any web browser like IE, Netscape, Mozilla e.t.c

https://192.168.1.20/server-manager

Login as admin with your password.

Under Security, choose Remote Access and enable FTP under FTP Access Limits.

After that, you are now able to login with your ftp client. Login as admin.

You ned to change directory to /users/admin

Upload your files.

Login to the console with user root. You might ned to change console by hold down the ALT key and press F2. "ALT+F2"

Change directory to /users/admin

Install your RPM file with the command rpm.

rpm -Ivh yourfile.rpm
rpm -Uvh yourfile.rpm

-Ivh = Install
-Uvh = Upgrade

If there is something you don't understand, i can translate it to pure Swedish.

Robert

Re: Install RPM
« Reply #4 on: March 05, 2003, 05:32:31 PM »
IMHO some of these instructions are too complicated. I think that the easiest way to download RPMS is with the browser lynx (or links, if you have that installed). It supports both HTTP and FTP downloads, and you can navigate to your files without having to know the full path to the file as with wget or rpm http/ftp installs.
Have a look at the download instructions at http://www.robert2.dds.nl/errata.html
Please note that your x86 installation doesn't include 'links'. Use the command 'lynx' instead. Read lynx's online help on "Key-stroke commands" for a quick introduction to lynx. (Then go to rpmfind.net and download links ;-) and ncftp, a really nice ftp client).

Bob Todd

Re: Install RPM
« Reply #5 on: March 06, 2003, 09:01:02 PM »
hmm actually to install rpms etc I tend to create an ibay with private access and dump them on their by mapping a drive to it on my windows client. that allows me to use http or ftp to save them directly to the area while another window shows me the install instructions.

then login at the server as root and
cd /home/e-smith/files/ibays/rpms/files/some foldername/

(now if only I wasnt a n00bie I could probably write me a command script that would save me typing that out everytime :-)

and issue the rpm -Uvh *.rpm command

Suppose I really should use putty but as the 2 machines are right in front of me, least till I create room in the server room, I find it quick and easy.

Ray Mitchell

Re: Install RPM
« Reply #6 on: March 10, 2003, 03:59:10 PM »
Bob Todd wrote:
> then login at the server as root and
> cd /home/e-smith/files/ibays/rpms/files/some foldername/
>
> (now if only I wasnt a n00bie I could probably write me a
> command script that would save me typing that out everytime :-)

Bob
I have gleaned these simple steps to make a script that may help you.
mkdir /foldername
pico /foldername/filename
will create a new blank file, then enter the contents
cd /home/e-smith/files/ibays/rpms/files/some foldername/
ls
Ctrl O to save & Ctrl X to exit

To run the script issue the command:

. /foldername/filename

The script will run and you should cd to the folder and see a list of the folder contents.

Regards
Ray Mitchell