NO.A.0018——Parrot-security-4.10配置固定IP地址/開啓root權限/開

一、parrot-security啓動root賬戶權限。並使用root登錄xshell遠程工具:

//1、在普通用戶下設置root密碼;開啓root用戶權限
┌─[yanqi@parrot]─[~]
└──╼ $sudo passwd root
[sudo] password for yanqi:
New password:
Retype new password:
passwd: password updated successfully
//2、在非root賬戶下,輸入當前用戶的密碼即可開啓臨時root權限
┌─[yanqi@parrot]─[~]
└──╼ $sudo -i
┌─[root@parrot]─[~]         //此刻你就可以在root下執行一些操作
└──╼ #

二、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遠程連接

//1、修改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

//2、若是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下載源地址爲國內源

┌─[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                       //清理源倉庫

國內源常用源地址

# 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

五、系統漢化設置:

//1、首先你安裝系統的時候語言選擇應該是中文:
┌──[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

六、一些常用工具的部署:
1、安裝parrot增強工具

┌──[root@parrot]─[~]
└─# sudo apt-get update
┌──[root@parrot]─[~]
└─# sudo apt-get install open-vm-tools-desktop fuse

2、輸入法安裝:

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

3、安裝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

4、安裝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

5、漢化火狐瀏覽器:下載安裝中文火狐語言包(中間版本選擇你現在火狐瀏覽器的版本)

//下載地址: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

6、安裝十六進制編輯器

┌──[root@parrot]─[~]
└─# sudo apt-get install hexedit

7、安裝爲知筆記:

┌──[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

8、安裝Pycharm

//1、安裝pycharm
// pycharm下載地址:https://www.jetbrains.com/pycharm/download/#section=linux
┌──[root@parrot]─[~]
└─# cd pycharm-2017.3/bin
┌──[root@parrot]─[~]
└─# sudo ./pycharm.sh

//2、激活PyCharm,選擇第三項服務器證書激活
下載地址:http://idea.imsxm.com/

//3、漢化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所在路徑
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章