他のttyで空のセッションを開く

他のttyで空のセッションを開く

私@pop-os:~$xinit -- :2 vt3

X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
Current Operating System: Linux pop-os 6.6.6-76060606-generic #202312111032~1702306143~22.04~d28ffec SMP PREEMPT_DYNAMIC Mon D x86_64
Kernel command line: initrd=\EFI\Pop_OS-ebdf8099-3515-474a-86ae-0b54f95c95b2\initrd.img root=UUID=ebdf8099-3515-474a-86ae-0b54f95c95b2 ro loglevel=0 systemd.show_status=false quiet splash
xorg-server 2:21.1.4-2ubuntu1.7~22.04.5 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.40.0
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/alex/.local/share/xorg/Xorg.2.log", Time: Sat Jan 13 14:24:31 2024
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) xf86OpenConsole: Cannot open virtual console 3 (Permission denied)
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/home/alex/.local/share/xorg/Xorg.2.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

私もtty3自体でこれを試しました。黒い画面でxserverを起動し、すぐに終了します。

ここにいる丸太

新しいttyで新しい空のセッションを開始するには?

私は最新のPop_OSを使用しています! (22.04 LTS)

ベストアンサー1

権限関連の問題のようです。以下を実行してみてください。

sudo xinit -- :2 vt3

ユーザーに仮想コンソールにアクセスするために必要な権限があることを確認します。 ttyグループにユーザーを追加できます。

sudo usermod -aG tty your_username

別のTTYを試してください。 vt3を使用する代わりに、別の仮想端末でXを起動してみることができます。たとえば、

sudo xinit -- :2 vt4

役に立ったことを願っています!

おすすめ記事