Home » Archive by category "Linux"

Install and Setup Mutt Email Client on Ubuntu

mutt-email

Command-line email client mutt has a well-deserved reputation as a powerhouse of an email client. It’s fast, flexible and, best of all, surprisingly easy to use.  In this guide we give you Step-By-Step instructions for setting up Mutt email client on Ubuntu using Gmail.

1. sudo apt-get install mutt

2. mkdir -p ~/.mutt/cache/headers mkdir ~/.mutt/cache/bodies touch ~/.mutt/certificates

3. Copy and paste configuration below into a new file, save it in your home directory, and rename it to .muttrc

# A basic .muttrc for use with Gmail

# Change the following six lines to match your Gmail account details

set imap_user = “YOUR.EMAIL@gmail.com”

set imap_pass = “PASSWORD”

set smtp_url = “smtp://YOUR.EMAIL@smtp.gmail.com:587/”

set smtp_pass = “PASSWORD”

set from = “YOUR.EMAIL@gmail.com”

set realname = “YOUR NAME”

# Change the following line to a different editor you prefer.

set editor = “nano”

# Basic config, you can leave this as is

set folder = “imaps://imap.gmail.com:993″

set spoolfile = “+INBOX”

set imap_check_subscribed

set hostname = gmail.com

set mail_check = 120

set timeout = 300

set imap_keepalive = 300

set postponed = “+[GMail]/Drafts”

set record = “+[GMail]/Sent Mail”

set header_cache=~/.mutt/cache/headers

set message_cachedir=~/.mutt/cache/bodies

set certificate_file=~/.mutt/certificates

set move = no

set include

set sort = ‘threads’

set sort_aux = ‘reverse-last-date-received’

set auto_tag = yes

ignore “Authentication-Results:”

ignore “DomainKey-Signature:”

ignore “DKIM-Signature:”

hdr_order Date From To Cc

alternative_order text/plain text/html *

auto_view text/html

bind editor <Tab> complete-query

bind editor ^T complete

bind editor <space> noop

# Gmail-style keyboard shortcuts

macro index,pager y “<enter-command>unset trash\n <delete-message>” “Gmail archive message”

macro index,pager d “<enter-command>set trash=\”imaps://imap.googlemail.com/[GMail]/Bin\”\n <delete-message>” “Gmail delete message”

macro index,pager gi “<change-folder>=INBOX<enter>” “Go to inbox”

macro index,pager ga “<change-folder>=[Gmail]/All Mail<enter>” “Go to all mail”

macro index,pager gs “<change-folder>=[Gmail]/Starred<enter>” “Go to starred messages”

macro index,pager gd “<change-folder>=[Gmail]/Drafts<enter>” “Go to drafts”

4. Open up the ~/.muttrc file in your favorite text editor, add your name, Gmail address and password—everything you’ll need to alter is in ALL CAPS—and save the file.

5. Run it from the command line by simply typing mutt. The first time you do this, you’ll be prompted to accept two SSL certificates from Google; press ‘a’ to always accept these certificates. You should now be greeted by your Gmail inbox

Ubuntu For Tablet

ubuntu-tablet

Ubuntu has announced an operating system for tablets dubbed ‘Ubuntu for Tablet’ that is says will work on tablets of any size.  The OS will work on both entry level tablets as well as high-end tablets with enterprise specifications, the operating system offers multitasking, safer sharing, instant launch of applications through the menu bar on the left, effortless switching between applications among other features.  Canonical has put out specifications of the tablets that would be required for an entry level consumer Ubuntu tablet experience as well as High-end Ubuntu enterprise tablet experience.

For entry level experience, Ubuntu for tablet requires a minimum of Dual Core Cortex A15 processor and 2GB of RAM. The tablet can be of any screen size from 7 to 10 inches and should have at least 8GB of storage.

For high-end tablet experience users need to go for a tablet that has at least a Quad-core A15 or Intel x86 processor and is loaded with 4GB of RAM. With 8GB minimum flash storage, the recommended screen size is anywhere between 10-12 inch.

The Ubuntu for tablet is loaded with both native as well as web applications. The operating system also supports cloud based applications for both consumer as well as enterprise users.

The Linux-based Ubuntu OS, specifically targeting those of the Nexus variety. The OS will be available for the Nexus 7 and Nexus 10.  Owners of the Nexus 4 and Galaxy Nexus smartphones will receive access to the OS on the same day and the OS will be featured at Mobile World Congress next week.

FreeBSD Project Donations Down By 50%

The FreeBSD project has sought $500,000 in donations by year end to allow it to continue to offer to fund, manage projects and sponsor FreeBSD events, developer summits and provide travel grants to FreeBSD developers. But with the end of this year fast approaching, it has raised just over $280,000, far short of its target.

As most people know Apple is BSD under the hood using Darwin as the core of Apple OS X.  Apple borrows FreeBSD’s virtual file system, network stack, and components of its userspace.  Much of FreeBSD now also forms the basis of Apple OS X and OS X Server.  Apple, the first major computer company to make Open Source development a key part of its software strategy and continues to use and release significant quantities of open source software.

I do think that BSD is struggling with funding cause of Linux popularity boom over last few years. Linux has taken great strides to become more commercial and get more support on server backed end with Dell, HP and IBM. I do not see BSD having big leaps like that plus they need a better PR rep. Every customer I go to ask for Linux because we are a Linux shop on our commercial side I very rarely see anyone ask for BSD support or do I see many BSD servers in use.

If you would like to donate to the FreeBSD Foundation you can send them a donation on their site listed below.

http://www.freebsdfoundation.org/donate/

If you donate

The FreeBSD Foundation is a 501(c)3, United States based, non-profit organization that is committed to supporting and building the FreeBSD Project and community worldwide. All of our work is funded by donations. US-based donations should be fully tax-deductible on your federal return.

Dell Ubuntu Ultrabook on Sale

Dell’s Project Sputnik laptop is now for sale on dells website.  Dell’s XPS 13 Developer Edition is the first in there new line of linux computers.

http://www.dell.com/us/soho/p/xps-13-linux/pd.aspx

Project Sputnik is an open, six-month product exploration by Dell to help identify what developers want in a laptop.

The XPS 13 Developer Edition comes with Ubuntu 12.04 pre-installed, and starts at $1,549 and comes with 1 Year ProSupport with 1 Year NBD Limited Onsite Service After Remote Diagnosis.

The laptops hardware specs are as followed:

Processor: Intel® Core™ i7 (4M Cache, up to 3.0 GHz)

Operating System: Ubuntu 12.04

Screen: 13.3″ HD 720p

Ram: 8GB2 DDR3 SDRAM at 1600MHz

Hard Drive: 256GB Solid State Drive

Video Card: Intel HD 4000

Weight: 2.99 lbs

I want to point out as well Ubuntu Ultrabook is $50 more than the Windows version.  But again no Anti-virus, Office or other extras needed all is included since most Linux software is free and open source.

FreeBSD Project Hacked Via Stolen SSH Key

FreeBSD Project has released a summary on their security breach two machines within the FreeBSD.org cluster have been compromised and have been consequently pulled offline for analysis.  The affected machines were taken offline for analysis.   However it added that the intruder had sufficient access to modify third party packages, many of which are compiled and installed through FreeBSD’s ports system.

Users are advised to check for packages downloaded between certain dates and replace them, although not because known Trojans have been found, but rather because the project has not yet been able to confirm that they could not exist.

The Admin team verifies the infrastructure and source trees are clean and the suspect machines are either being re installed retired, or thoroughly audited before being brought back online.  Apparently access was via a developer’s stolen SSH key, but fortunately the project’s clusters were partitioned so that the effects were limited.

Install gnome GUI on CentOS

Step-By-Step instructions on how to install gnome GUI on CentOS

This is a step by step guide on how to install the Gnome GUI on CentOS

1. Using yum, we will need to install X Windows System as the based for GUI and rich input device capability:

$ yum groupinstall -y ‘X Window System’

2. Only then we can install GNOME desktop environment on top of it

$ yum groupinstall -y ‘Desktop’

3. Since previously the server is running on CLI mode, we need to change some value to tell CentOS to boot up in the GUI mode.

4. Vi  /etc/inittab

5. Change following line: id:3:initdefault: to id:5:initdefault:

6. Reboot

Note: You can switch from GUI to CLI mode manually by using following method:

GUI to CLI: Ctrl + Alt + F6

CLI to GUI: Ctrl + Alt + F1

If you want to start the desktop from CLI console (not SSH session), use following command:

$ startx

Install PacketFence on CentOS 6.x

First do a standard install of CentOS 6.  After the standard install IP all the network cards to the proper IP addresses before you install Packetfence.  After that follow these steps-by-step instructions to install packetfence.

Update CentOS

1. yum update

Install Wget

2. yum install wget

Add RPMforge

3. wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

4. rpm –import http://apt.sw.be/RPM-GPG-KEY.dag.txt or gpg –import http://apt.sw.be/RPM-GPG-KEY.dag.txt

5. rpm -i rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

Add EPEL software repository:

6. rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm

Add Open Fusion RPM Repository

7.rpm -Uvh http://repo.openfusion.net/centos6-x86_64/openfusion-release-0.6.2-1.of.el6.noarch.rpm

Exclude perl-Apache-Test from rpmforge and openfusion repository

8. Vi /etc/yum.repos.d/rpmforge.repo

9. Add the line exclude = perl-Apache-Test* on the section [rpmforge]

10.Vi /etc/yum.repos.d/openfusion.repo

11. add the line exclude = perl-Apache-Test* on the section [of]

12. In order to use the repository, just create a file named /etc/yum.repos.d/PacketFence.repo with the following content

13. [PacketFence]

name=PacketFence Repository

baseurl=http://inverse.ca/downloads/PacketFence/RHEL$releasever/$basearch

gpgcheck=0

enabled=0

Install PacketFence with all its dependencies

14. yum groupinstall –enablerepo=PacketFence,rpmforge Packetfence-complete

Once packetfence is installed it can be configured at GUI interface

http://ipaddress:1444/configurator

The management interface will be

http://ipaddress:1443

Backtrack Linux Review

BackTrack is a security-focused Ubuntu Linux based distribution that is loaded with all the best Free Software penetration testing applications available.  The latest edition is code-named Revolution, and the newest update release BackTrack 5 R3.

The distro designed for penetration testers and other security professionals.  Allows users to have security tools preloaded without having to worry about installing and configuring ALL the tools needed.  The distro is great for anyone who wants to mess with all the best security and penetration testing applications the free software community has to offer.

It is made available for public download as DVD ISO installation image and supports both 32 and 64-bit architectures. And there are installation images for KDE and the GNOME desktop environments.  The distro is not really designed for your average user the system will not boot into a graphical desktop environment, but rather, into a console. You will then have to start the graphical interface.

The install is exactly like the Ubuntu Desktop edition installer and I mean close in sense 99% of people would not know the difference.   You can download an ISO and burn to CD or create a bootable usb jump drive either way the install itself is easy.  The only issue I have read about is putting the boot partition on a separate partition.

The only thing bad about the desktop is Firefox.  Firefox comes pre-loaded with addons that offer additional security when you are busy surfing.  So I installed chrome just to make like easy.

The security tools themselves are broken into 12 categories

  • Information gathering
  • Vulnerability assessment
  • Exploitation tools
  • Privilege escalation
  • Maintaining access
  • Reverse engineering
  • RFID tools
  • Stress testing
  • Forensics
  • Reporting tools
  • Services
  • Miscellaneous

Though intended for users with more knowledge of managing and navigating a Linux system the graphical management applications that you will find in backtrack is nice and looks a lot like Ubuntu software center.  I have found that certain packages I have to add to the sources.list in order to install but that is not a big deal considering using nano is very simple. (I prefer nano over VI anyday.)

If you own a company that has to store important data then it is vital for you to have a tool like this. That way your security people can be sure that they are testing your network with the same tools that the bad guys are using.

You will find that if you are a computer security consultant that there is no better tool to use than Backtrack. It has all of your favorite tools in one place ready for you to use.  One of the big pushes for this distro is a lot of security literature designed for security certifications have adopted this distro into their training material and books.  Making this distribution a corner stone in the security business.

Install Snort on FreeBSD

Step-By-Step instructions on how to Install snort on FreeBSD.

1. Login to your computer as root or elevate to su

2. First we have to compile snort form the ports tree by running this command:

make -C /usr/ports/security/snort install all

You will be asked about which support you want to add to snort here you can pick MySQL if you are going to use the server as traffic monitor or instruction detection system.  For me I took the defaults only because I capture the files and export them to log file using snort –dev –l . /log then I read them with tcpdump –r.  But again it really depends on your needs.

3. Next you need oinkmaster to update your snort rules so run this command

make -C /usr/ports/security/oinkmaster install all

4. You can update your snort rules using this command:

oinkmaster -o /usr/local/etc/snort/rules/

5. If you decided to install MySQL you will need to create a database so login to mySQL

mysql -u root –p password

6. After you enter the root username and password you are going to be dropped to this prompt

mysql>

7. Type the following two commands

CREATE DATABASE `snort`;

GRANT ALL PRIVILEGES ON snort.* TO ‘snort’@'localhost’ IDENTIFIED BY ‘snortpassword’;

8. Next control +C to exit mysql server you will now need to create the tables but lucky for us snort can do that for you so type this command

mysql -u snort -psnortpassword snort < /usr/local/share/examples/snort/create_mysql

9. We need to uncomment 3 lines from the snort config file so run this command

Vi /usr/local/etc/snort/snort.conf

10. Then uncomment meaning remove the # from in front of the line

config detection: search-method lowmem

output alert_syslog: LOG_AUTH LOG_ALERT

output database: log, mysql, user=root password=test dbname=db host=localhost

11. If you want snort to run at startup type which if you’re running snort at either a traffic monitor or instruction detection system you’re going to want to happen.

Vi /etc/rc.conf

12. Add this line

snort_enable=”YES”

Now restart your computer and snort will be running at startup and logging to MySQL.

Install gnome GUI on FreeBSD

Step-By-Step instructions on how to install gnome GUI on FreeBSD.

1. Login to your computer as root

2. Type Vi /boot/loader.conf  and add these 3 lines

linux_load=”YES”

linprocfs_load=”YES”

atapicam_load=”YES”

3. Next make sure that the linux proc folder exists by typing the command

mkdir -p /compat/linux/proc

4. Now Type Vi /etc/fstab Add the following lines if they do not exist already

proc /proc procfs rw 0 0

linproc /compat/linux/proc linprocfs rw 0 0

5. Now we need to Vi /etc/rc.conf and add the following line

linux_enable=”YES”

6. Now time to install gnome.  Make sure you’re connected to the internet and type

pkg_add -r xorg gnome2

This will install xorg if not install already and gnome.  It will fetch all dependencies it needs so it may take a while.  You will be returned to a prompt when it’s finished.

7. We need the PC hostname so type the command

hostname

8. Now Vi /etc/hosts and add your pc hostname after 127.0.0.1

9. Restart your computer by typing the command

reboot

10. Last thing Vi /etc/rc.conf and add these lines

gnome_enable=”YES”

hald_enable=”YES”

gdm_enable=”YES”

dbus_enable=”YES”

After your done reboot your computer and if done right you will be presented with the gnome login

This site is protected by Comment SPAM Wiper.