What is the sudo command? Can I use sudo on computers running the CAEN Lab Software Environment (CLSE) for Linux?

The sudo command stands for "super user do." As super user, there are little-to-no restrictions on commands that one can run in a Linux environment. Due to security implications, however, students are not allowed to run sudo in the CAEN Lab Software Environment (CLSE) for Linux, including installing their own software.

Software available on Linux CLSE systems does not require using the sudo command to run, but instead uses environment modules. To find a particular software application,  use module avail command to list the available modules you can use. To use the software, load the module with module load module_name, where module_name is the application from available list.

What if I need sudo to install pip and python packages?

To install your own python packages, run a virtual environment to utilize pip:

$ python3 -m venv ~/venv
$ source ~/venv/bin/activate

After running these two commands, you will start a new python environment that comes with pip by default. To exit the virtual environment, run deactivate in your terminal.

 

Details

Article ID: 5055
Created
Mon 5/3/21 4:32 PM
Modified
Wed 7/19/23 8:14 AM