Monday, 29 January 2018

Linux Tips & Tricks -- 5 partition managers for Linux

Linux Tips & Tricks -- 5 partition managers for Linux

http://www.linuxandubuntu.com/home/top-5-linux-partition-managers

Linux from the command line | Linux Tips & Tricks -- resuming failed transfers with rsync

Linux from the command line | Linux Tips & Tricks -- resuming failed transfers with rsync

This is a critical skill that can save your butt.
https://www.ostechnix.com/how-to-resume-partially-downloaded-or-transferred-files-using-rsync/

Learning Linux | Linux from the command line -- Using the Linux kill command

Learning Linux | Linux from the command line -- Using the Linux kill command

The *NIX kill command is much more powerful and capable than the equivalent on some other OS's. Learning to use it is an important part of becoming a master Linux user.
Learn more than just SIGKILL, learn SIGHUP etc.
https://www.howtoforge.com/linux-kill-command/

Linux Tips & Tricks -- generating random passwords in Linux

Linux Tips & Tricks -- generating random passwords in Linux

With all the security fears we have today, it's important to at the very least have a foundation of good, random passwords for your various logins and websites. Luckily Linux has a variety of methods to help you generate those passwords.

BONUS TIP
Here's a way to generate secure, random passwords from any device with a web browser.
https://www.grc.com/passwords.htm
https://kerneltalks.com/tips-tricks/8-ways-to-generate-random-password-in-linux/

Linux from the command line | Linux Tips & Tricks -- managing your bashrc file

Linux from the command line | Linux Tips & Tricks -- managing your bashrc file

Getting to know what the bashrc file is and how it works is an important thing for any serious Linux user to do. At some point you will want, or possibly need to modify it to suit your needs.
One thing I caution people about is getting carried away with aliases. While they are handy and powerful, they are also going to be unique to your system and if you get too dependent on them you'll find yourself lost or at least inefficient when you work on another system. So don't get carried away.
https://www.maketecheasier.com/what-is-bashrc/

Linux from the command line - finding things with 'whereis'

Linux from the command line - finding things with 'whereis'

While the 'whereis' command is handy, it is more handy when combined with the 'which' command. 'which' will tell you which binary will be run if you type that command. For example, try "which find" to see which find command will be run if you run it from your current shell and path.
https://www.howtoforge.com/linux-whereis-command/

Saturday, 27 January 2018

Linux from the command line -- Learning the sticky bits of file permissions

Linux from the command line -- Learning the sticky bits of file permissions

People coming from other operating systems, particularly Windows, may not be used to or have an understanding of the breadth, versatility, and power of Linux files system permissions. Linux inherited a great system of file system permissions bits from it's UNIX ancestors that give you great power and control over the entire file system from the top file system level to the individual file.
Sticky bits are one part of that system that seem mysterious to many users, but they're really not that hard once you have them explained.
https://linuxroutes.com/linux-sticky-bit-how-to-set-linux-sticky-bit/

Thursday, 25 January 2018

Linux from the command line -- Package management on OpenSUSE with zypper

Linux from the command line -- Package management on OpenSUSE with zypper

The default, preferred command line package management tool for OpenSUSE is zypper. This versatile tool is every bit as powerful as it's peers like apt or pacman if you learn how to use it. It's not difficult and most of the commands have sensible options and syntax that are not difficult to remember with regular use.
https://www.tecmint.com/zypper-commands-to-manage-suse-linux-package-management/

Saturday, 20 January 2018

Linux Tips & Tricks -- Installing Adobe Creative Cloud Apps on Linux

Linux Tips & Tricks -- Installing Adobe Creative Cloud Apps on Linux

I've used PlayOnLinux and it's a great way to get the most out of WINE with the lease effort.
https://www.fossmint.com/adobe-creative-cloud-install-adobe-apps-on-linux/

Linux Tips & Tricks -- Playing Sound Through Two or More Output Devices

Linux Tips & Tricks -- Playing Sound Through Two or More Output Devices

This can be handy, especially if one of your output devices is a network audio device.
https://www.maketecheasier.com/play-sound-through-multiple-devices-linux/

Tuesday, 16 January 2018

Linux for sysadmins -- Setting up Docker on RHEL7 / CentOS 7

Linux for sysadmins -- Setting up Docker on RHEL7 / CentOS 7

If you want to experiment with Docker in a server role, here's a good way to do it. Setup a CentOS box and install Docker and have a go.
https://www.cyberciti.biz/faq/install-use-setup-docker-on-rhel7-centos7-linux/

Linux for sysadmins - learning to use Ansible

Linux for sysadmins - learning to use Ansible

Ansible is a tool to allow easier administration of multiple networked systems and it's well worth looking at, especially if you use a consumer oriented Linux distro, Ubuntu for example, that doesn't come with any proper Enterprise administration tools for use in a business role.

This is a follow up to an article on installing Ansible that can be found here ( http://linuxtechlab.com/create-first-ansible-server-automation-setup/ )
http://linuxtechlab.com/ansible-tutorial-simple-commands/

Linux from the command line -- using dd

Linux from the command line -- using dd

dd is another one of those core Linux tools that you need to learn how to use. Even if you only ever use it to dump bootable ISO's to USB sticks.
https://kerneltalks.com/commands/learn-dd-command-with-examples/

Monday, 15 January 2018

Linux Tips & Tricks - Compiling software from sources

Linux Tips & Tricks - Compiling software from sources

Sometimes, even if you're not a developer, you need or want to compile code on Linux. Usually this occurs when you want to install an applications that is not included in your distribution's repositories, or if you want the latest version.
Here are some quick tips to get you started.
https://www.ostechnix.com/compile-run-c-c-programs-linux/

Linux from the command line - Linux lets you say "yes, yes, yes, yes," with yes

Linux from the command line - Linux lets you say "yes, yes, yes, yes," with yes

Old school Linux/Unix developers were lazy highly efficient and didn't like to waste time. Sitting pressing the same key over and over again as you run through a long process or script is really boring a waste of precious time. Especially when that process can take a long time. Like a remote transfer over a slow link for example. With the yes command you can let the computer be the monkey pressing the button, not you.
https://www.howtoforge.com/linux-yes-command/

Sunday, 14 January 2018

Linux for sysadmins - Deploying a MongoDB Shared Cluster on CentOS 7

Linux for sysadmins - Deploying a MongoDB Shared Cluster on CentOS 7

When you are ready to step up your company's database to a cluster this might be a place to start.
https://www.howtoforge.com/tutorial/deploying-mongodb-sharded-cluster-on-centos-7/

Friday, 12 January 2018

Linux from the command line | Linux for sysadmins - using telnet as a diagnostic tool

Linux from the command line | Linux for sysadmins - using telnet as a diagnostic tool

This is an old old sysadmin's trick, using telnet to diagnose connectivity problems, one that's mostly been forgotten in the age of complex GUI tools and smartphone apps and that's a shame because it's a quick, powerful, and ubiquitous tool worth using in your early diagnostic stages of resolving connectivity and service issues.

https://bash-prompt.net/guides/telnet/

Linux for sysadmins - How to install Snipe-IT Asset Management Software on Debian 9

Linux for sysadmins - How to install Snipe-IT Asset Management Software on Debian 9

I have not used Snipe-IT, but I do know that asset management is always a big headache for IT and that anything that can help make it easier is welcome, especially if it costs a lot of money.
https://www.howtoforge.com/tutorial/how-to-install-snipe-it-on-debian-9/

Linux from the command line - Viewing text files with fold

Linux from the command line - Viewing text files with fold

cat and more are both very useful tools for viewing text files but they have their limitations. As I've said a lot in the past, Linux is about choice and variety and there is almost always more than one way to do things. That's the case with viewing text files. Sometimes you have files that are wider than the terminal you're using. fold to the rescue.
https://www.ostechnix.com/fold-command-tutorial-examples-beginners/

Thursday, 11 January 2018

Linux from the command line | Linux for sysadmins -- Triggering events with incron

Linux from the command line | Linux for sysadmins -- Triggering events with incron

Recently I posted an article on using inotify to trigger events which you could use to perform tasks. (See https://plus.google.com/u/0/+ChristopherGaul/posts/P3hwHGSMjHk )

Now here's a tutorial on doing something similar with incron.

As I've said repeatedly, one of the strengths of the Linux/Unix environment is that there are almost always multiple ways to do things and you have the freedom to choose the one that best suits your needs and your style. So here is a second method for performing tasks when certain things happen.
https://www.howtoforge.com/tutorial/trigger-commands-on-file-or-directory-changes-with-incron-on-debian-9/

Linux Tips & Tricks - converting webp images

Linux Tips & Tricks - converting webp images

Because we're forced to deal with yet another image format, here's info on a tool to convert images to and from the webp format.
https://www.tecmint.com/convert-images-to-webp-format-in-linux/

Wednesday, 10 January 2018

Tuesday, 9 January 2018

Linux from the command line | Linux for sysadmins -- Triggering events with inotify

Linux from the command line | Linux for sysadmins -- Triggering events with inotify

This is a big deal feature and an important skill. There are a few ways to trigger things based on certain events happening in Linux. For example, running a script when a file is written to a certain directory. Think of automatically backing up log files to another system and deleting old logs.
http://www.linuxjournal.com/content/linux-filesystem-events-inotify

Linux Tips & Tricks - installing and using Aspell for system spell checking

Linux Tips & Tricks - installing and using Aspell for system spell checking

One of the great things about Linux is that there's almost always more than one way to do things and you're very rarely forced to use any specific one (Ubuntu users excepted). In this case you have multiple options for a system spell checking system and Aspell is one of them.
https://www.ostechnix.com/gnu-aspell-free-open-source-independent-spell-checker/

Learning Linux | Linux from the command line | Linux for sysadmins

Learning Linux | Linux from the command line | Linux for sysadmins

This article combines all three of my most common Linux post categories. It's a great resource for a lot of the tools you'll need to become a polished Linux user.

UPDATE: Yes, this is an old post but the great thing about a well designed system is that it lasts for a long time. Most of these commands and their usage are the same today. In fact most are the same as 25 years ago.
That's why learning them and the *NIX command line is a wise investment in your future as a sysadmin or even as a user. Fancy pretty GUI tools will come and go, but bash is forever.
https://www.cyberciti.biz/tips/top-linux-monitoring-tools.html

Friday, 5 January 2018

Linux from the command line - displaying asterisks when you type passwords in terminal

Linux from the command line - displaying asterisks when you type passwords in terminal

Not getting any feedback when entering passwords can be frustrating, especially on slower, remote links. You can change this default behaviour so that you see asterisks like you're used to when logging into things on the web.
https://www.ostechnix.com/display-asterisks-type-password-terminal/

Linux tips & tricks - increase your laptop battery life with TLP

Linux tips & tricks - increase your laptop battery life with TLP

Keep in mind that this article is mostly focused around manually installing and configuring TLP as you have to do under Ubuntu. On many other distros there are either graphical front ends to TLP, or other tools altogether designed to perform the same functions. OpenSUSE for example can use TLP, but also supports graphical control of it's other default laptop power management package. RTFM for your distro.
https://www.tecmint.com/tlp-increase-and-optimize-linux-battery-life/

Linux tips & tricks - easy HTML tables under Linux with Tablao

Linux tips & tricks - easy HTML tables under Linux with Tablao
https://www.fossmint.com/tablao-create-html-tables-easily/

Linux from the command line - more colourful, readable man pages with pinfo

Linux from the command line - more colourful, readable man pages with pinfo
https://www.ostechnix.com/pinfo-cli-program-read-info-man-pages-color/

Linux from the command line - recording terminal sessions with Tlog

Linux from the command line - recording terminal sessions with Tlog

If you've ever needed to explain to someone how to do a task from the shell, this is a great tool. It's also great for keeping track of complex shell sessions you've performed for later reference.
https://linoxide.com/linux-how-to/tlog-tool-record-play-terminal-io-sessions/

Linux from the command line - enabling syntax highlighting in Vi/Vim

Linux from the command line - enabling syntax highlighting in Vi/Vim

This is a really handy and useful feature.
https://www.tecmint.com/enable-syntax-highlighting-in-vi-editor/

Linux for sysadmins - creating your own offline repository

Linux for sysadmins - creating your own offline repository

At some point in your sysadmin career you'll find yourself managing updates for a number of systems eventually you'll want to setup your own update repository to help you control third party and custom package installs and to lighten the load on your Internet connection. This is much like setting up your own WSUS server on a Windows network. Having done both I can tell you it's worth the effort once you get them setup.
http://linuxtechlab.com/offline-yum-repository-for-lan/

Linux from the command line - curl vs wget

Linux from the command line - curl vs wget

One of the great things about Linux is that you always have lots of options, lots of choice as to how to do things. wget and curl are great examples of two options to do the same job.
I use wget almost daily myself, mostly because it came out before curl and I got used to using it. They both have their advantages and disadvantages so learn them both and use them each as appropriate.
https://www.maketecheasier.com/curl-vs-wget/

Wednesday, 3 January 2018

Linux from the command line - using the uptime command

Linux from the command line - using the uptime command

You can use uptime to get information about your system and how long it's been running etc.

Note that not all versions of uptime support all of the options in this article. For example the version that comes with GNU coreutils does not support any options.
https://www.howtoforge.com/linux-uptime-command/

Linux from the command line - Using uniq to find and remove duplicate information from files

Linux from the command line - Using uniq to find and remove duplicate information from files

This is yet another great Linux/UNIX tool that's especially handy in scripts and for processing logs etc.
https://www.ostechnix.com/uniq-command-tutorial-examples-beginners/

Detecting rogue processes and their ports in Linux

Detecting rogue processes and their ports in Linux

Contrary to popular belief, Linux is not impervious to malware. Yes, it is highly resistant, but there's always one method of entry for malware that works on every platform. The user. Social engineering and phishing scams etc. can all trick users into bypassing the otherwise excellent security model that Linux uses. And of course as long as bugs and stack overflows and the like exist, there are automated ways into the system.
However it gets there, one way to find malware is to look for processes and ports that don't belong to known processes and are hidden from normal view.
https://www.cyberciti.biz/tips/linux-unix-windows-find-hidden-processes-tcp-udp-ports.html

Tuesday, 2 January 2018

Linux Tips & Tricks - using parallel in bash

Linux Tips & Tricks - using parallel in bash

So you got that fancy new umpteen core CPU, but what good is it when you run commands from the command line? Most often the answer is none, other than when compiling with -jn (where n = number of cores plus one).
However, with the "parallel" command, you can make it happen.

For OpenSuSE users, just go here and pick the one for your version of OpenSuSE.
https://software.opensuse.org/package/parallel
https://bash-prompt.net/guides/parallell-bash/

Linux from the command line - getting IP info with whois

Linux from the command line - getting IP info with whois

Most people today that want to get info on a domain registry use a google search to find a domain registry lookup website. Linux users can do this simply and quickly from the command line.
https://www.tecmint.com/whois-command-get-domain-and-ip-address-information/#

Linux - Fixing time sync when dual booting with Windows

Linux - Fixing time sync when dual booting with Windows

I suggest using the second method and forcing Windows to do time the right way, though the Linux fix is of course easier.
https://www.maketecheasier.com/fix-windows-linux-show-different-times/

Monday, 1 January 2018

Linux from the command line - the wonders of bash history

Linux from the command line - the wonders of bash history

This is a great reference for learning and exploring the power of the bash shell's history file.
I definitely recommend expanding the size of your history file, though I'm less enthusiastic in recommending messing with the history append setting. Also, even though they give the basic method for setting these things, you should read the manual for your Linux distribution and find the preferred way of setting these things for your distro.
https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps