Category Archives: tips & tricks

PHPHOST BLOG

Web Hosting Related Articles You May Need

[one-liner]: What options were used to boot my Linux Kernel?

Background

In newer versions of Linux distros the GRUB2 configuration file is often times locked down so that you need sudo rights to see what options the Linux Kernel was booted with. Using the following tip you can see these options as just a regular “joe” user.

Solution

This tip is pretty straightforward, since now the options are […]

Continue reading

Posted in kernel, linux, one-liner, Syndicated, tips & tricks | Comments Off on [one-liner]: What options were used to boot my Linux Kernel?

[one-liner]: Linux Runlevels

Background

Determining a systems runlevel can be useful when setting up a headless server or determining if a system is being used as a server or as a workstation. Thankfully it’s pretty easy, using a number of commands. But before we get started, a little background.

Runlevels are a concept from UNIX System V used by the […]

Continue reading

Posted in linux, one-liner, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Linux Runlevels

[one-liner]: Improving the performance of SSH Tunnels using Alternative Ciphers; when displaying X11 Apps

Background

Have you ever used an ssh tunnel to try and remotely display an X windowed application and then wished you hadn’t, because the performance was so bad you’d be waiting till next week for the window to come up?

Read on because here’s how you can make this much more tolerable & usable.

Solution

There are 2 […]

Continue reading

Posted in one-liner, shell, ssh, Syndicated, tip, tips & tricks | Comments Off on [one-liner]: Improving the performance of SSH Tunnels using Alternative Ciphers; when displaying X11 Apps

[one-liner]: Securing your Subversion Password using GPG Agent

Background

If you’ve ever dealt with subversion on Unix, one of the annoyances is that it essentially stores it’s password in clear text under your $HOME/.subversion/auth/svn.simple directory in text files. Not a huge deal to a single developer or user but if you work in a large company or even a small one this is a […]

Continue reading

Posted in one-liner, Security, subversion, Syndicated, tips & tricks | Comments Off on [one-liner]: Securing your Subversion Password using GPG Agent

[one-liner]: Dealing with UEFI

Background

UEFI looks to be a major pain in the @$$, but like it or hate it everyone in the Linux community will need to learn to navigate it. Here’s a list of useful UEFI resources that I’ve come across as I’ve started to get smarter about how to deal with this beast.

Solution

Wikipedia

Unified Extensible Firmware […]

Continue reading

Posted in centos, fedora, one-liner, redhat, rhel, Syndicated, tips & tricks, UEFI | Comments Off on [one-liner]: Dealing with UEFI

[one-liner]: Debugging Bash Scripts

Background

From time to time it’s useful if you can turn up the debugging messages that come from Bash, when working out either interactive or shell script problems. Here are 2 methods that can help in getting down to the details.

Solution

There are essentially 2 methods.

Method #1: -x method

When writing a shell script you’ll sometimes want to […]

Continue reading

Posted in bash, one-liner, script, shell, Syndicated, tips & tricks | Comments Off on [one-liner]: Debugging Bash Scripts

[one-liner]: Why is Conky reporting a lower CPU frequency, when my CPU frequency is actually much higher?

Background

If you’ve every dealt with Conky you may have gotten a little confused when you’re trying to get it to display your CPU frequency like so:

1
${freq_g cpu0} Ghz

… and Conky is reporting your CPU frequency as 1.12GHz when in fact it’s actually much higher than that, say 2.67GHz. Most likely this is being caused by […]

Readers who viewed this page, also viewed:

Continue reading

Posted in conky, linux, monitoring, one-liner, performance, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Why is Conky reporting a lower CPU frequency, when my CPU frequency is actually much higher?

[one-liner]: How do you capture the status of a command ($?) in Bash, when run through a pipe?

Background

While answering questions on the stackexchage website Unix & Linux I saw the following question which was about something I’d encountered, but until today never knew how to accomplish, so I’m posting it here for my own reference in the future.

The question?

How do you get the exit status ( $? ) from the command haconf […]

Continue reading

Posted in bash, one-liner, script, shell, Syndicated, tips & tricks | Comments Off on [one-liner]: How do you capture the status of a command ($?) in Bash, when run through a pipe?

[one-liner]: Checking out a HDD’s Health using the Command Line Tool udisk

Background

Here’s a quick tip for checking out the overall health of your computer’s hard drive. It makes use of a little known tool called udisks which provides access to information about storage devices from the D-Bus interface.

Solution

Before we jump into udisks here are some resources that might prove useful when dealing with the design/architecture of […]

Readers who viewed this page, also viewed:

Continue reading

Posted in HDD, linux, monitoring, one-liner, performance, Syndicated, sysadmin, tips & tricks | Comments Off on [one-liner]: Checking out a HDD’s Health using the Command Line Tool udisk

[one-liner]: Free Online Programming Courses

Background

This post is intended to capture various online resources for taking classes and/or getting training in anything. They’re predominately programming language and software engineering courses but their are other tracks that focus on history and chemistry, for example.

Solution

This is by no means meant to be an exhaustive list, it’s a clearinghouse of the different resources […]

Readers who viewed this page, also viewed:

Continue reading

Posted in one-liner, programming, Syndicated, tips & tricks | Comments Off on [one-liner]: Free Online Programming Courses