LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2017, 12:18 PM   #1
JDvzs
LQ Newbie
 
Registered: Sep 2017
Posts: 3

Rep: Reputation: Disabled
Installing folders remotely on Linux using PuTTy


Hello!

I am new to Linux and I need to install some folders in a remote computer that runs Linux. My computer is Windows 10. I am using PuTTy to do this, but when I try to install using 'apt-get install' I receive a message saying 'command not found'. I have also tried yum install but I get the same message. What am I missing?

Thanks
 
Old 09-20-2017, 01:13 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,050
Blog Entries: 14

Rep: Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224
First you need to know and tell us what Linux distribution and version you're running. Debian based distributions rely on apt-get and RedHat based distributions rely on yum. Other distributions might have completely different tools.

Type "uname -a" and also look in /etc at files like /etc/issue, /etc/os-release, /etc/redhat-release, what have you.

Secondly package installers typically need root authority to run. If you logged in as yourself you may need to switch to root (su -) and then run the package installer or use sudo to run it. Again which way you do it could depend on which distribution and version you're running.
 
1 members found this post helpful.
Old 09-20-2017, 02:51 PM   #3
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian, CentOS
Posts: 722

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by JDvzs View Post
I need to install some folders in a remote computer that runs Linux.
You wouldn't install folders, you would create them. once you got a remote session to your linux machine, just use the command mkdir to make a directory. for example:
Code:
erik@mymachine:~/parent$ mkdir child
erik@mymachine:~/parent$ ls -la
total 12
drwxr-xr-x  3 erik Users 4096 Sep 20 13:47 .
drwx------ 74 erik Users 4096 Sep 20 13:47 ..
drwxr-xr-x  2 erik Users 4096 Sep 20 13:47 child
 
1 members found this post helpful.
Old 09-21-2017, 09:01 AM   #4
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 354

Rep: Reputation: 134Reputation: 134
If you have linked to the file system in the remote PC rather than using a remote controller, then your file commands need to be those used by YOUR OS not those of the remote system.
 
1 members found this post helpful.
Old 09-21-2017, 10:42 AM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,575

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
I try to install using 'apt-get install' I receive a message saying 'command not found'. I have also tried yum install but I get the same message. What am I missing?
Given the above and that the original poster is new, I assume he is trying to install an application on a remote computer, not trying to "install some folders". Probably need some clarification from JDvzs. If I'm right you need to tell us what linux distro is running on the remote computer per MensaWater's post.
 
1 members found this post helpful.
Old 09-26-2017, 12:08 PM   #6
JDvzs
LQ Newbie
 
Registered: Sep 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi! Thank you for the replies.

I ran the command ' cat /etc/*-release' and it says CentOS release 6.7 (final).

What I really need is to copy the folders I have in my Windows 10 computer to the computer that is running CentOs Linux, not install software. Sorry for the misleading question.

I've just found a software called WinSCP that gives me a GUI of both computers and hopefully it will let me copy the files without using command lines which I am unfamiliar with. I will post here if the issue is solved using this alternative.
 
2 members found this post helpful.
Old 09-26-2017, 03:06 PM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,050
Blog Entries: 14

Rep: Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224Reputation: 1224
Yes - WinSCP is a good tool for transferring files between MS Windows and Linux (or UNIX) systems. WinSCP can interface with Linux/UNIX ssh transports sftp & scp. (It can also do regular ftp but hopefully you're not running ftpd on your Linux systems.)
 
1 members found this post helpful.
Old 09-26-2017, 03:26 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,304
Blog Entries: 1

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
$ lsb_release -a

But given CentOS, it probably uses Yum (or dnf?).

$ cat /etc/issue

Is another option, the MOTD for telnet or some such, if left unmodified it should have distro information as well. I normally netcat files across the network. But mostly because I'm too lazy to install ftp, sftp, or other "sharing" (nfs / samba) configurations.

RECEIVING netcat:

$ nc -l -w 300 -p 5900 > outputfilename.ext

SENDING netcat:

$ nc #.#.#.# 5900 < inputfilename.ext

Some versions have a flag to quit when done, otherwise you have to manaully stop it ^C style. Using ls or md5sum if you're not sure can help to be more sure. But mostly I wait for the network traffic spike to die off in speedometer or other monitoring tools. Make tarballs and encrypt and the likes manually depending on your paranoia level. Where #.#.#.# is the IPv4 address of the receiving machine.
 
1 members found this post helpful.
Old 09-26-2017, 05:09 PM   #9
JDvzs
LQ Newbie
 
Registered: Sep 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks you for the help guys! I was able to do what I wanted using WinSCP, I've been told that FileZilla is also a good option.

Cheers
 
1 members found this post helpful.
  


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
LXer: Using Putty to remotely open GUI applications LXer Syndicated Linux News 0 04-08-2015 09:31 AM
Unable to SSH using Putty remotely (different country) br20293 Linux - Networking 7 12-27-2008 11:00 AM
Help - Setting up Apache/CGI/Perl remotely - Redhat/Putty shallowfellow Linux - Server 1 12-13-2007 04:36 PM
can't login using ssh (via Putty) remotely blinton25 Linux - Software 11 05-27-2007 02:17 AM
TightVNC, PuTTY and remotely accessing multiple computers Citizen Bleys Linux - Networking 3 04-15-2006 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration