Friday, May 28, 2021

How to recover the deleted vsftpd configuration file

Solution to recover the deleted configuration file of vsftpd


While learning to the server configuration you have to write many code to the configuration file in linux server. It is better to do backup before editing the configuration file. But sometimes we forget to do back up the configuration file and start configuring and cause to an error and we need to get the default configuration file  or somehow it get deleted .

To get the configuration file of ftp server i.e vsftpd.conf file back you have remove the vsftpd and install again.

To remove vsftpd

sudo apt-get remove vsftpd --purge 

To Install vsftdp

sudo apt-get install vsftpd


Note : Simply removing and installing again does not recover the configuration file .

Sunday, May 16, 2021

Five Ways to open CMD Command Prompt with admin previlages


The slow way to open this essential power user's tool is to dig through the Start menu (Start > Windows System > Command Prompt). Here are a handful of faster ways that also give you control over startup folders and whether you run the command session as an administrator.

1.Right-click Start and choose Command Prompt or Command Prompt (Admin) from the Quick Link menu. You can also use keyboard shortcuts for this route: Windows key + X, followed by C (non-admin) or A (admin).

2.Type cmd in the search box, then press Enter to open the highlighted Command Prompt shortcut. To open the session as an administrator, press Ctrl+Shift+Enter.

3.From File Explorer, click in the address bar to select its contents; then type cmd and press Enter. That opens a non-admin Command Prompt session in the current folder.

4.In a File Explorer window, hold down Shift as you right-click on a folder or drive. That opens a non-admin Command Prompt session in the selected location.

5.Type cmd in run command box, then press Enter to open the highlighted Command Prompt shortcut. To open the session as an administrator, press Ctrl+Shift+Enter.

If you're a PowerShell user, you can open a Command Prompt session from PowerShell by typing cmd and pressing Enter. To return to PowerShell, type exit and press Enter.

Friday, May 14, 2021

How To Start WIFI Hotspot or Hostednetwork Using CMD

Hotspot is created using wifi. The hotspot provides internet to wireless devices by using wifi. A hotspot is created using an access point device, but in normal use, a hotspot and an access point can mean the same. An access point is usually connected to a gateway or router, that is connected to the Internet. Hotspot are less secure than private wifi because they are commonly used in public places.

There is two ways to enable hotspot in windows 10 
1. Using GUI interface 
2. Using CMD

  • Open the cmd with administrate privileges and type the following command there.
  • netsh wlan show drivers- this command helps to show about the wireless driver installed in your computer.
  • netsh  wlan set hostednetwork mode=allow ssid=[your wifi name] key=[your password] and hit enter
  • netsh wlan start hostednetwork

[ 
Note :For understanding the code you typed in command prompt
netsh stands for network shell 
set hostednetwork mode=allow helps to allow or disallow the hostednetwork 
ssid for your wifi name 
key for the password  
netsh wlan start hostednetwork- this will start the hostspot 
]

Connect to the wifi using password you have kept , You will get connected to the wifi
but you will unable to surf internet through which you have connect so  you have to share the wifi connection through this network which you have just created. To do follow the following process.

Open adapter setting and right click on the wifi and click on the properties and goto the sharing tab 


Tick to allow other network user to connect through this computer and select the adapter which has just been created and then click ok.

Top Five Browser

1 . Brave Browser Brave  Browser   is one of the best browser in the list even it is similar to all other browser because it has one of ...