- 
                Posts23
- 
                Joined
- 
                Last visited
Reputation Activity
- 		
			
				 Baos reacted to tkaiser in board with 5 ethernet, 802.11ac, and nas Baos reacted to tkaiser in board with 5 ethernet, 802.11ac, and nas
 http://www.armbian.com/clearfog/
 http://forum.armbian.com/index.php/topic/1925-some-storage-benchmarks-on-sbcs/?p=15265
 
- 		
			
				 Baos got a reaction from filemoon in armbian ssh login motd Baos got a reaction from filemoon in armbian ssh login motd
 For /etc/update-motd.d/30-sysinfo I noticed it likes to say my system is up 6 seconds and then when I check with uptime I notice it's wrong and has been up for hours or over a day.
 Just curious if there is a reason for not doing it in a way similar to this?
 function displaytime { # we need dedicated function local X=$(/usr/bin/uptime -p) printf "Up time: " printf "\x1B[92m%s\x1B[0m\t\t" "$X" }
- 		
			
				 Baos reacted to vlad in armbian ssh login motd Baos reacted to vlad in armbian ssh login motd
 ok so on a quick search looks like there are some discrepancies on what the pam_motd is supposed to do and what it actually does
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743286
 https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1169558
 http://unix.stackexchange.com/questions/246436/how-to-set-a-dynamic-message-of-the-day-motd-in-debian-jessie-8-2-for-ssh
 
 anyway this is how i fixed the problem on my armbian
 
 first edit the /etc/pam.d/login and /etc/pam.d/sshd and comment this line (in both files)
 session optional pam_motd.so motd=/run/motd.dynamic noupdate and create a link from /run/motd.dynamic to /etc/motd/
 ln -s /run/motd.dynamic /etc/motd reopen your session and the motd should be updated every time on login
 
- 		
			
				 Baos got a reaction from Igor in armbian ssh login motd Baos got a reaction from Igor in armbian ssh login motd
 Thanks Igor. I figured as much. I will try and work with the code, also taking into account vlad's analysis. Will post results. Oh, and fyi, my proposed solution also fell victim to the same bug today. The bug can be confirmed by having the motd output the current time.
 
- 		
			
				 Baos got a reaction from tkaiser in armbian ssh login motd Baos got a reaction from tkaiser in armbian ssh login motd
 For /etc/update-motd.d/30-sysinfo I noticed it likes to say my system is up 6 seconds and then when I check with uptime I notice it's wrong and has been up for hours or over a day.
 Just curious if there is a reason for not doing it in a way similar to this?
 function displaytime { # we need dedicated function local X=$(/usr/bin/uptime -p) printf "Up time: " printf "\x1B[92m%s\x1B[0m\t\t" "$X" }

 
         
                 
	 
	