Skip to main content

Remote into Linux Server from a Windows PC

I'm currently in the process of installing and configuring the server and I publish to this blog as I go. 

I recently inherited a huge server machine from my office. I want to build a custom website and host it on this server but I lack experience with Servers and Linux. Hopefully, I can use documentation and videos to cobble this together. The only hope of success for me is to do this systematically, with documentation of the configuration and installation and build process.

User Data

login: jlillywhite

password: ______________

I forgot the password because it had been so long since I installed the Ubuntu Linux server. Here is what I did to fix that:

  1. Reboot the server: If the server is currently running, it's best to start with a clean reboot. You can use the `reboot` command to restart the system.
  2. Access the GRUB menu: After the server starts up, you need to access the GRUB menu. Press and hold the Shift key during the boot process to make the GRUB menu appear. If the Shift key doesn't work, you can try using the Esc key.
  3. Select the recovery mode: In the GRUB menu, select the option that starts with "Advanced options" or "Recovery mode" and press Enter.
  4. Choose the root shell: On the next screen, you'll see a list of recovery options. Select the option that says "root - Drop to root shell prompt" or "root - Enable networking" and press Enter.
  5. Remount the file system: After the root shell prompt appears, the file system is initially mounted as read-only. To remount it with write permissions, enter the following command: mount -o remount,rw /
  6. Reset the password: With the file system mounted as read-write, you can now reset the password for the desired user. Enter the following command, replacing "username" with the actual username of the account: passwd username
  7. You will be prompted to enter a new password. Follow the on-screen instructions to set a new password for the user.
  8. Restart the server: Once the password is reset, you can restart the server by entering the following command: reboot
  9. Login with the new password: After the server restarts, you should be able to log in using the new password for the user account you reset.

These steps should guide you through resetting the password on your Ubuntu server while also accessing the GRUB menu.


Server Hardware

Total RAM: 31Gb, Available RAM: 30Gb

Disk space: 82 Gb

Linux Commands:

RAM (human readable): free -h

Available disk space: df -h /home/jlillywhite



Step 1: Install Linux Server on the machine


Step 2: Remote into the server from Windows PC

Comments

Popular posts from this blog

Configure remote desktop

I want to remote into the linux server from a windows pc for convenience in working with the server. I read that Remote Desktop Protocol (RDP) is a good option so I installed Xrdp sudo apt install xrdp IP address of server machine: eno2:  inet 10.0.0.123/24 inet6 2601:601:1:1100::2396/128 First step is to install Remote Desktop Protocol (RDP) server xrdp on the Ubuntu 20.04 desktop. To do so execute the following command: $ sudo apt install xrdp Enable to start after reboot and run the remote desktop sharing server xrdp: $ sudo systemctl enable --now xrdp Still on the Ubuntu 20.04 desktop, open a firewall port 3389 for an incoming traffic: $ sudo ufw allow from any to any port 3389 proto tcp I successfully remoted into the server from my Windows PC! But it didn't log in properly. :(  I created a user "saducee" with a unique password for testing. I was thinking it might be easier for a user without admin rights to rdp in. I went through steps to get xrdp configged to accep

Server Hardware

  I inherited this machine from work. It came with a simple monitor and keyboard and backup power supply (more about that later). I turned the machine on and discovered the following information about the server hardware: RAM Total RAM: 31Gb Available RAM: 30Gb Disk Space Disk space: 82 Gb References Linux commands used: RAM (human readable): free -h Available disk space: df -h /home/jlillywhite (I wanted to make sure it didn't include some "virtual filesystems" that show up when you do "df" by itself.