Beruflich Dokumente
Kultur Dokumente
Applications=>System tools=>Terminal()
Applications=>System tools=>Virtual Machine Manager()
ifconfigIP
inet addr:192.168.0.116(ip)
ssh student@192.168.0.116()
exit
cd ~()
cd ..()
cd /()
ls(!"#$)
pwd(%&'()
F12
[root@desktop12 student]# yum groupinstall chinese-support()*+)
[root@desktop12 student]#/usr/local/sbin/lab-resetvm(,-/./)
mkdir test(012test)
vi aaa(345)
a(67'()
i%&'(
o89'(
dd(:-)
:;
r<=
w>?
q
!@A
q!(@A)
wq(>?)
cat B(CD5)
rm BE-DF2
rm -rf 2E-DF2
touch B(G4DHIF0(J)
df /(KL#M)
df -h(KL#M)
fdisk -cul /dev/vda(KL)
fdisk /dev/vda(NKL)
p(OP37)
12483 cylinders(QR)
ssh root@192.168.0.116
redhat
fdisk /dev/vda(NKL)
p(KLST)
n(UNKL)
3(V37WX)
9836(pO7END'(YZ[\)
+50M(]^_`)
w(>?)
reboot(VMa)
fdisk -cul /dev/vda(!b!c%V37)
mkfs -t ext4 /dev/vda3(def)
mkdir /test(0gtest2)
ls /(!b!TEST)
vi /etc/fstab
h69
o
/dev/vda3 /test ext4 defaults 1 2
esc
:wq(>?)
mount -a(bijklmij,!ijknco)
reboot
fdisk /dev/vda(82,pqNl83)(82,83,8e)(lrO)
p(KLST)
n(UNKL)
4(V47WX)
9939(pO7END'(sYZ[\)
+100M(]^_`)
p(c%V47)
t(4system id)
4(V47WX)
82(tu834v82 swap,LrO)
w(>?)
reboot(VMa)
ssh root@192.168.0.116
redhat
fdisk /dev/vda
p(V47)
w(>?wc)
vi /etc/fstab
69
o
/dev/vda4 swap swap defaults 0 0
esc
:wq(>?)
mkswap /dev/vda4(JswapKL)
swapon -a(swapKLx)
swapon -s(swapKL)
[root@desktop16 ~]$ :lab-setup-storage(,-KL)
[root@server16 ~]$ :lab-grade-storage(KL)
/test
[root@desktop16 student]#:/usr/local/sbin/lab-resetvm(,-)
fdisk /dev/vda
n
e
4
9836
+200M
n
l
5
9836
+50M
n
l
6
10242
+60M
n
l
7
10xxx
+70M
t
5
8e
t
6
8e
t
7
8e
w
reboot
pv
yTAB
pvcreate --help(!z{r|})
pvscan()
pvcreate /dev/vda5~vda5
pvscan()
pvcreate /dev/vda6~vda6
pvscan()
pvcreate /dev/vda7~vda7
pvdisplay(O)
vg
yTAB
vgcreate --help(!z{r|})
vgcreate vg1 /dev/vda5~vda5
vgscan()
vgdisplay()
vgcreate -s 8M vg2 /dev/vda6 /dev/vda7~vda6vda7
vgcsan()
vgdisplay()
lv
yTAB
lvcreate -n lv1 -l 4 vg1
lvscan
lvdisplay
mkfs -t ext4 /dev/vg1/lv1
mkdir /test(0gtest2)
ls /(!b!TEST)
vi /etc/fstab
h69
o
/dev/vg1/lv1 /test ext4 defaults 1 2
esc
:wq(>?)
mount -a(bijklmij,!ijknco)
reboot
ssh root@192.168.0.116
redhat
df -h
lab-setup-lvm(&,-)
ssh root@192.168.0.116
redhat
fdisk /dev/vda
p
n
p
4
9836
+600M
t
4
8e
w
reboot
ssh root@192.168.0.116
redhat
mkfs -t ext4 /dev/vda4(def)
pvcreate /dev/vda4
vgcreate allison /dev/vda4
lvcreate -n custdb -L 512 allison
mkfs -t ext4 /dev/allison/custdb
mkdir /test(0gtest2)
ls /(!b!TEST)
vi /etc/fstab
/dev/allison/custdb /test ext4 defaults 1 2
lab-grade-lvm
mount -a
reboot
lvextend -L 700M /dev/allison/custdb700M
mount -a
resize2fs -p /dev/allison/custdb
lvextend -L +50M /dev/allison/custdb(!+l~)
resize2fs -p /dev/allison/custdb
umount /test
e2fsck -f /dev/allison/custdb
resize2fs -p /dev/allison/custdb 512M
lvreduce -L 512M /dev/allison/custdb
y
mount -a
clear
showmount -e instructor.example.com
mkdir /nfstest
mount instructor:/var/ftp/pub /nfstest
ls /nfstest
reboot
ls /nfstest
cd /net/instructor/var/ftp/pub
ls /etc/auto.master
vi /etc/auto.master
/misc /etc/auto.misc98~9
/nfstest /etc/auto.nfstest
vi /etc/nfstest
public -ro instructor.example.com:/var/ftp/pub
service autofs restart
service autofs reload
vi /etc/auto.master
/misc /etc/auto.misc98~9
/server /etc/auto.server
vi /etc/auto.server
public -ro instructor.example.com:/var/nfs/oshu
cat /etc/auto.master
cat /etc/auto.server
ls /server/public
vi /etc/passwd
root:x:0:0:root:/root:/bin/bash(V9)
root=B\ x= 0=ID nologin=???
useradd --help
useradd aaa
vi /etc/passwd
69aaab
exit
ssh aaa@192.168.0.116
passwd aaaaaa
aaa()
aaa(=V)
exit
ssh aaa@192.168.0.116
=aaa
VM =student
Terminal =root
system-config-authentication
user Account Database:LDAP
LDAP Search Base DN:dc=example,dc=com
Ldap Server:ldap://127.0.0.1/(4v)
Ldap Server:ldap://instrustor.example.com/
Use TLS to encrypt connections ()
Download CA Certificate
http://instrustor.example.com/pub/EXAMPLE-CA-CERT
Authentication Method:LDAP password
getent passwd ldapuser1(67llL)