1
0
Fork 0

Compare commits

..

No commits in common. "40d0cd49f1634d63cabbe6400eafa105cee54097" and "08a0e4bb328a6117156f874a41a135c579c9dffa" have entirely different histories.

15 changed files with 862 additions and 106 deletions

4
.gitmodules vendored Normal file
View File

@ -0,0 +1,4 @@
[submodule "themes/ds"]
path = themes/ds
url = ../hugo-theme-digital-studium
branch = main

View File

@ -1,23 +0,0 @@
baseURL: https://digitalstudium.com
theme: ds
languages:
en:
language_name: English
title: Digital Studium
description: Blog about Linux, DevOps and cloud technologies
author: Konstantin Shutkin
github: digitalstudium
ru:
language_name: Русский
title: Digital Studium
description: Блог о Linux, DevOps и облачных технологиях
author: Константин Шуткин
github: digitalstudium
youtube: digitalstudium
telegram: digitalstudium
schema:
type: TechArticle
copyright: http://creativecommons.org/licenses/by/4.0/

View File

@ -0,0 +1,36 @@
title: Digital Studium
baseURL: https://digitalstudium.com
theme: ds
defaultContentLanguageInSubdir: true
languages:
en:
contentDir: content/en
languageName: English
params:
author: Konstantin Shutkin
description: Blog about Linux, DevOps and cloud technologies
github: digitalstudium
ru:
contentDir: content/ru
languageName: Русский
params:
author: Константин Шуткин
description: Блог о Linux, DevOps и облачных технологиях
github: digitalstudium
youtube: digitalstudium
telegram: digitalstudium
params:
authorPage: /about-author
logo: /static/images/logo.svg
schemaType: TechArticle
copyright: http://creativecommons.org/licenses/by/4.0/
includeJS: ['copy.js']
# deployment:
# targets:
# - name: yandex cloud
# URL: s3://digitalstudium.com?region=ru-central1&endpoint=storage.yandexcloud.net
enableRobotsTXT: true

View File

@ -0,0 +1,5 @@
module:
mounts:
- source: "static"
target: "static"
excludeFiles: "admin"

View File

@ -2,7 +2,7 @@
title: About author title: About author
category: / category: /
filename: about-author filename: about-author
image: /images/kostya.jpg featured_image: /images/kostya.jpg
date: 2023-02-18 date: 2023-02-18
--- ---
My name is Konstantin Shutkin, I am from Moscow, Russia and I am a DevOps engineer. Since 2016, I have worked in this position in companies such as Severstal, Sberbank, Nvidia. My main subject of research and work is Linux, Docker, Kubernetes, Python programming and more. I share my knowledge on this blog. My name is Konstantin Shutkin, I am from Moscow, Russia and I am a DevOps engineer. Since 2016, I have worked in this position in companies such as Severstal, Sberbank, Nvidia. My main subject of research and work is Linux, Docker, Kubernetes, Python programming and more. I share my knowledge on this blog.

View File

@ -6,11 +6,11 @@ date: 2022-05-14
--- ---
This article describes how to upgrade Linux kernel on Ubuntu operating system via command line interface. This article describes how to upgrade Linux kernel on Ubuntu operating system via command line interface.
<!--more--> <!--more-->
```
### First method ### First method
The first method is very simple. We need to enter only one command in the terminal: The first method is very simple. We need to enter only one command in the terminal:
```bash ```bash
sudo apt update && sudo apt -y upgrade sudo apt update && sudo apt -y upgrade
```
The `sudo apt update` command will update the repository cache, and the `sudo apt -y upgrade` command will install new versions of all installed programs, including the linux kernel. The advantage of this method is that the latest version of the linux kernel, <i>officially supported</i> by Ubuntu OS, will be installed. The disadvantage of this method is that the <i>officially supported</i> kernel is usually not the newest. Sometimes it happens that it is necessary to install the latest version of the linux kernel. Real world example: your new laptop may have a CPU which is only supported in linux kernel version 5.12, while the officially supported version is older. And here the second method comes to the rescue. The `sudo apt update` command will update the repository cache, and the `sudo apt -y upgrade` command will install new versions of all installed programs, including the linux kernel. The advantage of this method is that the latest version of the linux kernel, <i>officially supported</i> by Ubuntu OS, will be installed. The disadvantage of this method is that the <i>officially supported</i> kernel is usually not the newest. Sometimes it happens that it is necessary to install the latest version of the linux kernel. Real world example: your new laptop may have a CPU which is only supported in linux kernel version 5.12, while the officially supported version is older. And here the second method comes to the rescue.
### Second method ### Second method
The first step is to go to https://kernel.ubuntu.com/~kernel-ppa/mainline/. On this site, you need to select the folder with the latest version of the linux kernel (at the very bottom of the page). Note that it is recommended to select the version without the "rc" suffix. The "rc" suffix means "release candidate", which in turn means that the given kernel version is not stable. On the page that opens, select the folder with the architecture of your processor. The architecture can be found using the `uname -p` command. If the output of this command is "x86_64", then select the amd64 folder. On the opened page there will be links to .deb files. We need to download 4 of them: The first step is to go to https://kernel.ubuntu.com/~kernel-ppa/mainline/. On this site, you need to select the folder with the latest version of the linux kernel (at the very bottom of the page). Note that it is recommended to select the version without the "rc" suffix. The "rc" suffix means "release candidate", which in turn means that the given kernel version is not stable. On the page that opens, select the folder with the architecture of your processor. The architecture can be found using the `uname -p` command. If the output of this command is "x86_64", then select the amd64 folder. On the opened page there will be links to .deb files. We need to download 4 of them:

View File

@ -2,9 +2,10 @@
title: Об авторе title: Об авторе
category: / category: /
filename: about-author filename: about-author
image: /images/kostya.jpg featured_image: /images/kostya.jpg
date: 2023-02-18 date: 2023-02-18
--- ---
{{< figure src="/images/kostya.jpg" width="100px" class="floatleft alignleft" >}}
Меня зовут Константин Шуткин, я живу в городе Москва и я DevOps-инженер. С 2016 года я работал на этой должности в таких компаниях, как Северсталь, Сбербанк, Nvidia. Мой основной предмет исследований и работы это Linux, Docker, Kubernetes, программирование на Python и т. д., и я делюсь своими знаниями в этих областях на этом сайте и на ютуб канале. Меня зовут Константин Шуткин, я живу в городе Москва и я DevOps-инженер. С 2016 года я работал на этой должности в таких компаниях, как Северсталь, Сбербанк, Nvidia. Мой основной предмет исследований и работы это Linux, Docker, Kubernetes, программирование на Python и т. д., и я делюсь своими знаниями в этих областях на этом сайте и на ютуб канале.
Мой youtube канал: https://youtube.com/DigitalStudium Мой youtube канал: https://youtube.com/DigitalStudium

2
deploy
View File

@ -3,6 +3,6 @@ USER=root
HOST=digitalstudium.com HOST=digitalstudium.com
DIR=/srv/$HOST # the directory where your web site files should go DIR=/srv/$HOST # the directory where your web site files should go
crater -p && rsync -avz --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public folder hugo --minify && rsync -avz --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public folder
exit 0 exit 0

10
i18n/en.yaml Normal file
View File

@ -0,0 +1,10 @@
bash-lifehacks:
other: BASH lifehacks
nginx-lifehacks:
other: Nginx lifehacks
linux-lifehacks:
other: Linux lifehacks
ubuntu-lifehacks:
other: Ubuntu lifehacks
python-lifehacks:
other: Python lifehacks

10
i18n/ru.yaml Normal file
View File

@ -0,0 +1,10 @@
bash-lifehacks:
other: BASH лайфхаки
nginx-lifehacks:
other: Nginx лайфхаки
linux-lifehacks:
other: Linux лайфхаки
ubuntu-lifehacks:
other: Ubuntu лайфхаки
python-lifehacks:
other: Python лайфхаки

55
static/admin/config.yml Normal file
View File

@ -0,0 +1,55 @@
backend:
name: git-gateway
local_backend: true
media_folder: "static/images" # Media files will be stored in the repo under static/images
public_folder: "/images" # The src attribute for uploaded media will begin with /images
i18n:
structure: multiple_folders
locales: [en, ru]
collections:
- name: posts
label: Posts
label_singular: Post
folder: content
path: '{{category}}/{{slug}}'
slug: '{{filename}}{{extension}}'
create: true
i18n: true
view_groups:
- label: Year
field: date
pattern: \d{4}
- label: Category
field: category
fields:
- label: Title
name: title
widget: string
i18n: true
- label: "Category"
name: "category"
widget: "select"
options: ["/", "linux-lifehacks", "nginx-lifehacks", "python-lifehacks", "ubuntu-lifehacks", "bash-lifehacks"]
i18n: duplicate
- label: Filename
name: filename
widget: string
i18n: duplicate
# - label: "Featured Image"
# name: "featured_image"
# widget: "image"
# media_folder: "/assets/images"
# public_folder: "/images"
# i18n: duplicate
- label: Date
name: date
widget: datetime
i18n: duplicate
- label: Body
name: body
widget: markdown
i18n: true

13
static/admin/index.html Normal file
View File

@ -0,0 +1,13 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<title>Content Manager</title>
</head>
<body>
<!-- Include the script that builds the page and powers Decap CMS -->
<script src="netlify-cms.js"></script>
</body>
</html>

723
static/admin/netlify-cms.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,79 +0,0 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="851.000000pt" height="146.000000pt" viewBox="0 0 851.000000 146.000000"
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,146.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M1670 730 c0 -480 3 -730 10 -730 7 0 10 250 10 730 0 480 -3 730
-10 730 -7 0 -10 -250 -10 -730z"/>
<path d="M7055 1178 c-69 -37 -56 -129 19 -144 94 -17 148 98 66 141 -34 18
-57 19 -85 3z"/>
<path d="M2820 1153 c-41 -52 -3 -123 65 -123 47 0 85 33 85 76 0 49 -29 74
-84 74 -37 0 -48 -5 -66 -27z"/>
<path d="M3582 1157 c-71 -75 51 -175 123 -102 53 52 16 125 -61 125 -29 0
-47 -6 -62 -23z"/>
<path d="M42 688 l3 -483 585 0 585 0 0 480 0 480 -588 3 -587 2 2 -482z m191
328 c27 -15 47 -32 45 -37 -2 -6 -40 -30 -86 -55 -69 -38 -82 -42 -82 -27 0
12 20 29 55 48 30 16 55 32 55 36 0 4 -25 19 -55 35 -30 16 -55 34 -55 40 0
22 14 23 44 5 17 -10 53 -30 79 -45z m320 -110 c3 -8 3 -17 0 -20 -8 -8 -228
-8 -236 0 -3 3 -3 12 0 20 8 20 228 20 236 0z"/>
<path d="M4662 878 c3 -254 4 -275 24 -308 27 -47 57 -61 129 -58 l60 3 -3 35
c-5 60 -11 78 -32 85 -19 6 -20 15 -20 261 l0 254 -81 0 -80 0 3 -272z"/>
<path d="M6760 1050 c0 -55 -2 -100 -5 -100 -3 0 -17 7 -30 16 -30 20 -104 20
-141 1 -66 -34 -105 -104 -112 -197 -7 -103 25 -185 91 -234 42 -31 130 -29
175 3 l33 23 6 -21 c5 -19 13 -21 69 -21 l64 0 0 315 0 315 -75 0 -75 0 0
-100z m-22 -206 c19 -13 22 -24 22 -91 0 -86 -14 -113 -61 -113 -35 0 -56 21
-65 66 -20 109 37 185 104 138z"/>
<path d="M5258 1110 c-141 -42 -191 -198 -94 -292 19 -18 74 -50 124 -71 50
-21 93 -45 96 -53 3 -8 -4 -24 -15 -35 -18 -18 -29 -20 -66 -15 -25 3 -63 16
-85 28 l-40 23 -39 -45 c-21 -25 -38 -52 -36 -60 1 -8 29 -28 61 -45 54 -27
69 -30 151 -30 84 0 95 2 140 30 59 36 87 87 87 154 0 91 -34 128 -171 183
-46 18 -89 41 -94 50 -28 44 66 65 138 31 l36 -17 34 39 c42 48 42 58 9 84
-53 42 -168 62 -236 41z"/>
<path d="M2248 1105 c-5 -5 -8 -138 -8 -298 l0 -289 148 4 c169 4 202 15 266
90 46 54 60 102 61 208 0 73 -4 93 -28 143 -31 63 -84 107 -152 126 -49 14
-277 26 -287 16z m238 -141 c51 -24 69 -65 69 -155 -1 -105 -34 -152 -119
-166 l-36 -6 0 172 0 171 26 0 c14 0 41 -7 60 -16z"/>
<path d="M3875 1078 c-2 -7 -6 -34 -10 -60 -6 -47 -7 -48 -41 -48 l-34 0 0
-60 c0 -60 0 -60 29 -60 l29 0 3 -118 c4 -109 6 -122 31 -159 18 -28 39 -45
64 -53 36 -12 157 -10 170 2 3 4 2 29 -2 55 -9 45 -11 48 -44 53 -59 10 -60
13 -60 121 l0 99 50 0 50 0 0 60 0 60 -50 0 -50 0 0 60 0 60 -65 0 c-44 0 -67
-4 -70 -12z"/>
<path d="M5649 1088 c0 -2 -6 -28 -12 -58 -11 -52 -14 -55 -44 -58 l-33 -3 0
-60 c0 -59 0 -59 29 -59 l29 0 4 -112 c4 -135 20 -179 79 -208 39 -20 100 -25
159 -14 31 7 32 7 25 52 -10 65 -13 69 -44 64 -49 -7 -61 17 -61 124 l0 94 50
0 50 0 0 59 0 60 -47 3 -48 3 -3 58 -3 57 -64 0 c-36 0 -65 -1 -66 -2z"/>
<path d="M8020 974 c-19 -8 -45 -24 -56 -35 l-22 -21 -7 32 -7 31 -61 -3 -62
-3 0 -225 0 -225 78 -3 77 -3 0 155 c0 143 1 156 19 166 31 16 69 12 81 -9 5
-11 10 -84 10 -165 l0 -146 75 0 75 0 0 148 c0 134 2 151 19 166 12 11 31 16
53 14 l33 -3 5 -160 5 -160 78 -3 77 -3 0 168 c-1 220 -18 270 -101 294 -51
16 -103 4 -144 -32 l-35 -31 -29 30 c-43 43 -101 52 -161 26z"/>
<path d="M3150 958 c-91 -47 -118 -146 -61 -225 l28 -39 -23 -28 c-29 -33 -31
-75 -4 -108 l19 -25 -29 -28 c-42 -41 -42 -93 1 -129 41 -34 68 -41 169 -41
146 0 237 55 247 149 10 88 -42 126 -176 126 -91 0 -134 12 -129 36 2 13 17
17 68 18 111 3 172 54 172 145 0 50 1 51 29 51 28 0 29 1 29 55 l0 55 -58 0
c-33 0 -99 3 -148 6 -80 5 -93 3 -134 -18z m134 -94 c25 -25 21 -81 -8 -99
-32 -21 -62 -6 -71 35 -13 59 41 103 79 64z m35 -370 c36 -7 43 -37 12 -54
-25 -13 -107 -13 -132 0 -19 10 -26 40 -12 53 8 9 90 9 132 1z"/>
<path d="M4252 961 c-76 -26 -80 -32 -54 -87 17 -34 27 -45 40 -41 101 29 111
31 136 19 42 -19 32 -39 -21 -47 -63 -9 -135 -41 -165 -72 -19 -21 -23 -35
-23 -90 0 -62 1 -66 39 -100 36 -33 41 -35 95 -31 39 3 68 11 90 27 l32 23 6
-21 c5 -19 13 -21 70 -21 l65 0 -4 168 c-4 193 -15 230 -84 269 -50 29 -146
30 -222 4z m148 -275 c0 -40 -19 -59 -57 -54 -22 2 -28 8 -28 28 0 19 9 29 35
42 47 24 50 23 50 -16z"/>
<path d="M2810 745 l0 -225 80 0 80 0 0 225 0 225 -80 0 -80 0 0 -225z"/>
<path d="M3570 745 l0 -225 75 0 75 0 0 225 0 225 -75 0 -75 0 0 -225z"/>
<path d="M5962 793 c4 -189 9 -214 58 -258 17 -16 36 -20 85 -20 56 0 67 4
103 32 l40 32 6 -29 c5 -29 7 -30 66 -30 l60 0 0 225 0 225 -75 0 -75 0 0
-144 c0 -115 -3 -148 -15 -160 -22 -22 -52 -28 -75 -16 -19 10 -20 20 -20 165
l0 155 -81 0 -81 0 4 -177z"/>
<path d="M7020 745 l0 -225 75 0 75 0 0 225 0 225 -75 0 -75 0 0 -225z"/>
<path d="M7272 798 c3 -130 8 -182 21 -210 38 -89 162 -105 239 -31 l26 25 7
-31 c7 -31 7 -31 71 -31 l64 0 0 225 0 225 -80 0 -80 0 0 -149 c0 -144 -1
-151 -22 -165 -29 -20 -52 -20 -72 0 -13 13 -16 42 -16 165 l0 149 -81 0 -81
0 4 -172z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.8 KiB

1
themes/ds Submodule

@ -0,0 +1 @@
Subproject commit da1f0617e4ba091d77f4f45c1f0203e0ef71009d