1. 程式人生 > 其它 >|NO.Z.00026|——————————|NavigationLog|——|Parrot-security.V4.10|

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



[NavigationIng:Parrot-security.V4.10]                                                                            [NavigationIng.了不起] [Parrot-security-4.10配置固定IP地址&開啟root許可權&開啟ssh服務&配置國內源&系統漢化設定&安裝增強工具]








一、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








===============================END===============================


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



來自為知筆記(Wiz)