2025-11-03

Perfect Footer!

You know, I've been struggling with writing what should be a simple app component: a footer. Sounds easy, right? Yeah, that's what I thought. I wrote my code and it seemed fine, but then I hit that classic problem: "What happens if I don't have enough content on the page? Will the footer still stick to the bottom?" Maybe you came here because you're facing the same issue, asking yourself:

Share:

2023-08-08

Setting up vm ubuntu for cloning (making VM Template)

The Goals : Assign Static or Dynamic IP address regardless the ethernet name.

In some article wrote that should to remove /etc/machine-id but in this case we facing with ubuntu that using netplan, that cofiguring network on boot. so don't delete it, it will make some startup not working and can't assign the ip address, and if you already delete it, you can create again with sudo systemd-machine-id-setup then reboot.

Next we Use mainif: instead of using ethernet name, because of Starting with v197, systemd/udev under Linux automatically assigns predictable, stable network interface names [1]. them we use name: for matching if with the ethernet name using prefix or posfix, cmiiw idk either prefix or postfix, ya basically like that.

we can change the config at /etc/netplan/whatever-config.yaml to seem like code below. note: you need some yaml writing rule to edit the yaml file, but the point is the yaml indentation.

sudo nano /etc/netplan/whatever-config.yaml

network:
  ethernets:
    mainif:
      match:
        name: en*
      dhcp4: true
      dhcp-identifier: mac
  version: 2

Then apply using sudo netplan apply then reboot.

References :

[1] https://www.thomas-krenn.com/en/wiki/Predictable_Network_Interface_Names

https://askubuntu.com/questions/1131191/port-a-working-etc-network-interface-set-into-etc-netplan-name-yml

https://netplan.readthedocs.io/en/latest/netplan-yaml/

Share:

2023-06-23

Chrome - Managed by Organization

Today I facing issue about the chrome browser, the problem is i can't use DoH. So there are solution about this on my operating system forum. but i make a little bit step for this.

first i backup /etc/chromium/policies/recommended/00_gssapi.json Just to make sure one time i need this file. Then I remove the fedora-chromium-config-gssapi.noarch  Done.

packages info
Removing the packages


Reference :

https://discussion.fedoraproject.org/t/chrome-managed-by-organization/67189 

Share:

2023-06-21

How to rsync over ssh between termux on android and pc

rsync is software for syncing between different source, the advantage using rsync is it automatically compare, replace, delete etc. and also it can be use for copying file over the network. if you using wifi 6 or above it will speedup the file transfer speed rather than using usb mtp.


On Network

1. Connect your phone using wifi or wifi hotspot.

2. Make sure you know the ip from each device. check using 'ifconfig' 'ip addr' 'ipconfig' etc.


On Phone

$ pkg update

$ termux-setup-storage

$ pkg install nmap openssh rsync

$ whoami # to see username

$ passwd {username} # to set password to the username

$ sshd # to active ssh service

$ nmap localhost # to see port


On Pc

rsync --ignore-existing -avzhc --delete --progress -e 'ssh -p 8022' '/home/adminv/Music/Miix/Mix Mine/' 'ssh u0_a271@192.168.89.68:~/storage/music/Mix Mine/'

Just adjust the red and the blue one as your need. it can be 2 way, rsync to pc or rsync to phone.

Share:

Installing Japanese (Mocz) IME on fedora 38

 first install mozc and ibus-mozc on terminal 

"sudo dnf install mozc ibus-mozc"

after that the installation is complete, logout or restart.

after restart, add japanese (Mozc) input metodh from setting.

Settings > Keyboard > Input Source > + > Japanese > Japanese (Mozc)

then you can see on top bar, there a select input metodh, or can be switch by pressing "win + space" or "super + space" base on your keyboard.

note : to using hiragana, katakana, or kanji you should manually choose from the top bar, after that you just can press F6 for hiragana, F7 for katakana, and F8 For Kanji. Need a time to get use it.

Share: