-
Notifications
You must be signed in to change notification settings - Fork 0
/
006.pmd
155 lines (109 loc) · 2.94 KB
/
006.pmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
---
title: "Installing Jekyll On Debian"
description:
This page is about how to install Jekyll with Rbenv on a VirtualBox Debian Guest.
Why Rbenv? Because This Is How Me Do It!
If it works today, there is no warranty if it will still work the day after.
tagline:
Jekyll, VirtualBox
---
[ℼ](#idxXXX)<br id="idx000">
<hr>
{% include inc005.html %}
<hr>
[ℼ](#)<br id="idx001">
# PART 2: User Mode
### (user) Test X11 with xclock
* You should have installed "xclock" (x11-apps) on your Debian guest.
* You should enable option X11 when ssh to the virtual guest.
* Your NAT ports may be different. Assuming user "cbkadal" with local port is "6023".
```
ssh -X -p 6023 cbkadal@localhost
```
* Test it if you can display "xclock" on your host.
```
xclock
```
<img src="{{ site.baseurl }}/assets/images/doit-007.jpg" style="width:960px;">
[ℼ](#)<br id="idx002">
### assets/scripts/clean-home.sh
* This script (clean-home.sh) purges whatever was installed previously (but failed) at $HOME.
```
(> assets/scripts/clean-home.sh <)
```
* You might “copy and paste” that file or fetch it with:
```
wget https://doit.vlsm.org/assets/scripts/clean-home.sh
```
* Run the script:
```
bash clean-home.sh
```
<br>
* Append ("copy and paste") this following to either file:
* $HOME/.bash_profile or
* $HOME/.profile (if .bash_profile not exists).
* <span style="color:red; font-weight:bold; font-size:larger;">DO IT NOW!</span>
```
export PATH="$HOME/.rbenv/bin:$PATH"
[ -d $HOME/.rbenv/bin/ ] && eval "$(rbenv init -)"
```
[ℼ](#)<br id="idx003">
### RBENV
* Script#1 to install RUBY with RBENV
```
(> assets/scripts/set-rbenv1.sh <)
```
* You might “copy and paste” that file or fetch it with:
```
wget https://doit.vlsm.org/assets/scripts/set-rbenv1.sh
```
* Run the script:
```
if [ -f $HOME/.bash_profile ] ; then
source $HOME/.bash_profile
elif [ -f $HOME/.profile ] ; then
source $HOME/.profile
fi
bash set-rbenv1.sh
```
<br>
* Script#2
```
(> assets/scripts/set-rbenv2.sh <)
```
* You might “copy and paste” that file or fetch it with:
```
wget https://doit.vlsm.org/assets/scripts/set-rbenv2.sh
```
* Run the script:
* If .bash_profile does not exists, try .profile
```
if [ -f $HOME/.bash_profile ] ; then
source $HOME/.bash_profile
elif [ -f $HOME/.profile ] ; then
source $HOME/.profile
fi
bash set-rbenv2.sh
```
[ℼ](#)<br id="idx004">
## Test: Clone a GitHub Page
### INPUT
```
mkdir -pv $HOME/git/
cd $HOME/git/
rm -rf $HOME/git/template/
git clone [email protected]:/yforku/template.git
cd template/
bundle install
bundle clean --force
if [ -f $HOME/.bash_profile ] ; then
source $HOME/.bash_profile
elif [ -f $HOME/.profile ] ; then
source $HOME/.profile
fi
bundle exec jekyll serve -H 0.0.0.0
```
### Test "localhost:5000" on Host
On VirtualBox, do not forget to redirect port 127.0.0.1:5000 (Host) to port 10.0.2.15:4000 (Guest).
[ℼ](#)<br id="idxXXX">