It's a very common fact that nobody likes to write documentation. Heck, nobody likes to read it either. But there are times when we have to read it in order to, say, finish the project on time, or, especially when working in software development, even write it. If you only have to read it, we always encouraged you to do so, but if you'll have to write the manual pages and need a kickstart, here's the article for you. If you worked previously with HTML your life will be easier, but if not it's alright. Writing manual pages for Linux is not that hard, despite the look of the pages when read in plain-text. So basically you'll need some Linux knowledge and the ability to use a text editor. You will learn (with examples, of course) the main concepts in text formatting as applied to man pages and how to write a simple manual page. Since we used yest as an example for our C development tutorial, we will use snippets from its manual page to illustrate our point during this article.
The first manual packages written are said to be authored by Dennis Ritchie and Ken Thompson in 1971. The formatting software used was troff, and that format continues to be used to this day, although the tools may be different. The text formatting tool on Linux systems is now groff, with the leading 'g' coming from GNU. groff's existence is owed to the fact that when troff was written, terminals meant something different in terms of capabilities than what they mean today. Another strong incentive for the GNU project to create groff was troff's proprietary license. troff still lives on on other Unix systems, like OpenSolaris or Plan9, although under open source licenses.Read more ...
/etc/issuefile. From terminal run command:
$ cat /etc/issue Ubuntu Xenial Xerus \n \lTo obtain a Ubuntu release number check content of
$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu Xenial XerusRead more ...
systemctlcommand to restart network service:
$ sudo systemctl restart NetworkManager.serviceNext command
servicewill restart a relevant networking System V init script:
$ sudo service network-manager restartRead more ...
apt-getcommand to fetch steam installed directly from Ubuntu's multiverse repository:
$ sudo add-apt-repository multiverse $ sudo apt-get install steamRead more ...
$ lshw -numeric -C display or $ lspci -vnn | grep VGAThe above commands will output your NVIDIA model number. For example:
$ lspci -vnn | grep VGA 01:00.0 VGA compatible controller : NVIDIA Corporation GK104 [GeForce GTX 680] [10de:1180] (rev a1) (prog-if 00 [VGA controller])Read more ...
If your Redhat server is not connected to the official RHN repositories, you will need to configure your own private repository which you can later use to install packages. The procedure of creating a Redhat repository is quite simple task. In this article we will show you how to create a local file Redhat repository as well as remote HTTP repository.
After default installation and without registering your server to official RHN repositories your are left without any chance to install new packages from redhat repository as your repository list will show 0 entries:
# yum repolistRead more ...
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
OpenSSL is a powerful cryptography toolkit. Many of us have already used OpenSSL for creating RSA Private Keys or CSR (Certificate Signing Request). However, did you know that you can use OpenSSL to benchmark your computer speed or that you can also encrypt files or messages? This article will provide you with some simple to follow tips on how to encrypt messages and files using OpenSSL.
First we can start by encrypting simple messages. The following command will encrypt a message "Welcome to LinuxCareer.com" using Base64 Encoding:
$ echo "Welcome to LinuxCareer.com" | openssl enc -base64
The output of the above command is an encrypted string containing encoded message "Welcome to LinuxCareer.com". To decrypt encoded string back to its original message we need to reverse the order and attach -d option for decryption:Read more ...
CGI ( Common gateway Interface ) is an interface between Web client and the web server that runs your CGI script/program. CGI is a quite old and was largely superseded by different programing languages such as PHP, etc. However, it still can find its place in Linux system administrator's hands as a quick tool for system monitoring and administration via web browser. This article describes in step-by-step manner how to run basic CGI scripts with various programming languages and scripts using Apache web server on Ubuntu Linux.
First we need to install apache web server. This is a fairly simple task and can be achieved with the apt-get command:
$ sudo apt-get install apache2
The above command will install Apache 2 web server with a default site located at: /etc/apache2/sites-available/default. When you open this default configuration site you will see that it is configured to run CGI scripts from /usr/lib/cgi-bin directory with URL alias /cgi-bin/:Read more ...