Parrot-security-4.10配置固定IP地址/开启root权限/开启ssh服务/配置国内源地址/系统汉化设置/安装增强工具

一、parrot-security启动root账户权限。并使用root登录xshell远程工具:

 1 //1、在普通用户下设置root密码;开启root用户权限
 2 ┌─[yanqi@parrot]─[~]
 3 └──╼ $sudo passwd root
 4 [sudo] password for yanqi:
 5 New password:
 6 Retype new password:
 7 passwd: password updated successfully
 8 //2、在非root账户下,输入当前用户的密码即可开启临时root权限
 9 ┌─[yanqi@parrot]─[~]
10 └──╼ $sudo -i
11 ┌─[root@parrot]─[~]                  //此刻你就可以在root下执行一些操作
12 └──╼ #

二、parrot-security配置虚拟机静态IP地址:

 1 ┌─[root@parrot]─[~]
 2 └──╼ #vim /etc/network/interfaces
 3 # The loopback network interface$
 4 auto lo$
 5 auto eth0$
 6 iface lo inet loopback$
 7 allow-hotplug eth0$
 8 iface eth0 inet static$
 9 address 192.168.1.98$
10 netmask 255.255.255.0$
11 gateway 192.168.1.1$
12 dns-nameservers 114.114.114.114,8.8.8.8$            
13 ┌─[root@parrot]─[~]
14 └──╼ #systemctl restart networking.service
15                  
16 DNS方案二:
17   ┌─[root@parrot]─[~]                //若是发现域名无法解析,查看dns配置文件是否损坏
18 └──╼ #vim /etc/resolv.conf
19 # Generated by NetworkManager
20 domain localdomain
21 search localdomain
22 nameserver 114.114.114.114
23 nameserver 8.8.8.8

三、开启Parrot-security ssh服务,并使用xshell远程连接

 1 //1、修改ssh服务配置文件,并启动ssh服务
 2 ┌─[root@parrot]─[~]
 3 └──╼ # apt-get install openssh-server openssh-client
 4 ┌─[root@parrot]─[~]
 5 └──╼ # vim /etc/ssh/sshd_config
 6 PermitRootLogin yes
 7 PasswordAuthentication yes
 8 //OR
 9 LoginGraceTime 120
10 PermitRootLogin yes
11 StrictModes yes
12 
13 ┌─[root@parrot]─[~]
14 └──╼ #/etc/init.d/ssh start
15 ┌─[root@parrot]─[~]
16 └──╼ #/etc/init.d/ssh status
17                  
18 //2、若是ssh服务连接不上,生成一下两个秘钥文件,执行命令时需要输入密码,直接回车设置为空即可         
19 ┌──[root@parrot]─[~]        
20 └─# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
21 ┌──[root@parrot]─[~]
22 └─# ssh-keygen -t dsa -f /etc/ssh/ssh_host_rsa_key

四、更改parrot-security下载源地址为国内源

1 ┌─[root@parrot]─[~]
2 └──╼ #vim /etc/apt/sources.list.d/parrot.list            //添加清华源地址
3 //一般我们更新源后对软件进行一次整体更新:分下面三步执行:
4 ┌─[root@parrot]─[~]
5 └──╼ # apt-get update && apt-get upgrade                 //可以保证系统的完整性(upgrade更新,若依赖关系无法解决可能会报错或停止)
6 ┌──[root@parrot]─[~]                        //该命令也是更新所有软件包(慎用:自动解决依赖关系,可能更新一些不需要更新的包,导致一些需要依赖就报的程序无法运行)。
7 └─# apt-get dist-upgrade
8 ┌──[root@parrot]─[~]
9 └─#  apt-get clean                             //清理源仓库

国内源常用源地址

 1 # TUNA(北京清华大学,TUNA协会)
 2 deb https://mirrors.tuna.tsinghua.edu.cn/parrot/ parrot main contrib non-free
 3 
 4 # 中国科技大学和USTCLUG
 5 deb http://mirrors.ustc.edu.cn/parrot parrot main contrib non-free
 6 
 7 #SHU(上海大学)
 8 deb https://mirrors.shu.edu.cn/parrot/ parrot main contrib non-free
 9 
10 #SJTUG(上海交通大学* NIX用户组)
11 deb https://mirrors.sjtug.sjtu.edu.cn/parrot/ parrot main contrib non-free

五、系统汉化设置:

 1 //1、首先你安装系统的时候语言选择应该是中文:
 2 ┌──[root@parrot]─[~]
 3 └─# sudo dpkg-reconfigure locales
 4 //    ——>找到zh_CN.UTF-8 UTF-8——>空格选中——>回车——>上下光标选中zh_CN.UTF-8——>tab确定——>回车——END
 5 ┌──[root@parrot]─[~]
 6 └─# apt update 
 7 ┌──[root@parrot]─[~]
 8 └─# apt upgrade
 9 ┌──[root@parrot]─[~]
10 └─# reboot
六、一些常用工具的部署:
1、安装parrot增强工具
1 ┌──[root@parrot]─[~]
2 └─# sudo apt-get update
3 ┌──[root@parrot]─[~]
4 └─# sudo apt-get install open-vm-tools-desktop fuse

2、输入法安装

1 //搜狗输入法下载地址:https://pinyin.sogou.com/linux/?r=pinyin
2 ┌──[root@parrot]─[~]                        //1、安装搜狗输入法:
3 └─# sudo dpkg  -i sougoupingyinxxx.deb
4 ┌──[root@parrot]─[~]                        //2、安装谷歌拼音:
5 └─# sudo apt-get install fcitx-googlepingyin

3、安装wps:到更新源的pool目录下载libpng12XXX最新版

1 //到wps官网下载deb安装包:http://linux.wps.com/
2 ┌──[root@parrot]─[~]
3 └─# sudo dpkg -i libpng12-0_1.2.50-2+deb8u3_amd64.deb
4 ┌──[root@parrot]─[~]
5 └─# sudo dpkg -i wps-office_10.1.0.5707~a21_amd64.deb

解决字体缺失问题

1 //国外下载地址:https://www.dropbox.com/s/lfy4hvq95ilwyw5/wps_symbol_fonts.zip
2 ┌──[root@parrot]─[~]
3 └─# sudo cp * /user/share/fonts
4 ┌──[root@parrot]─[~]                        //生成字体索引信息
5 └─# sudo mkfontscale
6 ┌──[root@parrot]─[~]
7 └─# sudo mkfontdir
8 ┌──[root@parrot]─[~]                        //运行fc-cache命令更新字体缓存
9 └─# sudo fc-cache

4、安装Google Chrome

1 //Chrome linux版下载地址:https://www.google.cn/chrome/
2 ┌──[root@parrot]─[~]
3 └─# sudo dpkg -i google-chrome-stable_current_amd64.deb
4 ┌──[root@parrot]─[~]
5 └─# sudo apt-get -f install
6 ┌──[root@parrot]─[~]
7 └─# sudo dpkg -i google-chrome-stable_current_amd64.deb

5、汉化火狐浏览器:下载安装中文火狐语言包(中间版本选择你现在火狐浏览器的版本)

1 //下载地址:https://download-installer.cdn.mozilla.net/pub/firefox/releases/52.5.0esr/linux-x86_64/xpi/
2 //安装flash插件下载地址:https://www.flash.cn/
3 ┌──[root@parrot]─[~]
4 └─# tar -zxvf flash_player_npapi_linux.x86_64.tar.gz
5 ┌──[root@parrot]─[~]
6 └─# sudo cp libflashplayer.so /usr/lib/mozilla/plugins/
7 ┌──[root@parrot]─[~]
8 └─# sudo cp -r usr/ /usr

 

 

6、安装十六进制编辑器

 1 ┌──[root@parrot]─[~]

└─# sudo apt-get install hexedit 

 

 

 

7、安装为知笔记:

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

 

8、安装Pycharm

 1 //1、安装pycharm
 2 // pycharm下载地址:https://www.jetbrains.com/pycharm/download/#section=linux
 3 ┌──[root@parrot]─[~]
 4 └─# cd pycharm-2017.3/bin
 5 ┌──[root@parrot]─[~]
 6 └─# sudo ./pycharm.sh
 7 
 8 //2、激活PyCharm,选择第三项服务器证书激活
 9 下载地址:http://idea.imsxm.com/
10 
11 //3、汉化Pycharm
12 ┌──[root@parrot]─[~]
13 └─# cd /tmp
14 ┌──[root@parrot]─[~]
15 └─# udo git clone https://github.com/ewen0930/PyCharm-Chinese
16 ┌──[root@parrot]─[~]
17 └─# cd PyCharm-Chinese
18 ┌──[root@parrot]─[~]
19 └─# sudo bash package.cmd(需要java环境)
20 ┌──[root@parrot]─[~]
21 └─# sudo cp resources_zh.jar /usr/lib/pycharm-community/lib   // 这里的“/usr/lib/pycharm-community/lib"为你的Pycharm所在路径

 

posted @ 2021-09-06 22:11  千灯万盏,无一是归处  阅读(1053)  评论(0)    收藏  举报