{"id":385,"date":"2011-01-11T12:08:56","date_gmt":"2011-01-11T11:08:56","guid":{"rendered":"https:\/\/thebc.ch\/blog\/?p=385"},"modified":"2013-02-01T13:01:56","modified_gmt":"2013-02-01T12:01:56","slug":"install-debian","status":"publish","type":"post","link":"https:\/\/thebc.ch\/blog\/?p=385","title":{"rendered":"Install Debian"},"content":{"rendered":"<table id=\"toc\" summary=\"Contents\">\n<tbody>\n<tr>\n<td>\n<div id=\"toctitle\">\n<span id=\"Contents\"><h2>Contents<\/h2><\/span>\n<\/div>\n<ul>\n<li>1 Minimal Net-Install<\/li>\n<li>2 First Boot\n<ul>\n<li>2.1 Updating the System<\/li>\n<li>2.2 Installing SSH Daemon<\/li>\n<\/ul>\n<\/li>\n<li>3 Installing Development Environment<\/li>\n<li>4 Installing VirtualBox Guest-Additions<\/li>\n<li>5 Installing Additional Software\n<ul>\n<li>5.1 Commandline Tools<\/li>\n<li>5.2 Commandline Editors<\/li>\n<li>5.3 X11 (only ssh-port-forwarding)<\/li>\n<li>5.4 GUI Tools<\/li>\n<li>5.5 Install Metasploit 3<\/li>\n<li>5.6 Install Maltego<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a id=\"Minimal_Net-Install\" name=\"Minimal_Net-Install\"><\/a><\/p>\n<span id=\"Minimal_Net-Install\"><h2>Minimal Net-Install<\/h2><\/span>\n<p><a id=\"First_Boot\" name=\"First_Boot\"><\/a><\/p>\n<span id=\"First_Boot\"><h2>First Boot<\/h2><\/span>\n<p><a id=\"Updating_the_System\" name=\"Updating_the_System\"><\/a><\/p>\n<span id=\"Updating_the_System\"><h3>Updating the System<\/h3><\/span>\n<p>This command updates the &#8220;portage tree&#8221; of the system<\/p>\n<pre>aptitude update<\/pre>\n<p>This command performes a save upgrade of the system (Upgarde the installed software versions)<\/p>\n<pre>aptitude upgrade<\/pre>\n<p>This command performs a distribution upgrade to a newer version.<\/p>\n<pre>aptitude dist-upgrade<\/pre>\n<p>This command gives you a package management interface with which you can manage your packages<\/p>\n<pre>aptitude<\/pre>\n<p><a id=\"Installing_SSH_Daemon\" name=\"Installing_SSH_Daemon\"><\/a><\/p>\n<span id=\"Installing_SSH_Daemon\"><h3>Installing SSH Daemon<\/h3><\/span>\n<pre>aptitude install ssh\r\nupdate-rc.d ssh defaults\r\n\/etc\/init.d\/ssh start<\/pre>\n<p><a id=\"Installing_Development_Environment\" name=\"Installing_Development_Environment\"><\/a><\/p>\n<span id=\"Installing_Development_Environment\"><h2>Installing Development Environment<\/h2><\/span>\n<pre>aptitude install build-essential kernel-header-`uname -r`\r\naptitude install linux-headers-2.6-686<\/pre>\n<p><a id=\"Installing_VirtualBox_Guest-Additions\" name=\"Installing_VirtualBox_Guest-Additions\"><\/a><\/p>\n<span id=\"Installing_VirtualBox_Guest-Additions\"><h2>Installing VirtualBox Guest-Additions<\/h2><\/span>\n<pre>mount \/dev\/cdrom\r\ncd \/media\/cdrom0\r\nsh .\/VBoxLinuxAdditions.run<\/pre>\n<p><a id=\"Installing_Additional_Software\" name=\"Installing_Additional_Software\"><\/a><\/p>\n<span id=\"Installing_Additional_Software\"><h2>Installing Additional Software<\/h2><\/span>\n<p><a id=\"Commandline_Tools\" name=\"Commandline_Tools\"><\/a><\/p>\n<span id=\"Commandline_Tools\"><h3>Commandline Tools<\/h3><\/span>\n<pre>aptitude install lsof\r\naptitude install screen\r\naptitude install nmap\r\naptitude install snoopy\r\naptitude install nikto\r\naptitude install tcpdump\r\naptitude install hping2 hping3\r\naptitude install tcpreplay tcpspy tcptraceroute tcpxtract tcpflow\r\naptitude install netwag netwox\r\naptitude install dsniff\r\naptitude install lftp\r\naptitude install curl\r\naptitude install ettercap\r\naptitude install dnsutils                  # dig\r\naptitude install scapy\r\naptitude install cryptsetup\r\naptitude install p0f\r\naptitude install ntop\r\naptitude install ngrep\r\naptitude install nbtscan\r\naptitude install xprobe\r\naptitude install ike-scan\r\naptitude install fping\r\naptitude install wipe\r\naptitude install sleuthkit\r\naptitude install cadaver<\/pre>\n<p><a id=\"Commandline_Editors\" name=\"Commandline_Editors\"><\/a><\/p>\n<span id=\"Commandline_Editors\"><h3>Commandline Editors<\/h3><\/span>\n<pre>aptitude install vim\r\n\r\necho '\" Set syntax highlighting to always on\r\nsyntax enable\r\n\r\n\" Set the background to dark and the colorscheme to murphy\r\nset background=dark\r\ncolorscheme murphy\r\n\r\n\" Set automatic filetype detection to on\r\nfiletype on' &gt;&gt; ~\/.vimrc<\/pre>\n<p><a id=\"X11_.28only_ssh-port-forwarding.29\" name=\"X11_.28only_ssh-port-forwarding.29\"><\/a><\/p>\n<span id=\"X11_only_ssh-port-forwarding\"><h3>X11 (only ssh-port-forwarding)<\/h3><\/span>\n<pre>aptitude install xbase-clients<\/pre>\n<p><a id=\"GUI_Tools\" name=\"GUI_Tools\"><\/a><\/p>\n<span id=\"GUI_Tools\"><h3>GUI Tools<\/h3><\/span>\n<pre>aptitude install wireshark\r\naptitude install etherape\r\naptitude install iceweasel iceweasel-webdeveloper\r\naptitude install kate<\/pre>\n<p><a id=\"Install_Metasploit_3\" name=\"Install_Metasploit_3\"><\/a><\/p>\n<span id=\"Install_Metasploit_3\"><h3>Install Metasploit 3<\/h3><\/span>\n<pre>aptitude install ruby libruby rdoc\r\naptitude install libyaml-ruby\r\naptitude install libzlib-ruby\r\naptitude install libopenssl-ruby\r\naptitude install libdl-ruby\r\naptitude install libreadline-ruby\r\naptitude install libiconv-ruby\r\naptitude install rubygems\r\naptitude install libgtk2-ruby libglade2-ruby<\/pre>\n<pre>aptitude install subversion<\/pre>\n<pre>mkdir -p \/pentest\/metasploit3\r\ncd \/pentest\/metasploit3\r\nsvn co <a title=\"http:\/\/metasploit.com\/svn\/framework3\/trunk\/\" href=\"http:\/\/metasploit.com\/svn\/framework3\/trunk\/\" rel=\"nofollow\">http:\/\/metasploit.com\/svn\/framework3\/trunk\/<\/a> .\r\n\r\nchmod +x msfcli msfconsole msfd msfelfscan msfencode msfgui msfopcode\r\nmsfpayload msfpescan msfweb<\/pre>\n<p><a id=\"Install_Maltego\" name=\"Install_Maltego\"><\/a><\/p>\n<span id=\"Install_Maltego\"><h3>Install Maltego<\/h3><\/span>\n<p>Add a line to \/etc\/apt\/apt.conf.d\/70debconf:<\/p>\n<pre>APT::Cache-Limit \"100000000\";   # because off \"E: Dynamic MMap ran out of room\"<\/pre>\n<p>Add two lines to \/etc\/apt\/sources.list<\/p>\n<pre>deb <a title=\"http:\/\/ftp.us.debian.org\/debian\" href=\"http:\/\/ftp.us.debian.org\/debian\" rel=\"nofollow\">http:\/\/ftp.us.debian.org\/debian<\/a> unstable main contrib non-free\r\ndeb-src <a title=\"http:\/\/ftp.us.debian.org\/debian\" href=\"http:\/\/ftp.us.debian.org\/debian\" rel=\"nofollow\">http:\/\/ftp.us.debian.org\/debian<\/a> unstable main contrib non-free<\/pre>\n<p>Created \/etc\/apt\/preferences:<\/p>\n<pre>Package: *\r\nPin: release a=stable\r\nPin-Priority: 700\r\n\r\nPackage: *\r\nPin: release a=unstable\r\nPin-Priority: 600<\/pre>\n<p>Update the packages-cache and install java 1.6<\/p>\n<pre>aptitude update\r\naptitude install sun-java6-jre<\/pre>\n<p>Set the default java<\/p>\n<pre>update-alternatives --auto java\r\nupdate-alternatives --config java (to verrify\u00c2\u00a0:-)<\/pre>\n<pre>mkdir -p \/opt\/information-gathering\/\r\ncd \/opt\/information-gathering\/\r\nwget <a title=\"http:\/\/www.paterva.com\/malv2\/MaltegoInstaller-v2-210-CE.jar\" href=\"http:\/\/www.paterva.com\/malv2\/MaltegoInstaller-v2-210-CE.jar\" rel=\"nofollow\">http:\/\/www.paterva.com\/malv2\/MaltegoInstaller-v2-210-CE.jar<\/a>\r\njava -jar MaltegoInstaller-v2-210-CE.jar<\/pre>\n<pre>echo 'export PATH=$PATH:\/opt\/information-gathering\/MaltegoCE\/bin'<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Contents 1 Minimal Net-Install 2 First Boot 2.1 Updating the System 2.2 Installing SSH Daemon 3 Installing Development Environment 4 Installing VirtualBox Guest-Additions 5 Installing Additional Software 5.1 Commandline Tools 5.2 Commandline Editors 5.3 X11 (only ssh-port-forwarding) 5.4 GUI Tools &hellip; <a href=\"https:\/\/thebc.ch\/blog\/?p=385\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,5],"tags":[],"class_list":["post-385","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux"],"_links":{"self":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=385"}],"version-history":[{"count":9,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/385\/revisions"}],"predecessor-version":[{"id":2696,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/385\/revisions\/2696"}],"wp:attachment":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}