I have a linux server that I can access with ssh to my own space at my university. I could create a virtual environment and install whatever I want to it with Python.
Now I want to install Node.js and run it there even if I log off. Kinda using college's computing power for my discord bot..
I don't have sudo permissions obviously is this possible if so how?
Have you try nvm https://github.com/nvm-sh/nvm
If that doesn’t help, you is always free to ask yow techas or sys admin to install it for you, but nvm should be enough
Related
and hope you are all doing well.
I am trying to install Docker on one of the front-end nodes my university's compute cluster, which uses CentOS 7.9. Unfortunately, I am not in the list of sudoers, and therefore cannot use any sudo commands or even the yum installer.
I also do not have write access to /etc, and therefore I am not able to modify any of the files there (like sysctl.conf). I also cannot run sysctl or yum commands.
So far, I have managed to download the binaries for Docker 20 in .tgz format, but after extracting, I cannot run the docker daemon, as I do not have root privileges.
I have tried following this guide: https://docs.docker.com/engine/security/rootless/ but it requires executing commands in sudo mode and modifying files in /etc, and I am unable to follow through completely.
Is there another way to install and run docker, or should I just give up completely? I would really appreciate it if someone could please let me know. Thank you very much!
Best Regards
I have a linux server (completely new, web hosting, nothing is installed into it), and want to use a "wget" command. Currently, it is not found. Kernel version 2.6.32-896.16.1.lve1.4.54.el6.x86_64
I am completely new to linux, tried to solve this issue by myself, but couldn't do it. I log in into this linux server via PuTTY via my Windows OS laptop.
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
To get "wget" to work, I will need to install it. I guess I will need to install first "sudo" and/or "apt" and/or "apt-get". But couldn't do it. Please give me a short list of steps in which order to install them.
Given your kernel version, it looks like your Linux distribution is CentOS 6 or RHEL 6. Try installing wget with this command:
yum install wget
You must be root when you run this command.
Incase you using Debian version of Linux, use the following:
sudo apt-get install wget
From kernel version, it looks like you are using RHEL/Centos 6.
Please check -
https://centos.pkgs.org/6/centos-x86_64/wget-1.12-10.el6.x86_64.rpm.html
If the mentioned dependencies exist in your system, you can directly fire the rpm command
rpm command guide -
https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch02s03.html
If it doesn't work, you need to use yum command. (You need to configure yum command first, if not configured already)
yum install wget
To configure yum command in centos6 -
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories
Note - you need to be root user for above activities.
this is probably not a big issue for most people but do you know if there is anywhere a portable version for windows of aws-cli.
This because some people might want to install it for example in company laptops and not have admin rights to do it so I was wondering if I could find a portable version somewhere.
edit
could not find a proper portable software version for it but if you manage to install python and use pip then the installation following the instructions in github are quite easy.
final update
I was quite lucky because my company just introduced python as a tool that they allow us to install so I managed to use pip.
the only thing I needed to consider was the user flag so it installs where I have permissions:
pip install --user awscli
pip install --target=YOUR_PATH awscli
As of April 2021, there is only awscli version 1 available in pip repositories. If you want to use awscli version 2 but you don't want to use chocolatey or you don't have another windows machine available, you can:
download the .msi file from Amazon website: https://awscli.amazonaws.com/AWSCLIV2.msi
use msiexec in command line to extract application from msi package:
msiexec /a %USERPROFILE%\Downloads\AWSCLIV2.msi /qb TARGETDIR=%USERPROFILE%\awscli
Now you can use awscli version 2 using the following command:
>%USERPROFILE%\awscliv2\Amazon\AWSCLIV2\aws --version
aws-cli/2.1.39 Python/3.8.8 Windows/10 exe/AMD64 prompt/off
As this method is a workaround, an feature request has been raised to be able to install awscli without admin rights: https://github.com/aws/aws-cli/issues/4633
This is how I've gotten around this issue in the past:
I downloaded (.msi) and install AWS CLI onto my personal laptop then I copy this entire directory (/Amazon/AWSCLI/..) to my corporate laptop where I don't have Admin rights. Then you can either temporarily update the PATH environment variable in your cmd/powershell session or you can permanently update your user variable's PATH to include the location of aws.exe.
It appears you will have to use the aws.exe under /bincompat (instead of /bin) as of their newest release. I haven't yet tested this version to see what limitation exists.
I'm not sure what 'Portable' level you're expecting, but you may find these resources helpful
Chocolatey AWS Tools etc..
Or if you are using Docker
Create a Docker image for the Amazon Web Services CLI that provides a portable, contained experience.
I need to install Java, Solr, and update Git on this dedicated server.
I have ssh root access and was going to use the apt-get method to install what I need. But says this command is not found. Is this not a core Linux thing? I am guess I need to now look into installing this before doing anything else?
I don't have CPanel access.
This is solved. I did not know there was a different package manager with CentOS and Ubuntu. I used yum and it worked. I will mark this answered once I am able.
How can I install a GUI for a remote server and then access it over RDP (or similar)
I've done a sudo apt-get install ubuntu-desktop and sudo apt-get install xrdp, but when I go to access it and login, I just get a blank screen. I presume the windowing system hasn't started?
Thanks
Did the desktop fail to start up because there is no display attached?
I think the easiest approach is to use LXDE (Lightweight X11 Desktop Environment) with xrdp.
Refer This Link