How To MyWeb Troubleshooting IP blacklisting When you try to connect to your myweb.cs.uwindsor.ca management console, you are told your IP has been blacklisted. This is caused by too many failed login attempts within a short period. To remove your IP from the blacklist, please use the CS Password Utility. See Passwords#Additional_non-password_related_functions. I can't login to phpMyAdmin  You must first create a database using MySQL Management in the DirectAdmin web control panel.  About Hosting The School of Computer Science offers all faculty, staff, and students (majors or those taking key courses) a virtual hosting environment for Web and Email. Domains created automatically through the CS Password Utility have the name userid.myweb.cs.uwindsor.ca, where userid is your UWinID. The myWeb server is separate from the general desktop servers like Delta. You cannot access your Web files through a secure shell terminal (ssh) connection. Instead, access the files using a file transfer client as described. You can create a new domain and access the DirectAdmin Control Panel to manage your domain (and sub-domains) by visiting the CS Password Utility. The DirectAdmin control panel can be accessed at https://www.myweb.cs.uwindsor.ca:2222/evo  Note: if you cannot access the DirectAdmin login page, please try another browser or from Incognito/private mode (check this article for help) Basic DirectAdmin Tour DirectAdmin is a Web-based control panel that will allow you to manage your Web site(s), email addresses, MySQL databases, and Web applications. You can also manage your files stored on the myweb.cs.uwindsor.ca server with file transfer programs, such as FileZilla, and edit your files using editors that support SFTP, such as Notepad++ and BBEdit. Separate videos are provided for that. Multiple Domains The myWeb server, through the DirectAdmin control panel, allows you to create e-mail addresses in your sub-domains or additional domains. Addresses can be full e-mail mailboxes or forwarded to other mailboxes. You can access these extra mailboxes using mail clients or the Roundcube Web-based mail program. The only differences are that you need to use the e-mail addresses as the username when connecting, and cloud-based calendars and address books are unavailable. You can create a new mailbox under a domain that you control using DirectAdmin, and learn how to connect to it using Roundcube. Creating FTP accounts You can create highly customizable FTP accounts to allow other users access to specific parts of your domain. The password for the account can be reset at any time by the owner of the domain or by the user. Once the account has been created and the user is given a password, the user can change the password to something they prefer.  File Access Notepad++ Notepad++ can easily access files stored on the myWeb server from your PC. Editing remote files is as easy as editing local ones on your PC. BBEdit  BBEdit is a fantastic text editor for macOS that is available for free through the App Store. For those of you who are familiar with it, TextWrangler is now BBEdit. BBEdit interfaces with files on the myWeb server with just a couple of clicks. Accessing files from a Linux desktop It is easy to access your myWeb files from Linux desktops. The best way is to create a bookmark in your Places that will link to your domain's folder on the myWeb server. Follow these steps: From Places, open your Home Folder In Location, enter sftp://myweb.cs.uwindsor.ca/domains, and press Enter Enter your userid and password to establish the connection. Once the connection is made, you will see the contents of your myWeb domains folder. Your Web files are in sub-folders named public_html for the corresponding domain. You can add a bookmark so that this connection is made every time you login to the Linux desktop. "Forbidden" Message If you are getting a "Forbidden" message when browsing to your website: It's either that you don't have index.html in the main web folder (public_html), or the index file doesn't have the proper permissions.  NoMachine The School of Computer Science runs NoMachine Terminal Server. The client connects to a server named delta.cs.uwindsor.ca.  Remote desktop via a Web Browser  https://nx.cs.uwindsor.ca Since the School of Computer Science has a NoMachine Enterprise license, the delta.cs.uwindsor.ca remote desktop can be accessed directly from the browser through the link provided! NX (using the NoMachine Enterprise Client) Using the NX protocol (not SSH) You can download NoMachine Enterprise Client from here. Edit a connection to use the NX protocol You should use the NX protocol, but only if you are connected to the VPN! Edit and save the connection to modify the protocol it uses. Troubleshooting Application Menu is missing  If this menu is missing on your desktop, mate-panel is misbehaving. Run this command from a terminal window (right-click the background and choose Open in terminal): mate-panel --replace &  The ampersand is required to run the command in the background, independently of the terminal process from which you ran it. Notepad++ Download Download for Windows The latest version will be at the top of the list. Select it to save and run the appropriate Installer.  Using Notepad++ SFTP You will need to install the NppFTP Plugin for Notepad++ to use this protocol. SQL*plus ( to Oracle) How to use from delta.cs.uwindsor.ca Troubleshooting Login problems Oracle database user accounts and passwords are created, synchronized, or unlocked from the CS Password Utility. Make sure you are using your UWinID as your , all lowercase without @uwindsor.ca appended. If your password does not meet the following restrictions, you MUST enclose your password in double quotation marks when prompted. The password restrictions for Oracle account passwords are as follows: Passwords cannot contain quotation marks. Passwords are case sensitive. A password must begin with an alphabetic character. Passwords can contain only alphanumeric characters and the underscore (_), dollar sign ($), and pound sign (#). Password may NOT contain the @ character. Oracle strongly discourages you from using $ and #. Common Errors ERROR: ORA-01017: invalid username/password; logon denied Your password meets the character requirements, but you typed in the wrong password. Synchronize your password again using the CS Password Utiliity. ERROR: ORA-12532: TNS:invalid argument Your password contains characters, probably @, that require you to enclose it within double quotation marks. Running sqlplus from your machine at home Install Oracle client. Use Global Protect VPN and sign in to campus. Just type sqlplus at a terminal window prompt. It uses the following tnsnames.ora to establish the connection with the CS01 instance on oracle.cs.uwindsor.ca: CS01 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oracle.cs.uwindsor.ca)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = cs01) ) ) Oracle Using Java and Python from Delta Connecting to Oracle server from Delta using jdbc JDBC Connection string In the connection strings below, replace "userid" with your UWinID, and "password" with your campus password. Code to test your connection: import java.sql.*; import oracle.jdbc.*; import oracle.jdbc.pool.OracleDataSource; class JDBCVersion { public static void main (String args[]) throws SQLException { OracleDataSource ods = new OracleDataSource(); ods.setURL("jdbc:oracle:thin:userid/password@oracle.cs.uwindsor.ca:1521:cs01"); Connection conn = ods.getConnection(); // Create Oracle DatabaseMetaData object DatabaseMetaData meta = conn.getMetaData(); // gets driver info: System.out.println("JDBC driver version is " + meta.getDriverVersion()); } } The classpath for the Oracle JDBC archive will vary depending on the operating system and which version of the Oracle client you installed. The classpath in the following commands are those required to compile and run from a terminal on cs.uwindsor.ca. javac -classpath /usr/lib/oracle/12.1/client64/lib/ojdbc7.jar JDBCVersion.java java -classpath /usr/lib/oracle/12.1/client64/lib/ojdbc7.jar:. JDBCVersion Connecting to Oracle server from Delta using Python Create a Python Virtual Environment  mkdir oraclepy  cd oraclepy/  python -m venv ./venv Pip install cx_oracle pip install cx_oracle --upgrade Use the following code db_config.py import cx_Oracle import sys import os import getpass user = os.getlogin() dsn = os.environ.get("PYTHON_CONNECT_STRING", "oracle.cs.uwindsor.ca/cs01") pw = os.environ.get("PYTHON_PASSWORD") if pw is None: pw = getpass.getpass("Enter password for %s: " % user) Using the following code, you connect to the database import cx_Oracle import db_config con = cx_Oracle.connect(db_config.user, db_config.pw, db_config.dsn) print("Database version:", con.version) Run the Code: before running the code, set the environment variables using export  Check the following URL for more information: Tutorial cx_Oracle You can embed the export variables in shell script and call your Python code from the same script export ORACLE_HOME=/opt/oracle/instantclient_21_8 export LD_LIBRARY_PATH=/opt/oracle/instantclient_21_8:$PATH export TNS_ADMIN=/opt/oracle/instantclient_21_8/network/admin/ To exit the Python virtual env, type deactivate and press enter. you will be back at the Linux prompt WSL Windows Subsystem for Linux The Windows Subsystem for Linux (WSL) was introduced by Microsoft to Windows 10. WSL allows users to to run a full Linux user space in Windows. The latest version, WSL 2, is a major upgrade and introduces a Microsoft-written Linux kernel that is delivered by Windows Update instead of being bundled with the Windows OS image. This guide will show you how to create a working Mate Desktop environment on Debian Buster, similar to our CS Linux Desktop servers available through NoMachine. This will help you learn much more about using and maintaining a Linux environment.  Installing WSL Windows Subsystem for Linux Installation Guide X11 forwarding You can use Mobaxterm to access WSL with X11 enabled.  Or your will need to install an X server to run a graphical Linux environment in WSL. Download VcXsrv for Windows Notes: When installing VcXsrv, Make sure to "Disable access control" add the following to your  ~/.bashrc: export DISPLAY=$(ip route list default | awk '{print $3}'):0 export LIBGL_ALWAYS_INDIRECT=1 Add a separate inbound rule for TCP port 6000 to the windows firewall in order to allow WSL access to the X server, as described by the wsl-windows-toolbar-launcher. Debian Microsoft provides an app to install a complete Debian command line environment.  Get Debian for WSL JetBrains Free educational license for all the JetBrains IDEs for Students and Faculty. It is a JetBrains initiative, neither the University of Windsor nor the Department of Computer Science have any contractual obligations with JetBrains. As individual license owners, the students/faculty using the license are responsible for JetBrains' contractual obligations. You have to renew the license every year. Please visit the following link for more information. https://www.jetbrains.com/community/education/#students https://www.jetbrains.com/products/ For C# Use Rider IDE it is cross platform solution for .Net development. https://www.jetbrains.com/rider/features/   Gitlab We have a community edition (Gitlab CE) instance running at https://gitlab.cs.uwindsor.ca What is GitLab? GitLab is a web-based Git repository that provides free open and private repositories, issue-following capabilities, and wikis. It is a complete DevOps platform that enables professionals to perform all the tasks in a project—from project planning and source code management to monitoring and security. Additionally, it allows teams to collaborate and build better software.  GitLab helps teams reduce product lifecycles and increase productivity, which in turn creates value for customers. The application doesn't require users to manage authorizations for each tool. If permissions are set once, then everyone in the organization has access to every component. VS Code Installed on delta.cs.uwindsor.ca. It will work from home using NoMachine or from any labs. you can install extensions under your own user account. How to use please look at the picture below. From Windows or Mac Launch VS Code and click on the "Open Remote Window" icon from the lower left corner. Click on "Connect to Host" Choose "Add New SSH Host" type your username and hostname as username@hostname. (e.g: azakaria@delta.cs.uwindsor.ca)   Select which file you want to use to save the new added hostname (hit enter) Click on "Connect" Choose "Linux" Type in your password Click on "Open Folder" Click on "OK" It may ask you again to select the platform type (Linux) and type in the password Trust the authors How to Set Dynamic (DHCP) IP Address - Windows 10/11 1. Access the Control Panel Windows 11: In the Windows search bar, type in “ncpa.cpl” and then press enter. Windows 10:  On your keyboard, press the “Windows” and “R” keys at the same time. Enter “ncpa.cpl” in the window that pops up. 2. Select the network adapter Right click on the network adapter that is currently connected to the device that you are trying to configure. Usually, it will be the adapter with the word “Ethernet” in the name. 3. Select Properties Select “Properties” from the drop-down menu. 4. Select Internet Protocol Version 4 (TCP/IPv4) Double-click on “Internet Protocol Version 4 (TCP/IPv4)”. 5. Change settings option to DHCP When you get to the “Internet Protocol Version 4 (TCP/IPv4) Properties” window, click “Obtain an IP address automatically”. This will allow your PC to be assigned a random IP address on your network. Note: The OK buttons must be clicked in both instances or your settings will not be saved.   More Info: Change TCP/IP settings - Microsoft Support How to Set Dynamic (DHCP) IP Address - Mac OS 1. Open System Preferences Click the Apple icon, from the Apple drop-down list, select System Preferences. 2. Open Network Settings Click the Network icon. 3. Select Your Wired Network Interface (Ethernet) In the left column, select Ethernet (for wired connection) or Wi-Fi(for wireless connection), then Click the Advanced. Note: in this article we want to change the wired connection, therefore, click on Ethernet 4. Select TCP/IP Protocol Click TCP/IP. 5. Configure IPv4  From the Configure IPv4 drop-down list, select Using DHCP, then click the OK button. More Info: Use DHCP or a manual IP address on Mac - Apple Support (CA) Connecting to the ‘delta.cs.uwindsor.ca’ Server via SSH through Visual Studio Code This article was contributed by Avinash Karhana (karhanaa@uwindsor.ca). Thank you! Prerequisites **Visual Studio Code (VS Code)** installed. If you don't have it, download and install it from https://code.visualstudio.com.  **Remote - SSH Extension** for VS Code installed.   You can install it from the Extensions view in VS Code or from https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh.   Or can search in extensions by typing `Remote Development` in the Extensions view in VS Code.  **SSH Client** installed on your local machine: Windows**: Install Git for Windows which comes with Git Bash. You can download it from https://gitforwindows.org. **MacOS**: SSH client is pre-installed. **Linux**: SSH client is pre-installed. Step-by-Step Guide Install the Remote - SSH Extension in VS Code Open VS Code. Go to the Extensions view by clicking the Extensions icon in the Activity Bar on the side of the window. Search for "Remote Development" and install the extensions by Microsoft (As given in previous section).  Add the SSH Host Open the Remote Explorer tab In the Remote Explorer tab, click the `+` button next to `SSH Targets`. In the input dialog that appears, enter: ssh uwinid@delta.cs.uwindsor.ca                       Replace `uwinid` with your actual username, then hit `Enter`. If you are connecting to a different server, replace the server in the example above with the current server name, which is delta.cs.uwindsor.ca ( it can be gamma.cs.uwindsor.ca ...) Choose whether to save the configuration in the `~/.ssh/config` file or just for this session. Connect to the Server via VS Code In the Remote Explorer tab, under `SSH Targets`, you should now see `delta.cs.uwindsor.ca`. Click on `delta.cs.uwindsor.ca` to connect.  A new VS Code window will open. When prompted, enter your password for the `delta.cs.uwindsor.ca` server. Open a Remote Workspace Once connected, you can open a folder on the remote server by clicking on `Open Folder` in the Remote Explorer sidebar.  Navigate to the desired directory on the server and open it. If prompted for your password again, enter it to proceed. Tips and Troubleshooting If you face issues with the host not being live or timeout, make sure you are either on CS Network  WiFi/Ethernet or connected via Global Protect VPN. If you encounter connection issues, check the SSH output log in VS Code by clicking on the `View` menu, then `Output`, and selecting `Remote - SSH` from the dropdown. Ensure that your user account on the `delta.cs.uwindsor.ca` server is set up to accept SSH connections. If you are having connection issues due to invalid credentials, try authenticating them by going to https://auth.cs.uwindsor.ca; this will sync your credentials across all the CS services. In case you do not want to enter the password every time you connect to SSH, follow the other guide that helps you to set Key based authentication for SSH. Check and clean up large files in your home directory Over time, your home directory may grow in size. We recommend regularly checking your disk usage and removing any unnecessary files or folders. You can use one of the following methods to check your disk space usage: Use du command: du -cha --max-depth=1 . | grep -E "G" Use ncdu command: ncdu To exit, press on letter x Graduate Printer Note: Printing is only available when connected to CSWIFI or when using the computers located in the Graduate Labs (Erie). First, delete the old “GradPrinter” from your computer (if exists) Install PaperCut Print Deploy Client: Windows: https://print.cs.uwindsor.ca:9192/print-deploy/client/windows Mac: https://print.cs.uwindsor.ca:9192/print-deploy/client/macos Login with your UWINID and password (use your username only) If you cannot log in, sync your password using the CS password manager utility at https://auth.cs.uwindsor.ca If you have difficulty, please contact us by email at accounts@cs.uwindsor.ca. IMPORTANT: Please note that this printer is provided as a free service for all graduate students. We kindly ask that you use it responsibly — personal printing is not permitted. Misuse of this service may result in your account being disabled. To view your balance or print from the web (without installing the printer's driver), please log in to https://print.cs.uwindsor.ca:9192  Troubleshooting: If you get a "Failed" message on your computer after you install the PaperCut Deploy client, then add your username and password to the "network password": Open "Manage Network Password" Click on "Add a Windows credentials" Add the following: IMPORTANT: add CS\ in front of your username as shown in the image below. Save it, then open your PaperCut Print Deploy Client and click on "Refresh" PostgreSQL Note: Access to PostgreSQL is restricted to students with projects, and it can be accessed via special subnet (not available publicly to all students) How to Access Your Database: First step, you need to request the creation of a database by sending an email to accounts@cs.uwindsor.ca Provide details about your project, supervisor, and what is the suggested name of the database and include a list of all students (if applicable). Once CS IT confirms the DB creation, you can log in to https://psql.cs.uwindsor.ca  If it’s your first time, click on “Add New Server” In the (Register - Server) Windows: Name: localhost Hostname/address: localhost Maintenance database: Your DB name Username: your UWINID Password: your UWIN password Click on "Save"  Connect to PostgreSQL from console: Login/SSH to your project’s VM, then issue this command: psql -h psql.cs.uwindsor.ca -U username -d db_name Connect to a database from your application: When connecting to a database from your application, e.g: query("SELECT current_user, current_database()"); print_r($stmt->fetch()); ?> The password, must be provided in the code, we DO NOT recommend to use your UWIN username and password here! Alternatively, create a custom username/role for the application. (as explained in the next steps) Create New username/role for your application (Using the web interface): Login to https://psql.cs.uwindsor.ca  Right click on "Login/Group Roles" and Create a new Role In the new windows, select the username (always start with app_):  In the "Privileges" tab, you must enable "Can Login"   In the "Membership" tab, add "app_users" (this step is to allow this new user to login remotely)   Then, we need to grant this new user, access/privileges on your database. right click on your database, and select "Properties": Make sure you are the owner of the database (contact IT if you cannot change it) In the "Security" Tab, click on the plus (+) sign, to add the new user to the database: Create New username/role for your application (Using the command prompt): SSH/Login to your VM Connect to the database: psql -h psql.cs.uwindsor.ca -U username-d database Verify you are the owner of the database: SELECT datname, pg_catalog.pg_get_userbyid(datdba) FROM pg_database WHERE datname = 'database'; If you are not the owner, contact CS IT and ask them to change the owner of the database. Create a new application role/username: CREATE ROLE app_testing LOGIN PASSWORD 'password'; Grant the new username/role access to app_users (so you can login with the new username): GRANT app_users TO app_testing; Grant the new username access to your database: GRANT ALL ON DATABASE "az-testsis" TO app_testing; Now you can use the new username and password to access your database from your web application. Jupyter Notebook Basics CS Jupyter Lab Server is available at https://djnb.cs.uwindsor.ca/ Create a New Notebook In the top-right corner of the Jupyter dashboard, click the File New Notebook. Select Python 3 (or Python 3 [ipykernel]). A new tab will open containing your blank Jupyter Notebook ( .ipynb). Verification: Ensure a new notebook tab opens with an empty cell and the kernel status circle in the top right turns solid (indicating it is connected). Press Select Understand Notebook Cells A Jupyter Notebook is made up of individual blocks called cells. The two primary cell types you will use are: Code Cells: Used to write and execute programming logic (default is Python). Outputs appear directly below the cell. Markdown Cells: Used to write formatted narrative text, explanations, headings, and bullet points using Markdown syntax. Verification: Click the cell dropdown menu in the toolbar to toggle any cell between "Code" and "Markdown". Click on the first empty cell (which defaults to a code cell). Type a simple print statement: Python print("Hello, Jupyter!") Run the cell by pressing Shift + Enter on your keyboard (or clicking the Play ▶ button in the toolbar). Verification: Confirm that the text Hello, Jupyter! appears directly underneath the code cell. Add Text Using Markdown Insert a new cell below by clicking the + button in the toolbar or pressing B while in command mode. Change the cell type to Markdown. Type some formatted text: Markdown # My Notes This is a **bold** explanation of my code workflow. Press Shift + Enter to render the text. Verification: Check that the Markdown code converts into a clean heading and bold text instead of raw code. Essential Keyboard Shortcuts Jupyter operates in two modes: Edit Mode (typing inside a cell, green border) and Command Mode (navigating cells, blue border). Press Esc to enter command mode, and Enter to edit. Shift + Enter: Run current cell and move to the next. A: Insert a new cell above the current cell. B: Insert a new cell below the current cell. M: Change active cell to Markdown. Y: Change active cell to Code. For further information visit https://jupyterlab.readthedocs.io/en/latest/ Simple Example on Jupyter How to Check if you have a GPU on the Server Installing a library Matplotlib installs numpy as it is a dependency Test  import matplotlib.pyplot as plt import numpy as np # 1. Generate numerical data using NumPy # Create 100 evenly spaced points between 0 and 2*pi x = np.linspace(0, 2 * np.pi, 100) y = np.sin(x)  # Compute the sine of each x value # 2. Create the plot using Matplotlib plt.figure(figsize=(8, 4))  # Set the window size (width, height in inches) plt.plot(x, y, label="Sine Wave", color="blue", linewidth=2) # 3. Customize and style the graph plt.title("Basic NumPy & Matplotlib Example")  # Add a title plt.xlabel("X Axis (Radians)")  # Add X-axis label plt.ylabel("Y Axis (Value)")  # Add Y-axis label plt.grid(True)  # Add a background grid plt.legend()  # Display the line label ("Sine Wave") # 4. Display the window plt.show()   Computer Science Portal What is the Computer Science Portal?  The Computer Science Portal is the School of Computer Science’s online portal for students, faculty, and staff at the University of Windsor. It provides a central place to access School-related online services and resources.  To access the Portal, visit:  https://portal.cs.uwindsor.ca  Sign in using your UWINID username and password. If You Cannot Log In  If you are unable to log in to the Computer Science Portal, your Computer Science account password may need to be synchronized.  Visit:  https://auth.cs.uwindsor.ca  Follow the instructions there to synchronize or update your Computer Science password. After completing the password synchronization, return to the Computer Science Portal and try signing in again. If you continue to experience login issues after syncing your password, email accounts@cs.uwindsor.ca