Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rootlabs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Root
rootlabs
Commits
f6ac9a7f
Commit
f6ac9a7f
authored
2 years ago
by
Odair M.
Browse files
Options
Downloads
Patches
Plain Diff
fix(repo): fix index
parent
9e1ae1b9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/index.rst
+1
-1
1 addition, 1 deletion
source/index.rst
source/pages/baremetals.rst
+45
-8
45 additions, 8 deletions
source/pages/baremetals.rst
with
46 additions
and
9 deletions
source/index.rst
+
1
−
1
View file @
f6ac9a7f
...
@@ -11,7 +11,7 @@ Ambiente de testes e experimentação de sysadmin.
...
@@ -11,7 +11,7 @@ Ambiente de testes e experimentação de sysadmin.
:maxdepth: 1
:maxdepth: 1
:glob:
:glob:
pages/
*
pages/
baremetals.rst
Páginas
Páginas
...
...
This diff is collapsed.
Click to expand it.
source/pages/baremetals.rst
+
45
−
8
View file @
f6ac9a7f
...
@@ -884,7 +884,7 @@ Variáveis de ambientes para os pacotes:
...
@@ -884,7 +884,7 @@ Variáveis de ambientes para os pacotes:
.. code:: shell
.. code:: shell
export pkg="systemd,systemd-container,systemd-timesyncd,systemd-cron,mdadm,lvm2,grub2,linux-image-amd64,linux-headers-amd64,ssh,rsync,vim,htop,curl,wget,less,lm-sensors,iproute2,gdisk,fdisk,dnsutils,iputils-ping,zsh,locales,locales-all,gcc,make,unzip,tar,man-db,keyboard-configuration,console-setup,git,python3,debootstrap,smartmontools"
export pkg="systemd,systemd-container,systemd-timesyncd,systemd-cron,mdadm,lvm2,grub2,linux-image-amd64,linux-headers-amd64,ssh,rsync,vim,htop,curl,wget,less,lm-sensors,iproute2,gdisk,fdisk,dnsutils,iputils-ping,zsh,locales,locales-all,gcc,make,unzip,tar,man-db,keyboard-configuration,console-setup,git,python3,debootstrap,smartmontools
,ipmitool
"
export pkg_complement="${pkg},cmake,forensics-all,build-essential"
export pkg_complement="${pkg},cmake,forensics-all,build-essential"
...
@@ -1013,6 +1013,10 @@ segundo serve para resolver nomes.
...
@@ -1013,6 +1013,10 @@ segundo serve para resolver nomes.
Edite o arquivo ``${generic_mountpoint}/etc/systemd/network/20-cable.network`` e adicione o seguinte
Edite o arquivo ``${generic_mountpoint}/etc/systemd/network/20-cable.network`` e adicione o seguinte
conteúdo:
conteúdo:
.. code:: shell
vim ${generic_mountpoint}/etc/systemd/network/20-cable.network
.. code:: ini
.. code:: ini
[Match]
[Match]
...
@@ -1037,15 +1041,21 @@ resolved.conf
...
@@ -1037,15 +1041,21 @@ resolved.conf
Edite o arquivo ``${generic_mountpoint}/etc/systemd/resolved.conf`` e adicione o seguinte conteúdo:
Edite o arquivo ``${generic_mountpoint}/etc/systemd/resolved.conf`` e adicione o seguinte conteúdo:
.. code:: shell
vim ${generic_mountpoint}/etc/systemd/resolved.conf
.. code:: ini
.. code:: ini
[Resolve]
[Resolve]
DNS=200.17.202.3 2801:82:80ff:8001::2
DNS=200.17.202.3 2801:82:80ff:8001::2
FallbackDNS=200.236.31.1 2801:82:80ff:8000::2
FallbackDNS=200.236.31.1 2801:82:80ff:8000::2
Domains=c3sl.ufpr.br inf.ufpr.br
Remora o arquivo ``${generic_mountpoint}/etc/resolv.conf`` e subtitua por um link para
Remora o arquivo ``${generic_mountpoint}/etc/resolv.conf`` e subtitua por um link para
``/run/systemd/resolve/stub-resolv.conf``
``/run/systemd/resolve/stub-resolv.conf``
.. code:: shell
.. code:: shell
cd ${generic_mountpoint}/etc
cd ${generic_mountpoint}/etc
...
@@ -1056,7 +1066,7 @@ Faça o enable do serviço:
...
@@ -1056,7 +1066,7 @@ Faça o enable do serviço:
.. code:: shell
.. code:: shell
systemd-nspawn -q -D ${generic_mountpoint} systemctl enable systemd-
network
d
systemd-nspawn -q -D ${generic_mountpoint} systemctl enable systemd-
resolve
d
Passo 4: SSH
Passo 4: SSH
------------
------------
...
@@ -1102,6 +1112,10 @@ Para sincronizar o relógio será utilizado o *systemd-timesyncd*, e a configura
...
@@ -1102,6 +1112,10 @@ Para sincronizar o relógio será utilizado o *systemd-timesyncd*, e a configura
definir o servidor de *NTP*. Edite o arquivo ``${generic_mountpoint}/etc/systemd/timesyncd.conf`` e
definir o servidor de *NTP*. Edite o arquivo ``${generic_mountpoint}/etc/systemd/timesyncd.conf`` e
coloque o conteúdo:
coloque o conteúdo:
.. code:: shell
vim ${generic_mountpoint}/etc/systemd/timesyncd.conf
.. code:: ini
.. code:: ini
[Time]
[Time]
...
@@ -1157,6 +1171,9 @@ Configure o ``${generic_mountpoint}/etc/fstab``
...
@@ -1157,6 +1171,9 @@ Configure o ``${generic_mountpoint}/etc/fstab``
.. code:: shell
.. code:: shell
vim ${generic_mountpoint}/etc/fstab
.. code:: shell
/dev/mapper/rootlabsvg-generic / ext4 rw,defaults 0 1
/dev/mapper/rootlabsvg-generic / ext4 rw,defaults 0 1
UUID=f8e0f46a-e650-422e-a4ce-b286cd8010c9 /boot_alt ext4 defaults 0 0
UUID=f8e0f46a-e650-422e-a4ce-b286cd8010c9 /boot_alt ext4 defaults 0 0
...
@@ -1189,8 +1206,8 @@ O código abaixo foi testado e é funcional no Debian 11:
...
@@ -1189,8 +1206,8 @@ O código abaixo foi testado e é funcional no Debian 11:
systemd-nspawn -q -D ${generic_mountpoint} systemctl enable getty@ttyS1
systemd-nspawn -q -D ${generic_mountpoint} systemctl enable getty@ttyS1
systemd-nspawn -q -D ${generic_mountpoint} systemctl enable serial-getty@ttyS0 serial-getty@ttyS1
systemd-nspawn -q -D ${generic_mountpoint} systemctl enable serial-getty@ttyS0 serial-getty@ttyS1
..
tip
::
..
warning
::
getty@ttyS0:
Atenção!
Não ative o getty@ttyS0, pois o console fica inutilizável em sessões do IPMI.
Não ative o getty@ttyS0, pois o console fica inutilizável em sessões do IPMI.
...
@@ -1204,7 +1221,11 @@ defini parâmetros para que:
...
@@ -1204,7 +1221,11 @@ defini parâmetros para que:
* O ``INIT`` aponte para o *systemd*.
* O ``INIT`` aponte para o *systemd*.
* Configuração de porta serial esteja correta
* Configuração de porta serial esteja correta
Edite o arquivo ``/etc/default/grub`` e altere linha ``GRUB_CMDLINE_LINUX_DEFAULT`` para:
Edite o arquivo ``${generic_mountpoint}/etc/default/grub`` e altere linha ``GRUB_CMDLINE_LINUX_DEFAULT`` para:
.. code:: shell
vim ${generic_mountpoint}/etc/default/grub
.. code:: cfg
.. code:: cfg
...
@@ -1312,6 +1333,10 @@ vimrc
...
@@ -1312,6 +1333,10 @@ vimrc
Edite o arquivo ``${generic_mountpoint}/etc/vim/vimrc.local`` e adicione o conteúdo abaixo:
Edite o arquivo ``${generic_mountpoint}/etc/vim/vimrc.local`` e adicione o conteúdo abaixo:
.. code:: shell
vim ${generic_mountpoint}/etc/vim/vimrc.local
.. code:: vim
.. code:: vim
syntax on
syntax on
...
@@ -1334,6 +1359,10 @@ bashrc
...
@@ -1334,6 +1359,10 @@ bashrc
Crie o arquivo ``${generic_mountpoint}/etc/profile.d/bash.sh`` e adicione o conteúdo abaixo:
Crie o arquivo ``${generic_mountpoint}/etc/profile.d/bash.sh`` e adicione o conteúdo abaixo:
.. code:: shell
vim ${generic_mountpoint}/etc/profile.d/bash.sh
.. code:: bash
.. code:: bash
...
@@ -1378,17 +1407,21 @@ Crie o arquivo ``${generic_mountpoint}/etc/profile.d/bash.sh`` e adicione o cont
...
@@ -1378,17 +1407,21 @@ Crie o arquivo ``${generic_mountpoint}/etc/profile.d/bash.sh`` e adicione o cont
PS1='[\u@\h \W]\$ '
PS1='[\u@\h \W]\$ '
.. note::
Mude a permissão para execução:
Permissão de execução:
O arquivo deve ter permissão de execução então execute ``chmod +x ${generic_mountpoint}/etc/profile.d/bash.sh``
.. code:: shell
chmod +x ${generic_mountpoint}/etc/profile.d/bash.sh
htoprc
htoprc
^^^^^^
^^^^^^
Edite o arquivo ``${generic_mountpoint}/etc/htoprc`` e adicione a seguinte configuração:
Edite o arquivo ``${generic_mountpoint}/etc/htoprc`` e adicione a seguinte configuração:
.. code:: shell
vim ${generic_mountpoint}/etc/htoprc
.. code:: cfg
.. code:: cfg
fields=0 48 17 18 38 39 40 2 46 47 110 109 111 49 1
fields=0 48 17 18 38 39 40 2 46 47 110 109 111 49 1
...
@@ -1435,6 +1468,10 @@ Environment
...
@@ -1435,6 +1468,10 @@ Environment
Edite o arquivo ``${generic_mountpoint}/etc/environment`` e adicione o seguinte conteúdo:
Edite o arquivo ``${generic_mountpoint}/etc/environment`` e adicione o seguinte conteúdo:
.. code:: shell
vim ${generic_mountpoint}/etc/environment
.. code:: shell
.. code:: shell
EDITOR=vim
EDITOR=vim
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment