Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How to create a remote     - How Linux system password security guarantee (Linux)

- PPA on Ubuntu Linux installation Plank 0.8.0 (Linux)

- Nginx reverse proxy and self-signed https (Server)

- Ubuntu 12.04 configure NVIDIA CUDA 5.5 Record (Linux)

- Linux input and output redirection (Linux)

- Ubuntu 14.04 set auto sleep time (Linux)

- Redis performance test (Database)

- Realization of Linux operating system illegal IP censorship (Linux)

- Use Markdown editor for document work under Linux (Linux)

- Cryptography development environment to build under Ubuntu (Linux)

- Interesting example of Linux Sort command (Linux)

- GO five stages of language learning (Programming)

- U disk to install Windows and Ubuntu 15.04 dual system (Programming)

- MySQL binary packages install for RedHat Linux Enterprise 6.4 (Database)

- Close and limit unused ports computer server security protection (Linux)

- Experts teach you safety precautions Linux Sniffer (Linux)

- CentOS and RHEL to install IPython 0.11 (Linux)

- Why do I prefer Git (Linux)

- Ubuntu study notes and related problem solving (Linux)

- Learn about EditText little depth (Programming)

 
         
  How to create a remote
     
  Add Date : 2017-09-10      
         
       
         
  Reprepro is a small command-line tool to easily create and manage .deb warehouse. Today we'll show you how to use reprepro simply create a Debian package repository, and use rsync to upload Sourceforge.net.

Step 1: Install and generate key Reprepro

First, install all the required packages, use the following apt-get command.

$ Sudo apt-get install reprepro gnupg
Now you need to generate a gnupg gpg key, here, use the following command.

$ Gpg --gen-key
It will ask you some questions, such as what you want to key, key is valid, if you do not know how to answer, simply click Enter to select the default option (recommended)

Of course, it will ask you for a username and password, remember these in mind, because we'll need it later.

gpg (GnuPG) 1.4.14; Copyright (C) 2013FreeSoftwareFoundation, Inc.
Thisis free software: you are free to change and redistribute it.
Thereis NO WARRANTY, to the extent permitted by law.
Pleaseselect what kind of key you want:
(1) RSA and RSA (default)
(2) DSA andElgamal
(3) DSA (sign only)
(4) RSA (sign only)
Your selection?
RSA keys may be between 1024and4096 bits long.
What keysize do you want? (2048)
Requested keysize is2048 bits
Please specify how long the key should be valid.
0 = key does not expire
= Key expires in n days
w = key expires in n weeks
m = key expires in n months
y = key expires in n years
Keyis valid for? (0)
Key does not expire at all
Isthis correct? (Y / N) Y
You need a user ID to identify your key; the software constructs the user ID
from the RealName, CommentandEmailAddressinthis form:
"Heinrich Heine (Der Dichter) < heinrichh@duesseldorf.de>"
Real name: ravisaive
Email address: tecmint.com@gmail.com
Comment: tecmint
You selected this USER-ID:
"Ravi Saive (tecmint) < tecmint.com@gmail.com>"
Change (N) ame, (C) omment, (E) mail or (O) kay / (Q) uit? O
You need a Passphrase to protect your secret key.
We need to generate a lot of random bytes.Itis a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
+++++
gpg: key 2EB446DD marked as ultimately trusted
publicand secret key created andsigned.
gpg: checking the trustdb
gpg: 3 marginal (s) needed, 1 complete (s) needed, PGP trust model
gpg: depth: 0 valid: 1signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
pub 2048R / 2EB446DD2014-06-24
Key fingerprint = D222 B1C9 342E591102B191473BD679182EB446DD
uid RaviSaive (tecmint) < tecmint.com@gmail.com>
sub2048R / 7EF2F7502014-06-24
Now that your key has been generated, and to check, run this command with root privileges.

$ Sudo gpg --list-keys
Sample output

/home/ravisaive/.gnupg/pubring.gpg
----------------------------------
pub 2048R / 2EB446DD2014-06-24
uid ravisaive (tecmint) < tecmint.com@gmail.com>
sub2048R / 7EF2F7502014-06-24
Step 2: Create a package repository and export key

We are now going to start creating warehouse, first you need to create some folders, our warehouse will be placed in / var / www / apt directory, let us create these directories.

$ Sudo su
# Cd / var / www
# Mkdir apt
# Mkdir -p ./apt/incoming
# Mkdir -p ./apt/conf
# Mkdir -p ./apt/key
You now need to export the key to the warehouse folder, run:

# Gpg --armor --export username yourmail@mail.com >> /var/www/apt/key/deb.gpg.key
Note: The user name you entered in the previous step instead of the username, use your email instead of the above yourmail@mail.com.

We need to create a file "distributions" in / var / www / apt / conf.

# Touch / var / www / apt / conf / distributions
Add the following lines to the file and save distributions.

Origin :( your name)
Label :( library name)
Suite: (stable or unstable)
Codename :( release code name, such trusty)
Version :( releases, such as 14.04)
Architectures :( package supported architecture, such as i386 or amd64)
Components :( part contains, for example, main restricted universe multiverse)
Description :( description)
SignWith: yes
Next we'll create a repository tree, run these commands:

# Reprepro --ask-passphrase -Vb / var / www / apt export
Sample output

Created directory "/ var / www / apt / db"
ExportingTrusty ...
Created directory "/ var / www / apt / dists"
Created directory "/ var / www / apt / dists / Trusty"
Created directory "/ var / www / apt / dists / Trusty / universe"
Created directory "/ var / www / apt / dists / Trusty / universe / binary-i386"
FF5097B479C8220C ravisaive (tecmint) < tecmint.com@gmail.com> needs a passphrase
Please enter passphrase:
Successfully created '/var/www/apt/dists/Trusty/Release.gpg.new'
FF5097B479C8220C ravisaive (tecmint) < tecmint.com@gmail.com> needs a passphrase
Please enter passphrase:
Successfully created '/var/www/apt/dists/Trusty/InRelease.new'
Step 3: Create a new warehouse was added package

You are now ready to join the .deb package to the repository. Into the / var / www / apt directory every time you want to add the package at all times to do so.

# Cd / var / www / apt
# Reprepro --ask-passphrase -Vb. Includedeb Trusty /home/ravisaive/packages.deb
Note: Use your distributions entered in the file repository code to replace the trusty, and replace the package with a path /home/username/package.deb, you will be asked to enter a password.

Sample output

/home/ravisaive/packages.deb: component guessed as'universe '
Created directory "./pool"
Created directory "./pool/universe"
Created directory "./pool/universe/o"
Created directory "./pool/universe/o/ojuba-personal-lock"
Exporting indices ...
FF5097B479C8220C ravisaive (tecmint) < tecmint.com@gmail.com> needs a passphrase
Please enter passphrase:
Successfully created './dists/Trusty/Release.gpg.new'
FF5097B479C8220C ravisaive (tecmint) < tecmint.com@gmail.com> needs a passphrase
Please enter passphrase:
Successfully created './dists/Trusty/InRelease.new'
Your package has been added to the warehouse, if you want to remove it, then use the following command:

# Reprepro --ask-passphrase -Vb / var / www / apt remove trusty package.deb
Of course, you need to modify the code repository and command your package.

Step 4: Upload warehouse to Sourceforge.net

To upload warehouse to Sourceforge.net, of course you need an account with a usable items that are available, so I assume you want to upload to the warehouse http://sourceforge.net/projects/myfoo/testrepository, here is the project name myfoo (on UNIX name, not the URL, not the title), testrepository you want to upload this file to the above directory, where we'll use rsync command. (LCTT Annotation: Of course, you can also upload additional support Http / on Rsync server to provide remote software library services.)

# Rsync -avP -e ssh / var / www / apt / username@frs.sourceforge.net: / home / frs / project / myfoo / testrepository /
Note: Use your username on sourceforge.net instead of username, the name of your project with UNIX instead myfoo, with the file you want to store the folder instead of testrepository.

Now your warehouse (including setting and key, etc.) uploaded to http://sourceforge.net/projects/myfoo/testrepository.

It should be added to an already assembled system, you first need to import warehouse key, it is actually /var/www/apt/key/deb.gpg.key, but this is a local path, use your warehouse other users can not add to their system, which is the reason why we want to import the key from sourceforge.net.

$ Sudo su
# Wget -O - http://sourceforge.net/projects/myfoo/testrepository/apt/key/deb.gpg.key | apt-key add -
You can now very easily put into the system in a warehouse, open /etc/apt/sources.list, and add the following line:

deb http://sourceforge.net/projects/myfoo/testrepository/apt/key/deb.gpg.key trusty main
Note: with the UNIX type the name of your project instead myfoo, instead of the code with your warehouse trusty, with your upload stored folder instead of testrepository, to join with you in distributionsj warehouse assembly instead of main.

Next, run the following command to update the repository list.

$ Sudo apt-get update
     
         
       
         
  More:      
 
- Java object initialization (Programming)
- JavaScript subarray Deduplication (Programming)
- Hard disk encryption to protect data security (Linux)
- Android imitation UC browser scroll up and down functions (Programming)
- Linux Command - ps: a snapshot of the current process (Linux)
- The difference between Objective-C language nil, Nil, NULL, NSNull (Programming)
- 5 fast Node.js application performance tips (Programming)
- Android Dynamic efficiency articles: a brilliant Loading Analysis and Implementation (Programming)
- to compile FFmpeg In Ubuntu (Linux)
- IOwait Linux system monitoring diagnostic tools (Linux)
- Git bulk delete remote tag (Linux)
- To protect the temporary files for Linux security (Linux)
- Linux operation and maintenance of the actual file system, file links (Linux)
- Linux Bash share tips for getting started (Linux)
- Ubuntu 14.10 / Linux Mint 17.1 Win10 compiler install rdesktop 1.8.3 Remote Desktop connection (Linux)
- Deploy Mono 4 and Jexus 5.6 on CentOS7 (Server)
- OpenGL Superb Learning Notes - Depth Texture and Shadows (Programming)
- Use regular expressions to check whether the input box to enter a URL (Programming)
- Linux System Getting Started Learning: On Linux how to convert text files to PDF (Linux)
- linux remote control software (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.