| File Scavenger® - Data Recovery Utility | |
|
File Scavenger® Version 4 is a file "undelete" and data
recovery utility for Windows® 8, 7, Vista, Server 2003, XP and 2000.
File Scavenger® can recover files that have been
accidentally deleted (including files removed from the Recycle Bin, in a
DOS window, from a network drive, from Windows Explorer with the SHIFT
key held down) provided that recovery is attempted before the files are
permanently overwritten by new data. File Scavenger® supports both basic
and dynamic disks, NTFS compression, alternate data streams, sparse
files, Unicode filenames, etc. Except in severe cases, both the file and
the folder path leading to the file can be recovered. File Scavenger® can also recover files from a reformatted or corrupted volume even when the volume has been deleted and its original position and size are unknown. File Scavenger® can scan an entire physical hard drive to look for traces of defunct volumes. File Scavenger® uses advanced algorithms to handle disks with bad sectors and badly corrupted partitions. It can be installed on a hard drive or run from a portable storage device such as a memory card, removable drive, or CD. To run File Scavenger®, you must log on as a system administrator to the computer where data recovery is intended. Files can only be restored if the disk areas allocated to the files have not been overwritten by new data. All recovered files should be validated for the integrity of the recovered data. http://www.quetek.com/prod02.htm |
Wednesday, February 20, 2013
The best file recovery software( File Scavenger® )
Thursday, November 3, 2011
Samba Standalone Server
I planned to held online practical exams for students who must save their result data on remote samba server.
This tutorial explains the installation of a Samba fileserver on Ubuntu 10.10 and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. In the resulting setup, every user has his own home directory accessible via the SMB protocol and all users have a shared directory with read-/write access.
I do not issue any guarantee that this will work for you!
1 Preliminary Note
I'm using an Ubuntu 10.10 system here with the hostname server1.example.com and the IP address 192.168.0.100.
I'm running all the steps in this tutorial with root privileges, so make sure you're logged in as root:
sudo su
2 Installing Samba
Connect to your server on the shell and install the Samba packages:
aptitude install libcups2 samba samba-common
Edit the smb.conf file:
vi /etc/samba/smb.conf
In the global section, remove the "#" at the beginning of the line security = user so that it looks like this:
[...] # "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html # in the samba-doc package for details. security = user
[...] |
This enables Linux system users to log in to the Samba server.
Close the file and restart Samba:
/etc/init.d/smbd restart
3 Adding Samba Shares
Now I will add a share that is accessible by all users.
Create the directory for sharing the files and change the group to the users group:
mkdir -p /home/shares/allusers
chown -R root:users /home/shares/allusers/
chmod -R ug+rwx,o+rx-w /home/shares/allusers/
chown -R root:users /home/shares/allusers/
chmod -R ug+rwx,o+rx-w /home/shares/allusers/
At the end of the file /etc/samba/smb.conf add the following lines:
vi /etc/samba/smb.conf
[...] [allusers] comment = All Users
path = /home/shares/allusers
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes
|
If you want all users to be able to read and write to their home directories via Samba, add the following lines to /etc/samba/smb.conf:
[...] [homes] comment = Home Directories
browseable = no
valid users = %S
writable = yes
create mask = 0700
directory mask = 0700
|
Now we restart Samba:
/etc/init.d/smbd restart
4 Adding And Managing Users
In this example, I will add a user named tom. You can add as many users as you need in the same way, just replace the username tom with the desired username in the commands.
useradd tom -m -G users
Set a password for tom in the Linux system user database. If the user tom should not be able to log in to the Linux system, skip this step.
passwd tom
-> Enter the password for the new user.
Now add the user to the Samba user database:
smbpasswd -a tom
-> Enter the password for the new user.
Now you should be able to log in from your Windows workstation with the file explorer (address is \\192.168.0.100 or \\192.168.0.100\tom for tom's home directory) using the username tom and the chosen password and store files on the Linux server either in tom's home directory or in the public shared directory.
Bulk user Creating script
#!/bin/bash
#
# Ensure that root is running the script.
##
WHOAMI=`/usr/bin/whoami`
if [ $WHOAMI != "root" ]; then
echo "You must be root to add news users!"
exit 1
fi
#
clear
NEW_USERS="/home/names.txt"
cat ${NEW_USERS} | \
while read USER GROUP SMBPASS ; do
groupadd ${GROUP} 2> /dev/null
adduser ${USER} -g ${GROUP}
(echo $SMBPASS; echo $SMBPASS) | passwd --stdin ${USER} > /dev/null
echo Added user ${USER}
smbpasswd -e ${USER} -w ${SMBPASS} > /dev/null
(echo $SMBPASS; echo $SMBPASS) | smbpasswd -as ${USER}
echo -e "${USER} = ${USER}" >> /etc/samba/smbusers
done
I was modified above codes related to me as bellow
#!/bin/bash
#
# Ensure that root is running the script.
##
WHOAMI=`/usr/bin/whoami`
if [ $WHOAMI != "root" ]; then
echo "You must be root to add news users!"
exit 1
fi
#
clear
NEW_USERS="/root/samba/userlist"
cat ${NEW_USERS} | \
while read USER GROUP SMBPASS ; do
echo "--->${USER} ${GROUP} ${SMBPASS} ---"
echo "useradd ${USER} -m -G ${GROUP}"
useradd ${USER} -m -G ${GROUP}
echo "(echo $SMBPASS;echo $SMBPASS) | smbpasswd -as ${USER}"
(echo "$SMBPASS"; echo "$SMBPASS") | smbpasswd -as ${USER}
done
delete bulk user
#!/bin/bash
clear
NEW_USERS="/root/samba/userlist"
cat ${NEW_USERS} | \
while read USER GROUP SMBPASS ; do
echo "--->${USER} ${GROUP} ${SMBPASS} ---"
smbpasswd -d ${USER}
echo "smbpasswd -d ${USER}"
echo "userdel -r ${USER}"
userdel -r ${USER}
done
sample userlist file
10751332 users 10751332
10752762 users 10752762
10850951 users 10850951
10852593 users 10852593
109067664 users 109067664
109067727 users 109067727
“users” unix user group . all users on belongs to users group.
For clear previous window authentication use bellow commds
Solution
Click on Start > Run
Enter cmd in he textbox
Enter net use * /delete in the dos box.
Click on Start > Run
Enter cmd in he textbox
Enter net use * /delete in the dos box.
useradd tom -m -G users
(echo “sss”; echo “sss”) | smbpasswd -as tom
N2N copy command , this is used for copy files to multiple folders...
echo /home/distinationfolder* |xargs -n 1 cp -rf /root/Sourcefolder/*
Monday, October 3, 2011
File concatenate
i had to concatenate thousands of files which are included in sub directories. after that gooled and collect some java codes , i coded as bellow.
in here ,All files concat to concat.txt file
import java.io.*;
public class ConcatenatedFiles {
public static PrintWriter pw;
static public void main(String arg[]) throws java.io.IOException {
pw = new PrintWriter(new FileOutputStream("C:/concat.txt")); // out fut file name and location
recuriceFiles("G:/smslist/"); // folder which is include all file for concatenate
pw.close();
System.out.println("All files have been concatenated into concat.txt");
}
static void recuriceFiles(String folderName) throws java.io.IOException
{
if(! new File(folderName).isFile())
{
File file = new File(folderName);
File[] files = file.listFiles();
for (int i = 0; i < files.length; i++) {
if(! new File(""+files[i].getPath()).isFile()){
recuriceFiles(files[i].getPath());
}else {
concatFile(files[i]);
}
}
}else{
}
}
static void concatFile(File filename) throws java.io.IOException{
BufferedReader br = new BufferedReader(new FileReader(filename.getPath()));
String line = br.readLine();
while (line != null) {
pw.println(line);
line = br.readLine();
}
br.close();
}
}
in here ,All files concat to concat.txt file
import java.io.*;
public class ConcatenatedFiles {
public static PrintWriter pw;
static public void main(String arg[]) throws java.io.IOException {
pw = new PrintWriter(new FileOutputStream("C:/concat.txt")); // out fut file name and location
recuriceFiles("G:/smslist/"); // folder which is include all file for concatenate
pw.close();
System.out.println("All files have been concatenated into concat.txt");
}
static void recuriceFiles(String folderName) throws java.io.IOException
{
if(! new File(folderName).isFile())
{
File file = new File(folderName);
File[] files = file.listFiles();
for (int i = 0; i < files.length; i++) {
if(! new File(""+files[i].getPath()).isFile()){
recuriceFiles(files[i].getPath());
}else {
concatFile(files[i]);
}
}
}else{
}
}
static void concatFile(File filename) throws java.io.IOException{
BufferedReader br = new BufferedReader(new FileReader(filename.getPath()));
String line = br.readLine();
while (line != null) {
pw.println(line);
line = br.readLine();
}
br.close();
}
}
Saturday, October 30, 2010
CENTOS Installation for Local Email server
i am going to configure Email server on centos for test in our LAN
1. Download Centos 5.5 from the http://www.centos.org
i installed centos server, server GUI, Mail, Web, Mysql ,SSH
after installation yum update for system update. it will take several minutes that is vary inorder to your internet connection.
1. Download Centos 5.5 from the http://www.centos.org
i installed centos server, server GUI, Mail, Web, Mysql ,SSH
after installation yum update for system update. it will take several minutes that is vary inorder to your internet connection.
Subscribe to:
Posts (Atom)
To configure Nginx for a Laravel application located within a subfolder, a location block is required to handle requests to that specifi...
-
File Scavenger® - Data Recovery Utility File Scavenger® Version 4 is a file ...
-
I planned to held online practical exams for students who must save their result data on remote samba server. This tutorial ex...
-
Find what : (^\d+)( *)(.*) Replace with : \3