Τετάρτη 31 Οκτωβρίου 2012

Tip for Unix, set maximux share size for Samba

Samba is a server (developed on unix) that provides Network Filesystem Service for Windows users. It is equivalent to NFS for Unix. Samba is free and open source and emulates Windows Server Functions as User Domain Authentication and Nework Directories based on NetBios (proWin98-me era) or Smb/Cifs (post Win2000 era) Service.

A tip to Set maximum share size per user for Samba Network Filesystem Server is as follows:
 In Global parameters of /etc/sfw/smb.conf file:
[global]
max disk size = 15000

So, the network share will show 15Gb in the next service reboot
(solaris 8-9-10-11) -> svcadm restart samba

Τρίτη 30 Οκτωβρίου 2012

How to edit crontab

Crontab is a unix background process that schedules other unix jobs. In order to be edited, the admininistrator must set the EDITOR enviromental variable. The steps are:

Change or Set Environment Variable

You can use the following command to change the environment variable for the current session as per your shell.

For Korn shell (KSH)

The syntax is as follows:
 
EDITOR=vi
export EDITOR
 

For Bourne shell (sh and bash)

The syntax is as follows:
 
export EDITOR=vi
 
or

EDITOR=vi
export EDITOR
 
To set PATH, enter:
 
export PATH=$PATH:/opt/bin:/usr/local/bin:$HOME/bin
 

For C shell (csh or tcsh)

The syntax is as follows:
 
setenv var value
 
Set EDITOR to vim, enter:
 
setenv EDITOR vi 
 
 
There are plenty of type editors, the most common are vi, , emacs, joe 
 
After having set the EDITOR, type the command "crontab -e" to edit crontab 
job scheduler.
To list the cron jobs type "crontab -l"
 

More information about the enviromental variables in Unix and
how to manipulate them can be found on this article
http://www.cyberciti.biz/faq/set-environment-variable-unix/
 




Τρίτη 23 Οκτωβρίου 2012

What is Unix and how to start to use it

Unix is an Operating System (OS) that was officially developed for first time by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy, Michael Lesk and Joe Ossanna. Nowadays, it is developed and distributed by Enterprize Vendors, such as HP, IBM, ORACLE and many more. It is used as a platform for database and web applications that hosted in big data centers with high rate transactions of gibabyte or terrabyte.
Unix can only be found in central sites and it is not intended as an OS for common end users, except for Apple MacOS (MacOS is Unix)
It is popular amongst army, Government, Intustry as an OS platform for central data center sites, due to its powerfull, secure multitasking kernel and its capabilities to integrate with sophisticated storage devices, ensuring high availability, integrity of crucial data and zero-downtime.
Some represantive UNIX OS trademarks for Server-Oriented applications are Sco-Unix, HP-UX, IBM-AIX, Oracle-Solaris, SGI-IRIX
Apart from these, there is Apple-MacOS and the open-source Gnu-Linux kernel (Unix-like) for PCdesktop-based applications, in a field where the Microsoft Windows Operating Systems would always prevail.

A good start to learn unix is, first of all, to try to install unix or unix-like OS. An original unix system that is X86-PC-capable is Oracle Solaris and anybody can download it and install it just for curiosity, but due to its server-oriented architecture lacks friendly desktop applications, as it would be expected. Instead, I would recommend a friendly version of Gnu-Linux kernel (Unix-like), that is Fedora Linux.
Fedora is friendly and challenging. The next thing users have to do is to follow the online installation-quick-start guide step-by-step. Sticking to this procedure, user makes his first step learning something different and unconventional about computers as he had seen or as taught till that momment. Linux can do everything, you can do social media (twitter, facebook etc..), play games online, hear music, watch movies, edit or print your windows office documents, even use it as a platform to develop new software.
But someone could ask "Why would someone use Linux in business and what is the relationship with unix;"
Well, Linux is the perfect cost-free choice for small-sized businesses and the entry level before starting to learn unix for those IT engineers who are interested to work as application developers on unix or administration.

Finally, I would suggest users to install and try many OS before they make their choice for their computers.

 Attachment link: Fedora Installation Quick Start Guide

http://docs.fedoraproject.org/en-US/Fedora/17/html/Installation_Quick_Start_Guide/index.html