50GB of Online Cloud Storage, for FREE
Our Personal plan provides users with 50GB of FREE online file storage and additional features to backup, share, edit and access your data from anywhere you have Internet access. Simply store your files in your ADrive account & access from any device, at any time.
Anytime Access to Your Data, Wherever You Are
Conveniently access your ADrive files at any time, from wherever you are. Simply log in to your ADrive account through any device to store, share or edit your files online. All you need is access to the Internet!
Share Large Files Online
No more emailing large attachments! With our File Sharing feature a unique link is created for the file you wish to share. You can also have an email sent directly from your ADrive account. The unique link to your shared file will be included in the email. Share & unshare files as you wish!
Edit Your Documents Online
We utilize Zoho® technology with our cloud services to allow users to edit their word processing documents, spreadsheets and presentations online. You can open, edit, and save your documents all from within your ADrive account.
Remote File Transfer
Now you can instantly transfer files from external websites to your ADrive account remotely. Once stored in your account, the file can be downloaded or shared.
Easy Search Tool
Having trouble locating a specific file? Use our convenient search tool to find your exact file without browsing through each directory or folder.
International Character Support
ADrive supports international characters in file names making our service convenient for our international users.
Keywords: Tutorial, Tutorials, Blogger Tutorial, Website, Transfer Big Files, Transfer Large Files, Transfer Any Type of File, Transfer Files, Transfer Files Free,Website, Send Large Email Free,Send Large Files,Send Big Files,Share Big Files.
On the main screen type in:
*#06# for checking the IMEI (International Mobile Equipment Identity).
*#7780# reset to factory settings.
*#67705646# This will clear the LCD display(operator logo).
*#0000# To view software version.
*#2820# Bluetooth device address.
*#746025625# Sim clock allowed status.
#pw+1234567890+1# Shows if sim have restrictions.
*#92702689# – takes you to a secret menu where you may find some of the information below:
1. Displays Serial Number.
2. Displays the Month and Year of Manufacture
3. Displays (if there) the date where the phone was purchased (MMYY)
4. Displays the date of the last repair – if found (0000)
5. Shows life timer of phone (time passes since last start)
*#3370# – Enhanced Full Rate Codec (EFR) activation. Increase signal
strength, better signal reception. It also help if u want to use GPRS
and the service is not responding or too slow. Phone battery will drain
faster though.
*#3370* – (EFR) deactivation. Phone will automatically restart.
Increase battery life by 30% because phone receives less signal from
network.
*#4720# – Half Rate Codec activation.
*#4720* – Half Rate Codec deactivation. The phone will automatically restart
If you forgot wallet code for Nokia S60 phone, use this code reset: *#7370925538#
Note, your data in the wallet will be erased. Phone will ask you the lock code. Default lock code is: 12345
Press *#3925538# to delete the contents and code of wallet.
Unlock service provider: Insert sim, turn phone on and press vol
up(arrow keys) for 3 seconds, should say pin code. Press C,then press *
message should flash, press * again and 04*pin*pin*pin# \
*#7328748263373738# resets security code.
Default security code is 12345
Change closed caller group (settings >security settings>user
groups) to 00000 and ure phone will sound the message tone when you are
near a radar speed trap. Setting it to 500 will cause your phone 2 set
off security alarms at shop exits, gr8 for practical jokes! (works with
some of the Nokia phones.) Press and hold “0″ on the main screen to open
wap browser.
Code Function
*3370# Activate Enhanced Full Rate Codec (EFR) – Your phone uses the best sound quality but talk time is reduced my approx. 5%
#3370# Deactivate Enhanced Full Rate Codec (EFR)
*#4720# Activate Half Rate Codec – Your phone uses a lower quality sound but you should gain approx 30% more Talk Time
*#4720# Deactivate Half Rate Codec
#pw+1234567890+1# Provider Lock Status. (use the “*” button to obtain the “p,w” and “+” symbols)
#pw+1234567890+2# Network Lock Status. (use the “*” button to obtain the “p,w” and “+” symbols)
#pw+1234567890+3# Country Lock Status. (use the “*” button to obtain the “p,w” and “+” symbols)
#pw+1234567890+4# SIM Card Lock Status. (use the “*” button to obtain the “p,w” and “+” symbols)
12345 This is the default security code
*#21# Allows you to check the number that “All Calls” are diverted to
*#30# Lets you see the private number
*#43# Allows you to check the “Call Waiting” status of your phone.
*#61# Allows you to check the number that “On No Reply” calls are diverted to
*#62# Allows you to check the number that “Divert If Unreachable (no service)” calls are diverted to
*#67# Allows you to check the number that “On Busy Calls” are diverted to
*#0000# Displays your phones software version, 1st Line : Software
Version, 2nd Line : Software Release Date, 3rd Line : Compression Type
*#9999# Phones software version if *#0000# does not work
*#06# For checking the International Mobile Equipment Identity (IMEI Number)
*#67705646# Removes operator logo on 3310 & 3330
*#73# Reset phone timers and game scores
*#746025625# Displays the SIM Clock status, if your phone supports this
power saving feature “SIM Clock Stop Allowed”, it means you will get the
best standby time possible
*#94870345123456789# Deactivate the PWM-Mem
press and hold # Lets you switch between lines
*#7760# Manufacturers code
*#7780# Restore factory settings
*#8110# Software version for the nokia 8110
*#92702689# Displays – 1.Serial Number, 2.Date Made, 3.Purchase Date,
4.Date of last repair (0000 for no repairs), 5.Transfer User Data. To
exit this mode you need to switch your phone off then on again
**21*number# Turn on “All Calls” diverting to the phone number entered
**61*number# Turn on “No Reply” diverting to the phone number entered
**67*number# Turn on “On Busy” diverting to the phone number entered
Nokia Secret Codes
The complete guide
Here’s a list of known codes on Nokia mobile phones. This list does
not include codes that make request to the network. To use these codes,
just dial them like normal numbers.
Code Description
*#06# Display the IMEI (GSM standard)
*#0000# Display the firmware version and date (with variant info on S40 second edition or newer)
*#9990# Says “Bluetooth Test Mode” on Symbian models; accepts
without any messages and Bluetooth behaves abnormally on non-Symbian
ones (models with build-in Bluetooth radio, activate first to use)
*#bta0# Display the Bluetooth MAC address (models with build-in Bluetooth radio, activate first to show address)
*#mac0wlan# Display the WLAN MAC address (models with build-in Wi-fi radio)
*#opr0logo# Clear the operator logo (3310 and 3330 only)
*#pca0# Activate the GPRS PCCCH support (early GPRS models)
*#pcd0# Deactivate the GPRS PCCCH support (early GPRS models)
*#res0wallet# Reset the mobile wallet (models with mobile wallet)
*#res0# Soft-format the memory (Symbian models only)
*#rst0# Reset to factory defaults, confirmation required (DCT4 or newer)
*#sim0clock# Display the SIM clock status (DCT3 only)
*#ssn0# Display the manufacturing serial number (mid-range and premium DCT3, basically all DCT4 and BB5 non-Symbian models)
*#war0anty# Display the manufacturing and repair info (no exit on DCT3) or total talk time on
Symbian models
*efr0# Enable EFR encoding (pre-2003 models)
#efr0# Disable EFR encoding (pre-2003 models)
*hra0# Enable HR encoding (pre-2003 models)
#hra0# Disable HR encoding (pre-2003 models)
#pw+1234567890+n# Display the SIM lock status: (pre-2003 models)
n = 1: provider lock
n = 2: network lock
n = 3: country lock
n = 4: SIM lock
n# n = 1..999: recall the number stored in the SIM location n (DCT3, DCT4, BB5 models)
These codes will work on most Nokia Mobile Phones to
activate/deactivate advanced hidden functions that you can’t change
through the phone menu
One useful function that all Nokia’s I’ve owned have is “Cell Info
Display” which can usually be found in the phones “Display settings”
(eg: in a Nokia 1600) or “Phone Settings” (eg: in a Nokia 3315)
If your network supports it, when “Cell Info Display” is enabled, it
will display the name of the base station your mobile is currently
connected to on the screen. eg: when i’m walking around the city it says
“Sydney CBD” and when i’m at home it displays the name of my suburb.
Note:
To display “p” press “*” three times within one second, To display
“w” press “*” four times within one second, To display “+” press twice
“*” within less than a second
Code Function
*3370# / #3370# Activate / Deactivate Enhanced Full Rate Codec (EFR) –
Your phone uses the best sound quality but talk time is reduced my
approx. 5%
*#4720# / *#4720# Activate / Deactivate Half Rate Codec – Your phone
uses a lower quality sound but you should gain approx 30% more Talk Time
*#7220# / *#7230# Enable / Disable PCCCPH support (faster GPRS)
#pw+1234567890+1# Provider Lock Status. (use the “*” button to obtain the “p,w” and “+” symbols)
#pw+1234567890+2# Network Lock Status. (use the “*” button to obtain the “p,w” and “+” symbols)
#pw+1234567890+3# Country Lock Status. (use the “*” button to obtain the “p,w” and “+” symbols)
#pw+1234567890+4# SIM Card Lock Status. (use the “*” button to obtain the “p,w” and “+” symbols)
12345 This is the default security code
*#0000# Displays your phones software version, 1st Line : Software
Version, 2nd Line : Software Release Date, 3rd Line : Compression Type
*#9999# Phones software version if *#0000# does not work
*#06# For checking the International Mobile Equipment Identity (IMEI Number)
*#67705646# Removes operator logo on 3310 & 3330
*#73# Reset phone timers and game scores
*#746025625# Displays the SIM Clock status, if your phone supports
this power saving feature “SIM Clock Stop Allowed”, it means you will
get the best standby time possible
press and hold # Lets you switch between lines
*#7760# Manufacturers code
*#7780# Restore factory settings
*#8110# Software version for the nokia 8110
*#92702689# Displays – 1.Serial Number, 2.Date Made, 3.Purchase Date,
4.Date of last repair (0000 for no repairs), 5.Transfer User Data. To
exit this mode you need to switch your phone off then on again.
Keywords:Tutorial, Tutorials, Nokia Codes, Coduri Nokia,Unlock Nokia,Deblocare Telefon Nokia,Imei.
As one of the world’s leading satnav providers, TomTom knows that great in-car navigation relies on the best quality map possible. Our research has shown that 15% of roads change every year – so if you want to keep enjoying fast and accurate navigation, your map needs to stay up to date.
That’s why TomTom does everything in its power to give you the best map right from the start.
We have one of the world’s leading digital mapping providers at the heart of our business. And this mapping expertise underpins a whole range of innovative features within our maps. Among these is our market-leading IQ Routes™ technology, which uses actual speed data collected from millions of users to accurately calculate the travel time of your route.
Plus, we provide all sorts of clever and cost-effective ways to help you keep your map up-to-date:
1.First of all, there’s our latest map guarantee. If a new map is available within 30 days of first using your device, you can download that map for free by connecting your device to your internet enabled computer.
2.Then there’s TomTom’s Map Update Service. This gives you every single release of your map over a fixed period for a great price and what’s more the newer you map is, the less you’ll pay.
3.To give your map a boost between updates, there’s TomTom Map Share™. This free service is unique to TomTom, letting you make simple changes to your map and receive changes from Map Share’s 16 million-strong user community.
NOTE: Map Share is not currently supported by My TomTom
4.And if you’re holidaying abroad or travelling somewhere new for business, why not pack your TomTom device and choose a travel map from our selection of more than 90 countries, covering over 30 million kilometres of road.
TomTom offers maps for more than 95 destinations
worldwide. We release maps every quarter with the latest road changes, Points of
Interest and speed limits.
(Windows) For GO, XL, XXL, ONE, START, RIDER and NAVIGATOR 6 and 7 devices.
(MAC OSX) For all GO, ONE, XL, XXL, START and RIDER devices.
TomTom HOME is the easiest way to manage content on your TomTom device. Downloading and installing HOME is easy and quick. Once installed, simply connect your TomTom device to your computer by using your USB cable and get started.
Every time you start up TomTom HOME, it will automatically detect if your TomTom device is connected and offer you any available updates. Connect often to get the latest and the greatest!
WeTransfer is a free platform in transferring large digital files up to 2GB per
transfer. We can transfer any type of file - such as presentations, photos,
videos, music, documents and more.
All you have to do is insert your email and your friends email in the boxes on
the site accordingly.
Then you click to add the files you want to
upload.
If you want you can add a message optionally and then just click
transfer.
It is the easiest method and unlike all the other methods it
has a guaranteed 2GB limit.
Your friend also has 2 Weeks to download the file
from the time you send the email.
Keywords:NEWS, Tutorial, Tutorials, Blogger Tutorial, Website, Transfer Big Files, Transfer Large Files, Transfer Any Type of File, Transfer Files, Transfer Files Free,Website, Send Large Email Free,Send Large Files,Send Big Files.
Make sure you have installed Adobe Flash Player on your web browser. And you
must find a web server to host your .swf file. Then you can embed the .swf file
to your website with HTML code like the code below:
"We are implementing a top-level domain requirement, and will no longer accept sites that use free blog hosting solutions like Blogspot, Hpage, Tumblr, or .Co.CC (free hosting solution). We are also not accepting sites with less than 10 page views per day. If you would like to place ads on sites like this please consider using a different service, as we can't accept these types of sites.
If you have any additional questions please feel free to ask.
regards
(name-hidden)
Customer Support"
Hello Publisher,
We've completed the review of your zone, Top Banner ( Zone ID******** ), that you've submitted. Unfortunately, we are unable to approve it for our marketplace at this time due to the following reasons:
- Not a top level domain
If you wish to petition our decision or you have changed your site's content to meet our standards, please forward this email to********** with a request to have your zone re-reviewed.
Thanks,
The adBrite Team
Keywords:Ad exchange, Advertisers, Blogger Tutorial, NEWS, Publishers, Tutorial, Tutorials,Pay Per Click Advertising.
If the Ubuntu Server installer has set your server to use DHCP, you
will want to change it to a static IP address so that people can
actually use it.
Changing this setting without a GUI will require some text editing, but that’s classic linux, right?
Let’s open up the /etc/network/interfaces file. I’m going to use vi, but you can choose a different editor
sudo vi /etc/network/interfaces
For the primary interface, which is usually eth0, you will see these lines:
auto eth0 iface eth0 inet dhcp
As
you can see, it’s using DHCP right now. We are going to change dhcp to
static, and then there are a number of options that should be added
below it. Obviously you’d customize this to your network.
Now we’ll need to add in the DNS settings by editing the resolv.conf file:
sudo vi /etc/resolv.conf
On
the line ‘name server xxx.xxx.xxx.xxx’ replace the x with the IP of
your name server. (You can do ifconfig /all to find out what they are)
You need to also remove the dhcp client for this to stick. You might need to remove dhcp-client3 instead.
sudo apt-get remove dhcp-client
Now we’ll just need to restart the networking components:
sudo /etc/init.d/networking restart
Ping www.google.com. If you get a response, name resolution is working(unless of course if google is in your hosts file).
Really pretty simple.
Keywords: Configurare conexiune internet, Linux, Static IP Address, Tutorial, Tutorials, Ubuntu server.
Open a new file. You can use the Tab key for automatic file name completion, just like at the shell command prompt.
:w filename
Save
changes to a file. If you don't specify a file name, Vim saves as the
file name you were editing. For saving the file under a different name,
specify the file name.
:q
Quit Vim. If you have unsaved changes, Vim refuses to exit.
:q!
Exit Vim without saving changes.
:wq
Write the file and exit.
:x
Almost the
same as :wq, write the file and exit if you've made changes to the file.
If you haven't made any changes to the file, Vim exits without writing
the file.
Moving around in the file
These Vim commands and keys work both in command mode and visual mode.
Vim command
Action
j or Up Arrow
Move the cursor up one line.
k or Down Arrow
Down one line.
h or Left Arrow
Left one character.
l or Right Arrow
Right one character.
e
To the end of a word.
E
To the end of a whitespace-delimited word.
b
To the beginning of a word.
B
To the beginning of a whitespace-delimited word.
0
To the beginning of a line.
^
To the first non-whitespace character of a line.
$
To the end of a line.
H
To the first line of the screen.
M
To the middle line of the screen.
L
To the the last line of the screen.
:n
Jump to line number n. For example, to jump to line 42, you'd type :42
Inserting and overwriting text
Vim command
Action
i
Insert before cursor.
I
Insert to the start of the current line.
a
Append after cursor.
A
Append to the end of the current line.
o
Open a new line below and insert.
O
Open a new line above and insert.
C
Change the rest of the current line.
r
Overwrite one character. After overwriting the single character, go back to command mode.
R
Enter insert mode but replace characters rather than inserting.
The ESC key
Exit insert/overwrite mode and go back to command mode.
Deleting text
Vim command
Action
x
Delete characters under the cursor.
X
Delete characters before the cursor.
dd or :d
Delete the current line.
Entering visual mode
Vim command
Action
v
Start highlighting characters. Use the normal movement keys and commands to select text for highlighting.
V
Start highlighting lines.
The ESC key
Exit visual mode and return to command mode.
Editing blocks of text
Note: the Vim commands marked
with (V) work in visual mode, when you've selected some text. The other
commands work in the command mode, when you haven't selected any text.
Vim command
Action
~
Change the
case of characters. This works both in visual and command mode. In
visual mode, change the case of highlighted characters. In command mode,
change the case of the character uder cursor.
> (V)
Shift right (indent).
< (V)
Shift left (de-indent).
c (V)
Change the highlighted text.
y (V)
Yank the highlighted text. In Windows terms, "copy the selected text to clipboard."
d (V)
Delete the highlighted text. In Windows terms, "cut the selected text to clipboard."
yy or :y or Y
Yank the current line. You don't need to highlight it first.
dd or :d
Delete the current line. Again, you don't need to highlight it first.
p
Put the text
you yanked or deleted. In Windows terms, "paste the contents of the
clipboard". Put characters after the cursor. Put lines below the current
line.
P
Put characters before the cursor. Put lines above the current line.
Undo and redo
Vim command
Action
u
Undo the last action.
U
Undo all the latest changes that were made to the current line.
Ctrl + r
Redo.
Search
Vim command
Action
/pattern
Search the file for pattern.
n
Scan for next search match in the same direction.
N
Scan for next search match but opposite direction.
Replace
Vim command
Action
:rs/foo/bar/a
Substitute foo with bar. r determines the range and a determines the arguments.
The range (r) can be
nothing
Work on current line only.
number
Work on the line whose number you give.
%
The whole file.
Arguments (a) can be
g
Replace all occurrences in the line. Without this, Vim replaces only the first occurrences in each line.
i
Ignore case for the search pattern.
I
Don't ignore case.
c
Confirm each
substitution. You can type y to substitute this match, n to skip this
match, a to substitute this and all the remaining matches ("Yes to
all"), and q to quit substitution.
Examples
:452s/foo/bar/
Replace the first occurrence of the word foo with bar on line number 452.
:s/foo/bar/g
Replace every occurrence of the word foo with bar on current line.
:%s/foo/bar/g
Replace every occurrence of the word foo with bar in the whole file.
:%s/foo/bar/gi
The same as above, but ignore the case of the pattern you want to substitute. This replaces foo, FOO, Foo, and so on.
:%s/foo/bar/gc
Confirm every substitution.
:%s/foo/bar/c
For each line on the file, replace the first occurrence of foo with bar and confirm every substitution.
Keywords: Comenzi vim-Linux, Tutorial, Tutorials, Vim command.
Cum sa îti faci propriul server Ubuntu 11.04 ( Natty Narwhal ) în VirtualBox
Acest tutorial este menit să vă ajute să instalați rapid și simplu un server Apache + MySQL + PHP pe Linux (LAMP Server), fie el pe o mașină virtuală sau pe un calculator propriu-zis (server).
Notă!:
Acest tutorial poate fi folosit și pentru un server fizic, aflat în rețeaua
din casă, conectat la un router sau server DHCP.
1. Cerințe:
- imaginea cd-ului cu Ubuntu Server 11.04 Natty Narwhal disponibil pentru descarcare pe http://www.ubuntu.com/
- VirtualBox de la Oracle instalat pe calculator (în cazul în care nu folosim un server fizic)
- o legatură rapidă la internet 2. Mașina virtuală:
ÃŽn cazul in care v-aÈ›i decis pentru un server virtual, intraÈ›i în VirtualBox, daÈ›i clic pe “New“. Va apare o fereastră “Create New Virtual Machine“. De aici:
-Next
-Introducem un nume pentru maÈ™ina virtuală pe care vrem să o creăm; în acest tutorial vom introduce “ubuntu server”
-La “Operating System” vom selecta Linux, iar la “Version” Ubuntu
-Next
-Selectăm memoria alocată noii maÈ™ini virtuale, în cazul nostru vom selecta 512MB. (AtenÈ›ie la memoria disponibilă în calculator; indicat este să alocam cel mult jumătate din cât avem – vom vedea acest interval marcat cu verde)
-Next
-În dialogul următor ni se cere indicarea unui hard disk virtual pe care mașina virtuală va stoca datele. Vom lăsa implicite următoarele setări, dar bineînțeles, fiecare va putea să își personalizeze setările în funcție de preferințe, spațiu disponibil etc. așadar:
-vom lăsa selectat “Create new hard disk“
-Next
-Next
-vom lăsa selectat “Dynamically expanding storage“
-Next
-vom lăsa scris în câmpul Location “ubuntu server” si dimensiunea la 8.00GB
-Next
-Finish
-apoi iar Finish
În acest moment avem creată o nouă mașină virtuală, care va deveni noul nostru server, însă dupa ce vom mai face 2 setări.
Vom selecta Settings pentru maÈ™ina virtuală creată. ÃŽn fereasta de setări, vom selecta Network iar la opÈ›iunea “Attached to:” selectăm Bridged Adapter (presupunem că avem calculatorul într-o reÈ›ea locală). Calculatorul nostru își ia în mod automat IP-ul 192.168.1.8, să zicem. OpÈ›iunea selectată mai sus îi va permite maÈ™inii virtuale să se comporte ca un calculator separat, cu placă de reÈ›ea separată, care își va lua un IP propriu de la serverul DHCP (router).
Pentru că vorbim de un server, este bine ca adresa lui în rețea să nu fie dinamică, de aceea vom vedea mai târziu că îi vom seta un IP static.
Dacă nu folosiți VirtualBox, calculatorul pe care îl vom seta ca server trebuie să fie fizic într-o rețea locală, conectat prin cablu la un router.
După Network ne ducem la Storage È™i vom observa cuvântul Empty în dreptul unității de disc virtuale. Dăm clic pe ea, iar în dreapta dăm clic pe iconiÈ›a unui disc È™i selectăm “Choose a virtual CD/DVD disk file“, inidicându-i apoi calea către imaginea de disc ubuntu server descărcată de pe site-ul oficial.
După ce am făcut aceste 2 setări, putem să ne apucăm propriu-zis de treabă. 3. Sistemul de bază:
În VirtualBox apăsăm butonul Start pentru a porni mașina virtuală.
Pentru serverul real, băgăm cd-ul scris cu imaginea de disc descărcată de pe site-ul oficial si pornim calculatorul.
Va apărea următoarea imagine:
Alegem limba engleză. BineînÈ›eles nu e nici o problemă dacă alegem româna sau oricare alta, dar avantajul folosirii limbii engleze e că dacă întâmpinaÈ›i o problemă mai târziu legată de sistem veÈ›i găsi, mult mai uÈ™or È™i mult mai “stufos”, suport în limba engleză.
Apoi selectați Install Ubuntu Server:
Aici selectăm limba folosită pe parcursul procesului de instalare. Vom alege din nou engleza:
Apoi vom selecta localizarea:
După ce am terminat de setat localizarea, urmează configurarea tastaturii. Nimic deosebit, setăm să nu ne detecteze tastatura și o setăm pe SUA iar layout-ul tot SUA:
Așteptăm o perioadă până se încarcă unele componente:
Încă așteptăm.. Configurarea rețelei.
Setăm hostname-ul ubuntu.
În funcție de localizarea pe care am setat-o mai devreme, sistemul va încerca să ghicească fusul orar. Dacă acesta este corect, confirmați, iar dacă nu, aveți posibilitatea de a-l schimba. Partiționarea hardiskului: de obicei este un proces mai delicat, în primul rând din cauza posibilității pierderii datelor în cazul în care ceva nu merge bine. În cazul de față nu avem de ce să ne facem griji, calculatorul este unul virtual iar harddisk-ul la fel. Vom folosi întreagul spațiu și vom seta și LVM-ul (logical volume manager) ca în figura de mai jos.
Selectăm harddisk-ul, singurul de altfel pe care îl avem în această configurație:
Confirmăm scrierea modificărilor pe harddisk.
Folosim întregul spațiu disponibil pentru instalare (de obicei valoarea numerică a spațiului maxim disponibil apare ca defaul):
Confirmăm partiționarea propriu-zisă (dacă totuți folosiți un calculator real pentru acest setup, e bine de știut că pană în acest moment nu s-a făcut absolut nici o modificare pe harddisk).
Se creează È™i se formatează partiÈ›iile…
Se instalează sistemul de bază…
Acum vom seta un user (care mai târziu va avea și drept de sudo [superuser - va putea acționa precum root ] ). Îi setăm numele:
Apoi setăm username-ul:
Și în final parola…
… È™i confimarea parolei.
Vom alege să nu ne cripteze directorul home, întrucât acest tutorial este un exercițiu ( în mare pentru a ne crea un mediu de development prietenos pentru lucrul cu PHP și baze de date MySQL) nu vom insista pe partea de securitate a serverului.
ÃŽn continuare, dacă aveÈ›i un proxy în reÈ›ea, e momentul să îl “declaraÈ›i”. Dacă nu, lăsăm câmpul gol.
Se configurează managerul de pachete…
AÈ™teptăm…
Setăm ca sistemul să nu facă actualizări automate. Le vom face manual mai târziu:
Din lista care urmează, selectăm numai OpenSSH server. De restul ne vom ocupa după restart.
După ce am selectat OpenSSH server È™i am confirmat, aÈ™teptăm să se instaleze…
Confirmăm instalarea boot-loader-ului:
Instalarea este completă. Scoatem cd-ul din unitate, în cazul unui calculator real, sau demontăm imaginea de cd în cazul mașinii virtuale si apăsăm butonul Continue pentru a restarta sistemul proaspăt instalat. 4.Configurarea serverului 4.1.Obținerea dreptului de root
După repornirea sistemului, logați-vă cu user-ul creat anterior (aici popescu). Operațiunile ce urmează a fi făcute de aici inainte necesită drepturi de superutilizator (root). Avem două modalități de a satisface această cerință. Prima este prefixarea tuturor comenzilor cu comanda sudo sau logarea ca root. Utilizatorul root nu are implicit setată o parolă în Ubuntu din motive de sucuritate, însă dacă dorim să setăm una, rulăm următoarele comenzi:
sudo su
(introducem parola utilizatorului popescu dacă ne este cerută)
ÃŽn acest moment sunteÈ›i logat ca root(însă, cum am zis, acesta nu are setată o parolă, în cazul în care dorim să ne logam ca root la pornirea sistemului – lucru nerecomandat în mod uzual). Pentru a seta o parolă pentru root folosim comanda următoare:
passwd
În acest moment, putem folosi următoarele comenzi fără prefixul sudo. 4.1.(Opțional) Instalarea serverului SSH
Dacă la punctul 3. nu ați instalat serverul SSH, o puteți face acum prin următoarea comandă:
aptitude install ssh openssh-server
De acum înainte vă puteți loga utilizând un client SSH precum PuTTY sau comanda ssh din consola Linux/Mac OS X pentru a face operațiunile următoare. Deocamdată serverul are alocat un IP dinamic, pe care il vom folosi prima dată când ne logăm remote de pe alt computer. Pentru a identifica IP-ul pe care serverul l-a preluat de la router (în cazul de față) vom rula comanda:
ifconfig
Aceasta va afișa informații referitoare la conexiunea la rețea.
După ce am identificat IP-ul ne logăm folosind SSH. (pentru comanda ssh din consola linux/mac folosim sintaxa ssh user@IP ) 4.2. Configurarea rețelei
Deoarece serverului i-a fost alocat un IP dinamic de la router prin DHCP, va trebui să îl schimbăm intr-unul static: orice server trebuie să aibă o adresă fixă în rețea pentru a preveni erorile ce pot apărea în momentul repornirii unuia din ele(vorbim aici de o rețea cu mai multe servere).
Vom edita fiÈ™ierul /etc/network/interfaces. AsiguraÈ›i-vă să îl setaÈ›i după nevoile proprii (în cazul de față vom folosi IP-ul static 192.168.1.200 [routerul are adresa 192.168.1.1 È™i alocă adrese pentru clienÈ›i între 192.168.1.2 È™i 192.168.1.254 (192.168.1.255 este alocat pentru broadcast )] — asiguraÈ›i-vă că È™titi dinainte IP-ul routerului).
nano /etc/network/interfaces
Fișierul deschis ar trebui să arate asemănător :
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
Valoarea lui gateway reprezintă IP-ul routerului, iar valoarea câmpului address reprezintă adresa IP statică pe care dorim să o setăm pentru serverul nostru. Asigurați-vă că și celelalte valori respectă intervalul de IP-uri generat de router(în afară de netmask care rămane neschimbat).
După ce salvați modificările făcute, vom reporni rețeaua:
/etc/init.d/networking restart
Apoi modificăm fișierul /etc/hosts, care trebuie să arate în felul următor:
127.0.0.1 localhost.localdomain localhost
192.168.0.100 server.exemplu.com ubuntu
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Ambele comenzi ar trebui să returneze server.exemplu.com 4.3. Actualizarea sistemului
Pentru a actualiza lista de update-uri rulăm comanda:
apt-get update
apoi, pentru a instala actualizările(dacă sunt):
apt-get upgrade
iar apoi vom reporni sistemul:
reboot
4.4. Sincronizarea ceasului sistemului
Pentru a instala utilitarul de sincronizare folosim comanda:
apt-get install ntp ntpdate
4.4. Instalarea MySQL
Prin următoarea comandă instalăm clientul și serverul pentru baze de date MySQL si openssl:
apt-get install mysql-client mysql-server openssl
Vi se va cere să introduceÈ›i parola utilizatorului root pentru baza de date, apoi confirmarea ei. La intrebarea “Create directories for web-based administration” răspundem cu No:
New password for the MySQL "root" user: <---------------- parola de root
Repeat password for the MySQL "root" user: <------------- parola de root
Create directories for web-based administration? <------- No
Dorim ca MySQL sa asculte pe toate interfețele, nu doar localhost, de aceea vom comenta cu caracterul diez(#) linia bind-address = 127.0.0.1 din fișierul /etc/mysql/my.cnf:
nano /etc/mysql/my.cnf
Respectiva linie trebuie să arate așa:
#bind-address = 127.0.0.1
Apoi repornim MySQL:
restart mysql
Rulăm:
netstat -tap | grep mysql
Rezultatul comenzii de mai sus trebuie să fie asemănător cu următorul:
Ni se va cere să răspundem la următoarele întrebări:
Web server to reconfigure automatically: <----------------- apache2
Configure database for phpmyadmin with dbconfig-common? <-- No
Apoi rulăm următoarea comandă pentru a activa următoarele module Apache : suexec, rewrite, ssl, actions, și include :
a2enmod suexec rewrite ssl actions include
Apoi repornim serverul Apache:
/etc/init.d/apache2 restart
5. Testarea sistemului
Pentru a testa funcționalitatea intrăm într-un browser si accesăm adresa http://192.168.1.200.
Ar trebui să vedem o pagină cu titlul “It works!”.
Pentru a accesa vizual baza de date MySQL accesăm adresa http://192.168.1.200/phpmyadmin.
În acest moment ar trebui să avem serverul proapăt instalat gata de lucru. SPOR !
Keywords: Cum sa îti faci propriul server, Tutorial, Tutorials, Ubuntu server, VirtualBox.