How to search for packages using APT the Debian package manager used by Ubuntu & Linux Mint.
The first part of the apt-get search command is updating the mirror:
1
apt-get update
Next we can perform a apt-cache search, apt-cache is the local cached copy of the mirror package list a small cached database of all the packages that exist on the mirrors specified in your sources.list file.
1
apt-cache search nmap
`
The above command will return the following output (screenshot from a Debian server):
After you complete your apt-get search (using the apt-cache command above) you can install the package using apt-get install.
CentOS disable SELinux, the following tutorial shows you how to disable SELinux without rebooting on CentOS 5 & 6 the guide also shows you how to permanently disable SELinux. I only recommend disabling SELinux during troubleshooting, keeping it enabled and configuring it correctly is by far the best option.
The following tutorial will walk you through a CentOS Nginx install using YUM and the EPEL Repository.
To start of with make sure you have the EPEL repo installed, I recommend reading our guide for CentOS EPEL repo installation if you do not already have this installed.
Often security consultants or system administrators are asked to provide the Apache version, normally for security checks / patching or checking for system compatibility.
The command below will display the Apache version on the command line, note this will show the Apache version not the distro specific package version.
Apache version command:
1
httpd -v
The command httpd -v should find the Apache version on any Linux version, if you need to find out the package version number I would suggest using your distributions package manager to view the installed software and grep for apache or httpd.
CentOS kernel source install, first off if you are just trying to build something or compile a tool on CentOS then you probably only need to install the kernel-devel package if you are running a standard install you can install the kernel-devel package on CentOS 6 with:
Below are high speed CentOS 6 Download links direct from the mirror and further down the page are CentOS 6 torrent links. I recommend downloading the CentOS 6 minimal ISO and installing additional packages from YUM, this will save mirror bandwidth and download time. If you require the CentOS 6 DVD ISO then I recommend downloading the torrent below this will prevent the large ISO files corrupting during download.
This post is updated every time a point release is announced, meaning you will always have the most recent CentOS 6 ISO files (currently this page contains CentOS 6.2 Download Links).
As mentioned above I highly recommend the minimal CentOS 6 download, after / during install you can install up to date packages directly from the mirror via YUM.
Below are the download links for the install version of the CentOS 6.2 DVD ISO’s, the install is split across two DVD’s. I only recommend installing the DVD’s if you do not have access to the Internet during the installation process.
How to install Kernel Headers on Ubuntu Linux, the following guide will show you the easiest way to install Ubuntu Kernel headers.
Tutorial for Ubuntu Kernel Headers Install
The following command will automatically detect the version of the Linux kernel you are running and download the headers via apt.
1
sudo apt-get install linux-headers-$(uname -r)
This should give you an out put similar to the following:
123456789101112
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
linux-headers-2.6.32-38-server
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B/822kB of archives.
After this operation, 9,388kB of additional disk space will be used.
Selecting previously deselected package linux-headers-2.6.32-38-server.
(Reading database ... 63398 files and directories currently installed.)Unpacking linux-headers-2.6.32-38-server (from .../linux-headers-2.6.32-38-server_2.6.32-38.83_amd64.deb) ...
Setting up linux-headers-2.6.32-38-server (2.6.32-38.83) ...
You now have Ubuntu kernel headers installed, which should enable you to build software that depends upon them (such as VMware tools).
The best way to get a Debian Gnome 3 install working is to use Debian Testing / Wheezy (named after the penguin from Toy Story). You can follow our Debian Wheezy download instructions to grab the latest Wheezy ISO’s, the page provides fast direct links for Debian Testing ISO’s.
Currently there is no sane way to install Gnome 3 on Debian 6 (Squeeze) and it’s highly unlikely anyone is going to backport Gnome 3. I recommend you follow the instructions below for a working Gnome 3 GUI on Wheezy / Testing.
Debian Gnome 3 install command
I always run minimal systems and only install what I need to avoid bloat and potential security holes. When installing Debian testing I deselected all the package options when prompted – I recommend you do the same.
The following command will pull A LOT of dependencies on a minimal system install, about 1Gb of data and 588 packages on my system.
1
apt-get install gnome-session
Which should give you an output similar to the following (I removed the package list as it was several pages long):
1234
0 upgraded, 588 newly installed, 0 to remove and 0 not upgraded.
Need to get 394 MB of archives.
After this operation, 992 MB of additional disk space will be used.
Do you want to continue[Y/n]?
Press Enter, this could take a while depending on how fast your connection speed is… Coffee time.
Next install the X Window system if it’s not already installed on your system:
1
apt-get install x-window-system-core
Enter the command following command at the terminal to start Gnome 3 on Debian:
1
startx
If all is well you should now see your Debian Gnome 3 GUI load, if not see troubleshooting Gnome 3 below, please sign up and share your feedback / problems when getting G3 running on Debian Testing / Wheezy and I will update the Troubleshooting section below.
Troubleshooting Debian Gnome 3
If you get the error “GNOME 3 Failed to Load” it normally means you don’t have your graphics card drivers installed on or 3D rendering capability, if you are running VMWare you will need to install the Tools, same applies for VirtualBox etc.
Debian Wheezy download links to the netinst (net install) of Debian testing (Wheezy). A netinst ISO is very small in size around 200Mb and pulls down the packages you select at install from the Debian mirrors on the Internet, saving bandwidth and time waiting for ISO’s to download.
Debian Wheezy AMD 64 Net Install ISO
Currently the link below will download Debian Wheezy.
This is a quick article to help people find Debian Wheezy Download ISO’s without having to hunt around on the Internet for Wheezy download links, the mirrors listed above are fast and reliable.