VNC 連線
the VNC password is 123456
the Administrator password is Asimov
the kiosk user password is redhat
cat /etc/rht
虛擬機都打開
rht-vmctl start all
student:student
root: redhat
#ch1 練習
[student@workstation ~]$ ssh root@servera
root@servera's password:
Web console: https://servera.lab.example.com:9090/ or https://172.25.250.10:9090/
Last login: Sun Sep 11 14:43:41 2022
[root@servera ~]# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@servera ~]# whoami
root
#啟動 GUI 網路監視
[root@servera ~]# systemctl enable --now cockpit.socket
-------------------------------------
#語言設定
[root@servera ~]# ls /ppp
ls: 無法存取 '/ppp': No such file or directory
[root@servera ~]# export LANG="en_US.UTF-8"
[root@servera ~]# export LANG="zh_TW.UTF-8"
-------------------------------------
[student@servera ~]$ echo $PS1
[\u@\h \W]\$
[student@servera ~]$ PS1="[\d-\t \u@\h \W]\$"
[Wed Feb 24-21:52:07 student@servera ~]$
[Wed Feb 24-21:52:08 student@servera ~]$PS1="C:\>"
[student@servera ~]$ PS1="[\u@\h \W]\$ "
#在當前路徑下執行rc.local,linux會當成指令所以會告訴你找不到
[student@servera rc.d]$ rc.local
-bash: rc.local: command not found
[student@servera rc.d]$ echo $PATH
/home/student/.local/bin:/home/student/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
#所以執行當前目錄指令要加以下,./rc.local
[student@servera rc.d]$ ./rc.local
[sudo] password for student:
Starting download of student specific variables/keys...
rht-vmsetup-getkeys done
touch: cannot touch '/var/lock/subsys/local': Permission denied