安装完Ubuntu需要做的事情
本文以Debian 8为例
1、首先肯定是要安装一个中文输入法的
a) sudo apt-get install ibus-table-wubi
b) reboot
c) Killall -9 ibus-daemon ; ibus-daemon -drx
d) ibus-setup
1.1 install flash plugin for firefox on kali
wget https://fpdownload.adobe.com/get/flashplayer/pdc/25.0.0.127/flash_player_npapi_linux.x86_64.tar.gz
mkdir flash
tar zxf flash_player_npapi_linux.x86_64.tar.gz -C flash
cd flash
cp -r usr/* /usr
cp libflashplayer.so /usr/lib/mozilla/plugins
okay, restart your firefox
2、删除Libreoffice
a) sudo apt-get remove libreoffice
b) sudo apt-get remove libreoffice-common
3、删除Amazon链接
Debian默认是没有安装的,但我还是提供一下命令
sudo apt-get remove unity-webapps-common
4、安装git和vpnc
a) sudo apt-get install vpnc git -y
5、安装7z来解压rar文件,这个工具就不多说了,直接在这里下载最新的就可以了。
a) http://sourceforge.net/projects/p7zip/files/p7zip/
在网上看见朋友有推荐用unrar的,但是我安装了一个并不好使,索性直接了当,就 用7zip了,简单粗暴。
6、修改/etc/hosts文件,然后上google.
a) git clone https://github.com/hienha/Hosts
b) cp hosts /etc/ -f
c) /etc/init.d/networking restart
7、安装一个真正属于linux的词典,作为一个it人士,难免会看一些国外的文档,这个时候有也许有多种上选择,好吧, 这里就从安装一个英汉词典开始吧。
apt-get install goldendict
http://abloz.com/huzheng/stardict-dic/zh_CN/ //离线词典下载位置,不要吝啬,随便下。
8、如果不想用图形界面,则可以通过下面的命令来禁止图形界面的启动
systemctl disable lightdm.service
8、安装sshd服务
sudo apt-get install openssh-server
下面是sshd的配置文件,供参考
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes
# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 1024
# Logging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no
# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no
# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#MaxStartups 10:30:60
#Banner /etc/issue.net
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
PasswordAuthentication yes
UseDns no
9. 替换apt源为163
sudo cp /etc/apt/source.list{,.bak}
sudo vim /etc/apt/source.list
deb http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
完了之后执行sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
10、配置固定IP
refer: http://jingyan.baidu.com/article/e5c39bf5bbe0e739d7603396.html
编辑网卡的相关信息
$ sudo vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
添加DNS信息
注意下面:这个文件是动态生成的,不建议修改,修改之后还是会被覆盖的
$ sudo vim /etc/resolv.conf
\# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
\# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.10.1
nameserver 8.8.4.4
到这里基本上网就没有问题了,如果尝试重启后还不可以的话,那么就需要再进行下面的步骤
添加固定的DNS信息
$ cat /etc/resolvconf/resolv.conf.d/base
nameserver 223.5.5.5
若还是不可以上网,那么需要把下面的文件给删除
/etc/NetworkManager/system-connections
重启网络
sudo /etc/init.d/network-manager restart
未完,待续……