Showing posts with label Tutorial. Show all posts
Showing posts with label Tutorial. Show all posts

Saturday, March 24, 2012

ADrive


Basic Features

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.

ADrive Website

ADrive Website



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.

Sunday, March 18, 2012

Nokia Codes


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.


Saturday, March 17, 2012

Remove YouTube Link

Remove YouTube Branding  from the video.
How can i configure how to prevent to click the link for watch on youtube?
Note:copyrighting video not working.

Breaking Nokia phones on purpose - Nokia Test Center(video)


You can now remove the YouTube branding from the video.

Original Code:
<iframe width="560" height="315" src="http://www.youtube.com/embed/PG_yOWrEDJA?rel=0" frameborder="0" allowfullscreen></iframe>

Modified Code:
<iframe allowfullscreen="" frameborder="0" height="315" src="http://www.youtube.com/embed/LqB4UdpUoGM?modestbranding=1&amp;rel=0" width="420"></iframe>


Add the parameter ?modestbranding=1.

modestbranding=1&amp;



Keywords:Remove YouTube Branding,Remove YouTube Link,Remove YouTube Logo,Tutorial, Tutorials, Blogger Tutorial.

Wednesday, March 14, 2012

TomTom Maps


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.

TomTom devices
TomTom GO LIVE Top Gear edition
GO 1015 
GO LIVE 1015 
GO LIVE 820/825 
GO 1000 
GO LIVE 1000 
GO 1005 
GO LIVE 1005 
GO 300/500 
GO 510/710 
GO 520/720 
GO 530/630/730 
GO 550/750 
GO LIVE 550/750 
GO 700 
GO 7000 
GO LIVE 540/740 
GO 9000 
GO 910 
GO 920 / GO 920 T 
GO 930 / GO 930 T 
GO LIVE 940 
GO 950 
GO LIVE 950 
START 20 
START 25 
VIA 110/120 
VIA LIVE 115/120/125 
START2 
START XL 
START 
White Pearl 
ONE XL 
ONE IQ Routes Edition 
ONE 3rd Edition 
ONE 2nd Edition 
ONE (30 Series) TTS 
ONE (30 Series) 
ONE 
XXL Classic 
XXL 550 
XXL 
XL IQ Routes Edition2 
XL IQ Routes Edition LIVE 
XL IQ Routes Edition 
XL Black Edition 
XL Black Edition TTS 
XL 350 
XL (30 Series) TTS 
XL (30 Series) 
RIDER 
RIDER 2nd Edition 
Urban Rider / Rider Pro 
Toyota II (TNS410) 
Toyota Aygo Connect Multimedia 
Toyota (TNS400) 
Subaru (H001SSC800) 
Sony XNV Navigation Module LIVE 
Sony XNV Navigation Module 
Carminat TomTom LIVE 
Carminat TomTom 
Mazda Navigation (NVA-SD8110) 
Blue&Me TomTom 2 
Blue&Me TomTom 2 LIVE 
Blue&Me TomTom 
Eclipse II (AVN 4429 / 4430 / 4400) 
Eclipse (AVN 2210p / 2227p) 
Mobile Phone 
TomTom Connect 
TomTom Connect LIVE 
PRO 7100 
PRO 7150 
PRO 9100 
PRO 9150 
Mazda Navigation System NB1 
Mazda Navigation System NB1 LIVE

(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!


Keywords:GPS Maps, GPS Software, NEWS, Tutorial, Tutorials, Downloads.

Sunday, March 11, 2012

WeTransfer

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.

WeTransfer Website




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.

Saturday, March 10, 2012

How embed swf games to a website?

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:

 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="432" height="330" title="game">
<param name="movie" value="/flash/game.swf" />
<param name="quality" value="high" />
<embed src="/flash/game.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="432" height="330"></embed>
</object>


Keywords:Answers, Questions, Blogger Tutorial, Tutorial, Tutorials, Blogger Embedding, Embed Flash Games, Embed Object,Website.

AdBrite





General Information
Website adbrite.com
Category Advertising
Email privacy@adbrite.com
Employees 70
Description Largest independent online ad exchange


"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.

Monday, March 5, 2012

Cum faci radio cu Sam Brodcaster


Cum faci radio cu Sam BrodcasterDownload SAM Brodcaster
DownloadShoutCastDNAS
Acum incepem cu instalarea
Instalare ShoutCastDNAS
IPB Image
IPB Image
IPB Image

CODE
C:\Program Files\SHOUTcast\sc_serv.exe
Deschideti aplicatia
IPB Image
IPB Image
Acum SAM Brodcaster
IPB Image
IPB Image
IPB Image
IPB Image
IPB Image
Aici Selectezi MS SQL doar daca ai MS SQL 2000 instalat...daca nu ai alegi My SQL si se va downloada automat mai tarziu
IPB Image
IPB Image
IPB Image
IPB Image
IPB Image
Acum Configurare SAM Brodcaster
Atentie:sc_serv.exe sa fie aprins
In Menu bar dati pe Window si bifati Encoders
IPB Image
IPB Image
IPB Image
IPB Image
IPB Image
Cate ceva
ASa adaogi muzica
IPB Image
IPB Image
Cum faci dedicati-ai nevoie de microfon
IPB Image
Sa fie bifat Mic on
Apoi cand vreti sa vorbiti la microfon apasati "Press to Talk"

Succes!




Keywords: Free Software, Free to try software, Freeware Software, Internet Software, Radio, Radio Servers, Radio Software, ShoutCast Servers, Streaming Audio Software, Tutorial, Tutorials.


Change Ubuntu Server from DHCP to a Static IP Address


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.
auto eth0
iface eth0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1

Tackle the Web with $5.99 .COM's from Go Daddy!
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.
Searchmetrics Link Essentials

Keywords: Configurare conexiune internet, Linux, Static IP Address, Tutorial, Tutorials, Ubuntu server.


The Vim commands-Linux


 < The list of Vim commands >

Working with files
Vim commandAction
:e filenameOpen a new file. You can use the Tab key for automatic file name completion, just like at the shell command prompt.
:w filenameSave 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.
:qQuit Vim. If you have unsaved changes, Vim refuses to exit.
:q!Exit Vim without saving changes.
:wqWrite the file and exit.
:xAlmost 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.
These Vim commands and keys work both in command mode and visual mode.
Vim commandAction
j or Up ArrowMove the cursor up one line.
k or Down ArrowDown one line.
h or Left ArrowLeft one character.
l or Right ArrowRight one character.
eTo the end of a word.
ETo the end of a whitespace-delimited word.
bTo the beginning of a word.
BTo the beginning of a whitespace-delimited word.
0To the beginning of a line.
^To the first non-whitespace character of a line.
$To the end of a line.
HTo the first line of the screen.
MTo the middle line of the screen.
LTo the the last line of the screen.
:nJump to line number n. For example, to jump to line 42, you'd type :42
Inserting and overwriting text
Vim commandAction
iInsert before cursor.
IInsert to the start of the current line.
aAppend after cursor.
AAppend to the end of the current line.
oOpen a new line below and insert.
OOpen a new line above and insert.
CChange the rest of the current line.
rOverwrite one character. After overwriting the single character, go back to command mode.
REnter insert mode but replace characters rather than inserting.
The ESC keyExit insert/overwrite mode and go back to command mode.
Deleting text
Vim commandAction
xDelete characters under the cursor.
XDelete characters before the cursor.
dd or :dDelete the current line.
Entering visual mode
Vim commandAction
vStart highlighting characters. Use the normal movement keys and commands to select text for highlighting.
VStart highlighting lines.
The ESC keyExit 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 commandAction
~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 YYank the current line. You don't need to highlight it first.
dd or :dDelete the current line. Again, you don't need to highlight it first.
pPut 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.
PPut characters before the cursor. Put lines above the current line.
Undo and redo
Vim commandAction
uUndo the last action.
UUndo all the latest changes that were made to the current line.
Ctrl + rRedo.
Vim commandAction
/patternSearch the file for pattern.
nScan for next search match in the same direction.
NScan for next search match but opposite direction.
Replace
Vim commandAction
:rs/foo/bar/aSubstitute foo with bar. r determines the range and a determines the arguments.
The range (r) can be
nothingWork on current line only.
numberWork on the line whose number you give.
%The whole file.
Arguments (a) can be
gReplace all occurrences in the line. Without this, Vim replaces only the first occurrences in each line.
iIgnore case for the search pattern.
IDon't ignore case.
cConfirm 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/gReplace every occurrence of the word foo with bar on current line.
:%s/foo/bar/gReplace every occurrence of the word foo with bar in the whole file.
:%s/foo/bar/giThe 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/gcConfirm every substitution.
:%s/foo/bar/cFor 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 iti faci propriul server Ubuntu

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 “VersionUbuntu
-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 Locationubuntu 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
Apoi rulăm:
echo server1.example.com > /etc/hostname
/etc/init.d/hostname restart
Și apoi:
hostname
hostname -f
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:
tcp        0      0 *:mysql                 *:*                     LISTEN
      2182/mysqld
4.5. Instalarea Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, și mcrypt
apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork
apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common
php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi
libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt
mcrypt php5-imagick imagemagick libapache2-mod-suphp
libopenssl-ruby libapache2-mod-ruby
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
!
Special Offer! 20% off New 12+mo Hosting plans!


Keywords: Cum sa îti faci propriul server, Tutorial, Tutorials, Ubuntu server, VirtualBox.