LinuxMoz

Linux Stuff && Coffee

Apt-get Search Package (Using Apt-cache)

| Comments

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): apt-get search

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

| Comments

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.

CentOS Nginx YUM Install

| Comments

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.

Check Apache Version

| Comments

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

Apache check version

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

| Comments

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:

1
yum install kernel-devel

CentOS 6 Download ISO

| Comments

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.

CentOS 6 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).

Please see our tutorial on How to install CentOS 6 for Servers and Desktops for a walk through of the install process.

Minimal CentOS 6 Download (recommended)

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.

The links below are for CentOS 6.2 minimal ISO:

Minimal CentOS 6 ISO x86_64 (64 Bit)

Minimal CentOS 6 ISO for i386

CentOS 6 DVD ISO Download

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.

Install DVD 1 x86_64 (64 Bit) – 4.1Gb Install DVD 2 x86_64 (64 Bit) – 1.2Gb

Install DVD i386 – 3.6Gb Install DVD 2 i386 -1Gb

CentOS 6 Download links for the Live CD & DVD ISO’s

Links for the CentOS 6 Live CD / DVD ISO images for both 64 Bit and i386.

CentOS 6.2 Live CD i386 ISO

CentOS 6.2 Live DVD i386 ISO

CentOS 6.2 Live CD x86_64 (64 Bit) CentOS 6.2 Live DVD x86_64 (64 Bit)

CentOS 6 Torrent Links

Below are torrent links for all CentOS ISO’s for both architectures, there are no torrents for the minimal ISO as the files size is so small.

CentOS 6.2 Live CD ISO i386 CentOS 6.2 Live CD ISO x86_64 (64 Bit)

CentOS 6.2 Live DVD ISO i386 CentOS 6.2 Live DVD ISO x86_64 (64 Bit)

CentOS 6.2 Install DVD ISO i386 CentOS 6.2 Install DVD ISO (64 Bit)

The above Install DVD torrents contain both DVD ISO’s.

Ubuntu Kernel Headers Install

| Comments

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.

Ubuntu Kernel Headers Install

1
sudo apt-get install linux-headers-$(uname -r)

This should give you an out put similar to the following:

1
2
3
4
5
6
7
8
9
10
11
12
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).

Debian Gnome 3 Install Tutorial

| Comments

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.

Debian Gnome 3

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):

1
2
3
4
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.

Gnome 3 Failed to Load

Debian Wheezy Download

| Comments

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.

https://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/debian-testing-amd64-netinst.iso

Debian Wheezy download – i386 Net Install ISO

pt type=“text/javascript”>

Currently the link below will download Debian Wheezy.

https://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso

For other architectures visit: https://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/

Debian Wheezy Download 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.