Showing posts with label PC. Show all posts
Showing posts with label PC. Show all posts

October 01, 2019

Remote desktop connection to Azure AD joined computer device

Hi Folks,

I have an issue of remotely connecting one of the Azure AD joined computer.

Fix is explained below


  1. Open "Remote Settings" from "System".
  2. You should be able to view "Remote" tab from "System Properties".
  3. Uncheck "Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended)" from Remote Desktop section.
  4. Open regedit.exe.
  5. Navigate to "Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp".
  6. Update "SecurityLayer" key to "0" (Zero) from default 2 (Two).
  7. Reboot your system.
  8. While taking remote desktop, user "AzureAD\"your work email id" as your username.
  9. You should be able to connect your AzureAD joined system remotely from now.


Please send your comments and feedback to psrdotcom@gmail.com

July 29, 2019

Docker postgres db to local volume/drive for persistent storage permanently

Hi all,

Today, I would be explaining the way to maintain the DB with data persistent when connecting to docker.

System Status

Postgresql DB container is in Docker
Windows 10 PC
Linux containers

Issue

Whenever I restart docker/PC the database wiped off due to container is stopped.

Solution

Create a docker volume

Syntax: docker volume create <>
Example: docker volume create pgdata

Start the container with volume option

Syntax: docker run --rm --name <> -e POSTGRES_PASSWORD=<> -d -p 5432:5432 -v <>:/var/lib/postgresql/data <>
Example: docker run --rm --name pgcontainer -e POSTGRES_PASSWORD=MyPassword -d -p 5432:5432 -v pgdata:/var/lib/postgresql/data postgres

Now, you can run all your database commands

Upon restart also, your data should be safe.

Thanks for reading the blog post.

Please send your feedback and comments to psrdotcom@gmail.com

April 05, 2017

Capture localhost (127.0.0.1) system packets using RawCap

Hi friends,

Today I am going to share the knowledge of capturing network packets in local system i.e. localhost.

Using RawCap utility, you can capture the loopback adapter packets which are our localhost packets.

Procedure

Download the RawCap.exe from Netresec website url
http://www.netresec.com/?page=RawCap
Once you download it
Open command prompt with administrator privileges
You have the following options while running the RawCap.exe

Syntax

RawCap.exe
-c <-> Stop capturing after the specified packet count reached
-f <-> Flush each packet without buffering
-s

Example 1:
RawCap.exe 127.0.0.1 dump.pcap
Note: Ctrl + C to stop the capturing

Example 2:
RawCap.exe -c 1000 127.0.0.1 dump.pcap
After 1000 packets, the capturing will stop

Please send your feedback and comments to psrdotcom@gmail.com

November 24, 2011

Android Video Screen Capture on PC and Mac tool

Hi Andoird Developers/Users,

Today I have come across, Android Video Screen Display on PC and Mac.

Please follow these steps to see your mobile screen on PC/Mac

Pre-requesites:
a) We should have android-sdk installed on our PC/Mac. If it is not installed, then please download from this link
b) We should have JRE installed on our PC/Mac. If it is not installed, then please download from this link
c) Please know your android-sdk installation directory.
d) Make sure that, we have installed our device USB driver.
e) Please use the USB debugging mode while connecting to the PC/Mac.

Installation:
Run the following commands in terminal
i) cd /platform-tools/
ii) adb devices

Note: is a directory, where you have installed the android sdk software.


By now our device will be recognized and ready to use (Don't disconnect the device).

iii) Download and Run the tool to display Android Device Screen
http://androidscreencast.googlecode.com/svn/trunk/AndroidScreencast/dist/androidscreencast.jnlp

iv) If JRE is installed properly, we can run the tool just by double-clicking on it.
(or)
Through command prompt, we can run the following command.
iv) cd
v) javaws androidscreencast.jnlp

Now we can see the mobile screen on the PC. We can record the screen by selecting the record menu.

References:
1. androidscreencast - Project Hosting on Google Code
2. http://azerdark.wordpress.com/2011/06/06/displaying-android-device-screen-on-pc/

For any queries, mail to psrdotcom@gmail.com

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com