rsync the vault.centos.com

For I want to do some configuration workings on old distribution of CentOS, I have to use lots of materials which from vault.centos.com, following are the steps for syncing them.

First, rsync in vault.centos.com is closed, thus we have to choose http://archive.kernel.org/centos/.

Rsync Scripts

Refers to:
https://www.totalnetsolutions.net/2013/10/02/setting-up-a-corporate-yum-repository-mirror-for-bandwidth-and-staged-update-management/

Make Repository

https://wiki.centos.org/HowTos/CreateLocalMirror

Switching to Win10

Background

Since the monitor in my company are so ba……..d, I have to change my working environment from PC to SurfacePro, thus I have some tools changes, following are the records.

Tool List

Terminal: XShell4, Make sure you have change the screen-size issue.
purplepalmdash.github.io/blog/2015/11/13/win10-tips-for-using-xshell/

Screen-Shot:
I use picPick for replacing the scrot, the scrot is so convenient thus I found many tools for replacing it.

picPick Configuration: the main purpose is for selecting the rectangle and save it automatically to the folder with the timestamp.

Auto-Syncing tool:
using WinSCP’s keep remote the latest status:

/images/2016_04_21_10_39_10.jpg

OK, Now we could also using the same writing behavior just as under Linux Awesome Desktop.

DevStack Enable Neutron

Steps

Install steps are listed as following:

First as root user, create the initial stack user via:

# git clone https://git.openstack.org/openstack-dev/devstack
# tools/create-stack-user.sh 
# passwd stack

Now login with user stack, clone the repository and begin devstack installation:

$ git clone https://git.openstack.org/openstack-dev/devstack
$ cd devstack
$ git checkout stable/liberty
$ cp samples/local.conf ./
$ vim local.conf

The local.conf file should added following items:



# use TryStack git mirror
GIT_BASE=http://git.trystack.cn
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git

Add following configurations:

/images/2016_04_21_10_46_16_505x495.jpg

Now stacking the devstack:

$ ./stack.sh

Change IP In DevStack

Tips

After changing the IP Address of the DevStack machine, do following for re-installing the envs:

$ ssh stack@Your_IP
stack@packer-PerforceTest:~$ pwd
/opt/stack
stack@packer-PerforceTest:~$ cd devstack/
stack@packer-PerforceTest:~/devstack$ ./unstack.sh && ./stack.sh 

Now visiting your http://Your_New_IP/dashboard you will got the openstack dashborad.

Moving Docker Repository Position

Since the root partition is not so large, I have to change the default position of the docker repository, following are the steps:

Make a soft link to the docker repository via:

$ sudo mkdir DockerRepo
$ sudo chown -R dash:dash DockerRepo
$ sudo chmod  777 -R DockerRepo
$ sudo tar -zcC /var/lib docker > /home/juju/DockerRepo/var_lib_docker-backup-$(date +%s).tar.gz
$ ls -l -h /home/juju/DockerRepo
$ sudo mv /var/lib/docker /home/juju/DockerRepo/
$ sudo ln -s /home/juju/DockerRepo/docker /var/lib/docker
$ sudo service docker restart
$ sudo service docker status

Notice: the tar -zcC will take a long time, be patient.
In systemd like system, you should firstly stop docker.service, after moving, restarting the docker.service.

Change Docker Parameters

Ubuntu/Debian: edit your /etc/default/docker file with the -g option: DOCKER_OPTS="-dns 8.8.8.8 -dns 8.8.4.4 -g /mnt"