How to turn off/on firewall on Windows 11 from Registry

To turn off the Windows 11 (Pro) firewall through the Registry, use these steps:

  1. Open Start
  2. Search for regedit and click the top result to open the Registry
  3. Open the following path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall
  4. Right-click the “WindowsFirewall” key, select the New menu, and choose the Key option.
  5. Name the key StandardProfile and press Enter
  6. Right-click the “StandardProfile” key, select the New menu, and choose the “DWORD (32-bit) Value” option.
  7. Name the EnableFirewall name and press Enter
  8. Double-click the newly created key and make sure the value is set to “0”.
  9. Click the OK button.
  10. Restart the computer.

Once you complete the steps, the firewall will be disabled after the device startup process.

Enable firewall using Registry

To turn on the Windows 11 firewall through the Registry, use these steps:

  1. Open Start
  2. Search for regedit and click the top result to open the Registry
  3. Open the following path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile
  4. Right-click the EnableFirewall key and choose the Delete option.
  5. Click the OK button.
  6. Restart the computer.

After you complete the steps, the system firewall will enable on Windows 11.

[mai mult...]

Create Clonezilla bootable USB with Tuxboot

Create Clonezilla bootable USB with Tuxboot

You can create a Clonezilla USB with the Tuxboot open-source app with these steps:

  1. Download tuxboot from SourceForge. (Select the latest stable version available.)
  2. Double-click the tuxboot-x.x.x.exe file.
  3. Click the Yes button to bypass the warning.
  4. Select the “On-Line Distribution” option.
  5. Use the drop-down menu and select the Clonezilla-live-stable option.
  6. Select the USB Drive option from the “Type” setting.
  7. Select the flash drive from the “Drive” setting.

  •  Click the OK button.
  • Once you complete the steps, before starting your device with the tool, you need to ensure that your device can boot from USB.
  • Typically, you will need to access your device’s Basic Input/Output System (BIOS) or Unified Extensible Firmware Interface (UEFI) by hitting one of the function keys (F1, F2, F3, F10, or F12), the ESC, or the Delete key during boot.
  • Once inside the firmware, look for the Boot section and make sure the boot order is set to the drive that contains the Windows 10 installation files and do not forget to save the configuration.
  • The BIOS/UEFI can differ depending on the manufacturer and per computer model. As such, check your manufacturer support website for more specific instructions.
[mai mult...]

Create a vpn profile and connect to a vpn in Windows 11

Before you can connect to a VPN, you must have a VPN profile on your PC. You can either create a VPN profile on your own or set up a work account to get a VPN profile from your company.

Before you start:

  • If it’s for work, look for VPN settings or a VPN app on your company’s intranet site while you’re at work, or contact your company’s support person.
  • If it’s for a VPN service you subscribe to for personal use, visit the Microsoft Store to see if there’s an app for that service, then go to the VPN service’s website to see if the VPN connection settings to use are listed there.

Once you have your work or personal VPN settings ready:

  1. Select Start  > Settings  > Network & internet VPN > Add VPN.
  2. Under Add a VPN connection, do the following:
    • For VPN provider, choose Windows (built-in).
    • In the Connection name box, enter a name you’ll recognize (for example, My Personal VPN). This is the VPN connection name you’ll look for when connecting.
    • In the Server name or address box, enter the address for the VPN server.
    • For VPN type, choose the type of VPN connection you want to create. You’ll need to know which kind of VPN connection your company or VPN service uses.
    • For Type of sign-in info, choose the type of sign-in info (or credentials) to use. This might be a username and password, one-time password, certificate, or a smart card if you’re connecting to a VPN for work. Enter your username and password in the respective boxes (if required).
  3. Select Save.

If you need to edit the VPN connection info or specify additional settings, such as proxy settings:

  • From the VPN settings page, select the VPN connection you want to edit, select Advanced options, then select Edit next to the details you want to update. Once you’ve made the updates needed select either Save or Apply.
Connect to a VPN

When you have a VPN profile, you’re ready to connect.

Connect to a VPN quickly from your taskbar:

  1. On your taskbar, select the Network, Volume, Battery    icon > VPN.
  2. From the list of VPN connection names, select the one you want, and then select Connect.
  3. If prompted, enter your username and password or other sign in info.

Connect to a VPN from the Windows Settings page: 

  1. Select Start  > Settings  > Network & internet VPN.
  2. Next to the VPN connection you want to use, select Connect.
  3. If prompted, enter your username and password or other sign in info.

You’ll know you’re connected to a VPN in the following two ways:

  • On the VPN settings page, the VPN connection name will display Connected underneath it.
  • On the taskbar, a blue shield will display when you’re connected to a recognized VPN.
[mai mult...]

How to enable/disable Remote Desktop using Command Prompt on

To enable the remote desktop protocol with Command Prompt, use these steps:

  1. Open Start on Windows 10
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option
  3. Type the following command to enable the remote desktop protocol and press Enter:
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
  4. (Optional) Type the following command to enable remote desktop through the Windows Firewall and press Enter:
    netsh advfirewall firewall set rule group="remote desktop" new enable=Yes

Once you complete the steps, the protocol will enable on Windows 10, and you will be able to access the device remotely.

Disable Remote Desktop from Command Prompt

To turn off the remote desktop protocol with Command Prompt, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to disable the remote desktop protocol and press Enter:
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f
  4. (Optional) Type the following command to disable Remote Desktop through the Windows Firewall and press Enter:
    netsh advfirewall firewall set rule group="remote desktop" new enable=No

After you complete the steps, the Remote Desktop service will be turned off, and the Windows Firewall port will be closed. This guide focuses on Command Prompt, but you can use the same commands to manage the remote desktop protocol using PowerShell.

[mai mult...]

Change to dynamic IP address (DHCP) from Settings

To enable DHCP to obtain a TCP/IP configuration automatically on Windows 10, use these steps:

  1. Open Settings on Windows 10
  2. Click on Network & Internet
  3. Click on Ethernet or Wi-Fi
  4. Click the network connection
  5. Under the “IP settings” section, click the Edit button

         

6. Use the Edit IP settings drop-down menu and select the Automatic (DHCP) option

         

7. Click the Save button.

Once you complete the steps, the networking stack configuration will reset, and your device will request an IP address from the DHCP server (usually your router).

[mai mult...]

How do I set a static IP address in Windows?

To set a static IP address in Windows 7, 8, and 10:

  1. Click Start Menu > Control Panel > Network and Sharing Center or Network and Internet > Network and Sharing Center.
  2. Click Change adapter settings.
  3. Right-click on Wi-Fi or Local Area Connection.
  4. Click Properties.
  5. Select Internet Protocol Version 4 (TCP/IPv4).
  6. Click Properties.
  7. Select Use the following IP address.
  8. Enter the IP addressSubnet maskDefault gateway, and DNS server.
  9. Click OK.
    Your computer displays a static IP address.
[mai mult...]

How to fix ssh: connect to host port 22: Connection refused

The syntax for the SSH command is as follows:

ssh [options] [user@]hostname [command]

Here is a brief explanation of each part of the syntax:

  • ssh – This is the command to initiate the SSH connection.
  • [options] – This is an optional parameter that allows you to specify additional options to configure the SSH connection. For example, you can use the -p option to specify a non-standard SSH port.
  • [user@]hostname – This is the remote host that you want to connect to. You can optionally specify a username to use for the SSH connection. If you omit the username, the default username for your current session will be used.
  • [command] – This is an optional parameter that allows you to specify a command to run on the remote host after the SSH connection is established. If you omit this parameter, you will be dropped into an interactive shell on the remote host.

Here is an example of how to use the SSH command to connect to a remote host:

ssh username@example.com

This will initiate an SSH connection to the host example.com using the username username.

If you have already set up SSH keys, you will be logged in without being prompted for a password. If not, you will be prompted to enter your password.

Verify SSH server status

Ensure that the SSH server is running and accessible on the host you are trying to connect to. Log in to the host using an alternative method like remote desktop or console access, and check the SSH server’s status with the following command:

systemctl status ssh

If the SSH server is not running, start it using the appropriate command for your system. For example:

systemctl start ssh

Confirm SSH server port

By default, SSH servers listen on port 22. However, it’s possible that the SSH server on the host you’re trying to connect to is configured to use a different port.

  • To check which port the SSH server is using, you can follow these steps:
  • Log in to the server where the SSH server is running. You can use an alternative method like remote desktop or console access if you cannot establish an SSH connection.
  • Once you’re logged in to the server, open a terminal or command prompt.
  • Run the following command to view the SSH server’s configuration file:

sudo nano /etc/ssh/sshd_config

This command opens the SSH server configuration file in the Nano text editor. Look for the line that specifies the port number. It typically looks like this:

Port 22

  • If the port number is set to the default value of 22, it means the SSH server is using the default port. If a different port number is specified, take note of that number.
  • After noting the port number, press Ctrl+X to exit the Nano editor. You will be prompted to save the changes made to the file. If you did not make any changes, simply press N to exit without saving.
  • Remember, if the SSH server is using a non-standard port, you will need to specify that port when connecting to the server using SSH. For example:

ssh -p <port_number> <username>@<host>

If you do not have access to the server’s configuration file, you can also try checking the SSH server’s status and listening ports by running the following command:

sudo netstat -tuln | grep ssh

This command will display the active TCP/UDP connections and listening ports on the server. Look for the line that includes “ssh” to find the port number being used by the SSH server.

Verify network connectivity

Verifying network connectivity is an important step when troubleshooting the “ssh: connect to host <host> port 22: Connection refused” error. It helps determine if there are any network-related issues that might be preventing your SSH client from reaching the SSH server.

The ping command is a common tool used to test network connectivity between two devices. When you execute the ping <host> command, your computer sends a small network packet to the specified host, and if the host is reachable and responsive, it sends a reply back.

If the ping command returns a response from the host, it indicates that the network connection is working fine. In this case, the “ssh: connect to host <host> port 22: Connection refused” error is likely due to a different issue, such as the SSH server not running or a firewall blocking the SSH connection.

However, if the ping command fails to receive a response or shows that the host is unreachable, it suggests a network connectivity problem.

This could be caused by various factors, such as network configuration issues, routing problems, network outages, or firewall restrictions. To resolve the issue, you may need to troubleshoot the network components, check network settings, contact your network administrator, or consult with an IT professional.

Firewall blocking the connection
  • When encountering the “ssh: connect to host <host> port 22: Connection refused” error, one possible cause is a firewall blocking the SSH connection.
  • Firewalls are security measures that monitor and control network traffic, and they can be set up at different points within a network, including the SSH server or any intermediate network devices.
  • Firewalls often enforce rules that determine which network connections are allowed or blocked.
  • Determine if the firewall is on the SSH server itself or if it is located on an intermediate network device, such as a router or a dedicated firewall appliance.
  • If the firewall is located on an intermediate network device, such as a router, you need to configure it to permit SSH traffic to reach the SSH server. Again, consult the documentation or seek assistance from the network administrator to adjust the firewall rules accordingly.

As a troubleshooting step, you can temporarily disable the firewall(s) to determine if they are indeed the cause of the connection issue. This should only be done for testing purposes and should not be a permanent solution. Always exercise caution when making changes to firewall configurations.

[mai mult...]

How to disable the automatic saving of photos and videos from the Instagram application on the phone?

How to disable the automatic saving of photos and videos from the Instagram application on the phone?
  • Open the Instagram application from your phone.
  • Click on the profile picture in the lower right corner

  • Click on the 3 stripes on the right of the screen.

  • Go to Settings

  • Select the account

  • Then go to Original Posts

  • We disable all 3 columns

From now on, you will no longer take up space on your phone with photos and videos from Instagram.

[mai mult...]

How to extend your Samsung Galaxy battery life

1. Reduce display brightness level

High display brightness and long screen time-out setting will increase battery drain. One of the simplest way to prolong your device battery life is to reduce the screen brightness, and here’s how you can do it:

1) From the home screen > swipe down from the top to view the notification panel

2) Drag the brightness slider towards the left

3) At the same time, adjust the screen time-out setting > Tap the gear icon at the top > Select My Device tab > Select Display

4) Tap Screen timeout > Set your time-out preferences

Special Tip: Try setting your screen timeout to 30 seconds and display brightness to Auto.

2. Close, disable or uninstall unused Apps

Some apps may run background processes that deplete your battery. Once you’re ready to uninstall your unused apps, there are a few ways to go about it.

Fastest way to uninstall apps:

1) On your home screen > long-press on the app
2) Tap the Uninstall icon > Followed by OK

For more control over your apps:

1) Go to Settings > Apps.
2) Tap the overflow icon on the top right to sort apps by size or required permissions.
3) To uninstall, simply tap on the app name followed by the Uninstall icon.

Disable apps to increase battery life:

Unfortunately, some apps cannot be uninstalled on the certain Galaxy devices like Samsung Galaxy S9/S9+. However, you can disable the apps to increase battery life. To disable apps, simply follow either of the paths above and select Disable.

3. Turn off Always On Display (AOD) or set schedule

Always On Display or AOD uses AMOLED displays to show you certain information when your screen is “off”. It allows you to easily check basic information such as date and time without activating the display. Naturally, any activity that makes your screen turn on all the time will consume some power from your battery. You can choose to turn off AOD or set a time schedule for AOD to turn on/off.

To turn off AOD:  

1) Go to Settings > Lock screen and security > Lock screen and Always On Display
2) Turn off AOD by tapping on the AOD slider (circle will move to the left)

4. Toggle off WiFi, Bluetooth and GPS when not in use

Switch off Wi-Fi, Bluetooth and GPS if you don’t need them, as each regular checks for a signal uses power. You can switch each of these off by pulling down the notification panel (drop down menu) and tapping the relevant icon.

5. Turn on Power saving mode

Power saving mode conserves battery power by limiting mobile device CPU performance, reducing screen brightness, turning off the touch key light and vibration feedback. This mode differs slightly between devices but generally it will close all unnecessary apps and screens so that you can substantially increase your battery time. You can turn on Power saving mode manually, or you can set your device to go into Power saving mode automatically.

Go to Settings > Device maintenance > Battery.

6. Download the latest device software
  • Check your latest device software by going to Settings > About phone.
  • Upgrade your software using either FOTA (‘Firmware Over The Air’, i.e. wirelessly) or via Samsung Kies.
7. Check your device Signal bars

Check the number of bars that you normally see on your handset while at home or work. Using the handset in areas with very low signal uses a lot of power and should be avoided where possible.

8. Check how often your device synchronises data

If like most people, you have a number of apps on your device such as email or social media, these apps will frequently sync, or check for new emails or updates. Frequently syncing can reduce your battery life. Check the sync settings on your apps or email, and ensure they only sync as often as you need them to.

9. Avoid fully discharging your battery

On much older types of batteries, the advice used to be to discharge them completely. However, completely discharging the battery on modern smartphones devices may reduce its life. It’s best not to let your battery go under 20%.

10. Store your device properly

If you do not intend to use your device for some time and pack it away, ensure that it has at least 50% battery.  Minimise hot and cold exposure.

[mai mult...]