Mục lục

Những việc cần làm sau khi cài đặt Kali Linux

Kali Linux là hệ điều hành chứa những bộ công cụ cực kì hữu dụng cho việc penetration testing, nhiều bạn trong đó có mình là newbie mới làm quen với Backtrack/Kali cảm thấy bỡ ngỡ và mong muốn làm sao để nó có thể trở thành một hệ điều hành chính có thể thay thế Windows để tiện cho việc học tập giải trí và nghiên cứu Hacking, dưới đây mình tổng hợp một số phần mềm cần thiết và cách cài sau khi cài đặt Kali, hi vọng sẽ giúp ích cho các bạn, vì bài viết có thể thiếu sót nên sẽ tiếp tục cập nhật, bạn nào cảm thấy các phần mềm nào hữu dụng thì để lại bình luận, mình sẽ đưa lên bài viết, cám ơn mọi người...

1. Chỉnh sửa sources.list

Sau khi cài đặt Kali, một điều làm mọi người phiền lòng là tốc độ mà nó cập nhật dữ liệu từ máy chủ quá chậm, để khắc phục điều này, các bạn mở sources.list bằng lệnh
leafpad /etc/apt/sources.list
Tiếp theo các bạn thay thế nội dung trong đó bằng đoạn text sau:
## Kali Regular repositories
deb http://repo.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Kali Source repositories
deb-src http://repo.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
Nếu bạn không thấy sự cải thiện thì có thể dùng đoạn text sau để thay thế, nó sẽ sửa sever cập nhật sang Anh, bình thường server cập nhật là của Trung Quốc rất hay bị mất kết nối,
## Kali Regular repositories
deb http://ftp.hands.com/kali kali main non-free contrib
deb http://ftp.hands.com/kali-security kali/updates main contrib non-free
## Kali Source repositories
deb-src http://ftp.hands.com/kali kali main non-free contrib
deb-src http://ftp.hands.com/kali-security kali/updates main contrib non-free
Để thay thế nhiều server khác nhau, vui lòng đọc bài viết này: http://www.blackmoreops.com/2013/11/14/change-repositories-different-mirror/

Sau khi cập nhật và nâng cấp xong, các bạn thay thế nội dung trong file soures.list lại bằng sources mặc định sau:
## Kali Regular repositories
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Kali Source repositories
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
Lí do là vì sources mặc định này sẽ cập nhật các bản/công cụ từ nhà sản xuất sớm hơn so với các server khác, ví dụ chẳng hạn như server mặc định này có bản vá lỗi của Metaploit Framework trong khi các server khác thì chưa có.

2. Install Software Center

apt-get update
apt-get upgrade
apt-get install software-center

3. Install Mozilla Firefox

apt-get remove iceweasel
echo -e "ndeb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" | tee -a /etc/apt/sources.list > /dev/null
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
apt-get update
apt-get install firefox-mozilla-build

4. Install Adobe Flash Player

4.1 Download Adobe Flash Player at http://get.adobe.com/flashplayer/?promoid=JZEFT
4.2 Type the command lines follow:
cd /root/Downloads/
tar xzvf [file name of Adobe Flash Player], ví dụ:
tar xzvf install_flash_player_11_linux.i386.tar.gz
cp libflashplayer.so /usr/lib/mozilla/plugins/

5. Install Virtual Box

5.1 Download Virtual Box at https://www.virtualbox.org/wiki/Linux_Downloads
5.2 Type the command lines follow:
apt-get update && apt-get install -y linux-headers-$(uname -r)
cd /root/Downloads/

dpkg -i [file name Virtual Box], ví dụ:
dpkg -i virtualbox-4.3_4.3.12-93733~Debian~wheezy_i386.deb

6. Install Skype

6.1 Download skype at http://www.skype.com/en/download-skype/s...-computer/
6.2 Type the command lines follow:
cd /root/Downloads/
dpkg -i [file name of Skype], ví dụ:
dpkg -i skype-debian_4.2.0.13-1_i386.deb

7. Install Teamviewer

7.1 Download Teamviewer at http://download.teamviewer.com/download/..._linux.deb
7.2 Type the command lines follow:
cd /root/Downloads/
dpkg -i [file name of Teamviewer], ví dụ:
dpkg -i teamviewer_linux.deb

8. Install ibus-unikey (bộ gõ Tiếng Việt)

apt-get install ibus im-switch
apt-get install ibus-unikey
#im-switch -s ibus
# logout and re-login
ibus-setup # add input methods you want

9. Add and Remove standard user (non-root)

Add:
useradd -m user1 //replace user1 with your desired user name
(Note: -m means create home directory which is usually /home/username)
Now set password for this user:
passwd user1
Add user to sudo group (to allow user to install software, allow printing, use privileged mode etc.):
usermod -a -G sudo user1
(Note: -a means append or add and –G mean to specified group/groups)
Change default shell of previously created user to bash :
chsh -s /bin/bash user1
(Note: chsh mean change login shell, -s is the name of the specified shell you want for the user, in this case /bin/bash)

Nice, all worked out as expected.
Let’s logout and login back as our new Standard Non-root user (user1)

Login as new user:
Become root!:
sudo su –
Delete user in Kali Linux:
Log in as root user again. Open your terminal and type:
userdel –r user1
(Note: -r means delete all files and home directory for user1)
You can replace user1 with your desired user name.I have an error “user1 is currently used by process 5866”.Don't worry, fix it by terminal type:
kill -9 5866
Now let’s try to delete the user again.
userdel –r user1
We have a message. “userdel: user1 mail spool (/var/mail/user1) not found”
Just to confirm everything for user1 was deleted list files in home directory
ls /home
Nothing.. that’s good news, all files and folders were deleted for user1.
Want to double-check?
su user1
Perfect user1 was deleted successfully.

10. Setup & Configure VPN in Kali Linux

apt-get install network-manager-openvpn
apt-get install network-manager-openvpn-gnome
apt-get install network-manager-pptp
apt-get install network-manager-pptp-gnome
apt-get install network-manager-strongswan
apt-get install network-manager-vpnc
apt-get install network-manager-vpnc-gnome
/etc/init.d/network-manager restart

11. Install AptonCD - Create a backup of all the packages you have installed using apt-get

apt-get install aptoncd

12. Fix Database not connected or cache not built, using slow search error in Metasploit

service postgresql start
OR
#/etc/init.d/postgresql start
service metasploit start
OR
#/etc/init.d/metasploit start
apt-get update
apt-get upgrade
One more thing... If you want postgreSQL and Metasploit services to auto start whenever you boot into Backtrack or Kali, you can issue the following commands on the root terminal:
update-rc.d postgresql enable
update-rc.d metasploit enable

13. Install Java JDK 7

13.1 Download the latest Java SE SDK version at http://www.oracle.com/technetwork/java/j...80260.html
Các bạn lưu file download vào thư mục /root
13.2 UnTar the Archive and move to /opt
tar -xzvf /root/jdk-7u45-linux-x64.tar.gz
mv jdk1.7.0_45 /opt
cd /opt/jdk1.7.0_45
14.3 Install and register binaries
update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_45/bin/java 1
update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_45/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so 1
update-alternatives --set java /opt/jdk1.7.0_45/bin/java
update-alternatives --set javac /opt/jdk1.7.0_45/bin/javac
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so
13.4 Test
First of all, close your browser and re-open, access to http://www.java.com/en/download/installed.jsp
java -version

Lưu ý bản Java SE JDK mới nhất là bản 8, lệnh thì tương tự nhưng các bạn phải sửa một số đường dẫn đến các file sao cho phù hợp, các bạn tùy cơ ứng biến nhé,

14. Install Jdownloader:

14.1 Download Jdownloader as http://jdownloader.org/
14.2 Install:
chmod +x jd_unix_0_9.sh && ./jd_unix_0_9.sh

15.1 How to hide show/hide all desktop icons on Kali Linux

Open your terminal and type:
gsettings set org.gnome.desktop.background show-desktop-icons false
15.2 How to auto hide bottom panel
Access to applications/System tools/deconf Editor/org/gnome/gnome-panel/layout/toplevels/bottom-panel, check auto hide

16. Install Pinta Images Editor (Trình chỉnh sửa ảnh như Paint trong Windows)

apt-get install pinta
Trên Linux thì có trình chỉnh sửa ảnh GIMP, được ví như photoshop thứ 2, cài đặt bằng lệnh
apt-get install gimp

17. Install and run Google Chrome as root user

17.1 Download Google Chrome at http://www.google.com.vn/intl/vi/chrome/browser/
17.2 Install by the command lines:
cd /root/Downloads/
dpkg -i [file name of Chrome], ví dụ:
dpkg -i google-chrome-stable_current_i386.deb
17.3 Run Chrome as root user
leafpad /opt/google/chrome/google-chrome
Find a line:
exec -a "$0" "$HERE/chrome"  "$@"
Replace it to
exec -a "$0" "$HERE/chrome"  "$@" --user-data-dir ”/root/.config/google-chrome”
Enjoy! Now open google chrome from Application>>Internet>>Google Chrome

18. Installer for Microsoft TrueType core fonts (Add Aria, Times New Roman, Verdana, etc font)

apt-get install ttf-mscorefonts-installer

19. Install Sopcast Player (Phần mềm dành cho các bạn yêu bóng đá)

Đầu tiên các bạn tải sp-auth tại đây
Tiếp theo cài đặt nó bằng lệnh
cd /root/Downloads/
dpkg -i sp-auth_3.2.6~ppa1~precise3_i386.deb
apt-get -f install
Tiếp theo các bạn tải về Sopcast 0.8.5 tại đây

Cài đặt nó bằng lệnh
dpkg -i sopcast-player_0.8.5~ppa~precise1_i386.deb
apt-get -f install
Ok, vậy là công việc cài đặt đã hoàn tất, giờ bạn chỉ việc khởi động nó ở Applications => Sound & Videos =>Sopcast Player là đã có thể thưởng thức bóng đá và các chương trình tivi, thể thao khác...
Lưu ý là đường dẫn Sopcast các bạn phải thêm bằng tay chứ nó không tự động chạy như trong Windows đâu.