Click to See Complete Forum and Search --> : just bought a didicated linux machine with redhat 9 - HELP


vincenzobar
01-31-2004, 07:15 PM
OK i think i am in over my head a little but i need to learn this in a week

I have redhat 9 running at home and i am talking to my machine in cali through SSH everything is fine so far. But ...

I cant figure out how to get X11 to forward i keep getting an error : perhaps xauth cannot be run server side. does anyone else have X visible from a collocated amachine.

Also i tried to install webmin with RPM and it kept giving me a BAD file or something. how do you install a program remotely? How can i FTP from the command line since i have no user interface. I can extract and install via the command line but i just can't seem to get the programs to save.

Im screwed Some one please be my mentor. when i get the site up and running I will send you a free DVD or 2 of your choice. The person(s) to recieve this token of appreciation will be named at the end of the thread when i have finally figured out this LINUX stuff.

thanks a bunch,
vincenzo Barranca
Director of marketing/web admin
inner ear audio, llc
location: USA, Maryland

Choozo
01-31-2004, 07:34 PM
...and i am talking to my machine in cali through SSH... 'cali' ? Do you mean CLI (Command Line Interface)?

As for the X11 forwarding, have a look in /etc/ssh/sshd_config for the X11Forwarding option (should be set to X11Forwarding yes), and in /etc/ssh/ssh_config where you should have ForwardX11 yes

Files may be copied to the server via 'scp', e.g. scp -p somefile username@machine:/path/to/copylocation

Installation remotely is the same as for locally in CLI; after you have ssh'd into your server, do a rpm -Uvh packagename.rpm for RPM files.

Cheers, and welcome :)

vincenzobar
01-31-2004, 07:37 PM
Thanks for the quick response!!! I mean Cali as in California. WTF is "CLI"

thanks for the X11 stuff but how do i write to a file with just the command line. either i am missing something or i am dense but everywhere i read doesn't tell me how to edit a document through the command line.

BTW my sshd_config file has this
# X11forwarding no
X11forwarding yes

doesn't this mean it is enabled?

I'll get back to you on the others you wrote going to try now!!!

thanks,
vin

Choozo
01-31-2004, 07:43 PM
OK, didn't realize that 'cali' was short for California (I'm a Norwegian) :D
And CLI is just what I said above - the Command Line Interface, or console/terminal if you like. :)

Editing files from the commandline is usually done by the 'vi' editor by typing vi filename (not the perfect choice for a newbie though).
When you get X11Forwarding going, you will probably be better off using 'kate' or 'nedit' (if they are installed), or 'joe' - same thing here: kate/nedit/joe filename.

JohnT
01-31-2004, 08:09 PM
And don't forget "pico":p

vincenzobar
01-31-2004, 08:17 PM
i found this about x11 forwarding http://www.ssh.com/support/documentation/online/ssh/adminguide/32/X11_Forwarding.html

very short how to. does this mean i have to reinstall ssh from source. I bout the server pre built and installed I have no idea how they installed, whether it was a src.rpm or a tar.

everyfile on my maching and the server say
# X11forwarding no
X11 forwarding yes. so it should work but it isn't!!!

Also is X11 forwarding like virtual terminal for the windows? a UI of the server on my local machine?

vincenzobar
01-31-2004, 11:27 PM
welp a lil update for you, turns out i wasn't as much of a newb as i though. the dumb bastards at IPOWERWEB gave me an empty machine. all they did was install redhat 9. Now i am stuck wasting an entire day DL-ing Apache 2 Perl PHP and so on. GRRRRRrrrrrr. I have been at this since 7:30 am to so far 10:30 pm. and i am just now installing perl and apache!

thanks for the help Choozo. what DVD do you want. I have no problem shipping to norway since i would have never gotten this far if it wasn't for your scp command!!!!

Choozo
02-01-2004, 03:59 AM
Also is X11 forwarding like virtual terminal for the windows? a UI of the server on my local machine?No, X11 forwarding lets you run applications on your remote machine that require a GUI, on your local machines monitor. The ssh (and highly unsecure telnet) do not require any GUI/windowing interface as this is run through your local console/terminal application.
the dumb bastards at IPOWERWEB gave me an empty machine. all they did was install redhat 9.Sounds a bit strange to me, and I had a brief look at www.ipowerweb.com where they advertised a lot of "application availability"? RedHat should come with all your serverprograms pre-installed, but they may have done things a bit different there?
To check if some program is already installed, do a rpm -qa | grep programname (e.g. rpm -qa | grep ssh)
Reinstalling ssh from source may fix your X11 forwarding issues as RedHat may have chosen a more 'paranoid' setting for their program options (Mandrake is bit more 'lax' there, so I have never had any X11 forwarding problems).

Thanks, I'll PM you my DVD wish later today. :D

Cheers :)

dboyer
02-01-2004, 04:10 AM
For me to do xforwarding, i need to call ssh as:

ssh -X <ip>

im wondering what machine you are working off of.. it is my understanding you need to be on a client with a xserver in order to do xforwarding... aka, you can't be on a windows machine... you need to be on a linux box...

I may be mistaken, but there is my understanding...


another trick you may try is to just download things straight to the server... if you truely need PHP/Apache/Etc straight from the redhat machine.. you should be able to use lynx (or links) from the command line to download it straight there... if you can find rpm installs or a good tutorial, its not too bad...

Choozo
02-01-2004, 05:17 AM
...you need to be on a client with a xserver in order to do xforwarding... aka, you can't be on a windows machine... you need to be on a linux box...]Ahh, that bit slipped my mind, but you may still do this from a Windows machins as long as you have a client that supports it. Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/) seems to fit the bill in that respect, and there is a few others too that are free.
On the more expensive side you have WinAxe/WinPro and Exceed.

Cheers :)

vincenzobar
02-01-2004, 01:02 PM
i am running Redhat 9 at home, I dual booted my win2000 machine. originally i was using putty from a XP Prof but i wanted to really learn Linux So i set up a linux machine. My machine at home is installed as a workstation and not a server but even still the server doesn't come with apache. Also -X is the default. So just using ssh ip.num.here.0 automatically tries to forward X11. I tried it with the -X ans -x and the only time i DON'T get a warning is when I use -x which cancells X11 forwarding.

I got Apache 2 running and perl and webmin. Webmin makes life alot easier for setting up an apache and an internet server!!!! Atleast for me because it is a graphical interface via the web and being that i have 9 years experience with windows NT platforms and 3 days with linux it helps.

I think i may reinstall SSH from src and see if that helps because nothing else seems to work. I actually most likely don't even need X11 forwarding anymore now that i have Webmin Since this machine is strictly for Hosting web sites and not creating applications!

Thanks for all the advice everyone!!!!

vin