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...
Tiếp theo các bạn thay thế nội dung trong đó bằng đoạn text sau:
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,
Để 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:
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ó.
4.1 Download Adobe Flash Player at http://get.adobe.com/flashplayer/?promoid=JZEFT
5.1 Download Virtual Box at https://www.virtualbox.org/wiki/Linux_Downloads
dpkg -i [file name Virtual Box], ví dụ:
6.1 Download skype at http://www.skype.com/en/download-skype/s...-computer/
dpkg -i [file name of Skype], ví dụ:
7.1 Download Teamviewer at http://download.teamviewer.com/download/..._linux.deb
dpkg -i [file name of Teamviewer], ví dụ:
(Note: -m means create home directory which is usually /home/username)
Now set password for this user:
Add user to sudo group (to allow user to install software, allow printing, use privileged mode etc.):
(Note: -a means append or add and –G mean to specified group/groups)
Change default shell of previously created user to bash :
(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!:
Delete user in Kali Linux:
Log in as root user again. Open your terminal and type:
(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:
Now let’s try to delete the user again.
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
Nothing.. that’s good news, all files and folders were deleted for user1.
Want to double-check?
Perfect user1 was deleted successfully.
OR
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:
17.1 Download Google Chrome at http://www.google.com.vn/intl/vi/chrome/browser/
Replace it to
Enjoy! Now open google chrome from Application>>Internet>>Google Chrome
Tiếp theo cài đặt nó bằng lệnh
Cài đặt nó bằng lệnh
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.
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ệnhleafpad /etc/apt/sources.list## Kali Regular repositoriesdeb http://repo.kali.org/kali kali main non-free contribdeb http://security.kali.org/kali-security kali/updates main contrib non-free## Kali Source repositoriesdeb-src http://repo.kali.org/kali kali main non-free contribdeb-src http://security.kali.org/kali-security kali/updates main contrib non-free
## Kali Regular repositoriesdeb http://ftp.hands.com/kali kali main non-free contribdeb http://ftp.hands.com/kali-security kali/updates main contrib non-free## Kali Source repositoriesdeb-src http://ftp.hands.com/kali kali main non-free contribdeb-src http://ftp.hands.com/kali-security kali/updates main contrib non-free
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 repositoriesdeb http://http.kali.org/kali kali main non-free contribdeb http://security.kali.org/kali-security kali/updates main contrib non-free## Kali Source repositoriesdeb-src http://http.kali.org/kali kali main non-free contribdeb-src http://security.kali.org/kali-security kali/updates main contrib non-free
2. Install Software Center
apt-get updateapt-get upgradeapt-get install software-center
3. Install Mozilla Firefox
apt-get remove iceweaselecho -e "ndeb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" | tee -a /etc/apt/sources.list > /dev/nullapt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29apt-get updateapt-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.gzcp 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 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 teamviewer_linux.deb
8. Install ibus-unikey (bộ gõ Tiếng Việt)
apt-get install ibus im-switchapt-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 nameNow set password for this user:
passwd user1usermod -a -G sudo user1Change default shell of previously created user to bash :
chsh -s /bin/bash user1Nice, 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 –Log in as root user again. Open your terminal and type:
userdel –r user1You 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 5866userdel –r user1Just to confirm everything for user1 was deleted list files in home directory
ls /homeWant to double-check?
su user110. Setup & Configure VPN in Kali Linux
apt-get install network-manager-openvpnapt-get install network-manager-openvpn-gnomeapt-get install network-manager-pptpapt-get install network-manager-pptp-gnomeapt-get install network-manager-strongswanapt-get install network-manager-vpncapt-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 startservice metasploit start
#/etc/init.d/metasploit startapt-get updateapt-get upgrade
update-rc.d postgresql enableupdate-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 /root13.2 UnTar the Archive and move to /opt
tar -xzvf /root/jdk-7u45-linux-x64.tar.gzmv jdk1.7.0_45 /optcd /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 1update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_45/bin/javac 1update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.7.0_45/jre/lib/amd64/libnpjp2.so 1update-alternatives --set java /opt/jdk1.7.0_45/bin/javaupdate-alternatives --set javac /opt/jdk1.7.0_45/bin/javacupdate-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.jspjava -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 hide16. 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ệnhapt-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" "$@"exec -a "$0" "$HERE/chrome" "$@" --user-data-dir ”/root/.config/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 đâyTiế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
dpkg -i sopcast-player_0.8.5~ppa~precise1_i386.debapt-get -f installLư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.