kubuntu18.04


windows SSH接続操作 wlan 192.168.0.4

デスクトップタイプ=plasma
root@roco-FMVCE:~# cat <<EOF > ~/.xsessionrc
> export XDG_SESSION_DESKTOP=plasma
> export XDG_DATA_DIRS=${XDG_DATA_DIRS}
> export XDG_CONFIG_DIRS=/etc/xdg/xdg-plasma:/etc/xdg
> EOF


root@roco-FMVCE:~# vi ~/.xsession
unset DBUS_SESSION_BUS_ADDRESS export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx" exec plasma-session
 

root@roco-FMVCE:~# reboot


WiFi 接続は、ユーザーログインが完了しないと、接続できない?。

roco でログイン後、roco ユーザーで、windows 「リモートデスクトップ接続」

デスクトップが物足りないので、GNOME環境をインストール
gnome-session
root@roco-FMVCE:~# apt install gnome-session

cinnamon-session環境をインストール
root@roco-FMVCE:~# apt install cinnamon-session

デスクトップタイプを選択できるようにする
現在のdmでは、デスクトップ選択できないので、
デスクトップ選択できる lightdm をインストール
root@roco-FMVCE:~# apt install lightdm

ディスプレイマネージャでのログインを有効化・表示する
root@roco-FMVCE:~# systemctl set-default graphical.target
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/graphical.target.

root@roco-FMVCE:~# systemctl enable lightdm
Synchronizing state of lightdm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable lightdm
The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
instance name specified.


ユーザーroko をlightdmグループに登録
root@roco-FMVCE:~# gpasswd -a roco lightdm
Adding user roco to group lightdm

root ユーザーもlightdmグループに登録
root@roco-FMVCE:~# gpasswd -a root lightdm
Adding user root to group lightdm



xrdpを修正 デスクトップタイプは、cinnamon を指定
root@roco-FMVCE:~# XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/cinnamon:/usr/local/share

root@roco-FMVCE:~# XDG_DATA_DIRS=${XDG_DATA_DIRS}:/usr/share:/var/lib/snapd/desktop

root@roco-FMVCE:~# cat <<EOF > ~/.xsessionrc
> export XDG_SESSION_DESKTOP=cinnamon
> export XDG_DATA_DIRS=${XDG_DATA_DIRS}
> export XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
> EOF


root@roco-FMVCE:~# vi ~/.xsession
unset DBUS_SESSION_BUS_ADDRESS export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx" exec cinnamon-session
~

root@roco-FMVCE:~# service xrdp restart



XRDPと共用で、x11vnc
root@roco-FMVCE:~# apt install x11vnc

root@roco-FMVCE:~# su - roco
roco@roco-FMVCE:~$ x11vnc -storepasswd
Enter VNC password:
Verify password:
Write password to /home/roco/.vnc/passwd? [y]/n y
Password written to: /home/roco/.vnc/passwd


x11vnc起動
roco@roco-FMVCE:~$ x11vnc -auth guess -rfbauth /home/roco/.vnc/passwd -rfbport 5900 -forever -loop -noxdamage -repeat -shared


----------------------------------

lightdm ログインマネージャーをインストール
root@roco-FMVCE:~# apt install lightdm

root@roco-FMVCE:~# systemctl set-default graphical.target

root@roco-FMVCE:~# systemctl enable lightdm
Synchronizing state of lightdm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable lightdm
The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
instance name specified.


ユーザーroko をlightdmグループに登録
root@roco-FMVCE:~# gpasswd -a roco lightdm
Adding user roco to group lightdm

root@roco-FMVCE:~# gpasswd -a root lightdm
Adding user root to group lightdm



 

 

投票数:0 平均点:0.00

 
Back to Top