Linux.com

Community Blogs



How To : Install NVIDIA 340.65 Graphics Drivers in Ubuntu/Linux Mint Systems

The latest version of Nvidia Graphics driver for Linux which is Nvidia 340.65 has been released and is available for download. It comes with plenty of fixes and changes. This article will guide you to install Nvidia 340.65 in Ubuntu and Linux Mint systems.

Fixes

  • Added support for X.Org xserver ABI 19 (xorg-server 1.17).
  • Improved compatibility with recent Linux kernels.
  • Fixed a bug that prevented internal 4K panels on some laptops from being driven at a sufficient bandwidth to support their native resolutions.
  • Fixed a regression that prevented the NVIDIA kernel module from loading in some virtualized environments such as Amazon Web Services.
  • Fixed a regression that caused displays to be detected incorrectly on some notebook systems.
  • Fixed a bug that could cause X to freeze when using Base Mosaic.
  • Fixed a regression that prevented the NVIDIA X driver from recognizing Base Mosaic layouts generated by the nvidia-settings control panel.

Read more at YourOwnLinux.

 

How to setup a mail server with Postfix and Dovecot on Ubuntu / Debian

Mail system for your own domain You have your own domain name and your very own vps/dedicated server and want to use the domain name for emails. So you need to setup a mail server using an smtp server and an imap/pop server. This tutorial shows you how to setup Postfix (smtp server) and Dovecot (imap/pop server). The task of the smtp server is to accept incoming mails and relay outgoing mails from authorised users on the system. Whereas Dovecot allows authorized users to access their Inbox and...
Read more... Comment (0)
 

Howto Decorate Bash Prompt

The Bash shell provide users with a very customisable prompt through the variable named PS1 for the primary prompt and PS2 for the secondary prompt. This Howto is the basics to get started.

Simplest method to test changes to the prompt is by entering the following at the prompt and the immediate changes will be shown at the user prompt in the next press of the "Enter" key.

export PS1='Hello world$ '

This will display the words "Hello world$" followed by a space before the cursor.

Backslash-escaped Special Character

Users find it useful with their server hostname, user name, date, time, directory and all sorts of stuff displayed with their prompt. The list can be found at Bash Prompt from TLDP, here are listed a few;

  1. \d - the date  in  "Weekday  Month  Date"  format (e.g., "Tue May 26")
  2. \e - indicate an ASCII escape character (033)
  3. \h - the hostname up to the first '.'
  4. \n - newline
  5. \t - the current time in 24-hour HH:MM:SS format
  6. \T - the current time in 12-hour HH:MM:SS format
  7. \u - the username of the current user
  8. \W - the basename of the current working directory

Example 1: Common user name, server host name and working directory display

export PS1='[\u@\h \W]\$'

Example 2: Display current time and prompt in 2nd line

export PS1='\d [\u@\h \W]\n\t \$'

Colours

Font colour is a assigned with the sequence \[\e[colourcode\] where the colour code in combination of font style and ansi colour code (see TLDP). All colour escape sequences must be followed by letter 'm'.

Ansi colour code

  1. Black      0;30m
  2. Dark Gray     1;30m
  3. Blue        0;34m    
  4. Light Blue    1;34m
  5. Green       0;32m    
  6. Light Green   1;32m
  7. Cyan        0;36m    
  8. Light Cyan    1;36m
  9. Red         0;31m    
  10. Light Red     1;31m
  11. Purple      0;35m    
  12. Light Purple  1;35m
  13. Brown       0;33m    
  14. Yellow        1;33m
  15. Light Gray  0;37m    
  16. White         1;37m

\[\e[m\] Closing colour code

Example 1: Display common prompt as green and following character typed is also green. Its shown 2 ways of writing same prompt

export PS1='[\[\e[0;32m\]\u@\h \W]\$ 'export PS1='[\[\033[0;32m\]\u@\h \W]\$ '

Example 2: Display common prompt as green and following character typed is default colour

export PS1='[\[\e[0;32m\]\u@\h \W[\e[m\]]\$ '

Example 3: Contrast colours to highlight

export PS1='\[\e[1;34m\]\u\[\e[1;33m\]@\[\e[1;32m\]\h\[\e[1;37m\](\[\e[1;31m\]\W\[\e[1;37m\]) \[\e[1;36m\]\$ \[\e[0m\]'

Saving changes

Changes can be saved to ~/.bashrc to make sure that it is applied each time a user access the terminal.

To make this global, add the PS1 line to the /etc/bashrc. This however is always overridden by the user's ~/.bashrc configuration.

Example of ~/.bashrc:

# .bashrc# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi
# User specific aliases and functions
 

What would become of this world if we could not share knowledge

We are living in an age where free flow of information has become vital to human progress. Information is free because is it believed that the more we share, the more we learn, the more we do. That is the open source philosophy. Make software free, not as in cost, but as in freedom to change and recreate. 

I personally do not want to live in a world that keeps valuable information that supports innovation behind bars. We learn from others. Ideas come in many forms. The more ideas implemented within a product, the more usefull and complex it becomes. Importantly, it never stops evolving. 

I am an avocate of sharing information, but under a specific category. The only information that I care to share and collect is technological information that either helps improve or develop new technological products or technological services. It is information that we all need and cannot live without. Decide for yourself. Invision a world without open source.

 

Why open source runs the world

 

Star Wars Luke Skywalker freecomputerdesktopwallpaper 1600

 

 

 

 

How To : Install Linux Kernel 3.17.6 in Ubuntu/Linux Mint Systems

The Linux Kernel 3.17.6 is now available for the users, announced Linus Torvalds. This Linux Kernel version comes with plenty of fixes and improvements. This article will guide you to install or upgrade to Linux Kernel 3.17.6 in your Ubuntu or Linux Mint system.

Read complete article Here.

 

A beginner's guide to bash

A Brief Introduction
Bash or Bourne again shell is a replacement to the original unix shell written by Stephen Bourne at Bell Labs.

It offers vast improvements over the original shell, which include
Integer arithmetic,
Indexed arrays,
Command line editing,
Unlimited command history.

Bash scripts are available by default on most Linux distributions.

http://techarena51.com/index.php/a-beginners-guide-to-bash-scripting/

 

Send mail from command line on Linux using external SMTP server

SMTP servers If you have just setup an smtp server, like Postfix or Exim, then you would want to test it out to check if it is receiving and relaying emails properly or not. If you do not want to setup a mail client like Thunderbird on your local machine and want to run a quick command to send out mails via these smtp servers, then this post shows you how. 1. mailx command The mailx command is available from many different packages like mailutils,...
Read more... Comment (2)
 

Send mail from command line with external smtp server on Linux

SMTP servers If you have just setup an smtp server, like Postfix or Exim, then you would want to test it out to check if it is receiving and relaying emails properly or not. If you do not want to setup a mail client like Thunderbird on your local machine and want to run a quick command to send out mails via these smtp servers, then this post shows you how. 1. mailx command The mailx command is available from many different packages like mailutils,...
Read more... Comment (0)
 

Intense Gameplay? Try these 13 Roguelike games

Roguelike is a sub-genre of role-playing games. It literally means "a game like Rogue". Rogue is a dungeon crawling video game first released in 1980, standing out for being fiendishly addictive. Its goal was to retrieve the Amulet of Yendor, hidden deep in the 26th level, and ascend back to the top.

This article compiles a good selection of roguelike games available for Linux. If you enjoy intense, addictive gameplay, try these 13 games. Don't be put off by the primitive graphics, you'll soon forget the visuals once you get immersed. All of them are available to download without charge, and almost all are released under an open source license.

<A HREF="http://www.linuxlinks.com/article/201412031524381/RoguelikeGames.html">Complete story</A>

 

Linux Mint 17.1 Cinnamon Officially Released

Codenamed “Rebecca”, the Linux Mint 17.1 Cinnamon edition has been released, and brings many new improvements, featuring a brand new, more stable and polished Cinnamon then ever, a Ubuntu 14.04 software base and Linux Kernel 3.13.

 

Full article

 

Battle for Wesnoth 1.12 Has Big New Features [Overview, What’s New, Screenshots]

Battle for Wesnoth is one of the flagship open-source games, with a huge, dedicated community and an almost unmatched feature-completeness among the open-source games.

 

Full article

 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  5 
  •  6 
  •  7 
  •  8 
  •  9 
  •  10 
  •  Next 
  •  End 
  • »
Page 1 of 137

Upcoming Linux Foundation Courses

  1. LFD312 Developing Applications For Linux
    05 Jan » 09 Jan - Virtual
    Details
  2. LFS220 Linux System Administration
    05 Jan » 08 Jan - Virtual
    Details
  3. LFD331 Developing Linux Device Drivers
    12 Jan » 16 Jan - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board