Category Archives: Servers

Splunk Syslog Server Upgrade

Upgrading your Splunk Syslog server is very easy in comparison to some other upgrades that I have done. First of all this guide is upgrading from an ubuntu server running version 4.2 to 4.3. If you are not doing that upgrade I recommend going to their link and going through their guide here.

Here are the commands to do so:

First download the upgrade version, 4.3.4:

wget -O splunk-4.3.4-136012-linux-2.6-amd64.deb ‘http://www.splunk.com/page/download_track?file=4.3.4/splunk/linux/splunk-4.3.4-136012-linux-2.6-amd64.deb&ac=&wget=true&name=wget&typed=releases’

Second is simply stopping the server:

sudo SPLUNK_HOME/bin/splunk stop

Third is install:

sudo dpkg -i splunk-4.3.4-136012-linux-2.6-amd64.deb

Finally start the server again:

sudo /opt/splunk/bin/splunk start

Enjoy and if you have any questions comment or send me a message on the contact me page

FreeNAS – File Server

When creating a file server there were a few options, but I chose FreeNAS because it is actively getting updated and re-invented and it has a vast amount of features that I plan to use in the future such as TFTP, FTP, SNMP Monitoring, Syslog Monitoring, and plenty more in the works.  Here is a basic tutorial on just setting up file shares for a Windows LAN.

First after you have located an old computer with the minimum system requirements found here you just need to download the ISO for the FreeNAS version that fits you best.   There are a few versions in BETA right now and of course the choice between 64 and 32 bit.  All the downloads can be found here.  Following downloading and install the base OS is where the fun begins.

There are essentially 4 steps to completing this:

STEP 1: Adding the Volume

Click on the Storage Tab on the top, then Create Volume.

In this pop-up menu you need to check the box next to the HDD you wish to use and then the filesystem type, I would pick ZFS as it seems to have more options later on.  And then hit Add Volume.

STEP 2: Creating the CIFS Share

Click on the Sharing tab on the top and then Windows sub-tab, and then Add Windows Share.

Simply enter the Name (just documentation purposes), Comment (Also just for Documentation), Path which is where the volume is, and the remaining settings are perfect as is.

STEP 3: Turning on the CIFS Service

This is where the meat of the configuration happens. Click on the the wrench to configure the CIFS Service.

Authentication Model: Local User
NetBIOS Name: Hostname of the server
Workgroup: Your workgroup or domain name
Description: Documentation notes
Everything leave as default

After that hit the ON/OFF switch to activate the switch.


STEP 4: Mapping the new CIFS Drive to your local machine

On your local machine you need to either type in the Search Programs and Files, if you have windows 7, or open Run, if you have windows XP, and then type in \\HOSTNAME or \\IP ADDRESS and a windows folder will open with the documents on the server.  You then need to click on Tools on the top and there is a Map Network Drive option.  Click that and choose a letter. Click Finish and you are complete.

Enjoy and if you have any questions comment or send me a message on the contact me page

SOURCES:
http://www.freenas.org/

Webmin

In this post I outline a very easy setup process to add a web GUI to your linux server. There is really 2 easy steps:

Install the dependencies:

 

$ sudo aptitude -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl apt-show-versions libapt-pkg-perl

 

Install Webmin

 

$ wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=cdnetworks-us-1
–2010-05-22 19:53:44– http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=cdnetworks-us-1

$ sudo dpkg -i webmin_1.510-2_all.deb

 

Accessing the Web GUI

Just put this in your favorite flavor of web browser:

https://<IP ADDRESS>:10000/

 

Enjoy and if you have any questions comment or send me a message on the contact me page

Source:
http://www.kelvinwong.ca/2010/05/22/installing-webmin-on-ubuntu-server-10-04-lts-lucid/

Upgrading Linux Versions 10.04 to 12.04

This is a simple process to upgrade from the 10.04 lucid to the newest 12.04 Precise Pangolin.  If you wish to force your LTS version to upgrade before the scheduled July force upgrade there are two simple commands:

do-release-upgrade -d

 

update-manager -d

Then there is a simple installation process to upgrade it.  If you have any further questions just comment and I will get back to you.

Creating AD Group Policies

After installing Active Directory and working with it for about a week you maybe like me and are sick of the crazy default password restrictions. The solution is to create your own group policy. To do this you just need to follow these steps:

Step 1: Disable the Default Group Policy

 

Step 1

In your Server Manager click Features>Group Policy Management>Forrest:Your Domain>Domains>Your Domain. Then Right click on the Default Domain Policy and uncheck Enforced and Link Enabled. This should disable the policy, but I like to disable the functions itself so click Edit.

Step 2

Within this window right click on the top Default Policy and choose Properties.

Step 3

Check the box that Disables Computer Configuration settings and Disable User Configuration settings.

Step 2: Create a New Group Policy

 

Step 4

Close out and right click on your domain and choose Create a GPO in this domain, and Link it here… After that a pop-up comes up and you can name it what you wish. Following that you will see it listed next to where you found the Default Domain Policy. You can right click that again and choose Edit.

Step 5

Here you need to navigate to the Password Policy as in the image and here you can edit the following rules. These rules are pretty simple, but they are to require passwords to be not used within so long in the past, not so old, not to be changed so fast, this long in length, the password is complex enough, and encryption.

Enjoy and if you have any questions comment or send me a message on from the Contact Page.