BambooEngine / ibus-bamboo

Bộ gõ tiếng Việt cho Linux
GNU General Public License v3.0
1.17k stars 75 forks source link

Không gõ được tiếng Việt trên Ubuntu 22.04 #362

Open anhvandev opened 1 year ago

anhvandev commented 1 year ago

Mô tả: Cài đặt ibus-bamboo theo các bước hướng dẫn nhưng không gõ được tiếng việt, cũng không thể mở bảng điều khiển. Các bạn hỗ trợ mình setup với ạ, mình chỉ là normal user :((( Khi sử dụng lệnh ibus-setup để cài đặt cho ibus-bamboo thì nhận được lỗi này

panic: dial unix @/home/myuser@mydomain/.cache/ibus/dbus-5bAdaB6c: connect: connection refused

goroutine 1 [running]:
github.com/BambooEngine/goibus/ibus.NewBus.func1(...)
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/github.com/BambooEngine/goibus/ibus/bus.go:16
github.com/BambooEngine/goibus/ibus.NewBus()
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/github.com/BambooEngine/goibus/ibus/bus.go:21 +0x1dd
main.main()
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/ibus-bamboo/main.go:74 +0x1ea

Môi trường: Ubuntu 22.04.1 LTS Gnome Biến môi trường: GLFW_IM_MODULE=ibus GTK_IM_MODULE=ibus QT4_IM_MODULE=ibus XMODIFIERS=@im=ibus CLUTTER_IM_MODULE=ibus QT_IM_MODULE=ibus

luongthanhlam commented 1 year ago

bạn chạy 2 lệnh này và gửi output cho mình nhé

find ~/.config/ibus/bus/
cat $(find ~/.config/ibus/bus/)
anhvandev commented 1 year ago

@luongthanhlam output khi minh chay lenh:

/home/myuser@mydomain/.config/ibus/bus/
/home/myuser@mydomain/.config/ibus/bus/282a5f4e185648b19a57db5b6f98c1e0-unix-0
/home/myuser@mydomain/.config/ibus/bus/282a5f4e185648b19a57db5b6f98c1e0-unix-2
/home/myuser@mydomain/.config/ibus/bus/282a5f4e185648b19a57db5b6f98c1e0-unix-wayland-0
cat: /home/myuser@mydomain/.config/ibus/bus/: Is a directory
# This file is created by ibus-daemon, please do not modify it.
# This file allows processes on the machine to find the
# ibus session bus with the below address.
# If the IBUS_ADDRESS environment variable is set, it will
# be used rather than this file.
IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-Jx5KeVa1,guid=dd69e4500ef456205b370c7f632aafc3
IBUS_DAEMON_PID=42694
# This file is created by ibus-daemon, please do not modify it.
# This file allows processes on the machine to find the
# ibus session bus with the below address.
# If the IBUS_ADDRESS environment variable is set, it will
# be used rather than this file.
IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-LYj2UV1M,guid=92add43b19bbc32e03c5c1cd631e8cd0
IBUS_DAEMON_PID=3829
# This file is created by ibus-daemon, please do not modify it.
# This file allows processes on the machine to find the
# ibus session bus with the below address.
# If the IBUS_ADDRESS environment variable is set, it will
# be used rather than this file.
IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-Jx5KeVa1,guid=dd69e4500ef456205b370c7f632aafc3
IBUS_DAEMON_PID=42694
pmkhue commented 1 year ago

`@luongthanhlam minh cung bi y chang luon 18 thi ko bi nay ngua ngua up len 20 thi dinh. Nho ban coi dum voi

~$ find ~/.config/ibus/bus/ /home/me/.config/ibus/bus/ /home/me/.config/ibus/bus/e8b8962eb2bb459db9bfbec3889881c9-unix-wayland-0 /home/me/.config/ibus/bus/e8b8962eb2bb459db9bfbec3889881c9-unix-0 $ cat $(find ~/.config/ibus/bus/) cat: /home/me/.config/ibus/bus/: Is a directory

IBUS_ADDRESS=unix:abstract=/home/me/.cache/ibus/dbus-Q1GiKqaO,guid=76cdd40e6efac6353d1d2a87632f04f5 IBUS_DAEMON_PID=1692

IBUS_ADDRESS=unix:abstract=/home/me/.cache/ibus/dbus-Q1GiKqaO,guid=76cdd40e6efac6353d1d2a87632f04f5 IBUS_DAEMON_PID=1692 `

luongthanhlam commented 1 year ago

@anhvandev @pmkhue bạn có thể gửi teamviewer cho mình (ltlam93 at gmail.com) debug lỗi này trên máy được không nhỉ?

pmkhue commented 1 year ago

ok ban minh dang online ne de minh gui ban id

anhvandev commented 1 year ago

@luongthanhlam hiện tại máy của mình ko thể dùng teamviewer mong bạn thông cảm, @pmkhue nhờ bạn hỗ trợ @luongthanhlam nha

pmkhue commented 1 year ago

@anhvandev @luongthanhlam minh co thu go firefox ra cai bang apt nhung co ve van khong go dc tieng viet :D

luongthanhlam commented 1 year ago

@pmkhue lỗi của bạn là do cài app từ snap @anhvandev bạn gửi giúp mình ouput các lệnh này nhé

echo $XDG_CONFIG_HOME
echo $IBUS_ADDRESS
echo $IBUS_ADDRESS_FILE
echo $DISPLAY
echo $WAYLAND_DISPLAY

IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-Jx5KeVa1,guid=dd69e4500ef456205b370c7f632aafc3 IBUS_DAEMON_PID=42694 /usr/lib/ibus-bamboo/ibus-engine-bamboo

IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-LYj2UV1M,guid=92add43b19bbc32e03c5c1cd631e8cd0 IBUS_DAEMON_PID=3829 /usr/lib/ibus-bamboo/ibus-engine-bamboo
anhvandev commented 1 year ago

@luongthanhlam chỉ có lệnh: echo $DISPLAY có kết quả là :0 echo $WAYLAND_DISPLAY kêt quả là wayland-0 còn các lệnh khác ko có gì xảy ra

luongthanhlam commented 1 year ago

bạn chạy lệnh này ibus restart && cat $(find ~/.config/ibus/bus/ -name '*-wayland-0) rồi thay IBUS_ADDRESS và IBUS_DAEMON_PID trong đó vào lệnh trên và thử lại nhé

anhvandev commented 1 year ago

@luongthanhlam minh chay dc ket qua ntn khui chay ibus restart && cat $(find ~/.config/ibus/bus/ -name '*-wayland-0')


IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-Ryik8VgH,guid=1a839219724300aa1c341a5b633c32be
IBUS_DAEMON_PID=380853
# This file is created by ibus-daemon, please do not modify it.
# This file allows processes on the machine to find the
# ibus session bus with the below address.
# If the IBUS_ADDRESS environment variable is set, it will
# be used rather than this file.
IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-jd3UvOor,guid=24a72bf291e45fe380e87e3563358de7
IBUS_DAEMON_PID=2690```
luongthanhlam commented 1 year ago

OK, thêm 2 lệnh này nhé

/usr/lib/ibus-bamboo/ibus-engine-bamboo

IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-jd3UvOor,guid=24a72bf291e45fe380e87e3563358de7 IBUS_DAEMON_PID=2690 /usr/lib/ibus-bamboo/ibus-engine-bamboo
anhvandev commented 1 year ago

@luongthanhlam bi loi ntn b oi

panic: dial unix @/home/myuser%40mydomain/.cache/ibus/dbus-E0r7hSg8: connect: connection refused

goroutine 1 [running]:
github.com/BambooEngine/goibus/ibus.NewBus.func1(...)
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/github.com/BambooEngine/goibus/ibus/bus.go:16
github.com/BambooEngine/goibus/ibus.NewBus()
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/github.com/BambooEngine/goibus/ibus/bus.go:21 +0x1dd
main.main()
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/ibus-bamboo/main.go:74 +0x1ea
luongthanhlam commented 1 year ago

cả 2 lệnh đều bị lỗi như vậy hay chỉ lệnh đầu tiên hả bạn? gửi thêm mình output lệnh này nhé

find ~/.config/ibus/bus/ && cat $(find ~/.config/ibus/bus/)
anhvandev commented 1 year ago

@luongthanhlam ca 2 lenh deu loi ban a ket qua cua lenh find ~/.config/ibus/bus/ && cat $(find ~/.config/ibus/bus/)

/home/myuser@mydomain/.config/ibus/bus/
/home/myuser@mydomain/.config/ibus/bus/282a5f4e185648b19a57db5b6f98c1e0-unix-0
/home/myuser@mydomain/.config/ibus/bus/faea0d22860f48f78bfddfbfefa16e8f-unix-0
/home/myuser@mydomain/.config/ibus/bus/faea0d22860f48f78bfddfbfefa16e8f-unix-wayland-0
/home/myuser@mydomain/.config/ibus/bus/282a5f4e185648b19a57db5b6f98c1e0-unix-2
/home/myuser@mydomain/.config/ibus/bus/282a5f4e185648b19a57db5b6f98c1e0-unix-wayland-0
cat: /home/myuser@mydomain/.config/ibus/bus/: Is a directory
# This file is created by ibus-daemon, please do not modify it.
# This file allows processes on the machine to find the
# ibus session bus with the below address.
# If the IBUS_ADDRESS environment variable is set, it will
# be used rather than this file.
IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-jd3UvOor,guid=24a72bf291e45fe380e87e3563358de7
IBUS_DAEMON_PID=2690
# This file is created by ibus-daemon, please do not modify it.
# This file allows processes on the machine to find the
# ibus session bus with the below address.
# If the IBUS_ADDRESS environment variable is set, it will
# be used rather than this file.
IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-E0r7hSg8,guid=350dbe5e1b02400c2e2556b2633c335c
IBUS_DAEMON_PID=385179
# This file is created by ibus-daemon, please do not modify it.
# This file allows processes on the machine to find the
# ibus session bus with the below address.
# If the IBUS_ADDRESS environment variable is set, it will
# be used rather than this file.
IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-E0r7hSg8,guid=350dbe5e1b02400c2e2556b2633c335c
IBUS_DAEMON_PID=385179
# This file is created by ibus-daemon, please do not modify it.
# This file allows processes on the machine to find the
# ibus session bus with the below address.
# If the IBUS_ADDRESS environment variable is set, it will
# be used rather than this file.
IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-LYj2UV1M,guid=92add43b19bbc32e03c5c1cd631e8cd0
IBUS_DAEMON_PID=3829
# This file is created by ibus-daemon, please do not modify it.
# This file allows processes on the machine to find the
# ibus session bus with the below address.
# If the IBUS_ADDRESS environment variable is set, it will
# be used rather than this file.
IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-jd3UvOor,guid=24a72bf291e45fe380e87e3563358de7
IBUS_DAEMON_PID=2690
luongthanhlam commented 1 year ago

nếu thay bằng lệnh này thì sao?

cat /var/lib/dbus/machine-id

IBUS_ADDRESS=unix:abstract=/home/myuser%40mydomain/.cache/ibus/dbus-E0r7hSg8,guid=350dbe5e1b02400c2e2556b2633c335c IBUS_DAEMON_PID=385179 /usr/lib/ibus-bamboo/ibus-engine-bamboo

bạn nhớ thay myuser và mydomain bằng user và domain thật nhá

anhvandev commented 1 year ago

@luongthanhlam cat /var/lib/dbus/machine-id co ket qua la: faea0d22860f48f78bfddfbfefa16e8f con lenh dat VAR thi van loi nhu vay

panic: dial unix @/home/myuser%40mydomain/.cache/ibus/dbus-E0r7hSg8: connect: connection refused

goroutine 1 [running]:
github.com/BambooEngine/goibus/ibus.NewBus.func1(...)
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/github.com/BambooEngine/goibus/ibus/bus.go:16
github.com/BambooEngine/goibus/ibus.NewBus()
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/github.com/BambooEngine/goibus/ibus/bus.go:21 +0x1dd
main.main()
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/ibus-bamboo/main.go:74 +0x1ea
luongthanhlam commented 1 year ago

@anhvandev mình vẫn chưa thể tái hiện lỗi này, bạn có thể tái hiện lỗi này trên máy ảo không?

namdv-1375 commented 1 year ago

@luongthanhlam mình cũng đang bị lõi ko gõ đc tiếng việt trên 22.04 này, đọc đoạn này /usr/lib/ibus-bamboo/ibus-engine-bamboo , mình cd vào ko đc vì ibus-engine-bamboo là 1 file

namdv-1375 commented 1 year ago

chạy IBUS_ADDRESS=unix:abstract=/h cũng lỗi tương tự nuôn :((

luongthanhlam commented 1 year ago

@luongthanhlam mình cũng đang bị lõi ko gõ đc tiếng việt trên 22.04 này, đọc đoạn này /usr/lib/ibus-bamboo/ibus-engine-bamboo, mình cd vào ko đc vì ibus-engine-bamboo là 1 file

bạn chạy thử file này trong terminal chưa? có lỗi gì vậy?

namdv-1375 commented 1 year ago

@luongthanhlam

➜  ~ /usr/lib/ibus-bamboo/ibus-engine-bamboo
panic: dial unix @/home/dang.van.nam%40sun-asterisk.com/.cache/ibus/dbus-tTKiAwHQ: connect: connection refused

goroutine 1 [running]:
github.com/BambooEngine/goibus/ibus.NewBus.func1(...)
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/github.com/BambooEngine/goibus/ibus/bus.go:16
github.com/BambooEngine/goibus/ibus.NewBus()
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/github.com/BambooEngine/goibus/ibus/bus.go:21 +0x1dd
main.main()
    /build/ibus-bamboo-1bnAWK/ibus-bamboo-0.8.1/src/ibus-bamboo/main.go:74 +0x1ea

nó bị lỗi này @@

luongthanhlam commented 1 year ago

có vẻ là do lỗi phân quyền đọc ghi file cho user, có điều mỗi máy lại cấu hình khác nhau nên mình cũng không biết tái hiện lỗi kiểu gì. Nếu bạn có thể tái hiện lỗi trên máy ảo thì mình sẽ dễ debug hơn

namdv-1375 commented 1 year ago

@luongthanhlam cái này mình nghĩ ko phải do quyền, vì mình cấp full quyền cho user r, mà lỗi quyền thường bắn lỗi kiểu Permission... :D mình check thì giao diện nó cũng chỉ hiện như này image còn đúng ra thì nó phải hiện thế này image mình ko có máy ảo :((

luongthanhlam commented 1 year ago

mình cũng thử tạo user mới và cấp quyền nhưng không tái hiện được lỗi này:((

namdv-1375 commented 1 year ago

@luongthanhlam hay do mình dùng zsh mình install nhỉ?

luongthanhlam commented 1 year ago

mình không nghĩ là do zsh đâu

huyfm commented 1 year ago

Mình bị lỗi này từ 20.04 rồi. Upgrade lên 22.04, 22.10 vẫn bị tiếp. Dùng ibus-unikey thì lại được. Nếu cài lại từ đầu thì chắc k bị đâu.

anhvandev commented 1 year ago

@huyfam đúng đúng, mình xài unikey nó ko lỗi hoàn toàn, chỉ là gõ lỗi vch. @luongthanhlam hic, cty có rule ko cài máy ảo khi chưa xin phép và các phần mềm remote cũng cấm nên mình ko thể support đc á, máy cá nhân cũng cài OS cty rùi.

canh912009 commented 1 year ago

mình fix đc r ,

Logout --> vào lại , có cài unkley hay bản bamboo trước đó thì gỡ sạch sẽ cả các gói liên quan --> Logout --> cài lại từ đầu theo trang chủ bamboo --> Logout là mình lại OK r

huyfm commented 1 year ago

mình fix đc r ,

Logout --> vào lại , có cài unkley hay bản bamboo trước đó thì gỡ sạch sẽ cả các gói liên quan --> Logout --> cài lại từ đầu theo trang chủ bamboo --> Logout là mình lại OK r

Mình dùng lệnh sudo apt purge ibus-bamboo để xoá gói và cài đặt lại thì k được bạn ạ. Bạn làm rõ hơn các bước bạn thực hiện được không ?

haipnh commented 1 year ago

mình fix đc r ,

Logout --> vào lại , có cài unkley hay bản bamboo trước đó thì gỡ sạch sẽ cả các gói liên quan --> Logout --> cài lại từ đầu theo trang chủ bamboo --> Logout là mình lại OK r

Mình cũng fix được theo cách này, ko cần logout trước khi gỡ đâu.

# Step 1:
sudo apt purge --remove ibus-bamboo
# Step 2: Logout -> Login
# Step 3:
sudo apt install ibus-bamboo
# Step 4: Logout -> Login.

Tới đây thì sẽ xài được oke.

anminhha commented 7 months ago

find ~/.config/ibus/bus/ cat $(find ~/.config/ibus/bus/) /home/anha/.config/ibus/bus/ /home/anha/.config/ibus/bus/c31fb2d3f8134ee8b1dccd113fd4ba41-unix-0 /home/anha/.config/ibus/bus/c31fb2d3f8134ee8b1dccd113fd4ba41-unix-wayland-0 cat: /home/anha/.config/ibus/bus/: Is a directory

This file is created by ibus-daemon, please do not modify it.

This file allows processes on the machine to find the

ibus session bus with the below address.

If the IBUS_ADDRESS environment variable is set, it will

be used rather than this file.

IBUS_ADDRESS=unix:abstract=/home/anha/.cache/ibus/dbus-5xeXt6RA,guid=30e3cca4113507ab7d8dc4d365a4e20c IBUS_DAEMON_PID=16500

This file is created by ibus-daemon, please do not modify it.

This file allows processes on the machine to find the

ibus session bus with the below address.

If the IBUS_ADDRESS environment variable is set, it will

be used rather than this file.

IBUS_ADDRESS=unix:abstract=/home/anha/.cache/ibus/dbus-5xeXt6RA,guid=30e3cca4113507ab7d8dc4d365a4e20c IBUS_DAEMON_PID=16500 Mình cũng dùng Ubuntu 22.04. Gõ trên chrome thì được nhưng có vẻ như trên ÓS thì lại tịt. Mình đã thử tên Text editor và LibreOffice writer hay thậm chí cả terminal thấy k được.