【Kali_001】封装定制、安装与升级
系统封装、桌面定制、U盘启动、安装等具体内容请参考官方文档:
Kali Linux 官方源列表:
#开发源
deb [arch=i386,amd64,armel,armhf] kali-dev main contrib non-free
deb [arch=i386,amd64,armel,armhf] kali-dev main/debian-installer
deb-src kali-dev main contrib non-free
#正式源
deb [arch=i386,amd64,armel,armhf] kali main contrib non-free
deb [arch=i386,amd64,armel,armhf] kali main/debian-installer
deb-src kali main contrib non-free
#安全更新
deb [arch=i386,amd64,armel,armhf] kali/updates main contrib non-free
deb-src kali/updates main contrib non-free
#
deb [arch=i386,amd64,armel,armhf] kali-bleeding-edge main
deb-src kali-bleeding-edge main
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
系统升级到开发测试版(个人比较喜欢开发测试版):
发行版 kde 4.8.4
开发测试版 KDE 4.13.1
编辑/etc/a,将原来到用#屏蔽掉,加入开发源列表
root@zmisser:~# vim /etc/a
deb [arch=i386,amd64,armel,armhf] kali-dev main contrib non-free
deb [arch=i386,amd64,armel,armhf] kali-dev main/debian-installer
deb-src kali-dev main contrib non-free
保存退出
root@zmisser:~# apt-get update
root@zmisser:~# apt-get dist-upgrade
root@zmisser:~# reboot
【Kali_002】LVM安装开机启动无法识别卷问题
------
Unable to find LVM volume kali/root
......
第一种方法,直接操作:
(initramfs) cryptsetup luksOpen /dev/sda5 sda1_crypt
Enter passphrase for /dev/sda5:【输入硬盘密码】
(initramfs) lvm vgchange -ay
(initramfs) exit
操作如下图:
【现在可以启动了,到提示输入密码到时候,连按几次回车,无视提示,正常应该可以启动到KDM登录界面】
开机后登录编辑/etc/crypttab
root@zmisser:~# vim /etc/crypttab
新添加一行:
sda1_crypt UUID=0000000-0000-0000-0000-000000000000 none luks
UUID可以用 root@zmisser:~# blkid /dev/sda5 获取,如果原来有sda5_crypt,UUID和sda5到一样,直接把sda5_crypt改成sda1_crypt即可
执行更新:
root@zmisser:~# update-initramfs -u
root@zmisser:~# reboot
【现在应该可以识别了】如图:
-------------------------------------------------------------------------------------
第二种方法,在Live CD上操作:
blkid /dev/sda5
/dev/sda5: UUID="XXXXXX" TYPE="crypto_luks"
cryptsetup /dev/sda5 luksOpen sda1_crypt
vgchange -ay kali
mkdir -p /mnt/root
mount /dev/mapper/kali-root /mnt/root
cd /mnt/root
mount -t proc proc proc
mount -t sysfs sys sys
mount -o bind /dev dev
mount /deva/sda1 boot
chroot /mnt/root
echo "sda1_crypt UUID=XXXXXX non luks" > /etc/crypttab
update-initramfs -u
exit
reboot
-----------------------------------------------------------------------------------------------------------
第三种,参考官网解决方案:
3.官方方法
【Kali_003】KDE桌面主题
【System Settings -> Workspace Appearance and Behavior -> Workspace Appearance -> Desktop Theme】
下方 Get New Themes...可在线安装主题
主题文件存放路径:
/usr/share/kde4/apps/desktoptheme/
~/.kde/share/apps/desktoptheme/
-----------------------------------------------------
【Kali_004】KDE窗体主题
【System Settings -> Workspace Appearance and Behavior -> Workspace Appearance -> Desktop Theme】
下方 Get New Themes...可在线安装主题
主题引擎有:
kwin-style-dekorator
kwin-style-crystal
kwin-style-qtcurve
.....
主题文件存放路径【相应的窗体引擎有对应到文件目录】:
/usr/share/kde4/apps/[aurorae | ...]/
~/.kde/share/apps/[aurorae | ...]/
【Kali_005】KDE鼠标主题
【System Settings -> Workspace Appearance and Behavior -> Workspace Appearance -> Cursor Theme】
Get New Themes...可在线安装主题
主题文件存放路径:
/usr/share/icons/
修改KDM默认鼠标主题样式
/usr/share/icons/defaul
[Icon Theme]
Name = Breeze
Comment = Oxygen mouse theme. Oxygenize your desktop!
Inherits = Descartes_Breeze
【Kali_006】KDM主题(登录界面)
【System Settings -> System Administration -> Login Screen -> Theme】
Get New Themes...可在线安装主题
主题文件存放路径:
/usr/share/kde4/apps/kdm/themes/
【Kali_007】KDE开机启动动画
【System Settings -> Workspace Appearance and Behavior -> Workspace Appearance -> Splash Screen】
Get New Themes...可在线安装主题
主题文件存放路径:
/usr/share/kde4/apps/ksplash/Themes/
~/.kde/share/apps/ksplash/Themes/
【Kali_008】KDE样式主题之QtCuve
【System Settings -> Common Appearance and Behavior -> Workspace Appearance -> Style】
主题文件存放路径:
/usr/share/kde4/apps/QtCurve/
~/.kde/share/apps/QtCurve/
安装qtcurve
root@zmisser:~# apt-get install qtcurve
Applications -> widget style 选择 QtCurve
点击后面的Configure...
Import导入QtCurve样式,左边列表为参数设置
【Kali_009】KDE配色主题
【System Settings -> Common Appearance and Behavior -> Workspace Appearance -> Colors】
Get New Themes...可在线安装主题
主题文件存放路径:
/usr/share/kde4/apps/color-schemes/
~/.kde/share/apps/color-schemes/
【Kali_010】KDE图标主题
【System Settings -> Common Appearance and Behavior -> Workspace Appearance -> Icons】
Get New Themes...可在线安装主题
主题文件存放路径:
/usr/share/icons/
~/.kde/share/icons/
【Kali_011】KDE字体调整
【System Settings -> Common Appearance and Behavior -> Workspace Appearance -> Fonts】
【Kali_012】KDE环境GTK样式
【System Settings -> Common Appearance and Behavior -> Workspace Appearance -> GTK】
root@zmisser:~# apt-get install gtk2-engines-oxygen gtk3-engines-oxygen 【GTK在QT下到样式,可以安装其他的】
root@zmisser:~# apt-get install kde-config-gtk-style 【KDE下的GTK样式管理工具】
【Kali_013】Gurb背景/主题
启动模式修改
/etc/default/grub
GRUB_CMDLINE_Linux_DEFAULT="quiet" #有text、quiet等模式
-------------------------------------------------------------------------------------------------------------
开机背景修改
/etc
找到这一句:
if set_background_image "/usr/share/images/desktop-base;;
修改/usr/share/images/desktop-base
----------------------------------------------------------------------------------------------------------------
Grub主题安装
在/boot/grub下创建themes目录
root@zmisser:~# mkdir /boot/grub/themes
修改/etc/default/grub
在最后添加一行:
GRUB_THEME=/boot/grub/themes/Zorin
root@zmisser:~# update-grub
【Kali_014】Kconsole虚拟终端设置半透明
打开终端菜单 -> Settings -> Edit Current Profile -> Appearance -> Edit -> Background transparency
【Kali_015】安装google-chrome、root用户运行、中文字体
下载google-chrme
root@zmisser:~# wget
安装google-chrome
root@zmisser:~# dpkg -i google-c
root用户运行google-chrome
编辑/opt/google/chrome/google-chrome在最后添加--user-data-dir
root@zmisser:~# vim /opt/google/chrome/google-chrome
保存退出
google-chrome中文乱码问题,安装字体
root@zmisser:~# apt-get install ttf-wqy-microhei
【Kali_016】安装ibus输入法
root@zmisser:~# apt-get install ibus ibus-pinyin
【KDE 4.8.4可以直接apt-get install ibus-google-pinyin】
最好注销或重启一下;菜单/任务栏找到ibus打开首选项 -> Input Method -> Add -> Chinese -> ....
【Kali_017】软件包管理synaptic
root@zmisser:~# apt-get install synaptic
添加快速搜索框
root@zmisser:~# apt-get install apt-xapian-index python-xdg
【Kali_018】安装VMWare
安装VMWare:
root@zmisser:~# chmod +x VMware-Work
root@zmisser:~# ./VMware-Work
按提示安装就OK了~
安装内核头:
root@zmisser:~# apt-get install linux-headers-`uname -r`
【Kali_019】软件包管理 - apt-get
apt-get install package 安装软件包
apt-cache search package 搜索软件包
apt-cache show package 获取软件包信息
apt-get -f install 修复安装
apt-get update 更新源
apt-get dist-upgrade 升级系统
apt-get source package 下载软件包源码
apt-get clean && apt-get autoclean 清理无用的包
apt-get check 检查依赖
【Kali_020】Linux常用命令 - 信息查看
系统
# uname -a #查看内核/操作系统/CPU信息
# hostname #查看主机名
# env #查看环境变量
# ps -ef #查看所有进程
# top #实时显示进程状态
# fdisk -l #查看所有分区
网络
# ifconfig #查看所有网络接口的属性
#route #查看路由表
用户
# w #查看活动用户
# id <用户名> #查看指定用户信息
Linux硬件信息查看请参考:
【Kali_21】Linux常用命令 - 查找
find、xargs、grep请参考:
【Kali_022】常用压缩归档命令
7z、rar、zip、。。。
【Kali_023】MAC地址修改 - macchanger
macchanger - MAC Changer
macchanger 选项 设备名(网卡)
选项
-l 显示MAC地址厂商,查找某MAC厂商可以这样写:
root@zmisser:~# macchanger -l | grep '08:00:46'
-s 显示当前信息
root@zmisser:~# macchanger -s eth0
-r 随机一个MAC地址
root@zmisser:~# macchanger -r eth0
-m --mac 指定一个MAC地址
root@zmisser:~# macchanger -m 00:11:22:33:44:55 eth0
【Kali_024】ALT+TAB切换特效
【System Settings -> Workspace Appearance and Behavior -> Window Behavior -> Task Switcher】