How To: Enable SSH

Installing SSH on Linux

The man page defines SSH as:

ssh — OpenSSH remote login client

Now, simply type (this one can be easily adjusted to other package managers):

[code]sudo apt install openssh-server[/code]

[code]ssh remote_user@ip.a.d.d.r[/code]

[code]ssh remote_user@host_name.local[/code]

[code]ssh kgiii@kgiii-msi.local[/code]

[code]hostname[/code]

And, with that, I thank you my dear reader for taking the time out of your day to humor this old fool. Your feedback is appreciated and keep signing up to that whole newsletter thing. Being old, I tend to forget to submit and share these articles elsewhere. Signing up means you have no excuses for missing an article!




How To: Use ‘find’ to List .iso files in a Directory.

Using The Linux Find Command:

this link (which will save me the time of repeating it). Seriously, read it. It’s well worth the read.

So, how did we get here?

[code]ls -la | grep iso[/code]

I could have output them to a handy text file for storage with:

find‘ command. Using ‘find’ is a bit more complex, but it’s worth learning how to use it.

cpio‘, which oddly didn’t appear in Unix until Version 7. The cpio was all about archiving and actually still exists though you’ve probably never used it.

I wanted to list the .iso files in the directory and so I ended up with this command:

-iname 
awk‘ and ‘putting it all together‘. You just need to use a pipe and then ‘wc -l’. So, that command would look like:

Let’s Play With ‘apt-cache’ Some More!

inxi and you know how to open the terminal by pressing CTRL + ALT + T on your keyboard.

First, if you want to display a bunch of generic information, you can use the following:

[code]apt-cache show inxi[/code]

[code]apt-cache search inxi[/code]

[code]apt-cache search text editor[/code]

[code]apt-cache policy inxi[/code]

Among this giant, perhaps overwhelming, source of data are a couple of other neat things you can do. You can easily see both the dependencies and the reverse dependencies.

For clarity sake, the dependencies are the extra software that needs to be installed for the package in question to function. The reverse dependencies are what packages require the installation of the package in question in order to be fully functional.

To find the dependencies:

[code]apt-cache depends inxi[/code]

And the reverse dependencies:

[code]apt-cache rdepends inxi[/code]

[code]man apt-cache[/code]

[code]apt-cache stats[/code]

See? Another lovely way to use the terminal to gather information. I use the terminal nearly exclusively to manage my installed software.




How To: Use ‘apt-cache’ to Find Homepage for Your Installed Apps

[code]apt-cache show inxi[/code]

[code]apt-cache show inxi | grep Homepage[/code]

[code]apt-cache stats[/code]

How To: List PCI Information From The Terminal (lspci)

PCI devices are the ones in the add-on slots in your computer. They’re typically internal devices, though you can get USB powered external devices with PCI-e slots, they kind of defeat the purpose. For this article, we’ll be using lscpi.

[code]sudo apt install pciutils[/code]

The PCI ID Repository and may actually not be accurate. Yup. You could get inaccurate results from this command, but we throw it around daily as though it’s infallible. And now you know…

[code]lspci[/code]

[code]lspci -v[/code]

[code]lspci -t[/code]

However you can easily put the two of those together and simply get a great verbose tree output with:

[code]lspci -vt[/code]

NOTE: Older versions required -vvv for verbose and -tree were needed to perform those operations. The current versions simply use the -v and -t switches.