Install And Configure LTSP Server In Ubuntu 12.04 with Dnsmasq

LibreOffice 4.0.4 Has Been Released. Install It On Ubuntu 13.04 , 13.10

Install Skype 4.2 in Ubuntu 13.10/13.04/12.10 and 12.04

Skype allows people to communicate with each other by messaging, voice calling and video calling over internet. Skype also provides services for phone calls on the telephone networks ....

Display Username On Unity Panel In Ubuntu 13.04 and Ubuntu 13.10

Showing posts with label bash. Show all posts

[How To] Display A Message At Terminal login On Ubuntu


If you want to see the message when you open the terminal or after you are login in tty1-6, just put this line at the end of ~/.bashrc file (open it from terminal with gedit ~/.bashrc):

echo "Welcome $USER, today's date is $(date +"%A, %d-%m-%y")"

If you want to see the message after you are login in GUI, do the following:


Create a new file name_and_date.sh:

gedit ~/bin/name_and_date.sh

Put next 2 lines inside:

#!/bin/bash

notify-send "Hello" "Hello $USER, today's date is $(date +"%A, %d-%m-%y")"

Save the file and close it.

Make the file exacutable:

chmod +x ~/bin/name_and_date.sh

Search in Dash for Startup Applications, open it and click Add.

Under name type "Show my name and date" or something you will recognise.

Under command type: /home/$USER/bin/name_and_date.sh (change $USER with your user name).

Under comment (if you want), type a brief description.