PCDVD數位科技討論區

PCDVD數位科技討論區 (https://www.pcdvd.com.tw/index.php)
-   疑難雜症區 (https://www.pcdvd.com.tw/forumdisplay.php?f=34)
-   -   如何在Linux下使用台灣銀行的網路銀行? (https://www.pcdvd.com.tw/showthread.php?t=1179969)

sparc10 2020-12-28 12:10 PM

我現在將 virtual box 架在 CentOS Stream 8之上 ,並在VirtualBox上裝Windows10。
CentOS核心: 5.10.2-1.el8.elrepo.x86_64
但開啟VirtualBox後,再將Windows10開機後,會出現下列錯誤訊息。
請問,該如何處理?謝謝

======
錯誤訊息如下
======

Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
'/sbin/vboxconfig'
as root.

If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
The virtual machine 'MSEdge - Win10' has terminated unexpectedly during startup with exit code 1 (0x1).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
MachineWrap
Interface:
IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
=====
我還做過以下步驟,但仍舊失敗。
=====
[root@localhost ~]# chmod 777 /sbin/vboxconfig
[root@localhost ~]# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.

Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
kernel-devel kernel-devel-5.10.2-1.el8.elrepo.x86_64
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
====
我也做過 "sudo dnf update",但沒用。
https://docs.fedoraproject.org/en-U...system-upgrade/

sparc10 2020-12-28 12:21 PM

我後來又嘗試用Gnome boxes跑Win10,但讀取不到提款卡!

我主要作業系統: CentOS Stream 8,且我用其內建的Gnome boxes1)去運行 Window 10。Win10能抓到讀卡機,Qemu USB Ccid。但我插入提款卡到讀卡機後,卻又讀不到提款卡。但讀卡機紅燈亮起,表示有插入。

我在真實Win10下試過讀卡機與提款卡都正常。請問,如何解決?謝謝。

PS:
核心: 5.10.3-1.el8.elrepo.x86_64
讀卡機型號: Costar US777.
我的CPU: AMD® Ryzen 5 3600

substar999 2020-12-28 01:31 PM

個人真的不清楚您堅持要在PC上使用台銀網銀的目的,
但若您不想再耗下去的話...手機平台也能用!

野口隆史 2020-12-28 02:18 PM

因為 header 預設沒有安裝

先 uname -r 查詢目前正在使用的版本

搜尋所有 headers
yum search kernel-headers

安裝對應版本
yum install kernel-headers

重啟之後再把 virtualbox build 進 header
/sbin/vboxconfig

使用 Stream 8 其實只是找自己麻煩而已
看你其他串有說你也用過 manjaro
我覺得就用 manjaro 就好了
當桌面使用 manjaro 好用太多了
更多也更好的套件管理器,安裝上省了很多麻煩

NTC_TW_IT 2021-01-02 02:43 AM

省事的話~~做dual boot比較快
除非那幾分鐘的開機時間真的很惱人

sparc10 2021-01-02 04:12 PM

謝謝大家!
先說結論,我目前用WIN10+openSUSE 15.2雙系統,且檔案格式以BTRFS爲主。
畢竟openSUSE是最支持BTRFS的LINUX分支,且套件管理器容易上手。
引用:
作者NTC_TW_IT
省事的話~~做dual boot比較快!我原先就是雙系統。
除非那幾分鐘的開機時間真的很惱人
對,做dual boot比較快!我原本就是雙系統。

引用:
作者substar999
個人真的不清楚您堅持要在PC上使用台銀網銀的目的,
但若您不想再耗下去的話...手機平台也能用!
我曾在手機上查詢「銀行貸款」,但一小時內就有人簡訊要貸款給我,
而且對方知道我的姓氏、我用遠傳電信!因此,我不喜歡在手機上轉帳。

引用:
作者野口隆史
使用 Stream 8 其實只是找自己麻煩而已
看你其他串有說你也用過 manjaro
我覺得就用 manjaro 就好了
當桌面使用 manjaro 好用太多了
更多也更好的套件管理器,安裝上省了很多麻煩
我在manjaro上很輕鬆地安裝virtualbox 6.1.16,但manjaro能抓到讀卡機,但virtualbox中的WIN10卻抓不到。

引用:
作者野口隆史
因為 header 預設沒有安裝
先 uname -r 查詢目前正在使用的版本
搜尋所有 headers
yum search kernel-headers

安裝對應版本
yum install kernel-headers

重啟之後再把 virtualbox build 進 header
/sbin/vboxconfig
謝謝,但因故還是不能用virtualbox,所以我就放棄了。
$ uname -r
5.10.3-1.el8.elrepo.x86_64
$ sudo -i
[root@localhost ~]# yum search kernel-headers
Last metadata expiration check: 18:08:10 ago on Sun 27 Dec 2020 11:59:07 PM CST.
===================== Name Exactly Matched: kernel-headers =====================
kernel-headers.x86_64 : Header files for the Linux kernel for use by glibc
[root@localhost ~]# cd /usr/src/kernels/
[root@localhost kernels]# ls -l
total 8
drwxr-xr-x. 23 root root 4096 Dec 24 10:24 4.18.0-257.el8.x86_64
drwxr-xr-x. 23 root root 4096 Dec 24 23:40 4.18.0-259.el8.x86_64
[root@localhost kernels]# yum install kernel-headers
Last metadata expiration check: 18:10:24 ago on Sun 27 Dec 2020 11:59:07 PM CST.
Package kernel-headers-4.18.0-259.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@localhost kernels]# yum install kernel-devel
Last metadata expiration check: 18:12:32 ago on Sun 27 Dec 2020 11:59:07 PM CST.
Package kernel-devel-4.18.0-257.el8.x86_64 is already installed.
Package kernel-devel-4.18.0-259.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

PS:
個人安裝openSUSE流程。

「轉貼」綜合來看,RHEL 跟 SUSE(SLES) 普及率最高,三大雲端平台、SAP、SQL、Oracle 都支援。
https://blog.darkthread.net/blog/docker-in-debian/

# openSUSE Leap 指南 (裝GNOME/KDE較好,並開LVM)
https://opensuse-guide.ustclug.org/index.php

# 建議使用的DNS: security.cloudflare-dns.com
1.1.1.2
2606:4700:4700::1112
https://security.cloudflare-dns.com/dns-query

# Add the Flathub repository
「轉貼」Flathub is the best place to get Flatpak apps. To enable it, run:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

# 更新核心(可以省略不做!)
Use the command
sudo -i
zypper ar https://download.opensuse.org/repos...table/standard/ kernel
zypper se -s 'kernel*'
Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a

to display a list of all kernel packages available:
然後,從kernel-default找到最新穩定版核心,並安裝.舉例如下
zypper in kernel-default-5.10.4-1.1.g4169c1f

如果事後想移除
zypper se -si 'kernel*' to list all kernels installed and zypper rm PACKAGENAME-VERSION to remove the package.
zypper rm kernel-default-5.10.4-1.1.g4169c1f

# 「轉貼」爲瀏覽器裝CODEC
sudo -i
zypper ar -cfp 90 http://ftp.gwdg.de/pub/linux/misc/p...SUSE_Leap_15.2/ packman
zypper ref
zypper up --allow-vendor-change
reboot
https://kamarada.github.io/en/2020/...ow-to-solve-it/

# 安裝等化器
先開�Χast Sound,依次設定所有音效卡。先編輯第一臺音效卡,並選進階模式。
將「DMA pointer read method」的數值改爲0!其他卡也是這樣。

去Yast>Software>安裝pulseaudio-equalizer
開�φulseaudio-equalizer後,並將Preset改爲SKA
還要勾選EQ Enabled、Keep Setting,然後QUIT

# 在openSUSE安裝中文
「轉貼」在 YaST 選擇語言時,可將目標語言設成次要語言即可,不需要改主要語言。
筆者會刻意將 GNU/Linux 的界面和使用者訊息保持在英文,碰到問題時比較容易查到資料。
https://michaelchen.tech/blog/ibus-...od-on-opensuse/
System Settings ➜ Region & Language
取消「Only show current language」後,
選繁體中文,就有IBUS,使用WIN + Space 即可切換輸入法
選簡體中文,就有FCitix,使用CTRL + Space 即可切換輸入法
若是FCitix,則選擇 Shuangpin(LibPinyin)

# Chromium
用YAST安裝Chromium

# 「轉貼」安裝OneNote
sudo zypper addrepo --refresh https://download.opensuse.org/repos...nSUSE_Leap_15.2 snappy
sudo zypper --gpg-auto-import-keys refresh
sudo zypper dup --from snappy
sudo zypper install snapd
You then need to either reboot, logout/login or source /etc/profile to have /snap/bin added to PATH. Additionally, enable and start both the snapd and the snapd.apparmor services with the following commands:
sudo systemctl enable snapd
sudo systemctl start snapd
sudo snap install p3x-onenote
reboot
https://snapcraft.io/install/p3x-onenote/opensuse

# vlc
https://software.opensuse.org/package/vlc

# 簡易更新指令
sudo -i
yast2 online_update

# systemd-zram-service(可以省略不做)
https://software.opensuse.org/packa...md-zram-service

sparc10 2021-01-03 06:50 PM

引用:
作者野口隆史
因為 header 預設沒有安裝
先 uname -r 查詢目前正在使用的版本
搜尋所有 headers
yum search kernel-headers

安裝對應版本
yum install kernel-headers

重啟之後再把 virtualbox build 進 header
/sbin/vboxconfig
感謝你!我現在能在openSUSE的虛擬機中抓到讀卡機,而且當插入提款卡後,也能讀取到此卡片。

After I did the steps below, I could open a Win10 on VirtualBox.

I installed VirtualBox in YAST of openSUSE 15.2, and added myself to the "vboxusers" group. before starting VirtualBox.
I could do it using: Yast / Security and Users / User and Group management.

sudo -i
localhost:~ # yast2 -i kernel-source
reboot

sudo -i
localhost:~ # zypper install virtualbox-host-source kernel-devel kernel-default-devel
reboot

sudo -i
localhost:~ # /sbin/vboxconfig
Building kernel modules...
Kernel modules built correctly. They will now be installed.
insmod /lib/modules/5.10.4-1.g4169c1f-default/misc/vboxdrv.ko
insmod /lib/modules/5.10.4-1.g4169c1f-default/misc/vboxnetflt.ko
insmod /lib/modules/5.10.4-1.g4169c1f-default/misc/vboxnetadp.ko
Kernel modules are installed and loaded.

sparc10 2021-01-17 10:45 PM

當我進入CentOS Stream 8的Gnome Boxes的右上角的設定後,
才赫然發現它「知道」我的讀卡機爲何,但我卻無法啓用讀卡機。
因此,GuestOS無法使用我的讀卡機。

總之,我仍用「openSUSE的虛擬機」去弄網路銀行轉帳。

cjan. 2021-01-18 08:55 AM

讀卡機要 firmware 嗎,像偶的 dvb-t 就要。

sparc10 2021-01-18 10:52 AM

引用:
作者cjan.
讀卡機要 firmware 嗎,像偶的 dvb-t 就要。
我不曉得,畢竟Boxes錯誤訊息沒要我裝讀卡機的韌體。


所有的時間均為GMT +8。 現在的時間是05:36 PM.

vBulletin Version 3.0.1
powered_by_vbulletin 2026。