Sunday, June 14, 2009

Microsoft to release free AntiVirus software

More reports are emerging that Microsoft is soon to be releasing antivirus software which will be available for free download.

In comparison to it's previous attempt at security software OneCare, it will be free for all Microsoft Windows users, however lacking further features like Parental Controls and other popular utilities found in current security suites like Norton and Trend Micro.

Morro will be title of the new software which is claimed to help compat common security threats such as virus, spyware, rootkits and trojens. Also, Microsoft is claim that this software will protect it's users from being infected with fake antivirus tools like the common AntiVirus Pro range.

Once Morro is ready for release, OneCare will be discontinued.

Microsoft hasn't release a specific dates for release but it is expected to be available later this year.

More information here: http://news.bbc.co.uk/2/hi/technology/8095932.stm

Saturday, June 13, 2009

Review: Rivet - XBOX 360 Media Streaming From Mac

For a while now I have been using Connect360 software on my Mac to connect my XBOX 360 to my iTunes library. This is excellent software and works very well.

However, in my scenario, I do not put my videos and movies in my iTunes and have them stored in separate directories while having no intentions of importing them into iTunes. So began a hunt for some new software, and was successful.

Cyncial Peak's Rivet is very much the same technology as Nullriver Software's Connect360, however I found it better as it allows you to manually define directories where you videos are stored allowing them to be streamed to your XBOX 360. Supporting all the popular codecs (DivX etc.) it works well over Wireless and Wired networks. Security features including the ability to restrict and allow certain IPs and netmasks.

Trials are available where the only restriction are the amount of music and video files able to be viewed per session. However, at the price of US$18, it's well worth just perchasing it and getting full capabilities.

Depending on your setup on your Mac, the Connect360 software maybe be perfect for you and I encourage you to look at both when choosing a solution.

Connect360 Website: http://cynicalpeak.com/rivet/

Rivet Website: http://www.nullriver.com/products/connect360

Saturday, June 6, 2009

Restoring entire SQL Database from file

One night I had to restore my entire SQL database server from a SQL file, but it took me a while to find how to restore this file without restoring specific databases.

Below are the commands for Linux.

If you have shell (command-line) access, use MySQL to import the files directly. You can do this by issuing the "source" command:
$su -
Password:
# mysql -u -p source
Once you have entered the password to your MySQL username, the restoration process will soon begin.

VSFTPD: Transfer Done (but failed to open directory)

If you like the following article and it has helped you out, please leave a comment and let other readers know of you success and thank you for reading my blog.

In most cases, the supplied sample configuration file for VSFTPD located in /etc/vsftpd will work for most simple setups. However, you might find that after connecting to your FTP server using you favourite FTP client, you find you recieve the following error in you client log:

Error: Transfer Done (but failed to open directory)

The main reason that the client can't read or "open" the directory is permission issues on the folder denying the client access. When running a Red Hat based (Red Hat, Fedora etc.) server, SELinux is installed and live be default. SELinux controls a second set of folder/file access permissions on top of the standard linux folder permissions system. And because in most cases SELinux is not setup properly, users and administrators are unaware that SELinux is working on this layer.

Because of many issues with configuration SELinux, if you don't properly set this up, SELinux will deny FTP access to the folders and also see the access as a possible security threat.

In my configuration, the standard linux permission system is fine. Therefore, disabling SELinux resolves this issue.

To disable SELinux (Note: this needs to be done as root or sudo):
  1. Using a command-line, goto /etc/selinux/
  2. Open the file config using your prefered text editor (e.g. vim, nano)
  3. Find the option SELINUX= and set it to the following:
    SELINUX=disabled
  4. Save the file and reboot you machine.
Once this has been done, you FTP clients should now be able to access your folders.

The CHKCONFIG Command

This is just a basic outline of the usage and function of the linux command-line command of CHKCONFIG.

This command-line tool and be use in five different modes:
  1. Adding new services
  2. Removing services
  3. Reporting on current services
  4. Turning services on and off
  5. Reporting on service status
One of the more useful ways to use this command is to report on a specific service.

Basics
For example:
Note: these commands are best run as either root or using sudo.
#chkconfig --list httpd
This command will list init run levels that this service is set to run in.
This is the output from that command (example only).
[root@server ~]# chkconfig --list httpd
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
To delete a service from all init run levels, use the following:
#chkconfig --del
*Where , insert the name of the service you wish to delete.

To add a new service:
#chkconfig --add

Advanced
For a more detailed approach when adding services, you can specify which run levels the new service will be configure to. For example:
#chkconfig --level 35 on
This will result in your specified service only running in run levels 3 and 5.
#chkconfig --level 01246 off
This will result in your specified service not running in run levels 0, 1, 2, 4 & 6. Leaving the service to run in 3 and 5.

Links
More information can be found at the following links.

http://linuxcommand.org/man_pages/chkconfig8.html

http://en.wikipedia.org/wiki/Runlevel

http://oreilly.com/linux/command-directory/cmd.csp?path=c/chkconfig

Thursday, June 4, 2009

No Network in Fedora 9/10: Removing NetworkManager

In Fedora 9/10 & later, it is found that software called NetworkManager which is setup to help with Network configurations especially in the graphical interface (GNOME/KDE etc.). However this utility hinders network operations of those on a command line level.

Symptoms include: (Remember, command-line environment.)

1) Unable to enable network card (e.g. eth0).
2) Network card won't enable on startup/boot.
3) Command 'ifconfig' does not show any network interfaces other than Local Loopback.

Resolution
The only resolution I have found to get you system online without a GUI interface is the following

1) Remove/Uninstall NetworkManager
Easiest way to do this is these commands as root:
  • rpm -e NetworkManager
  • yum remove NetworkManager
  • apt-get remove NetworkManager (This may work for Ubuntu)
2) Verify your network configuration using the Fedora Network Configuration Tool.
As root, type the following:
system-config-network
Follow the prompts and this should have your network cards configured in no time.

3) Lastly, you have got to check to see if the network services will run on boot. Check this by running the following (as root):
chkconfig --list|grep network
If the results are 'No', then run the following:
chkconfig network on
After this, the service should then start on boot automatically.

Once all this is done, reboot your machine and your network should be working fine.

Monday, June 1, 2009

Quick Reference: Linux Init Runlevels

This is simply a quick reference to the Linux Init Runlevels.

0: Halt ( Shutdown the system )
1: Single user mode
2: Multi-user mode, not network access
3: Full Multi-user mode
4: Unused
5: Full Multi-user Mode plus graphical user interface
6: Reboot (Shutdown and restart the system)