Issue with Gnome 3.12 login and MOTD

Hello,
This may be trivial, but I've struggled to find an answer for a problem I now have following creating an motd. I wanted an motd especially for terminal / ssh logins, but had no idea Gnome would attempt (I believe it does anyway) to display the motd contents immediately after logging in.
Whilst this would not be an issue if it actually worked and displayed the motd rather than garbage (see image below). It makes my login time much longer as it hangs on the login screen, before finally reaching the desktop. If I blank the motd, this problem goes away, however, as said, I really want the motd for ssh and terminal use. Has anyone else experienced this issue? Is there a way to disable Gnome from reading this file, or to display it correctly and not hamper my login times?
I'm running Arch x86_64 with Gnome 3.12 and would appreciate any time and help on this.
Steve
Do Not Post Full Size Images -- Inxsible
- My bad, have created a 230 x 230 thumbnail with link:
In case it helps, my motd code which works fine in the terminal:
#!/bin/bash
#Script to update motd with relevant information.
#Define output file
motd="/etc/motd"
# Collect information
USERNAME=`logname`
HOSTNAME=`uname -n`
KERNEL=`uname -r`
CPU=`awk -F '[ :][ :]+' '/^model name/ { print $2; exit; }' /proc/cpuinfo`
ARCH=`uname -m`
PACMAN=`pacman -Qu | wc -l`
DISC=`df -h | grep /dev/mapper/vg_arch-lv_home | awk '{print $5 }'`
MEMORY1=`free -t -m | grep "buffers/cache" | awk '{print $3" MB";}'`
MEMORY2=`free -t -m | grep "Mem" | awk '{print $2" MB";}'`
PSA=`ps -Afl | wc -l`
PSU=`ps U $USER h | wc -l`
#Time of day
HOUR=$(date +"%H")
if [ $HOUR -lt 12 -a $HOUR -ge 0 ]
then TIME="Morning"
elif [ $HOUR -lt 17 -a $HOUR -ge 12 ]
then TIME="Afternoon"
else TIME="Evening"
fi
#System uptime
uptime=`cat /proc/uptime | cut -f1 -d.`
upDays=$((uptime/60/60/24))
upHours=$((uptime/60/60%24))
upMins=$((uptime/60%60))
upSecs=$((uptime%60))
#System load
LOAD1=`cat /proc/loadavg | awk {'print $1'}`
LOAD5=`cat /proc/loadavg | awk {'print $2'}`
LOAD15=`cat /proc/loadavg | awk {'print $3'}`
#Color variables
W="\033[00;37m"
B="\033[01;36m"
R="\033[01;31m"
G="\033[01;32m"
N="\033[0m"
#Clear screen before motd
clear > $motd
echo -e "
$B. $W
$B/#\ $W _ $B _ _
$B/###\ $W __ _ _ __ ___| |__ $B| (_)_ __ _ ___ __
$B/#####\ $W / _' | '__/ __| '_ \ $B| | | '_ \| | | \ \/ /
$B/##.-.##\ $W | (_| | | | (__| | | |$B| | | | | | |_| |> <
$B/##( )##\ $W \__,_|_| \___|_| |_|$B|_|_|_| |_|\__,_/_/\_\\
$B/#.-- --.#\ $W
$B/' '\
" >> $motd
echo -e "$G---------------------------------------------------------------" >> $motd
echo -e "$W Good $TIME$A $USERNAME$W! You're Logged Into $A$HOSTNAME$W! " >> $motd
echo -e "$G---------------------------------------------------------------" >> $motd
echo -e "$B KERNEL $G:$W $KERNEL $ARCH " >> $motd
echo -e "$B CPU $G:$W $CPU " >> $motd
echo -e "$B MEMORY $G:$W $MEMORY1 / $MEMORY2 " >> $motd
echo -e "$B LV USE $G:$W $DISC " >> $motd
echo -e "$B SWAP USE $G:$W `free -m | tail -n 1 | awk '{print $3}'` MB " >> $motd
echo -e "$G---------------------------------------------------------------" >> $motd
echo -e "$B LOAD AVG $G:$W $LOAD1, $LOAD5, $LOAD15 " >> $motd
echo -e "$B UPTIME $G:$W $upDays days $upHours hours $upMins minutes $upSecs seconds " >> $motd
echo -e "$B PROCESSES $G:$W You are running $PSU of $PSA processes " >> $motd
echo -e "$B HOSTNAME $G:$W $HOSTNAME " >> $motd
echo -e "$B PACMAN $G:$W $PACMAN packages can be updated " >> $motd
echo -e "$B USERS $G:$W `users | wc -w` users logged in " >> $motd
echo -e "$G---------------------------------------------------------------" >> $motd
echo -e " $W Please do not share your login and use sudo for root access " >> $motd
echo -e "$G---------------------------------------------------------------" >> $motd
echo -e "$N" >> $motd
Last edited by sjjones85 (2014-04-17 17:22:12)

Inxsible, my apologies, hope the thumbnail is better now. Thanks for the welcome too, although I've lurked as a reader for a while

Similar Messages

  • OSX 10.9.1 Compatibility issue with Sharp Aquos PN-L702B and PN-L802B

    I have Mac Mini's connected to the Sharp Aquos PN-L702B and PN-L802B touch screens and after updating to 10.9.1 am experiencing what appears to be a compatibility issue with the Sharp TPM driver and the OSX 10.9.1.  
    Everything works perfectly previously on 10.8.4 and 10.8.5.  I did not test on 10.9.0 as I went straight to 10.9.1.  Anyone else having this problem?  Any thoughts on resolution?

    OK so perserverance seems to have helped here - i used the cmd R function on start up to get to the page where i can re install OS X Lion - Safari now working.
    However i have Office 2011 for MAC and now Excel wont start so i will post on another thread for help with this
    Hope this helps if anyone has a similar issue

  • Issue with Acrobat 10.1.2 and Windows 7 64-bit Preview Handler

    Hi. I work in an enterprise environment that is currently migrating to  64-bit Windows 7. The only version of Acrobat we have approved for Windows 7 is 10.1.2. We're seeing an issue with this version that causes the preview handler to not work. The preview panel in Explorer is just white and will eventually give the error "Preview handler surrogate host has stopped working."  I've tried to fix listed on http://www.pretentiousname.com/adobe_pdf_x64_fix/index.html but that registry key is already correct. Our current work around for these users to just install Reader X1 and make it the default PDF handler, but I would like to find a better solution. Is there a known issue with Acrobat 10.1.2 and 64-bit operating systems? Or is there a way to change just the default preview handler?

    Most of the info on the web page you link to is 2-4 years old. I doubt it applies. Your workaround is actually the best solution: It's always preferred to use the latest PDF viewer. Reader and Acrobat can exist on the same machine.
    Also, why 10.1.2? There have been 6 releases since then with documented security enhancements (meaning there are also published vulnerabilities which are patched), bug fixesm, and feature enhancments.
    I'll ping some folks about the error you are getting. . .
    hth,
    Ben

  • Are there any issues with using OS X Mavericks and Premiere CC?

    Are there any issues with using OS X Mavericks and Premiere CC?

    Official statement: http://blogs.adobe.com/premierepro/2013/10/premiere-pro-and-mac-os-x-10-9-mavericks.html
    Peter Garaway
    Adobe
    Premiere Pro

  • Issue with Adobe Encore CS5.1 and Matrox MAX H.264 encoding on Windows

    Here's some information on an issue that we've identified with Matrox products and Encore CS5.1:
    "Issue with Adobe Encore CS5.1 and Matrox MAX H.264 encoding on Windows"

    Still flickering on Encore even when rendered in MPEG-2 DVD in Pemiere Pro CS5.5. Looks perfect in Premiere Pro.
    Any other ideas?
    EDIT: Was looking for Google for people with similar problems to me and I came across this http://forums.adobe.com/message/3959757?tstart=0
    I am currently re-rendering the video in PAL DV Widescreen MPEG-2 DVD and using maximum render quality.

  • Are there ANY compatibility issues with Itunes 12.0.1 and Mavericks?  Don't want to download Yosemite.  Not hearing good things about it.

    Are there ANY compatibility issues with Itunes 12.0.1 and Mavericks?  Don't want to download Yosemite.  Not hearing good things about it.  I'm on Mavericks 10.9.5.

    one obstacle, quickly removed. thank you.
    nomenclature aside for a moment, 10.6.8 is correct but maybe more is necessary about the MacBook Pro: it is 'old': Identifier: 1.2, Intel Core Duo, 2.16 GHz, 1 Processor, L2 2 MB, RAM 2 GB.
    i hope that is enough to get an answer to this: is it unadvisable to update its OS; in other words, if i update to 10.9, will the machine be able to handle it, 'speedwise'?

  • I have Calendar v 7.0 and Entourage 12.3.6 2008 on OS X 10.9.2. I cannot import Entourage events into Calendar - this was never an issue with iCal. Whats happened and how can I import details into Calendar or do I need iCal back?

    I have Calendar v 7.0 and Entourage 12.3.6 2008 on OS X 10.9.2. I cannot import Entourage events into Calendar - this was never an issue with iCal. Whats happened and how can I import details into Calendar or do I need iCal back?

    adamboettiger wrote:
    Sophos and MacKeeper
    There are many reported problems with both these programs.
    Run through this list of fixes in order, will tune you right up.
    They are in order for a reason.
    ..Step by Step to fix your Mac

  • I am having multiple issues with syncing my iphone calendar and outlook There are often 1 hour time differences in the entries on the 2 devices and sometimes events that have been amended are not updated on iphone I mostly enter items on my laptop

    I am having multiple issues with syncing my iphone calendar and outlook calendar on my laptop
    I mostly enter the original items on my laptop
    There are often 1 hour time differences in the entries on the 2 devices and sometimes events that have been amended are not updated on iphone

    This sounds like an error in Time Zone support. The time zone needs to be the same in Outlook as well as the phone.

  • Issue with Visibility Settings for Backgrounds and Layers

    I am using Acrobat Pro XI 11.0.10 (Windows) and having an issue with visibility settings for layers and backgrounds. I am attempting to get backgrounds to appear while viewing in Adobe Reader and Acrobat Pro but not be printed and so far have had no success.
    When using a background the Appearance Options dialogue has "Show when printing" unchecked, but "Show when displaying on screen" is checked. This results in the background not showing on the screen, and the background will only appear once the box for "Show when printing" is checked. It looks like the option for printing is dictating whether or not the background is able to appear.
    Using layers has not worked either. The background layer is set to "Never Prints", but will still show up when printed.
    I was wondering if anyone else has run into this and has a solution, or has any recommendations.
    Thanks in advance.

    Hi setrev2012,
    How are you adding the backgroud?
    The only way I can think to accomplish this is via a watermark.
    The basics...
    Open PDF in Acrobat. Choose Pages > Watermark > Add Watermark.
    Select a jpg or PDF of your background and adjust scaling options as desired.
    Then click the Appearance Options.. and uncheck the Show When Printing option.
    In this image the PDF is a blank page with the word "Test" on it. The watermark is the stamp and impression (a stock photo jpg).
    If you want a solid color background, just create a flat image of the background color for use as the watermark.
    If you have already followed the steps and still facing the issue then please share the file with me at [email protected] so that i can have a look.
    Regards,
    Rave

  • Having issues with gnome keyring

    So ever since I did a system update (-Syu) I have been having issues with my gnome keyring.
    Before I would use GDM and when I would go to type in my password the first time it would 'hang' and not respond, I would have to hit cancel and re-type in my password. If I would close my laptop lid and open it again, every time I would type in my password jt would just sit there and not respond and then I would have to reboot and go through the process again, first time doesn't work, second time it logs in, can't close laptop lid.
    So I go tired of dealing with that and got rid of GDM and just made a bash script to load X on login from tty1. This works great, just one minor annoyance. Once I log in I get this window http://imgur.com/Slj1V1d except when I try to type in the password, no matter how many tires I take, it still just hangs and sits there. I can hit cancel and go about my merry way, but its always on the back of my mind and its pretty irking. Something that I know is broken that I have to deal with everytime I use my computer can be bothersome.
    Would anyone know how I could either remove (from what I heard this wouldn't be good because gnome relies on the keyring for programs) the keyring, or delete the data with the keyring so that I could get a fresh start. I've tried seahorse, but it does the same thing as i've stated above.
    Thank you for any help!

    x33a wrote:
    @ clandest, using a live media + chroot, use
    # pacman -Qk
    to find out which packages have missing files, and reinstall those packages.
    Thank you x33a, this helped me get my system back up and running.
    Rexilion wrote:
    @x33a: I did not know that command. Maybe
    pacman -Qk | grep -v ' total files, 0 missing files$'
    will be more human parseable.
    Edit: Made sure it was formulated as a joke...
    And thanks to you too Rexilion, the grep made it easy to track what was missing to re-install.
    Even though I got my baby all patched up and working, I still have that damn pesky keyring issue with GDM. So even deleting every thing in that directory, and re-installing the packages, it didn't fix the issue

  • Issues with logging in to CC and missing features

    My team is using CC on corporate environment PCs, Win 7 64bit. Some of the problems we have seen are:
    When we buy a new adobe license for a new user our IT department has to install the Creative Cloud desktop manager and software on their PC. They do this by using an admin windows account and the new adobe login. Everything works fine for them, they are able to log in to CC and install the software, When the user logs in with their windows account and try to log in to CC with the same adobe id then they get the common issue with the sync button just turning and never logs them in. In some cases this is fixed by deleting the OOBE folder from the admin local profile allowing the other user to log in to CC but most times the IT has to resolve to rebuilding the PC and starting again.
    We also hotdesk in my team.I found that when i work on my laptop or another desktop pc in the team everything is fine but if i have to use a different PC for the day i log in but don't have all the features (I can get the home feed, fonts, etc, but not the app installers)
    Another member of my team works fine on that same PC but on a different PC she doesn't have all features. She gets the app installers, but not some of the other features.
    It all seems to be a bit random as to who can access what.
    Our corporate firewall is open to most Adobe servers, unless there is something we have missed. PCs have Adobe Air 3.1.0.4880.
    These issues have been happening for months now and IT have spend hours to resolve.
    Anyone else has issues using Creative Cloud in a corporate environment and are there any suggestions we can use please?

    There isn't any capability for the OpenBootProm prompt
    (the OK prompt you might see on your screen)
    to ask you for a username or a password.
    The OBP is a firmware level of the SPARC platform, not an OS nor a mini-OS.
    If you have consoled in through the SF280R's RSC card, it might have its own password prompt, but the OBP itself can't do that. Additionally, the RSC doesn't show you the OK prompt either (certainly not to the extent that the more sophisticated LOM, ALOM, ILOM or System Controllers of other system designs might have.).
    You made mention that you eventually see a cursor that is sitting at a prompt that shows:
    Happy@solaris11 $If that is what you see, then I think you're already logged into the OS. That would seem to be a C-shell prompt, with you logged into a fully booted system named "solaris11" as username "Happy".
    Consequently, I'll be asking that your post be moved out of the Servers'General hardware forum, and into the General Solaris 11 forum. You don't seem to have a hardware issue, but perhaps just an issue with being unfamiliar with Solaris. (You didn't describe your experience level in the initial post.)

  • Strange issue with Apple ID in iTunes and Safari

    I have a client who recently has had a very odd issue with his Apple ID.  He is unable to purchase any music from the iTunes store on his MacBook Pro running 10.9.4 and iTunes 11.3.  When he tries to purchase a song from the iTunes store, he enters in his correct apple id and password but itunes just returns right back to the login window with blank fields.  There is no error message about using an incorrect password or apple id.  When we try to log in to the Manage Apple ID page using Safari, we get the exact same thing.  No error, just goes right back to the login screen like nothing happened.  We can, however, log in to the site using another browser like Firefox or Chrome without issue.
    I have done some extensive troubleshooting and isolated it to the user library since itunes and safari work fine in a test account we created.  I've tried pulling all seemingly related pref files, application support files, caches, keychain items, the safari folder, etc.  Basically if it was in the user library and had safari, apple id or itunes in the file name, I pulled it.  This didn't fix the issue.  I was able to temporarily fix the issue by pulling pretty much everything from the user library folder's application support and preferences folders.  Everything worked for a little while but then the issue returned.
    Does anyone have an idea what file could be going corrupt so quickly that is causing both safari and iTunes to no longer log in with his Apple ID?
    Thanks in advance!

    Sometimes resetting an Apple ID password can help >  Apple - My Apple ID
    If that doesn't help, from the iTunes menu bar click Store > Sign Out
    Restart the Mac, launch iTunes then sign in again.

  • Issue with Gnome 2.24 in Arch x86_64

    Hi:
    I write here because i have a little problem with the last update of gnome from core repos. I installed it and everything seems to work fine, but there is a minor issue with a black square in the place where a description of something appears when you hold the mouse cursor over an icon.
    I leave an image for you to see what i see:
    Does anybody have a solution for this or should i wait for the next update of gnome??
    Thanks!
    Note: In the picture i'm using compiz fusion, but i tried with metacity and the same happens.
    Last edited by Perkin (2008-10-22 00:54:42)

    Just on this  same sorta line, is anyone having issues with themes not working correctly anymore?. I get an error saying this theme might not work correctly  because the engine isnt installed, but the engines are?

  • Issues with XFCE 4 Trash Networking and Automounting

    Hello all. I'm have a rather strange issue with my new install of Arch with xfce. No matter what I try I cant seem to get Trash, automounting, or network browsing to work in xfce. While in my normal account all of these refuse to work, no trash icon, no response to usb drives and optical disks, no local computers visible in thunar. However when I login as root everything works fine. So I changed my user groups, installed gvfs and messed with my scripts but still no joy. Anyone have any idea what I could be missing? 
    My Groups
    lp wheel games network video audio optical storage scanner camera power users networkmanager
    Oh I forgot to mention, I do have thunar-volman installed and setup as well.
    Many thanks to anyone who could know what I'm doing wrong.

    I had almost the same problem until I did this;
    first, make sure that you have dbus installed
    then, in your ~/.xinitrc file, you should have a line that looks like this:
    exec ck-launch-session startxfce4
    add "dbus-launch" right before startxfce4 on that line so that it looks like this:
    exec ck-launch-session dbus-launch startxfce4
    That solved my problem, hope it does for you as well.

  • J2SE adapter PI 7.1 issue with XML to flat conversion and namespace length

    Dear reader,
    We are facing an issue with J2SE Adapter PI7.1 for a number of flows.
    The flow requirements:
    [1] Namespace length for interfaces is up to 100 characters
    [2] The XML message must be converted to Flat on the adapter channel
    Our PI system is at patch level 7 and we implement J2SE adapter on patch level 7 as well.
    We found that the J2SE adapter on patch level 7 does not support long namespaces [1] (as it should since this is an PI 7.1 j2SE adapter) but no issues where found with the XML to flat conversion [2].
    Experimenting with J2SE adapter on patch level 6 we found the long namespaces [1] are supported however an issue is found with the XML to flat conversion [2] as stated in SAP note 1335527.
    An SAP Customer Message is raised on this issue however your input is highly appricated!
    With Kind Regards,
    Harald Kastelijn
    Edited by: Harald Kastelijn on Mar 6, 2010 9:17 AM
    Edited by: Harald Kastelijn on Mar 6, 2010 9:19 AM

    We found that the J2SE adapter on patch level 7 does not support long namespaces [1] (as it should since this is an PI 7.1
    j2SE adapter) but no issues where found with the XML to flat conversion [2]
    I think the restriction of namespace length still remains in design time (IR).....the same however has been extended in configuration and runtime...this SAP note has some information: https://service.sap.com/sap/support/notes/870809

Maybe you are looking for

  • How to segragate correct and incorrect records in a msg

    Hi All, I am working on a file-XI(BPM)-Oracle scenario. My input file has a field 'Applicant No', which is mandatory in the Oracle table. In my BPM, I have a transformation generating two message types, one for the corect msg and the other for the er

  • Hyper-v manager in windows 8.1 cannot connect to hyper-v server. RPC server unavailable

    I am setting up a new server. I installed Hyper-V 2012 R2 on it and want to manage it remotely with Hyper-V manager from a Windows 8.1 computer. I am unable to communicate with the computer with the server. Hyper-V manager gives me the following erro

  • Summation problem in fox formula

    Hi friends, My requirement is....I have GL Account, PO Number, Vender, costcenter  Scroll number and amount is displaying in layout. I have one more field let say TotalAmount. in this field i have populate sum of GL and PO Combination... I have write

  • I am unable to assign ledger assignment....

    hi, my name is Rajesh, i am doing new ledger concept while i can't see new entry button in ledger assignment for assign non leading ledgers for leading ledger(0L). Regard, v.rajesh

  • V_V2 and quotations

    Hello, Does anyonde know how can I exclude quotaions from the scope check of the tcode V_V2? Regards, Adriano Cardoso