|NO.Z.00026|——————————|NavigationLog|——|Parrot-security.V4.10|

一、parrot-security启动root账户权限。并使用root登录xshell远程工具:
### --- 在普通用户下设置root密码;开启root用户权限

┌─[yanqi@parrot]─[~]
└──╼ $sudo passwd root
[sudo] password for yanqi:
New password:
Retype new password:
passwd: password updated successfully
### --- 在非root账户下,输入当前用户的密码即可开启临时root权限

┌─[yanqi@parrot]─[~]
└──╼ $sudo -i
┌─[root@parrot]─[~]                                                 // 此刻你就可以在root下执行一些操作
└──╼ #
二、parrot-security配置虚拟机静态IP地址:
### --- parrot-security配置虚拟机静态IP地址:

┌─[root@parrot]─[~]
└──╼ #vim /etc/network/interfaces
# The loopback network interface$
auto lo$
auto eth0$
iface lo inet loopback$
allow-hotplug eth0$
iface eth0 inet static$
address 192.168.1.98$
netmask 255.255.255.0$
gateway 192.168.1.1$
dns-nameservers 114.114.114.114,8.8.8.8$            
┌─[root@parrot]─[~]
└──╼ #systemctl restart networking.service
### --- DNS方案二:
                 
┌─[root@parrot]─[~]                                                   // 若是发现域名无法解析,查看dns配置文件是否损坏
└──╼ #vim /etc/resolv.conf
# Generated by NetworkManager
domain localdomain
search localdomain
nameserver 114.114.114.114
nameserver 8.8.8.8
三、开启Parrot-security ssh服务,并使用xshell远程连接
### --- 修改ssh服务配置文件,并启动ssh服务
┌─[root@parrot]─[~]
└──╼ # apt-get install openssh-server openssh-client
┌─[root@parrot]─[~]
└──╼ # vim /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes
                 
### --- OR
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

┌─[root@parrot]─[~]
└──╼ #/etc/init.d/ssh start
┌─[root@parrot]─[~]
└──╼ #/etc/init.d/ssh status
### --- 若是ssh服务连接不上,生成一下两个秘钥文件,执行命令时需要输入密码,直接回车设置为空即可         

┌──[root@parrot]─[~]        
└─# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
┌──[root@parrot]─[~]
└─# ssh-keygen -t dsa -f /etc/ssh/ssh_host_rsa_key
四、更改parrot-security下载源地址为国内源
### --- 更改parrot-security下载源地址为国内源

┌─[root@parrot]─[~]
└──╼ #vim /etc/apt/sources.list.d/parrot.list                           // 添加清华源地址
### --- 一般我们更新源后对软件进行一次整体更新:分下面三步执行:
                 
┌─[root@parrot]─[~]
└──╼ # apt-get update && apt-get upgrade                                // 可以保证系统的完整性(upgrade更新,若依赖关系无法解决可能会报错或停止)
┌──[root@parrot]─[~]                                                    // 该命令也是更新所有软件包(慎用:自动解决依赖关系,可能更新一些不需要更新的包,导致一些需要依赖就报的程序无法运行)。
└─# apt-get dist-upgrade
┌──[root@parrot]─[~]
└─#  apt-get clean                                                       // 清理源仓库
五、系统汉化设置:
### --- 首先你安装系统的时候语言选择应该是中文:

┌──[root@parrot]─[~]
└─# sudo dpkg-reconfigure locales
### --- ——>找到zh_CN.UTF-8 UTF-8——>空格选中——>回车——>上下光标选中zh_CN.UTF-8——>tab确定——>回车——END

┌──[root@parrot]─[~]
└─# apt update 
┌──[root@parrot]─[~]
└─# apt upgrade
┌──[root@parrot]─[~]
└─# reboot
六、一些常用工具的部署:
### --- 安装parrot增强工具

~~~		# 安装parrot增强工具
┌──[root@parrot]─[~]
└─# sudo apt-get update
┌──[root@parrot]─[~]
└─# sudo apt-get install open-vm-tools-desktop fuse
### --- 输入法安装:

~~~		# 搜狗输入法下载地址:https://pinyin.sogou.com/linux/?r=pinyin
┌──[root@parrot]─[~]                                                // 1、安装搜狗输入法:
└─# sudo dpkg  -i sougoupingyinxxx.deb
┌──[root@parrot]─[~]                                                // 2、安装谷歌拼音:
└─# sudo apt-get install fcitx-googlepingyin
### --- 安装wps:到更新源的pool目录下载libpng12XXX最新版

~~~		# 到wps官网下载deb安装包:http://linux.wps.com/
┌──[root@parrot]─[~]
└─# sudo dpkg -i libpng12-0_1.2.50-2+deb8u3_amd64.deb
┌──[root@parrot]─[~]
└─# sudo dpkg -i wps-office_10.1.0.5707~a21_amd64.deb
~~~		# 解决字体缺失问题
~~~		# 国外下载地址:https://www.dropbox.com/s/lfy4hvq95ilwyw5/wps_symbol_fonts.zip

┌──[root@parrot]─[~]
└─# sudo cp * /user/share/fonts
┌──[root@parrot]─[~]                                                    // 生成字体索引信息
└─# sudo mkfontscale
┌──[root@parrot]─[~]
└─# sudo mkfontdir
┌──[root@parrot]─[~]                                                    / /运行fc-cache命令更新字体缓存
└─# sudo fc-cache
### --- 安装Google Chrome

~~~		# Chrome linux版下载地址:https://www.google.cn/chrome/
┌──[root@parrot]─[~]
└─# sudo dpkg -i google-chrome-stable_current_amd64.deb
┌──[root@parrot]─[~]
└─# sudo apt-get -f install
┌──[root@parrot]─[~]
└─# sudo dpkg -i google-chrome-stable_current_amd64.deb
### --- 汉化火狐浏览器:下载安装中文火狐语言包(中间版本选择你现在火狐浏览器的版本)

~~~		# 下载地址:https://download-installer.cdn.mozilla.net/pub/firefox/releases/52.5.0esr/linux-x86_64/xpi/
~~~		# 安装flash插件下载地址:https://www.flash.cn/
┌──[root@parrot]─[~]
└─# tar -zxvf flash_player_npapi_linux.x86_64.tar.gz
┌──[root@parrot]─[~]
└─# sudo cp libflashplayer.so /usr/lib/mozilla/plugins/
┌──[root@parrot]─[~]
└─# sudo cp -r usr/ /usr
### --- 安装十六进制编辑器

~~~		# 安装十六进制编辑器
┌──[root@parrot]─[~]
└─# sudo apt-get install hexedit
### --- 安装为知笔记:

~~~		# 安装为知笔记:
┌──[root@parrot]─[~]                                                    // 添加为知笔记扩展源
└─# vim /etc/apt/sources.list.d/parrot.list
deb http://ppa.launchpad.net/wiznote-team/ppa/ubuntu trusty main    
┌──[root@parrot]─[~]
└─# apt-get update
┌──[root@parrot]─[~]
└─# apt-get install wiznote
### --- 安装Pycharm

~~~		# 安装pycharm
~~~		# pycharm下载地址:https://www.jetbrains.com/pycharm/download/#section=linux
┌──[root@parrot]─[~]
└─# cd pycharm-2017.3/bin
┌──[root@parrot]─[~]
└─# sudo ./pycharm.sh
~~~		# 激活PyCharm,选择第三项服务器证书激活
~~~		# 下载地址:http://idea.imsxm.com/

~~~		# 汉化Pycharm
┌──[root@parrot]─[~]
└─# cd /tmp
┌──[root@parrot]─[~]
└─# udo git clone https://github.com/ewen0930/PyCharm-Chinese
┌──[root@parrot]─[~]
└─# cd PyCharm-Chinese
┌──[root@parrot]─[~]
└─# sudo bash package.cmd(需要java环境)
┌──[root@parrot]─[~]
└─# sudo cp resources_zh.jar /usr/lib/pycharm-community/lib             // 这里的“/usr/lib/pycharm-community/lib"为你的Pycharm所在路径

附录一:国内源常用源地址
### --- TUNA(北京清华大学,TUNA协会)
deb https://mirrors.tuna.tsinghua.edu.cn/parrot/ parrot main contrib non-free

### --- 中国科技大学和USTCLUG
deb http://mirrors.ustc.edu.cn/parrot parrot main contrib non-free

### --- SHU(上海大学)
deb https://mirrors.shu.edu.cn/parrot/ parrot main contrib non-free

### --- SJTUG(上海交通大学* NIX用户组)
deb https://mirrors.sjtug.sjtu.edu.cn/parrot/ parrot main contrib non-free

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on 2022-03-22 13:23  yanqi_vip  阅读(28)  评论(0编辑  收藏  举报

导航