Exploring Directories and Files Using Linux Commands
- No Comments
- sie, 28, 2023
- siwy
- Linux, Useful commands
In the Linux environment, we have access to a range of powerful tools that allow us to effectively manage and search for files and directories. In this article, I will focus on two exemplary commands that enable us to find directories with a specific name and search files for a particular pattern. 1. Searching for […]
Read MoreManually sending logs to stdout in a container.
- No Comments
- cze, 05, 2023
- siwy
- Docker, Kubernetes, Linux, okd
When working with Docker containers, there may be times when you need to pass information to the Docker logging system. Although there are various methods to achieve this, one intriguing approach involves using the special /proc filesystem. The /proc directory is a unique area in Unix-like systems, containing information about running processes. For Docker containers, […]
Read MoreDelete open files. When df and du show different results.
- No Comments
- maj, 17, 2023
- siwy
- Linux
In Linux systems, files that have been deleted but are still open by some process can sometimes take up valuable disk space. Fortunately, there’s a way to handle this issue. Here’s a command that allows you to „clean” these files: Understanding what this command does requires breaking it down into parts. Let’s start from the […]
Read MoreInitialize Docker Swarm in CentOS (Error response from daemon: rpc error: code = Unavailable desc = grpc: the connection is unavailable)
- No Comments
- lip, 09, 2018
- siwy
- CentOS, Docker
Source: training.play-with-docker.com forums.docker.com 1. Initializing Docker Swarm on 1 node: sudo docker swarm init –advertise-addr 192.168.0.1 2. Try add the worker on 2 node: sudo docker swarm join –token SWMTKN-1-3b33jjwsqpkcy2c8og73aorjf2ao9sjm4crvbwg3xpd1ome459-ckfdcxqqahb9gy9s2t9n5mi78 192.168.0.1:2377 I have error:Error response from daemon: rpc error: code = Unavailable desc = grpc: the connection is unavailable 3. Solution: Open […]
Read MoreDebian IP configuration
- No Comments
- cze, 11, 2018
- siwy
- Debian, Linux, Useful programs
Ip configuration example: allow-hotplug eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address 192.168.0.4 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 192.168.0.4
Read MoreMigration VM from XenServer to ProxMox (*.xva to *.raw)
- 3 komentarze
- cze, 10, 2018
- siwy
- Debian, Linux, ProxMox, Useful programs, XenServer
Source: techblog.jeppson.org XenServer 7.1 xcp-ng 8.2 ProxMox 5.2 ProxMox 6.3 I. Export VM to *.XVA in XenServer. II. Create new VM in ProxMox with parameters: CPU – like VM on XenServer RAM – like VM on XenServer HDD-1 – size 120GB. Temp system (20GB) and size of VM from XenServer (100GB). This drive will […]
Read MoreChange hostname permanent
- No Comments
- cze, 10, 2018
- siwy
- Debian, Linux, Useful commands
sudo hostnamectl set-hostname new.name.1 and change old hostname to new in /etc/hosts.
Read MoreTest GitLab commands
- No Comments
- cze, 09, 2018
- siwy
- GitLab, Linux, Useful commands
sudo gitlab-rake gitlab:check –trace sudo gitlab-rake db:migrate:status –trace gitlab-ctl tail
Read MoreInstall old version GitLab on Debian.
- No Comments
- cze, 09, 2018
- siwy
- GitLab, Linux, Useful commands
Source: GitLab Install GitLab’s repos I. Creating a backup sudo gitlab-rake gitlab:backup:create II. Install and restore backup: sudo aptitude install -y curl openssh-server ca-certificates curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash sudo aptitude install gitlab-ee=10.7.3-ee.0 sudo mv 1526756133_2018_05_19_10.7.3-ee_gitlab_backup.tar /var/opt/gitlab/backups/. sudo gitlab-ctl stop unicorn sudo gitlab-ctl stop sidekiq sudo gitlab-rake gitlab:backup:restore BACKUP=1526756133_2018_05_19_10.7.3-ee sudo gitlab-ctl restart […]
Read MoreOwn DNS (PowerDNS + PowerAdmin)
- No Comments
- maj, 14, 2018
- siwy
- DNS, Linux
Source: zaufanatrzeciastrona.pl blog.crazypi.com I. Install Apache2: sudo aptitude install apache2 II. Install MySQL, PHP and secure: sudo aptitude install mysql-server sudo mysql_install_db sudo mysql_secure_installation sudo aptitude install mysql-client sudo aptitude install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php-pear php5-imap php5-mcrypt php5-mhash php5-ming php5-mysql php5-xmlrpc gettext sudo /etc/init.d/mysql restart sudo /etc/init.d/apache2 restart III. Install PowerDNS: sudo […]
Read More