0% found this document useful (0 votes)
9 views12 pages

Visual Studio

Uploaded by

shilpa2310nayak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views12 pages

Visual Studio

Uploaded by

shilpa2310nayak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

PS C:\Users\Nilesh> wsl --install

Downloading: Ubuntu

Installing: Ubuntu

[ 0.0% ]

* History restored

PS C:\Users\Nilesh> wsl --version


WSL version: [Link]

Kernel version: [Link]-1

WSLg version: 1.0.65

MSRDC version: 1.2.5716

Direct3D version: 1.611.1-81528511

DXCore version: [Link]-release

Windows version: 10.0.26100.3915

PS C:\Users\Nilesh> wsl
ilesh@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo apt update
[sudo] password for ilesh:

Hit:1 [Link] noble InRelease

Hit:2 [Link] noble-updates InRelease

Hit:3 [Link] noble-security InRelease

Hit:4 [Link] noble-backports InRelease

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

99 packages can be upgraded. Run 'apt list --upgradable' to see them.

ilesh@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo apt install wget gpg -y


Reading package lists... Done
Building dependency tree... Done

Reading state information... Done

wget is already the newest version (1.21.4-1ubuntu4.1).

wget set to manually installed.

The following additional packages will be installed:

dirmngr gnupg gnupg-l10n gnupg-utils gpg-agent gpg-wks-client gpgconf gpgsm gpgv


keyboxd

Suggested packages:

pinentry-gnome3 tor parcimonie xloadimage gpg-wks-server scdaemon

The following packages will be upgraded:

dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpgconf gpgsm gpgv
keyboxd

11 upgraded, 0 newly installed, 0 to remove and 88 not upgraded.

Need to get 2291 kB of archives.

After this operation, 0 B of additional disk space will be used.

Get:1 [Link] noble-updates/main amd64 gpg-wks-client amd64


2.4.4-2ubuntu17.2 [70.9 kB]

Get:2 [Link] noble-updates/main amd64 dirmngr amd64 2.4.4-


2ubuntu17.2 [323 kB]

Get:3 [Link] noble-updates/main amd64 gnupg-utils amd64


2.4.4-2ubuntu17.2 [109 kB]

Get:4 [Link] noble-updates/main amd64 gpgsm amd64 2.4.4-


2ubuntu17.2 [232 kB]

Get:5 [Link] noble-updates/main amd64 gpg-agent amd64


2.4.4-2ubuntu17.2 [227 kB]

Get:6 [Link] noble-updates/main amd64 gpg amd64 2.4.4-


2ubuntu17.2 [565 kB]

Get:7 [Link] noble-updates/main amd64 gpgconf amd64 2.4.4-


2ubuntu17.2 [103 kB]

Get:8 [Link] noble-updates/main amd64 gnupg all 2.4.4-


2ubuntu17.2 [359 kB]
Get:9 [Link] noble-updates/main amd64 keyboxd amd64 2.4.4-
2ubuntu17.2 [78.3 kB]

Get:10 [Link] noble-updates/main amd64 gpgv amd64 2.4.4-


2ubuntu17.2 [158 kB]

Get:11 [Link] noble-updates/main amd64 gnupg-l10n all 2.4.4-


2ubuntu17.2 [66.1 kB]

Fetched 2291 kB in 4s (549 kB/s)

debconf: unable to initialize frontend: Dialog

debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)

debconf: falling back to frontend: Readline

(Reading database ... 63944 files and directories currently installed.)

Preparing to unpack .../0-gpg-wks-client_2.4.4-2ubuntu17.2_amd64.deb ...

Unpacking gpg-wks-client (2.4.4-2ubuntu17.2) over (2.4.4-2ubuntu17) ...

Preparing to unpack .../1-dirmngr_2.4.4-2ubuntu17.2_amd64.deb ...

Unpacking dirmngr (2.4.4-2ubuntu17.2) over (2.4.4-2ubuntu17) ...

Preparing to unpack .../2-gnupg-utils_2.4.4-2ubuntu17.2_amd64.deb ...

Unpacking gnupg-utils (2.4.4-2ubuntu17.2) over (2.4.4-2ubuntu17) ...

Preparing to unpack .../3-gpgsm_2.4.4-2ubuntu17.2_amd64.deb ...

Unpacking gpgsm (2.4.4-2ubuntu17.2) over (2.4.4-2ubuntu17) ...

Preparing to unpack .../4-gpg-agent_2.4.4-2ubuntu17.2_amd64.deb ...

Unpacking gpg-agent (2.4.4-2ubuntu17.2) over (2.4.4-2ubuntu17) ...

Preparing to unpack .../5-gpg_2.4.4-2ubuntu17.2_amd64.deb ...

Unpacking gpg (2.4.4-2ubuntu17.2) over (2.4.4-2ubuntu17) ...

Preparing to unpack .../6-gpgconf_2.4.4-2ubuntu17.2_amd64.deb ...

Unpacking gpgconf (2.4.4-2ubuntu17.2) over (2.4.4-2ubuntu17) ...

Preparing to unpack .../7-gnupg_2.4.4-2ubuntu17.2_all.deb ...

Unpacking gnupg (2.4.4-2ubuntu17.2) over (2.4.4-2ubuntu17) ...

Preparing to unpack .../8-keyboxd_2.4.4-2ubuntu17.2_amd64.deb ...

Unpacking keyboxd (2.4.4-2ubuntu17.2) over (2.4.4-2ubuntu17) ...


Preparing to unpack .../9-gpgv_2.4.4-2ubuntu17.2_amd64.deb ...

Unpacking gpgv (2.4.4-2ubuntu17.2) over (2.4.4-2ubuntu17) ...

Setting up gpgv (2.4.4-2ubuntu17.2) ...

(Reading database ... 63944 files and directories currently installed.)

Preparing to unpack .../gnupg-l10n_2.4.4-2ubuntu17.2_all.deb ...

Unpacking gnupg-l10n (2.4.4-2ubuntu17.2) over (2.4.4-2ubuntu17) ...

Setting up gnupg-l10n (2.4.4-2ubuntu17.2) ...

Setting up gpgconf (2.4.4-2ubuntu17.2) ...

Setting up gpg (2.4.4-2ubuntu17.2) ...

Setting up gnupg-utils (2.4.4-2ubuntu17.2) ...

Setting up gpg-agent (2.4.4-2ubuntu17.2) ...

Setting up gpgsm (2.4.4-2ubuntu17.2) ...

Setting up dirmngr (2.4.4-2ubuntu17.2) ...

Setting up keyboxd (2.4.4-2ubuntu17.2) ...

Setting up gnupg (2.4.4-2ubuntu17.2) ...

Setting up gpg-wks-client (2.4.4-2ubuntu17.2) ...

Processing triggers for install-info (7.1-3build2) ...

Processing triggers for man-db (2.12.0-4build2) ...

ilesh@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo adduser ansi1

info: Adding user `ansi1' ...

info: Selecting UID/GID from range 1000 to 59999 ...

info: Adding new group `ansi1' (1002) ...

info: Adding new user `ansi1' (1002) with group `ansi1 (1002)' ...

info: Creating home directory `/home/ansi1' ...

info: Copying files from `/etc/skel' ...

New password:

Retype new password:

passwd: password updated successfully


Changing the user information for ansi1

Enter the new value, or press ENTER for the default

Full Name []:

Room Number []:

Work Phone []:

Home Phone []:

Other []:

Is the information correct? [Y/n] y

info: Adding new user `ansi1' to supplemental / extra groups `users' ...

info: Adding user `ansi1' to group `users' ...

ilesh@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo usermod -aG sudo ansi1

ilesh@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo su ansi1

To run a command as administrator (user "root"), use "sudo <command>".

See "man sudo_root" for details.

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ ssh-keygen

Generating public/private ed25519 key pair.

Enter file in which to save the key (/home/ansi1/.ssh/id_ed25519):

Created directory '/home/ansi1/.ssh'.

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/ansi1/.ssh/id_ed25519

Your public key has been saved in /home/ansi1/.ssh/id_ed25519.pub

The key fingerprint is:

SHA256:hOuN2cqxukVJ5nNncWKEmIvRqicvoicvnpSKf2UWPVI ansi1@DESKTOP-N1T8S4M

The key's randomart image is:

+--[ED25519 256]--+

| . o .. |
| . +.E. |

| +++. + . |

| o+++o. + |

| . *oS.o |

| + .o+B o |

| o + +* o |

|B + oo + |

|*Xoooo+ |

+----[SHA256]-----+

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ hostname -i
[Link]

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ ssh ansi1@[Link]

ssh: connect to host [Link] port 22: Connection refused

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ ssh-copy-id ansi1@[Link]

/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed:


"/home/ansi1/.ssh/id_ed25519.pub"

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are
already installed

/usr/bin/ssh-copy-id: ERROR: ssh: connect to host [Link] port 22: Connection refused

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ ssh-copy-id ansi1@[Link]


/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed:
"/home/ansi1/.ssh/id_ed25519.pub"

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are
already installed

/usr/bin/ssh-copy-id: ERROR: ssh: connect to host [Link]

port 22: Connection refused


ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo apt update

[sudo] password for ansi1:

Hit:1 [Link] noble InRelease

Hit:2 [Link] noble-updates InRelease

Hit:3 [Link] noble-backports InRelease

Hit:4 [Link] noble-security InRelease

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

88 packages can be upgraded. Run 'apt list --upgradable' to see them.

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo apt install openssh-server

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

The following additional packages will be installed:

libwrap0 ncurses-term openssh-client openssh-sftp-server ssh-import-id

Suggested packages:

keychain libpam-ssh monkeysphere ssh-askpass molly-guard ufw

The following NEW packages will be installed:

libwrap0 ncurses-term openssh-server openssh-sftp-server ssh-import-id

The following packages will be upgraded:

openssh-client

1 upgraded, 5 newly installed, 0 to remove and 87 not upgraded.

Need to get 1785 kB of archives.

After this operation, 6854 kB of additional disk space will be used.

Do you want to continue? [Y/n] y


Get:1 [Link] noble-updates/main amd64 openssh-client amd64
1:9.6p1-3ubuntu13.11 [905 kB]

Get:2 [Link] noble-updates/main amd64 openssh-sftp-server


amd64 1:9.6p1-3ubuntu13.11 [37.3 kB]

Get:3 [Link] noble/main amd64 libwrap0 amd64 7.6.q-33 [47.9


kB]

Get:4 [Link] noble-updates/main amd64 openssh-server


amd64 1:9.6p1-3ubuntu13.11 [509 kB]

Get:5 [Link] noble/main amd64 ncurses-term all


6.4+20240113-1ubuntu2 [275 kB]

Get:6 [Link] noble-updates/main amd64 ssh-import-id all 5.11-


0ubuntu2.24.04.1 [10.1 kB]

Fetched 1785 kB in 4s (507 kB/s)

debconf: unable to initialize frontend: Dialog

debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)

debconf: falling back to frontend: Readline

Preconfiguring packages ...

(Reading database ... 63944 files and directories currently installed.)

Preparing to unpack .../0-openssh-client_1%3a9.6p1-3ubuntu13.11_amd64.deb ...

Unpacking openssh-client (1:9.6p1-3ubuntu13.11) over (1:9.6p1-3ubuntu13.5) ...

Selecting previously unselected package openssh-sftp-server.

Preparing to unpack .../1-openssh-sftp-server_1%3a9.6p1-3ubuntu13.11_amd64.deb ...

Unpacking openssh-sftp-server (1:9.6p1-3ubuntu13.11) ...

Selecting previously unselected package libwrap0:amd64.

Preparing to unpack .../2-libwrap0_7.6.q-33_amd64.deb ...

Unpacking libwrap0:amd64 (7.6.q-33) ...

Selecting previously unselected package openssh-server.

Preparing to unpack .../3-openssh-server_1%3a9.6p1-3ubuntu13.11_amd64.deb ...

Unpacking openssh-server (1:9.6p1-3ubuntu13.11) ...

Selecting previously unselected package ncurses-term.


Preparing to unpack .../4-ncurses-term_6.4+20240113-1ubuntu2_all.deb ...

Unpacking ncurses-term (6.4+20240113-1ubuntu2) ...

Selecting previously unselected package ssh-import-id.

Preparing to unpack .../5-ssh-import-id_5.11-0ubuntu2.24.04.1_all.deb ...

Unpacking ssh-import-id (5.11-0ubuntu2.24.04.1) ...

Setting up openssh-client (1:9.6p1-3ubuntu13.11) ...

Setting up ssh-import-id (5.11-0ubuntu2.24.04.1) ...

Setting up libwrap0:amd64 (7.6.q-33) ...

Setting up ncurses-term (6.4+20240113-1ubuntu2) ...

Setting up openssh-sftp-server (1:9.6p1-3ubuntu13.11) ...

Setting up openssh-server (1:9.6p1-3ubuntu13.11) ...

debconf: unable to initialize frontend: Dialog

debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)

debconf: falling back to frontend: Readline

Creating config file /etc/ssh/sshd_config with new version

Creating SSH2 RSA key; this may take some time ...

3072 SHA256:qTHoJSSu5AFhkFlhWiQaTnL5T7SWl9xosl/JkpkNdUU root@DESKTOP-N1T8S4M


(RSA)

Creating SSH2 ECDSA key; this may take some time ...

256 SHA256:++nYDVCZE7Xi0HEvmrRj3yMDcH92JZUtcmc58kpo6c4 root@DESKTOP-


N1T8S4M (ECDSA)

Creating SSH2 ED25519 key; this may take some time ...

256 SHA256:XF37eItDGgkvl361KdF2YZ6iY2mVB3rSots+1CZho2Y root@DESKTOP-N1T8S4M


(ED25519)

Created symlink /etc/systemd/system/[Link]/[Link] →


/usr/lib/systemd/system/[Link].

Created symlink /etc/systemd/system/[Link]/[Link] →


/usr/lib/systemd/system/[Link].

Processing triggers for man-db (2.12.0-4build2) ...


Processing triggers for libc-bin (2.39-0ubuntu8.4) ...

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo service ssh start

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo ss -tlnp | grep ssh

LISTEN 0 4096 *:22 *:* users:(("sshd",pid=2557,fd=3),


("systemd",pid=1,fd=59))

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ ssh-copy-id ansi1@[Link]

/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed:


"/home/ansi1/.ssh/id_ed25519.pub"

The authenticity of host '[Link] ([Link])' can't be established.

ED25519 key fingerprint is SHA256:XF37eItDGgkvl361KdF2YZ6iY2mVB3rSots+1CZho2Y.

This key is not known by any other names.

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are
already installed

/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to


install the new keys

ansi1@[Link]'s password:

Permission denied, please try again.

ansi1@[Link]'s password:

Number of key(s) added: 1

Now try logging into the machine, with: "ssh 'ansi1@[Link]'"

and check to make sure that only the key(s) you wanted were added.

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo apt update


Hit:1 [Link] noble-security InRelease

Hit:2 [Link] noble InRelease


Hit:3 [Link] noble-updates InRelease

Hit:4 [Link] noble-backports InRelease

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

87 packages can be upgraded. Run 'apt list --upgradable' to see them.

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo apt install ansible -y


Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

ansible is already the newest version (9.2.0+dfsg-0ubuntu5).

0 upgraded, 0 newly installed, 0 to remove and 87 not upgraded.

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ ansible --version


ansible [core 2.16.3]

config file = None

configured module search path = ['/home/ansi1/.ansible/plugins/modules',


'/usr/share/ansible/plugins/modules']

ansible python module location = /usr/lib/python3/dist-packages/ansible

ansible collection location =


/home/ansi1/.ansible/collections:/usr/share/ansible/collections

executable location = /usr/bin/ansible

python version = 3.12.3 (main, Jan 17 2025, [Link]) [GCC 13.3.0] (/usr/bin/python3)

jinja version = 3.1.2

libyaml = True

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo mkdir -p /etc/ansible

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo nano /etc/ansible/hosts

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ ansible-inventory --list -y

all:
children:

local:

hosts:

localhost:

ansible_connection: local

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$ sudo ansible all -m ping


localhost | SUCCESS => {

"ansible_facts": {

"discovered_interpreter_python": "/usr/bin/python3"

},

"changed": false,

"ping": "pong"

ansi1@DESKTOP-N1T8S4M:/mnt/c/Users/Nilesh$

You might also like