Εμφάνιση αναρτήσεων με ετικέτα linux. Εμφάνιση όλων των αναρτήσεων
Εμφάνιση αναρτήσεων με ετικέτα linux. Εμφάνιση όλων των αναρτήσεων

Παρασκευή 25 Σεπτεμβρίου 2015

Μείωση κόστους συνδέσεων internet


Μείωση κόστους συνδέσεων internet με χρήση open source proxy server squid



Υπάρχουν περιπτώσεις που ένας οργανισμός διαθέτει περισσότερες από μια συνδέσεις internet για να εξυπηρετήσει τις ανάγκες του. Αυτό σημαίνει κυρίως αυξημένα κόστη. Παρόλα αυτά με μία μόνο σύνδεση π.χ. vdsl και με το κατάλληλο λογισμικό διαχείρισης του εύρους ζώνης ανά χρήστη, χρησιμοποιώντας τη δομημένη καλωδίωση του κτιρίου, θα γινόταν να καλύπτονταν εξολοκλήρου οι συνολικές ανάγκες.

Μια προτεινόμενη λύση τεχνικού επιπέδου είναι η υιοθέτηση του ελεύθερου λογισμικού squid (εξυπηρετητής διαμεσολάβησης – proxy server) και της υπομονάδας ncsa_auth module (στην περίπτωση που απαιτείται και ταυτοποίηση χρήστη με κωδικό). Το λογισμικό squid εγκαθίσταται στην υποδομή του κτιρίου ανάμεσα στο broadband modem και το κεντρικό switch του κτιρίου όπου τερματίζουν τα καλώδια utp δικτύου του κτιρίου. Η λειτουργία του είναι να διαμοιράζει το εύρος ζώνης μιας broadband σύνδεσης προς τους χρήστες με βάση κανόνων προτεραιότητας που θέτει ο διαχειριστής του συστήματος.
Το πλεονέκτημα του είναι ότι διαθέτει κοινή μνήμη cache για όλους τους χρήστες και ανανεώνει μόνο το περιέχομενο της σελίδας που έχει αλλάξει, δηλαδή δεν “κατεβάζει” προς το χρήστη όλη τη σελίδα, άλλο ένα πλεονέκτημα του είναι ότι σε αίτημα για σελίδα από ένα χρήστη ελέγχει πρώτα τη μνήμη του cache, αν αυτή η σελίδα ήδη υπάρχει από προηγούμενες αιτήσεις τότε δε χρειάζεται να την “ξανακατεβάσει”.
Επιπλέον διαθέτει ένα εύρος χαρακτηριστικών που μπορεί να είναι χρήσιμα σε ένα διαχειριστή, όπως φιλτράρισμα ανεπιθύμητου περιεχομένου και quata limit (εύρος ζώνης ανά χρήστη). Όσον αφορά την ανάγκη ταυτοποίησης του χρήστη διαθέτει την υπομονάδα ncsa_auth σα μια μικρή βάση δεδομένων χρηστών για τη δημιουργία κωδικών που εισάγονται τη πρώτη φορά που ένας χρήστης αιτηθεί μια σελίδα, καθώς και την υπομονάδα ntlm για την ολοκλήρωση με ένα σύστημα active directory στη περίπτωση που υπάρχουν ήδη κωδικοί για τους χρήστες. Πρόκειται για μια ολοκληρωμένη λύση ανοικτού λογισμικού και ελάχιστων παραμετροποιήσεων για ένα διαχειριστή καθώς ο εξυπηρετήτης squid από προεπιλογή είναι παραμετροποιημένος με τέτοιο τρόπο που καλύπτει τις ανάγκες διάφορων περιβάλλοντων. Όπως καταλαβαίνουμε, με την αξιοποίηση μια και μόνο σύνδεσης internet, εξοικονομούνται αρκετοί πόροι που μπορούν να διατεθούν για άλλες ανάγκες ενός οργανισμού. Για την εγκατάσταση του squid δεν χρείαζεται υπολογιστής τελευταίας τεχνολογίας, αλλά μπορεί να χρησιμοποιηθεί και κάποιος υπολογιστής παρωχημένης τεχνολογίας με χρήση διανομής linux, επιτυγχάνοντας έτσι και την επαναχρησιμοποίηση του hardware.

Περισσότερες πληροφορίες εδώ 
Επίσης το άρθρο μπορείται να το βρείτε εδώ (μαζί με πληροφορίες για το ανοιχτό λογισμικό από την ΕΛΛΑΚ)

Πέμπτη 4 Απριλίου 2013

Τρίτη 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



Τρίτη 28 Αυγούστου 2012

What does “> /dev/null 2>&1″ mean?

While browsing the internet, I came up with a very good article about What does “> /dev/null 2>&1″ mean in unix shell programming?

The article's source here

Article:
" I remember being confused for a very long time about the trailing garbage in commands I saw in Unix systems, especially while watching compilers do their work. Nobody I asked could tell me what the funny greater-thans, ampersands and numbers after the commands meant, and search engines never turned up anything but examples of it being used without explanation. In this article I’ll explain those weird commands.
Here’s an example command:
wibble > /dev/null 2>&1

Output redirection

The greater-thans (>) in commands like these redirect the program’s output somewhere. In this case, something is being redirected into /dev/null, and something is being redirected into &1.

Standard in, out, and error

There are three standard sources of input and output for a program. Standard input usually comes from the keyboard if it’s an interactive program, or from another program if it’s processing the other program’s output. The program usually prints to standard output, and sometimes prints to standard error. These three file descriptors (you can think of them as “data pipes”) are often called STDIN, STDOUT, and STDERR.
Sometimes they’re not named, they’re numbered! The built-in numberings for them are 0, 1, and 2, in that order. By default, if you don’t name or number one explicitly, you’re talking about STDOUT.
Given that context, you can see the command above is redirecting standard output into /dev/null, which is a place you can dump anything you don’t want (often called the bit-bucket), then redirecting standard error into standard output (you have to put an & in front of the destination when you do this).
The short explanation, therefore, is “all output from this command should be shoved into a black hole.” That’s one good way to make a program be really quiet! "

source  http://www.xaprb.com



Πέμπτη 19 Ιουλίου 2012

How to clear log files in Solaris 10 unix

Directories with log files
  • /var/adm/        -> system messages, login/logout logs
  • /var/log/          -> various logs, Xorg logs...
  • /var/svc/log/    -> logs with information about services
Clear:   rm -fr /var/adm/* ; rm -fr /var/log/* ;  rm -fr /var/svc/log/

Σάββατο 2 Ιουνίου 2012

Saturday.. the Backup Day!

My English practise through technology.

Since Microsoft has decided to exclude :-( the powerful utility, commonly known as Ntbackup, from windows 7, we shall try some other tools to make a full backup of a disk.

The Os we 'll be using is linux Fedora 16.

Given Scenario:

We have two usb disks, the first 120Gb will be fully backed up to the second one 500Gb.
  1. Connect both disks to linux, preferably via usb connectors. 
  2. Linux automatically mounts them in the folder /media as /media/disk1/ and /media/disk2/
  3. In order to determine which disk contains the file structure to backup, open a command line terminal and use the command "ls -ltr /media/disk1/" and "ls -ltr /media/disk2/" without the double quotes. Disk1 contains the file structure. Disk2 is blank.
  4. We 'll use the tar and gzip commands to backup the disk1. Tar makes a destination file to disk2, which is used as a backup container for disk1. Tar uses .tar extension, and gzip compresses the tar file to a .tar.gz extension. The tar is equivalent to Microsoft Ntbackup. The disadvantage is that is a command line utility. In contrast with tar,  Microsoft Ntbackup was fully graphical and easy to use.
  5. Now, use the following command syntax (without the double quotes) to backup disk1 to disk2
  6. "cd /media/disk1/; tar -cvf - . | gzip > /media/disk2/oldbackup010612.tar.gz"  and then press enter.
  7. This command syntax tells us "Go to disk1, start taking the backup of disk1 to disk2 through gzip compression". The final result is a backup file oldbackup010612.tar.gz with a reduced file size of the initial disk1 size.
  8. ........I wish Ntbackup back!!!!!