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 |
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. |
Quote:
Code:
erik@mymachine:~/parent$ mkdir child |
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.
|
Quote:
|
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. |
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.)
|
$ 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. |
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. |