LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-06-2006, 09:15 PM   #1
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 253

Rep: Reputation: 27
how to install software on remote pc using putty/ssh


i'm trying to set up a file server with no mouse, keyboard or monitor connected, i can putty/ssh to the box, i can transfer data to and from it from other computers

i copied some software over to it, tried to ./configure and it says ": bad interpreter: No such file or directory", some auth putty config option i'm missing?

thank you
 
Old 07-06-2006, 10:24 PM   #2
lucktsm
Member
 
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155

Rep: Reputation: 30
Sounds like you don't have access to the correct paths. Are you loggin in as root?
 
Old 07-07-2006, 06:46 AM   #3
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 253

Original Poster
Rep: Reputation: 27
yes logged in as root, echo $PATH shows all the paths, thanks
 
Old 07-07-2006, 06:57 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,790
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Did you do a full install of whatever distro you're using? If you did, then it's possible that the software you're trying to install either had a bad download or there is some other issue. More details would definitely be helpful.

A user accessing through putty should have exactly the same permissions and capabilities as if they were accessing locally, so I'm guessing this problem isn't putty related.
Quote:
yes logged in as root, echo $PATH shows all the paths, thanks
Just a suggestion, but it is usually a bad idea to allow root to be able to log in via ssh. If you're logged in as a normal user and then using su to be root, then ignore this comment.
 
Old 07-07-2006, 07:23 AM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
There is a config option in /etc/sshd_config to not allow root login. If you are the only user who logs in using ssh, I would recommend adding your user name to AllowUsers. If you use AllowUsers, you don't need to add each system user to DenyUsers and each system group to DenyGroups. They are denied because they are not allowed.
Please read the "man 5 sshd_config" man page.

You might see that error when you are trying to compile a program in the wrong directory.
It is usually best to download the tarball somewhere in your home directory. Expand it their, read the README file and INSTALL file, then run "./configure" and "make" as a normal user (I also run "make ps" or "make dvi" or "make pdf" if available to produce print worthy documentation from the .texi source that produces the .info files), and then su to root to perform the "make install" phase. I have a couple of times run into some tarball installations where the ./configure or make phases would actually fail if run as root due to PATH differences.

You should have posted more of the error message. It is traditional for the source of the message to be listed before the colon.

You said that you are using putty. If you are connecting using a windows machine, be careful about having any scripts that are edited in windows because the [CR][LF] pair that windows uses will cause failures in scripts and in config files. This can also occur if you ftp get a file or copy a file to a windows machine. There may be some translation done in text mode.

In the least, I would recommend installing cygwin/X on your windows machine. It includes ssh I believe. You would also have access to programs like grep, awk, sed. I have found Cygwin to be invaluable at work. Searching through hundreds of schedules for a certain pattern, or using less on a log file and highlighting certain patterns makes life so much easier using *nix text tools.
 
Old 07-07-2006, 08:01 AM   #6
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 253

Original Poster
Rep: Reputation: 27
you're right jschiwal, i had the folder of the software i was trying to install unzipped on my windows box, i transferred that folder to my linux box and tried to install from there

looking at the configure file, ^M was on every line of the file, i know better, i always download, unpack and install in linux, it was late, i clearly wasnt thinking

thanks everyone
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tell Me About Remote Desktop, VNC, SSH, Laplink and Other Software Like It Mehmoodoman General 2 06-10-2006 02:59 PM
Problem with remote terminal (ssh and PuTTY) guardian653 *BSD 11 02-09-2005 06:16 AM
how to remote download file by putty SSH? treotan Linux - Newbie 5 08-02-2004 10:47 PM
Putty SSH remote desktop Solved learner_driver Linux - Networking 1 07-05-2004 03:02 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration