Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Visual clues to differentiate multiple server interfaces

Featured Replies

  • Community Expert

My original unRAID build just came back to me from a friend so I decided to use it to backup some "uncritical" shares that I hadn't bothered to backup before. So now I have 2 servers. I am looking for ideas on differentiating the interfaces of these servers. I have come up with 3 simple things and 2 of them work fine but I'm having a little trouble getting the 3rd one to stick.

 

1) Different banners and dynamix color schemes. My main server is set white and my backup server is set black.

 

2) Different putty color schemes. Black on white for main and white on black for backup.

 

3) Different Midnight Commander color schemes. This is where I am having a little trouble. If you run

mc -b

you get a monochrome version of mc so I thought I would do this on my backup server. I didn't want to have to remember to type it that way all the time so I

alias mc="mc -b"

In order to make this stick between logins and reboots I tried

echo 'alias mc="mc -b"' >>/root/.bashrc

and if that survived a logout then I would put it in go, but it doesn't seem to work.

 

I could probably spend a lot of time googling but bash isn't my native tongue and I am sure there are others here who can do this simple thing in their sleep so I thought I would ask.

 

What can I do to make 3) stick?

 

Also, any other ideas for differentiating between server interfaces?

why not add the alias to your go script

 

In order to make this stick between logins and reboots I tried

Code: [select]

echo 'alias mc="mc -b"' >>/root/.bashrc

and if that survived a logout then I would put it in go, but it doesn't seem to work.

 

I think trurl thought of that...

  • Author
  • Community Expert

why not add the alias to your go script

 

In order to make this stick between logins and reboots I tried

Code: [select]

echo 'alias mc="mc -b"' >>/root/.bashrc

and if that survived a logout then I would put it in go, but it doesn't seem to work.

 

I think trurl thought of that...

OK. I got it. Do this instead
echo 'alias mc="mc -b"' >>/root/.bash_profile

 

So, now that I've started this thread, anybody else doing anything to make them think twice before doing something on the wrong server?

Different passwords, that would definitely you stop and think..

 

 

why not add the alias to your go script

 

In order to make this stick between logins and reboots I tried

Code: [select]

echo 'alias mc="mc -b"' >>/root/.bashrc

and if that survived a logout then I would put it in go, but it doesn't seem to work.

 

I think trurl thought of that...

maybe I'm out to lunch here, but isn't everything in /root lost upon a reboot?

 

here's an option

 

Create a file on your flash drive called mc

 

#!/bin/bash
/usr/share/mc/bin/mc-wrapper1.sh -b

 

Add to your go file:

 

mv /usr/share/mc/bin/mc-wrapper.sh /usr/share/mc/bin/mc-wrapper1.sh
cp /boot/mc /usr/share/mc/bin/mc-wrapper.sh
chmod +x /usr/share/mc/bin/mc-wrapper.sh

 

 

  • Author
  • Community Expert

why not add the alias to your go script

 

In order to make this stick between logins and reboots I tried

Code: [select]

echo 'alias mc="mc -b"' >>/root/.bashrc

and if that survived a logout then I would put it in go, but it doesn't seem to work.

 

I think trurl thought of that...

maybe I'm out to lunch here, but isn't everything in /root lost upon a reboot?

 

here's an option

 

Create a file on your flash drive called mc

 

#!/bin/bash
/usr/share/mc/bin/mc-wrapper1.sh -b

 

Add to your go file:

 

mv /usr/share/mc/bin/mc-wrapper.sh /usr/share/mc/bin/mc-wrapper1.sh
cp /boot/mc /usr/share/mc/bin/mc-wrapper.sh
chmod +x /usr/share/mc/bin/mc-wrapper.sh

Yes I already got the part about adding it to go to make it survive reboot. The part I was having trouble with was making it actually do anything when you login. I just put
echo 'alias mc="mc -b"' >>/root/.bash_profile

in go and it works.

  • Author
  • Community Expert

Different passwords, that would definitely you stop and think..

Would make me think long enough to login I suppose. Then I would forget all about it. I need a lot more than that with these old brain cells. ;D

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.