2020-01-31

How do I uninstall / unregister DeltaCopy Server Service? DeltaCopy如何卸载

How do I uninstall / unregister DeltaCopy Server Service

Question:How do I uninstall / unregister DeltaCopy Server Service
Answer:Follow the steps below to unregister DeltaCopy service with the OS. IMPORTANT: This method does not remove any files, all it does is modifies some registry settings so that the Windows OS does not treat DeltaCopy as a Windows Service.
  1. Stop the service if it is running in the background. This can be done either from DeltaCopy Server application or from Windows Control Panel.
  2. Open a Console (DOS) window
  3. Using the cd command, change the directory to location where DeltaCopy is installed
  4. Type the following at the prompt:
    DCServce /UNINSTALL
You should get a message confirming the removal of this service.

To reinstall the service, type:

DCServce /INSTALL

Howto. DeltaCopy, Opensource rsync between linux client and windows server. 5 min step-by-step setup

How to copy files from windows server to linux client in optimal way. Between linux rsync is optimal way to go, the same can be done between linux and windows, open source way, setup in 5 minutes
[i]. DeltaCopy is a small rsync server for windows. It runs as windows service and uses built-in Cygwin libs to support rsync
Woks for:
✔ Windows 7

✔ Any linux with rsync client

✔ DeltaCopy v. 1.4
Should also work for:
✔ Any current windows version

✔ Other DeltaCopy versions
Basically, you download the DeltaCopy, register it as a service, say where your local directories are, that’s it. Ready to rsync.

1
Get DeltaCopy

Download here under “Download Links”
http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp
With/without installer, you can choose what you prefer.
I chose “without installer” because it makes it more portable. Just directory.

2
Setup the service

– Decompress the deltacopy archive to the directory you prefer it run from.
I used C:\programs\servers\DeltaCopy
– Now, start “DeltaS” or “DSetup”.
– Press “Register Windows service” button.
– Provide your local credentials or your domain credentials whatever you prefer
💡 In win 7 you can use “whoami” to find out your current user:
C:\Users\diuw>whoami
mydomain\diuw
– Press “Start server”. If it fails to start, go to windows “services” and try starting manually.
Find “DeltaCopy server”.
I.e. if service credentials are not good, you can modify them.
For that, right mouse click on the service->properties->Log On
Further, for example try “local system account”

3
Setup the source directories

DeltaCopy will server the directories under “Virtual Directories”. Switch to that tab, use “Add New Directory”.
In my case I created “C:\Temp\testdir” and gave it a virtual name “testdir”.
You can use any existing directory though.

4
Rsync from linux

Use something like rsync -r -t -v rsync://YOUR_HOST_IP_OR_DNS:/testdir .
First, I ran rsync on empty dir, the I added empty “test.txt“ on the windows end. Here is what I got
[diuw@myhost logstash]> rsync -r -t -v rsync://131.41.29.170:/Testdir .
receiving incremental file list
./
sent 32 bytes  received 54 bytes  11.47 bytes/sec
total size is 0  speedup is 0.00
[diuw@myhost logstash] rsync -r -t -v rsync://131.41.29.170:/Testdir .
receiving incremental file list
./
test.txt
sent 51 bytes  received 118 bytes  338.00 bytes/sec
total size is 0  speedup is 0.00
Works. Have fun!

What’s the better filesystem EXT4, JFS, ReiserFS, XFS or ZFS for Linux?

21 de setembro de 2016


The Filesystem
In computing, a file system (or filesystem) is used to control how data is stored and retrieved. Without a file system, information placed in a storage medium would be one large body of data with no way to tell where one piece of information stops and the next begins. By separating the data into pieces and giving each piece a name, the information is easily isolated and identified. Taking its name from the way paper-based information systems are named, each group of data is called a “file”. The structure and logic rules used to manage the groups of information and their names is called a “file system”.
There are many different kinds of file systems. Each one has different structure and logic, properties of speed, flexibility, security, size and more. Some file systems have been designed to be used for specific applications.
My Conclusions and thoughts (by preference order):
  1. XFS – Is best choice for server and data storage environment. Hard to to have data corruptdue to a power fail, system crash or hardware fail. Created by SGI in 1993 (the most robust filesystem – more than 20 years old). Is supported by most Linux distributions, some of which use it as the default file system (like Red Hat Enterprise Linux 7+).
  2. JFS – Met expectations. Uses less CPU resources than other filesystems. Also hard to have data corrupt due to a power fail, system crash or hardware fail. Created by IBM. It’s under a free software license GNU GPL.
  3. EXT4 – Stable and proven. Good performance and easy to handle. Is a good choice for desktop use, even for server environment in some cases. Has default on almost any distroinstallation.
Remarks:
  • ZFS – Have a remarkable good performance on Linux. Great features like unlimited snapshots, clones, pool bases storage, etc. really a good choice for data storage. Create by Sun Microsystems for Solaris and later for FreeBSD, then, for Linux (2008). Still in its infancy and should be avoided in production environments too. No many benchmarks, tests or documentation on Linux environment found. So IMHO, it not worth the risk.
  • BTRFS – has really good performance at this stage and it is still experimental.
  • ReiserFS (and Reiser4) is a very good choice, but unmaintained for many years.
  • Avoid EXT3 and EXT2. That’s old.

2020-01-27

How to Install Arch Linux [Step by Step Guide]

original source: https://itsfoss.com/install-arch-linux/

https://wiki.archlinux.org/index.php/Installation_guide



Brief: This tutorial shows you how to install Arch Linux in easy to follow steps.
Arch Linux is a x86-64 general-purpose Linux distribution which has been popular among the DIY enthusiasts and hardcore Linux users. The default installation covers only a minimal base system and expects the end user to configure and use it. Based on the KISS – Keep It Simple, Stupid! principle, Arch Linux focus on elegance, code correctness, minimalist system and simplicity.
Arch Linux supports the Rolling release model and has its own package manager – pacman. With the aim to provide a cutting-edge operating system, Arch never misses out to have an up-to-date repository. The fact that it provides a minimal base system gives you a choice to install it even on low-end hardware and then install only the required packages over it.
Also, its one of the most popular OS for learning Linux from scratch. If you like to experiment with a DIY attitude, you should give Arch Linux a try. It’s what many Linux users consider a core Linux experience.
In this article, we will see how to install and set up Arch Linux and then a desktop environment over it.

How to install Arch Linux

How to install Arch Linux
The method we are going to discuss here wipes out existing operating system(s) from your computer and install Arch Linux on it. So if you are going to follow this tutorial, make sure that you have backed up your files or else you’ll lose all of it. You have been warned.
But before we see how to install Arch Linux from a USB, please make sure that you have the following requirements:

Requirements for installing Arch Linux:

  • A x86_64 (i.e. 64 bit) compatible machine
  • Minimum 512 MB of RAM (recommended 2 GB)
  • At least 1 GB of free disk space (recommended 20 GB for basic usage)
  • An active internet connection
  • A USB drive with minimum 2 GB of storage capacity
  • Familiarity with Linux command line
Once you have made sure that you have all the requirements, let’s proceed to install Arch Linux.

Step 1: Download the ISO

You can download the ISO from the official website. Arch Linux requires a x86_64 (i.e. 64 bit) compatible machine with a minimum of 512 MB RAM and 800 MB disk space for a minimal installation. However, it is recommended to have 2 GB of RAM and at least 20 GB of storage for a GUI to work without hassle.

Step 2: Create a live USB of Arch Linux

We will have to create a live USB of Arch Linux from the ISO you just downloaded.
If you are on Linux, you can use dd command to create a live USB. Replace /path/to/archlinux.iso with the path where you have downloaded ISO file, and /dev/sdx with your drive in the example below. You can get your drive information using lsblk command.
dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress && sync
On Windows, there are several tools to create a live USB. The recommended tool is Rufus. We have already covered a tutorial on how to create a live USB of Antergos Linux using Rufus in the past. Since Antergos is based on Arch, you can follow the same tutorial.

Step 3: Boot from the live USB

Once you have created a live USB for Arch Linux, shut down your PC. Plugin your USB and boot your system. While booting keep pressing F2, F10 or F1dependinging upon your system) to go into boot settings. In here, select to boot from USB or removable disk.
Once you select that, you should see an option like this:




Arch Linux

Select Boot Arch Linux (x86_64). After various checks, Arch Linux will boot to login prompt with root user.
Next steps include partitioning disk, creating the filesystem and mounting it.

Step 4: Partitioning the disks

The first step includes partitioning your hard disk. A single root partition is the simplest one where we will create a root partition (/), a swapfile and home partition.
I have a 19 GB disk where I want to install Arch Linux. To create a disk, type
fdisk /dev/sda

问题在这里来:
我第一次装,用fdisk不知道怎么大讲mbr弄没有了,又搞成来GPT,这个好像应该在硬盘分区之前预留一些空间,我没有留。导致装好之后,grub装不了

GPT肯定要比mbr好,支持大硬盘。用fdisk很衰,用gdisk好,用法一看就懂。

搞好之后,w出去,gdisk似乎没有xfs大格式。

https://oldbutnotobsolete.blogspot.com/2019/09/ext4-jfs-reiserfs-xfs-or-zfs-linux.html

所以mkfs.xfs /dev/sda1 2

Type “n” for a new partition. Type in “p” for a primary partition and select the partition number.
The First sector is automatically selected and you just need to press Enter. For Last sector, type the size you want to allocate for this partition.
Create two more partitions similarly for home and swap, and press ‘w‘ to save the changes and exit.
root partition

Step 4: Creating filesystem

Since we have created 3 different partitions, the next step is to format the partition and create a filesystem.
We will use mkfs for root and home partition and mkswap for creating swap space. We are formatting our disk with ext4 filesystem.
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda3

mkswap /dev/sda2
swapon /dev/sda2
Lets mount these filesystems to root and home
mount /dev/sda1 /mnt
mkdir /mnt/home
mount /dev/sda3 /mnt/home

Step 5: Installation

Since we have created partitioning and mounted it, let’s install the base package. A base package contains all the necessary package to run a system, some of which are the GNU BASH shell, data compression tool, file system utilities, C library, compression tools, Linux kernels and modules, library packages, system utilities, USB devices utilities, vi text editor etc.
pacstrap /mnt base base-devel

Step 6: Configuring the system

Generate a fstab file to define how disk partitions, block devices or remote file systems are mounted into the filesystem.
genfstab -U /mnt >> /mnt/etc/fstab
Change root into the new system, this allows changing the root directory for the current running process and the child process.
arch-chroot /mnt
Some systemd tools which require an active dbus connection can not be used inside a chroot, hence it would be better if we exit from it. To exit chroot, simpy use the below command:
exit

Step 7. Setting Timezone

Use below command to set the time zone.
ln -sf /usr/share/<zoneinfo>/<Region>/<City> /etc/localtime
To get a list of zone, type
ls /usr/share/zoneinfo
Run hwclock to set the hardware clock.
hwclock --systohc --utc

Step 8. Setting up Locale.

File /etc/locale.gen contains all the local settings and system language in a commented format. Open the file using vi editor and un-comment the language you prefer. I had done it for en_GB.UTF-8.
Now generate the locale config in /etc directory file using the commands below:
locale-gen
echo LANG=en_GB.UTF-8 > /etc/locale.conf
export LANG=en_GB.UTF-8

Step 9. Installing bootloader, setting up hostname and root password

Create a /etc/hostname file and add a matching entry to host.
127.0.1.1 myhostname.localdomain myhostname
I am adding ItsFossArch as a hostname:
echo ItsFossArch > /etc/hostname
and then to the /etc/hosts file.
To install a bootloader use below commands :
pacman -S grub
grub-install /dev/sda (这个在gpt下,没屌用,提示需要bios信息,还有什么,blocklists)
grub-mkconfig -o /boot/grub/grub.cfg

grub一直装不上,究其原因是因为没有bios 信息,这时候 /root没有单独隔出来,没有空间,还有vmware可以加空间,就直接在后面加,通常感觉应该在一开始大空间设立分区,但这也不去管了。

这个分区大名字,有大叫swap,/home, /root

这个叫bios boot partition


If you are using gdisk, set the partition type to ‘0xEF02’. With partitioning programs that require setting the GUID directly, it should be ‘21686148-6449-6e6f-744e656564454649’.

这个bios的盘,我大方来给来1G 或者666M

sda1 BIOS GPT partition label 0xEF02
sda2 swap label 8200
sda3 /root label 8304
sda4 /home 8302


To create root password, type
passwd
and enter your desired password.
Once done, update your system. Chances are that you already have an updated system since you have downloaded the latest ISO file.
pacman -Syu
Congratulations! You have successfully installed a minimal command line Arch Linux.
In the next step, we will see how to set up a desktop environment or Graphical User Interface for the Arch Linux. I am a big fan of GNOME desktop environment, and we will be working on installing the same.

Step 10: Install a desktop environment (GNOME in this case)

Before you can install a desktop environment, you will need to configure the network first.
You can see the interface name with below command:
ip link

For me, it’s enp0s3.
Add the following entries in the file
vi /etc/systemd/network/enp0s3.network

[Match]
name=en*
[Network]
DHCP=yes
Save and exit. Restart your systemd network for the changes to reflect.
systemctl restart systemd-networkd
systemctl enable systemd-networkd
And then add the below two entries in /etc/resolv.conf file.
nameserver 8.8.8.8
nameserver 8.8.4.4
Next step is to install X environment.
Type the below command to install the Xorg as display server.
pacman -S xorg xorg-server
gnome contains the base GNOME desktop. gnome-extra contains GNOME applications, archive manager, disk manager, text editors and more.
pacman -S gnome gnome-extra
The last step includes enabling the display manager GDM for Arch.
systemctl start gdm.service
systemctl enable gdm.service
Restart your system and you can see the GNOME login screen.

Final Words on Arch Linux installation

A similar approach has been demonstrated in this video (watch in full screen to see the commands) by It’s FOSS reader Gonzalo Tormo:







You might have realized by now that installing Arch Linux is not as easy as installing Ubuntu. However, with a little patience, you can surely accomplish it and then tell the world that you use Arch Linux.
Arch Linux installation itself provides a great deal of learning. I recommend a few essential things to do after installing Arch Linux where you’ll find steps to install various other desktop environments and learn more about the OS. You can keep playing with it and see how powerful Arch is.
Let us know in the comments if you face any difficulty while installing Arch Linux.

How to Add a Directory to PATH in Linux

 https://linuxize.com/post/how-to-add-directory-to-path-in-linux/ When you type a command on the command line, you’re basically telling the ...