LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing folders remotely on Linux using PuTTy (https://www.linuxquestions.org/questions/linux-software-2/installing-folders-remotely-on-linux-using-putty-4175614177/)

JDvzs 09-20-2017 11:18 AM

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

MensaWater 09-20-2017 12:13 PM

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.

erik2282 09-20-2017 01:51 PM

Quote:

Originally Posted by JDvzs (Post 5760953)
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


dave@burn-it.co.uk 09-21-2017 08:01 AM

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.

kilgoretrout 09-21-2017 09:42 AM

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.

JDvzs 09-26-2017 11:08 AM

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.

MensaWater 09-26-2017 02:06 PM

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.)

Shadow_7 09-26-2017 02:26 PM

$ 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.

JDvzs 09-26-2017 04:09 PM

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 :)


All times are GMT -5. The time now is 07:51 AM.