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:

Customizing Grub on Fedora 38 - Add Grub Theme

 Spec :

- Asus Vivobook F512JA

- UEFI Firmware


Theme Location : 

- /boot/grub2/themes

note : i think you should using /boot directory instead of using /usr directory, just to make sure the theme can be access by the grub, because i have sparated the /boot mount point on other partition from /usr


Config File on : /etc/default/grub


# ---------GRUB CONFIG------

GRUB_TIMEOUT=5

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"

GRUB_DEFAULT=saved

GRUB_DISABLE_SUBMENU=true

GRUB_TERMINAL_OUTPUT="gfxterm"

GRUB_CMDLINE_LINUX="resume=UUID=5a9c3ee7-e526-4a2d-87ca-806d26a9299b rhgb quiet"

GRUB_DISABLE_RECOVERY="true"

#GRUB_ENABLE_BLSCFG=true

#MY_OWN_CONFIG

GRUB_GFXMODE=1920x1080x32

GRUB_GFXPAYLOAD_LINUX=keep

GRUB_THEME=/boot/grub2/themes/Xenlism-Fedora/theme.txt


note : change the value of GRUB_TERMINAL_OUTPUT to gfxterm, and comment GRUB_ENABLE_BLSCFG. and then add GRUB_GFXMODE, GRUB_GFXPAYLOAD_LINUX, and GRUB_THEME.

Then run this command.

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

i use uefi firmware btw, if not uefi maybe can looking for the command on other forum.

Share: