CreateEXEUsingWinRAR

Procedure

Notice: select the 2 items:

/images/2017_12_09_15_49_23_681x565.jpg

Advance, select the red item:

/images/2017_12_09_15_50_57_448x388.jpg

unzipeed location:

/images/2017_12_09_15_52_01_368x448.jpg

Setup:

/images/2017_12_09_15_52_44_366x451.jpg

Add shortcuts:

/images/2017_12_09_15_53_10_363x450.jpg

In Desktop:

/images/2017_12_09_15_54_20_351x415.jpg

Some text:

/images/2017_12_09_15_55_37_361x445.jpg

/images/2017_12_09_16_01_35_358x444.jpg

Update:

/images/2017_12_09_16_02_13_365x447.jpg

Text and icon:

/images/2017_12_09_20_30_11_360x453.jpg

Certification:

/images/2017_12_09_20_30_39_365x446.jpg

Modules:

/images/2017_12_09_20_30_52_366x446.jpg

Now you could see the rared files, click it for installation.

WTwareOnRaspberryPI

效果

/images/2017_11_28_15_06_56_485x642.jpg

/images/2017_11_28_15_07_19_371x496.jpg

/images/2017_11_28_15_07_39_378x348.jpg

背景

RaspberryPI上的一种瘦客户端解决方案。

步骤

下载地址:

https://winterminal.com/index.html#download

下载链接有两个,一个是exe下载,一个是zip下载,我们选择exe下载。

/images/2017_11_28_14_56_35_346x230.jpg 下载包大小大概200M不到,安装在Windows系统上,附带的例如TFTP/dhcpD之类的功能根据个人需求自行选择。我这里因为是静态地址的,不需要这些组件,就没有安装。

安装完毕后的配置过程如下,可以看到我们

这类说明一下,我们先配置RaspberryPI本身的IP地址/子网掩码/网关等信息。远端的服务器则在开机启动的时候再配置。最后填入的密码是进入设置页面的密码。在开机加电时按DEL键进入修改的条目。

开机启动

这里的配置过程以后再补上,因为当时没有截图。

所有的更改项对应在SD卡的Config目录下。

$  cat initrd.wtc 
clientIP = 192.xxx.xxx.xxx
netmask = 255.255.255.0
routerIP = 192.xxx.xxx.xxx
nameserverIP = 192.xxx.xxx.xxx
config = local
setupPassword = xxx.xxxxxxxxxxxxxxx
$ cat config.wtc 
server = rdp:192.xxx.xxx.xxx
User=username:password

配置好以后,插入SD卡就可以进入到我们预配置好的远程桌面了,这里我们启用的是RDP协议的Windows远程桌面。

为了保证服务质量,WTware默认禁掉了很多桌面效果,可以通过在config.wtc文件中加入下列条目,来开启所有特效:

graphic = abcdefg

ThinkingOnSSDTesting

benchmark

SATA 3: 6Gbps/SATA 2: 3Gbps/SATA 1: 1.5GBps

ATTO Disk Benchmark.
CPU-Z
CrystalDiskMark
随机写入/随机读出/顺序写入/顺序读出
iometer
P/E Cycle.
HD Tune Pro
AS SSD Benchmark
PCMark
PCMark Vantage PCMark 7(SSD)

RAMDISK for win: dataram

PlayingMySQLWorkbench

dump sql

Dump the existing sql via following commands:

# mysqldump -uxxxx -pxxxxx table_name -h10.53.12.102 -P3306>xxxx.sql

sql in docker

Run docker instance of sql via following command:

$ sudo docker run --name=mysql1 -d -e MYSQL_ROOT_PASSWORD=xxxxxxx -v /media/sda5/mysql:/home -p3306:3306 mysql:5.7
$ sudo docker exec -it mysql1 /bin/sh
# mysql -uroot -pxxxx
> create database xxxxx

import to sql

import sql files via following command:

# mysql -uroot -pxxxxxx databasenamexxxxxx -h127.0.0.1 -P3306</media/sda5/mysql/xxxxxx.sql

mysql-workbench

Install workbench via sudo pacman -S mysql-workbench, then start using workbench for editing the database.

GitLabInDocker

Steps

Run the docker instance via following steps:

# docker pull gitlab/gitlab-ce
# mkdir -p ~/gitlab
# mkdir -p ~/gitlab/config
# mkdir -p ~/gitlab/logs
# mkdir -p ~/gitlab/data
# docker run --detach --publish 443:443 --publish 80:80 --publish 2222:22 \ 
--name gitlab \
--memory 4g \
--restart always \
--volume ~/gitlab/config:/etc/gitlab \
--volume ~/gitlab/logs:/var/log/gitlab \
--volume ~/gitlab/data:/var/opt/gitlab \ 
gitlab/gitlab-ce:latest

Reconfigure the configuration files:

# vim ~/gitlab/config/gitlab.rb
external_url 'http://192.192.189.129'

Let the configuration take effect:

# docker exec -it xxxxx /bin/bash
# gitlab-ctl reconfigure

Now open your browser and visit http://192.192.189.129 then you could access your gitlab website.