Search

Total Pageviews

Categories

Linux (8) Windows (5) Container (4) Development (4) Database (3) Docker (3) Mac OS (3) QuickStart (3) Ubuntu (3) AWS (1) Fedora (1) FreeBSD (1) Git (1) Java (1) MyBatis (1) Oracle Linux (1) Spring Boot (1) Unix (1) VMware (1) Virtualization (1) kdevtmpfsi (1) kinsing (1)

Featured Post

Your container's CPU usage is more than 100%, "kdevtmpfsi" the cryptomining malware is running | So how to resolve

How to resolve when "kdevtmpfsi" the crypto-mining malware is running and taking all CPU load of your server (container). One d...

Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Wednesday, July 3, 2019

How to find and kill the program that's using a specific port number Windows and Linux

Windows:

1. Find the program that is using a port number:

D:\>netstat -ano | findstr 8090
  TCP    0.0.0.0:8090           0.0.0.0:0              LISTENING       10716
  TCP    [::]:8090              [::]:0                 LISTENING       10716

2. Kill the program:

D:\>taskkill /F /pid 10716
SUCCESS: The process with PID 10716 has been terminated.

Linux:

1. Find the program that is using a port number:

[koacervate@SVT00005523 ~]$ sudo netstat -lnp | grep 6379
tcp        0      0 10.16.30.76:6379        0.0.0.0:*               LISTEN      24982/redis-server
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      24982/redis-server

2. Kill the program:

[koacervate@SVT00005523 ~]$ ps -aef | grep redis
root     24982     1  0 13:31 ?        00:00:00 /usr/local/bin/redis-server 127.0.0.1:6379
htct     25086 24560  0 13:31 pts/0    00:00:00 grep --color=auto redis
[koacervate@SVT00005523 ~]$ sudo kill -9 24982

:))

"The action can't be completed because the folder or a file in it is open in another program Close the folder or file and try again." -> You are trying to move or delete a folder in Windows 10 but you get the message.

"The action can't be completed because the folder or a file in it is open in another program  Close the folder or file and try again."

git bash: "Unlink of file 'lib/ojdbc8.jar' failed. Should I try again? (y/n)"




So follow the steps below to resolve the issue:

1. From the Windows Start menu, open "Resource Monitor" program.



2. Choose the "CPU" tab.




3. Enter the file name or folder name to "Search Handles" box.




4. Choose from the result to kill (End Process) the programs which access to the files or folders.



Now you can modify, move or delete the files or folders as normal.

:))

Saturday, July 1, 2017

How to Install and use the Linux Ubuntu Bash Shell on Windows 10

Ubuntu-based Bash shell that can run Linux software directly on Windows. Ofcourse, only softwares based on Bash Shel. This isn’t a virtual machine, a container, or Linux software compiled for Windows (like Cygwin).


This is the version of Windows 10 I'm using to install Linux Ubuntu Bash Shell.



Please make sure your Windows 10 is up to date.


Open the Settings app and head to Update & Security > For Developers. Activate the “Developer Mode” switch here to enable Developer Mode.



Next, open the Control Panel, click “Programs,” and click “Turn Windows Features On or Off” under Programs and Features. Enable the “Windows Subsystem for Linux (Beta)” option in the list here and click “OK.”



After you do, you’ll be prompted to reboot your computer. Click “Restart Now” to reboot your computer and Windows 10 will install the new feature.


After your computer restarts, click the Start button (or press the Windows key), type “bash”, and press “Enter.”

You’ll be prompted to accept the terms of service. You’ll be asked to create a user account and password for use in the Bash environment.


Open your Start menu and search for “bash” or “Ubuntu.” You’ll see a “Bash on Ubuntu on Windows” application.

So now you can using your Linux favorite commands and install bash tools on Windows 10 as you familiar on your Linux.



Please refer to get more info about Linux Ubuntu Bash Shell on Windows 10.

Sunday, April 23, 2017

Get error: fatal error C1034: "stdio.h: no include path set" when you compile a C/C++ source code file.



1
2
3
4
5
6
7
F:\
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe" chrAprMax_byAdd.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

chrAprMax_byAdd.c
chrAprMax_byAdd.c(1): fatal error C1034: stdio.h: no include path set

- Please make sure you run "Developer Command Prompt for VS 20xx" or set Path variable includes "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\" before that and run cl.exe in the window opened by "Developer Command Prompt for VS 20xx".


or



-> So now you can compile C/C++ source file without error: "fatal error C1034: stdio.h: no include path set" :)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
F:\>cl chrAprMax.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

chrAprMax.c
Microsoft (R) Incremental Linker Version 14.10.25019.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:chrAprMax.exe
chrAprMax.obj

F:\>chrAprMax
Enter a string: just for fun
The character that appears the most frequently is "u" with 2 matched.

F:\>cl chrAprMax.cpp -o chrAprMaxpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.10.25019 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9035 : option 'o' has been deprecated and will be rem
oved in a future release
chrAprMax.cpp
Microsoft (R) Incremental Linker Version 14.10.25019.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:chrAprMax.exe
/out:chrAprMaxpp.exe
chrAprMax.obj

F:\>chrAprMaxpp
Enter a string: just for fun
The character that appears the most frequently is "u" with 2 matched.

Sunday, May 1, 2011

How to browse smb on windows 7 ?

1. Press Windows + R keys to open the Run command and type "secpol.msc".


2. Press "continue" when prompted.

3. Click on "Local Policies" --> "Security Options"


4. Navigate to the policy "Network Security: LAN Manager authentication level" and open it.

5. Change this to "LM and NTLM – use NTLMV2 session security if negotiated".


Once you’ve done this Windows 7 will be able to view network drives based on Samba servers and should fix any issues around using Samba as a Primary Domain Controller.

References: www.builderau.com.au