Skip to content

Commit 325c127

Browse files
committed
Add figurine
1 parent 4b1d4f2 commit 325c127

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
layout: post
3+
title: "Adding a Figurine Login Message"
4+
date: 2023-12-18 00:00:00 -0400
5+
category: "General"
6+
tags: ["linux", "login", "ssh"]
7+
---
8+
9+
I saw a very interesting video by [Alex Kretzschmar](https://www.youtube.com/watch?v=GPQ6k2GR17I) about how to add a nice colorful login banner using Figurine that displays the hostname. I thought this would be helpful when working with several SSH sessions, so I added it to my hosts.
10+
11+
![Login example of figurine displaying the hostname](../assets/img/adding-figurine-login-message/login-example.png)
12+
13+
To start you need to download and install Figurine.
14+
15+
```bash
16+
wget https://github.com/arsham/figurine/releases/download/v1.3.0/figurine_linux_amd64_v1.3.0.tar.gz -O deploy.tar.gz
17+
tar -xvf deploy.tar.gz
18+
sudo mv deploy/figurine /usr/local/bin
19+
```
20+
21+
Once it's installed you can test it by running the following
22+
23+
```bash
24+
figurine -f "3d.flf" `hostname`
25+
```
26+
27+
Now you can create the profile script that will run on login.
28+
29+
```bash
30+
sudo nano /etc/profile.d/figurine.sh
31+
```
32+
33+
```text
34+
echo ""
35+
figurine -f "3d.flf" `hostname`
36+
echo ""
37+
```
38+
39+
You can test the file by running it manually.
40+
41+
```bash
42+
sh /etc/profile.d/figurine.sh
43+
```
44+
45+
Now that the file is created, exit and ssh back in to test it. Also don't forget to cleanup the download and unpacked files.
46+
47+
```bash
48+
rm -rf deploy*
49+
```
Loading

0 commit comments

Comments
 (0)