Suse Linux Change Hostname (computer name) without yast

in Categories , last updated February 2, 2018

I am a new Suse Enterprise Linux user. I setup my computer name to ‘linux-mig6’ during installation but now I would like to change the computer name to something else. How can I remove old name and set it to ‘suse-linux-server’ on SLES version 12 SP 3? Can you tell me how do I change the Suse computer name? How do I assign a static hostname to server running SuSe Linux?

How to build Perl module rpm file with cpanspec on RHEL/CentOS Linux

in Categories , , , last updated February 1, 2018

I am using CentOS/RHEL 7.x heavily, and many needed CPAN modules missing. I want to distribute Perl modules from CPAN to 100s of VMs and bare metal servers. Unfortunately running cpanm Module::Name OR perl -MCPAN -e 'install Module::Name' is not an option. Is there any way to build RPM packages with rpmbuild for specific Perl module on a CentOS/RHEL 7.x server? What’s the easiest way to install a missing Perl module using the yum command?

How to access/view Python help when using vim

in Categories , , , last updated January 31, 2018

I am a new Vim text editor user. I am writing Python code. Is there is a way to see Python documentation within vim and without visiting the Internet? Say my cursor is under the print Python keyword, and I press F1. I want to look at the help for the print keyword. How do I show python help() inside vim? How do I call pydoc3/pydoc to seek help without leaving vim?
Continue reading “How to access/view Python help when using vim”