重新划分/home分区大小
root@kali:~# resize2fs /dev/mapper/kali-home 222G
resize2fs 1.42.5 (29-Jul-2012)
Resizing the filesystem on /dev/mapper/kali-home to 58195968 (4k) blocks.
The filesystem on /dev/mapper/kali-home is now 58195968 blocks long.
减少/home逻辑分区大小
root@kali:~# lvreduce -L 222G /dev/mapper/kali-home
WARNING: Reducing active and open logical volume to 222.00 GiB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce home? [y/n]: y
Reducing logical volume home to 222.00 GiB
Logical volume home successfully resized
重新划分/分区大小
root@kali:~# resize2fs /dev/mapper/kali-root
resize2fs 1.42.5 (29-Jul-2012)
Filesystem at /dev/mapper/kali-root is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 14
The filesystem on /dev/mapper/kali-root is now 55012352 blocks long.
赋root权限
root@kali:~# sudo vim /etc/sudoers
# User privilege specification
root ALL=(ALL:ALL) ALL
yogy ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
查看当前时间
yogy@kali:~$ date -R
Sat, 10 Jul 2015 22:57:28 -0800
选择时区
yogy@kali:~$ tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
...
Asia
...
none - I want to specify the time zone using the Posix TZ format.
#? 5
Please select a country.
...
China 26) Laos 43) Taiwan
...
#? 9
Please select one of the following time zone regions.
Beijing Time
Xinjiang Time
#? 1
The following information has been given:
China
Beijing Time
Therefore TZ='Asia/Shanghai' will be used.
Local time is now: Tue Jul 7 04:10:17 CST 2015.
Universal Time is now: Mon Jul 6 20:10:17 UTC 2015.
Is the above information OK?
Yes
No
#? 1
You can make this change permanent for yourself by appending the line
TZ='Asia/Shanghai'; export TZ
to the file '.profile' in your home directory; then log out and log in again.
修改profile并生效
yogy@kali:~$ echo "TZ='Asia/Shanghai'; export TZ" >> ~/.profile
yogy@kali:~$ source ~/.profile
验证效果
yogy@kali:~$ date -R
Sat, 11 Jul 2015 14:57:28 +0800
0x05 配置GNOME 3