Skip to content

Commit ec1a174

Browse files
committed
added new articles, layout
1 parent 441ad6b commit ec1a174

18 files changed

+823
-42
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,4 @@ _site
138138
.jekyll-metadata
139139
vendor
140140
_site
141+
.idea/

Gemfile

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
source "https://rubygems.org"
2-
# Hello! This is where you manage which Jekyll version is used to run.
3-
# When you want to use a different version, change it below, save the
4-
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5-
#
6-
# bundle exec jekyll serve
7-
#
8-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
9-
# uncomment the line below. To upgrade, run `bundle update github-pages`.
2+
103
gem "github-pages", group: :jekyll_plugins
11-
gem "jekyll-include-cache", group: :jekyll_plugins
4+
5+
gem "tzinfo-data"
6+
gem "wdm", "~> 0.1.0" if Gem.win_platform?
127

138
# If you have any plugins, put them here!
149
group :jekyll_plugins do
15-
gem "jekyll-feed", "~> 0.12"
16-
end
17-
18-
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
19-
# and associated library.
20-
platforms :mingw, :x64_mingw, :mswin, :jruby do
21-
gem "tzinfo", "~> 1.2"
22-
gem "tzinfo-data"
10+
gem "jekyll-paginate"
11+
gem "jekyll-sitemap"
12+
gem "jekyll-gist"
13+
gem "jekyll-feed"
14+
gem "jemoji"
15+
gem "jekyll-include-cache"
16+
gem "jekyll-algolia"
2317
end
24-
25-
# Performance-booster for watching directories on Windows
26-
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
27-
28-
# Theme for github pages
29-
gem "minimal-mistakes-jekyll"

Gemfile.lock

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ GEM
99
zeitwerk (~> 2.2, >= 2.2.2)
1010
addressable (2.7.0)
1111
public_suffix (>= 2.0.2, < 5.0)
12+
algolia_html_extractor (2.6.4)
13+
json (~> 2.0)
14+
nokogiri (~> 1.10)
15+
algoliasearch (1.27.5)
16+
httpclient (~> 2.8, >= 2.8.3)
17+
json (>= 1.5.1)
1218
coffee-script (2.4.1)
1319
coffee-script-source
1420
execjs
@@ -32,6 +38,7 @@ GEM
3238
ruby2_keywords
3339
faraday-net_http (1.0.1)
3440
ffi (1.14.2)
41+
filesize (0.2.0)
3542
forwardable-extended (2.6.0)
3643
gemoji (3.0.1)
3744
github-pages (211)
@@ -88,6 +95,7 @@ GEM
8895
activesupport (>= 2)
8996
nokogiri (>= 1.4)
9097
http_parser.rb (0.6.0)
98+
httpclient (2.8.3)
9199
i18n (0.9.5)
92100
concurrent-ruby (~> 1.0)
93101
jekyll (3.9.0)
@@ -103,6 +111,15 @@ GEM
103111
pathutil (~> 0.9)
104112
rouge (>= 1.7, < 4)
105113
safe_yaml (~> 1.0)
114+
jekyll-algolia (1.6.0)
115+
algolia_html_extractor (~> 2.6)
116+
algoliasearch (~> 1.26)
117+
filesize (~> 0.1)
118+
jekyll (>= 3.6, < 5.0)
119+
json (~> 2.0)
120+
nokogiri (~> 1.6)
121+
progressbar (~> 1.9)
122+
verbal_expressions (~> 0.1.5)
106123
jekyll-avatar (0.7.0)
107124
jekyll (>= 3.0, < 5.0)
108125
jekyll-coffeescript (1.1.1)
@@ -198,6 +215,7 @@ GEM
198215
gemoji (~> 3.0)
199216
html-pipeline (~> 2.2)
200217
jekyll (>= 3.0, < 5.0)
218+
json (2.5.1)
201219
kramdown (2.3.0)
202220
rexml
203221
kramdown-parser-gfm (1.1.0)
@@ -212,13 +230,6 @@ GEM
212230
jekyll (>= 3.5, < 5.0)
213231
jekyll-feed (~> 0.9)
214232
jekyll-seo-tag (~> 2.1)
215-
minimal-mistakes-jekyll (4.21.0)
216-
jekyll (>= 3.7, < 5.0)
217-
jekyll-feed (~> 0.1)
218-
jekyll-gist (~> 1.5)
219-
jekyll-include-cache (~> 0.1)
220-
jekyll-paginate (~> 1.1)
221-
jekyll-sitemap (~> 1.3)
222233
minitest (5.14.3)
223234
multipart-post (2.1.1)
224235
nokogiri (1.11.1)
@@ -229,6 +240,7 @@ GEM
229240
sawyer (~> 0.8.0, >= 0.5.3)
230241
pathutil (0.16.2)
231242
forwardable-extended (~> 2.6)
243+
progressbar (1.11.0)
232244
public_suffix (3.1.1)
233245
racc (1.5.2)
234246
rb-fsevent (0.10.4)
@@ -258,23 +270,28 @@ GEM
258270
ethon (>= 0.9.0)
259271
tzinfo (1.2.9)
260272
thread_safe (~> 0.1)
273+
tzinfo-data (1.2021.1)
274+
tzinfo (>= 1.0.0)
261275
unf (0.1.4)
262276
unf_ext
263277
unf_ext (0.0.7.7)
264278
unicode-display_width (1.7.0)
279+
verbal_expressions (0.1.5)
265280
zeitwerk (2.4.2)
266281

267282
PLATFORMS
268283
ruby
269284

270285
DEPENDENCIES
271286
github-pages
272-
jekyll-feed (~> 0.12)
287+
jekyll-algolia
288+
jekyll-feed
289+
jekyll-gist
273290
jekyll-include-cache
274-
minimal-mistakes-jekyll
275-
tzinfo (~> 1.2)
291+
jekyll-paginate
292+
jekyll-sitemap
293+
jemoji
276294
tzinfo-data
277-
wdm (~> 0.1.1)
278295

279296
BUNDLED WITH
280297
2.1.2

_config.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@
44
# JEKYLL_GITHUB_TOKEN=********** jekyll serve
55
repository: sudeshjethoe/sudeshjethoe.github.io
66

7-
87
title: Dynamic Automation
98
109
description: >- # this means to ignore newlines until "baseurl:"
1110
Write an awesome description for your new site here. You can edit this
1211
line in _config.yml. It will appear in your document head meta (for
1312
Google search results) and in your feed.xml site description.
14-
baseurl: "/" # the subpath of your site, e.g. /blog
15-
url: "http://dynamicautomation.nl" # the base hostname & protocol for your site, e.g. http://example.com
1613
1714
twitter_username: sudeshjethoe
1815
github_username: sudeshjethoe
@@ -34,12 +31,12 @@ include:
3431
- _pages
3532

3633
plugins:
37-
- jekyll-feed
38-
- jekyll-include-cache
39-
- jekyll-sitemap
4034
- jekyll-paginate
35+
- jekyll-sitemap
4136
- jekyll-gist
42-
- jekyll-remote-theme
37+
- jekyll-feed
38+
- jekyll-include-cache
39+
- jemoji
4340

4441
author:
4542
name: "Sudesh Jethoe"
@@ -56,6 +53,15 @@ author:
5653
icon: "fab fa-linkedin"
5754
url: "https://www.linkedin.com/in/sudeshjethoe"
5855

56+
footer:
57+
links:
58+
- label: "Twitter"
59+
icon: "fab fa-fw fa-twitter-square"
60+
url: "https://twitter.com/sudeshjethoe"
61+
- label: "GitHub"
62+
icon: "fab fa-fw fa-github"
63+
url: "https://github.com/sudeshjethoe"
64+
5965
defaults:
6066
# _posts
6167
- scope:
@@ -82,4 +88,3 @@ category_archive:
8288
tag_archive:
8389
type: liquid
8490
path: /tags/
85-

_pages/category-archive.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "Posts by Category"
3+
layout: categories
4+
permalink: /categories/
5+
author_profile: true
6+
---

_pages/tag-archive.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "Posts by Tag"
3+
permalink: /tags/
4+
layout: tags
5+
author_profile: true
6+
---

_pages/year-archive.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "Posts by Year"
3+
permalink: /posts/
4+
layout: posts
5+
author_profile: true
6+
---
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: post
3+
title: Access Unix NFS shares from Windows XP
4+
date: '2012-01-06 12:22:34 +0100'
5+
categories:
6+
- Uncategorized
7+
- linux
8+
tags:
9+
- linux
10+
- nfs
11+
- windows xp
12+
---
13+
<p>Howto access Unix NFS shares from Windows XP:<br />
14+
1. Download and install: <a href="http://www.microsoft.com/download/en/details.aspx?id=274">Windows Services for UNIX</a> (latest at time of writing 3.5)<br />
15+
2. Create a directory for the passwd and group file of the Unix server you want to access<br />
16+
(Windows needs to map local user to these accounts, else it won't work)<br />
17+
mkdir C:\etc<br />
18+
copy the /etc/passwd and /etc/group files from the Unix machine to C:\etc\<br />
19+
3. Configure the mapping service to use these files for resolving user names, by running the following command:</p>
20+
<blockquote><p>C:\>mapadmin adddomain -d \\MY_COMPUTER -f C:\etc</p></blockquote>
21+
<p>make sure to fill in the LOCAL computer name in at MY_COMPUTER<br />
22+
You can check if it worked by typing:</p>
23+
<blockquote><p>C:\>mapadmin listdomainmaps<br />
24+
Windows domain to UNIX domain Mappings:<br />
25+
Windows Domain UNIX Domain<br />
26+
-------------------------------------------------------<br />
27+
\\MY_COMPUTER PCNFS (C:\etc\passwd)</p></blockquote>
28+
<p>You've just created a mapping from your windows host to your Unix host PCNFS!<br />
29+
4. Now you have to start the service, in <a href="http://support.microsoft.com/kb/324073">M$ documentation</a> it says 'mapadmin start', this doesn't work, you need to do the following:</p>
30+
<blockquote><p>run services.msc<br />
31+
select 'User Name Mapping service' and enable this and START it</p></blockquote>
32+
<p>5. Now it's possible to map local (Windows) users to Unix users (and groups) in the etc/passwd file by running:</p>
33+
<blockquote><p>C:\>mapadmin add -wu MY_COMPUTER\win_user -uu PCNFS\unix_user<br />
34+
and map groups:<br />
35+
C:\>mapadmin add -wg \\MY_COMPUTER\Users -ug PCNFS\users<br />
36+
Add guest accounts for squash:<br />
37+
C:\>mapadmin add -wu MY_COMPUTER\Guest -uu PCNFS\nobody<br />
38+
C:\>mapadmin add -wg \\MY_COMPUTER\Guests -ug PCNFS\nogroup</p></blockquote>
39+
<p>6. If you wan't anonymous access you need to map Guest to the unix user nobody. (this remains to be tested however)</p>
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
layout: post
3+
status: publish
4+
published: true
5+
title: Configuring NFS on Fonera 2.0n
6+
author:
7+
display_name: Sudesh Jethoe
8+
login: sudeshjethoe
9+
10+
url: ''
11+
author_login: sudeshjethoe
12+
author_email: [email protected]
13+
wordpress_id: 11
14+
wordpress_url: http://sudeshjethoe.wordpress.com/?p=11
15+
date: '2012-01-06 02:08:11 +0100'
16+
date_gmt: '2012-01-06 02:08:11 +0100'
17+
categories:
18+
- Uncategorized
19+
- linux
20+
tags:
21+
- linux
22+
- fon
23+
- nfs
24+
- nfs3
25+
comments: []
26+
---
27+
<p>1. Install nfs: 'opkg install unfs3'<br />
28+
2:Edit hosts.deny:<br />
29+
echo 'ALL: ALL' > /etc/hosts.deny<br />
30+
3:Edit hosts.allow:<br />
31+
echo '192.168.1.' > /etc/hosts.allow<br />
32+
4:Edit /etc/exports (with vi and enter):<br />
33+
/tmp/mounts/Disc-A1/music (ro,async,insecure,root_squash,proto=udp,anonuid=65534,anongid=65534)<br />
34+
/tmp/mounts/Disc-A1/videos (ro,async,insecure,root_squash,proto=udp,anonuid=65534,anongid=65534)<br />
35+
/tmp/mounts/Disc-A1/pictures (ro,async,insecure,root_squash,proto=udp,anonuid=65534,anongid=65534)<br />
36+
/tmp/mounts/Disc-A1/my_home (rw,sync,secure,root_squash,proto=tcp,anonuid=65534,anongid=65534)</p>
37+
<p>5: Start service:<br />
38+
/etc/init.d/portmap start &amp;&amp; sleep 3 &amp;&amp; /etc/init.d/unfs3 start</p>
39+
<p>6: Enable on reboot:<br />
40+
/etc/init.d/portmap enable &amp;&amp; /etc/init.d/unfs3 enable</p>
41+
<p>Explain:<br />
42+
allow > deny<br />
43+
ro: read only<br />
44+
async: unsafe, no file locking but faster<br />
45+
insecure: allow ports over 1024 to connect<br />
46+
root_squash: remote root is converted to anonuid+anongid<br />
47+
anonuid: server uid of anonymous user<br />
48+
anongid: server gid of anonymous user</p>
49+
<p>uid's and gid's are mapped one to one (possible security risk)</p>
50+
<p>*http://wiki.fon.com/wiki/F2_NFS</p>
51+
<p>Now for pure awesomeness enable automount* on your client:<br />
52+
Easy as: 'yum install autofs'<br />
53+
And add the following too</p>
54+
<blockquote><p>/etc/auto.misc >>:<br />
55+
# local entries<br />
56+
fon-svjethoe -fstype=nfs,rw,tcp,rsize=32768,wsize=32768 fonera:/tmp/mounts/Disc-A1/svjethoe<br />
57+
fon-music -fstype=nfs,rsize=32768,wsize=32768 :/tmp/mounts/Disc-A1/music<br />
58+
fon-pictures -fstype=nfs,rsize=32768,wsize=32768 :/tmp/mounts/Disc-A1/pictures<br />
59+
fon-videos -fstype=nfs,rsize=32768,wsize=32768 :/tmp/mounts/Disc-A1/videos</p>
60+
<p># vpn entries<br />
61+
fon-svjethoe -fstype=nfs,rw,tcp,rsize=32768,wsize=32768 10.8.0.1:/tmp/mounts/Disc-A1/svjethoe<br />
62+
fon-music -fstype=nfs,rsize=32768,wsize=32768 :/tmp/mounts/Disc-A1/music<br />
63+
fon-pictures -fstype=nfs,rsize=32768,wsize=32768 :/tmp/mounts/Disc-A1/pictures<br />
64+
fon-videos -fstype=nfs,rsize=32768,wsize=32768 :/tmp/mounts/Disc-A1/videos</p></blockquote>
65+
<p>Now the folders will be automatically mounted when accessed (defaults under /misc ->)<br />
66+
rsize= transfer block size for reads in bytes (=32bytes=max=nfs4 default)<br />
67+
wsize= transfer block size for writes in bytes ( "" """" "")<br />
68+
default rsize+wsize in nfs3= 8 bytes</p>
69+
<p>Just run 'cd /misc/fon-music' and you're there!</p>
70+
<p>http://fedoraproject.org/wiki/Administration_Guide_Draft/NFS</p>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
layout: post
3+
status: publish
4+
published: true
5+
title: Installing an SSD (Fedora 16)
6+
author:
7+
display_name: Sudesh Jethoe
8+
login: sudeshjethoe
9+
10+
url: ''
11+
author_login: sudeshjethoe
12+
author_email: [email protected]
13+
wordpress_id: 24
14+
wordpress_url: http://sudeshjethoe.wordpress.com/?p=24
15+
date: '2015-03-08 16:53:57 +0100'
16+
date_gmt: '2015-03-08 16:53:57 +0100'
17+
categories:
18+
- Uncategorized
19+
- linux
20+
tags:
21+
- linux
22+
- fedora
23+
- ssd
24+
comments: []
25+
---
26+
<p>I just bought an SSD drive and I want to make sure it works best as it can.<br />
27+
I migrate my old / (ext4) partition to this drive.<br />
28+
For best performance I decide to switch to a GPT-based disk layout and use btrfs for the filesystem.</p>
29+
<p>Steps (mostly from <a href="https://wiki.archlinux.org/index.php/Solid_State_Drives" target="_new">ArchLinux SSD tutorial</a></p>
30+
<p>1: Physically install SSD,<br />
31+
2: Boot from livecd/usb (systemrescuecd) and create GPT partition table and partitions, using gdisk (g fdisk).<br />
32+
Create at least two partitions!<br />
33+
..BIOS_boot partition code: EF02 size: 1 MiB<br />
34+
..Linux/Windows data, root partition code: 0700 size: any<br />
35+
!! gdisk automatically aligns partitions on 2048-sector boundaries for best performance.</p>
36+
<p>3: Now format root partition as btrfs*:</p>
37+
<blockquote><p>mkfs.btrfs -L MyLinuxOS /dev/sda2</p></blockquote>
38+
<p>4: Copy data from old partition to new partition using rsync with -a(rchive) option to make sure all rights are preserved.</p>
39+
<p>5: Mount and chroot to new partition and install grub2:</p>
40+
<blockquote><p>mount /dev/sda2 /mnt<br />
41+
mount -o bind /dev /mnt/dev<br />
42+
mount -t proc /proc /mnt/proc<br />
43+
mount -t sysfs /sys /mnt/sys<br />
44+
chroot /mnt<br />
45+
## possibly fedora specific:<br />
46+
grub2-mkconfig -o /boot/grub2/grub.cfg<br />
47+
grub2-install /dev/sda</p></blockquote>
48+
<p>6: Edit fstab to make the most of the SSD:</p>
49+
<blockquote><p>LABEL=Fedora / btrfs defaults,noatime,discard,ssd 0 0</p></blockquote>
50+
<p>This post contains information from the following sources:<br />
51+
https://wiki.archlinux.org/index.php/Solid_State_Drives</p>
52+
<p>http://tincman.wordpress.com/2011/01/20/installing-arch-linux-onto-a-gpt-partitioned-btrfs-root-ssd-on-a-legacy-bios-system/</p>
53+
<p>http://fedoraproject.org/wiki/Grub2</p>

0 commit comments

Comments
 (0)