How to Push to a GitHub Repository in IntelliJ

Image
1. Initialize and Connect the Git Repository # Run in the terminal from the project root git init git remote add origin https://github.com/[user]/[repository].git 2. Configure Git in IntelliJ Select VCS → Enable Version Control Integration . Choose Git and click OK . 3. Connect Your GitHub Account Go to File → Settings (on Windows) or IntelliJ IDEA → Preferences (on macOS). Navigate to Version Control → GitHub . Click Add Account ( + ). Select Log In with Token... and enter your GitHub Personal Access Token. 4. Add and Commit Files Go to VCS → Git → Add (or use the shortcut Ctrl+Alt+A ). Select the files you want to commit. Go to VCS → Commit (or use the shortcut Ctrl+K ). Write a commit message and click Commit . 5. Push Go to VCS → Git → Push (or use the shortcut Ctrl+Shift+K ). Click the Push button. Simpler Method (Using IntelliJ's Built-in Feature) Go to VCS → Share Project on GitHub . Set the repository name to vita-user-...

How to Set a Static IP Address for WiFi on Ubuntu 22.04 using Netplan

When I use WiFi on my test laptop, its IP address sometimes changes.
Because of this, I have to update the IP address on other client devices or change the settings of the application running on the test laptop.
It would be easier to set a fixed IP address for the test laptop directly on the router, but I can't do that because of security policies.
So, I decided to set a static IP address on the test laptop itself.


Check Ubuntu version

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy


1. Check Your WiFi Interface Name

$ ip address | grep 192
  inet 192.168.1.95/24 brd 192.168.1.255 scope global wlp3s0


2. Locate the Netplan Configuration File

$ cd /etc/netplan
/etc/netplan$ ls
01-network-manager-all.yaml


3. Back Up the Original File

$ sudo cp 01-network-manager-all.yaml 01-network-manager-all.org

4. Edit the Netplan YAML File

$ sudo vim 01-network-manager-all.yaml

network:
  version: 2
  renderer: networkd  # Change the renderer
  wifis:
    wlp3s0:  # Your WiFi interface name
      dhcp4: no  # Disable DHCP to use a static IP
      addresses:
        - 192.168.1.144/24  # Your desired static IP address
      routes:
        - to: default
          via: 192.168.1.254  # Your router's IP address (gateway)
      nameservers:
        addresses: [8.8.8.8, 1.1.1.1]  # DNS servers
      access-points:
        "Your_WiFi_SSID":
          password: "Your_WiFi_Password"

5. Apply the Configuration

$ sudo netplan try or $ sudo netplan apply

What Is a Renderer?

The renderer is a tool responsible for applying your network settings. Ubuntu supports two main renderers. Using networkd is recommended for more predictable and conflict-free static IP setups.

Renderer

Description

Use cases

NetworkManager

Desktop-oriented, supports GUI tools and the nmcli command line tool.

Laptops,

desktops

networkd

Lightweight and stable, suitable for static configuration via YAML.

Servers,

static IP use



Comments

Popular posts from this blog

Resolving Key Exchange Failure When Connecting with SecureCRT to OpenSSH

SecureCRT] How to Back Up and Restore SecureCRT Settings on Windows

How to Set Up Vaultwarden (Bitwarden) on Synology NAS (Best Free Alternative to LastPass)