Skip to content

Programming

lauraporta edited this page Nov 11, 2022 · 4 revisions

Programming

Ubuntu

Here a list of problems I encountered in Linux and how I was able to fix them.

Installations

Software update error

This is an error that appeared when updating to a new Ubuntu distribution. Error msg: Software Updater - Not all updates can be installed.
Solution: sudo apt-get dist-upgrade

Terminal is not opening after installing a new Python version

If you installed a new Python version without the use of conda, there might be a mismatch in the python naming in a bin file.
If it's possible open terminal through vscode or use a virtual terminal (VT) with CTRL + ALT + F3 and run gnome-ternimal. Does it throw a Python error? If yes run sudo nano /usr/bin/gnome-terminal and change #!/usr/bin/python3 to #!/usr/bin/python3.10 if the version you're currently using is 3.10.
Exit the VT via CTRL + ALT + F2.

VSCode

SSH into a unmanaged machine from remote

In your local machine cd and open .ssh/config and append the following configurations:

Host *
    ServerAliveInterval 60

Host jump-host
    User swcUserID
    HostName ssh.swc.ucl.ac.uk

Host remote-host
    User remoteMachineUsername
    HostName 172.24.243.000
    ProxyCommand ssh -W %h:%p jump-host

If you do not have a config file in your .ssh folder, create one:

cd .ssh/
touch config

Connect to VPN, then use the Open a remote window (Remote - SSH extension) tool of vscode and connect to remote host. You will be asked for your SWC and linux passwords.

Clone this wiki locally