Category Archives: linux

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

Searching JARs for String (Linux)

I recently thought about writing a Groovy script to search JARs for a specific string, but decided to first look for an alternative rather than writing a script. The alternative needed to be easy to use, freely available, and not bogged down with a lo… Continue reading

Posted in Java (General), linux, Syndicated | Comments Off on Searching JARs for String (Linux)

Why are “executables” such as reboot, shutdown, and vgscan symlinks in the /sbin directory?

Background

If you’ve ever gone poking around in your Linux system’s /sbin directory the site of files like this might make you scratch your head.

1
2
3
4
5
6
7
8
lrwxrwxrwx 1 root root 3 Jun 7 2011 vgmerge -> lvm
lrwxrwxrwx 1 root root 3 Jun […]

Continue reading

Posted in linux, shell, Syndicated, sysadmin, tip, tutorials | Comments Off on Why are “executables” such as reboot, shutdown, and vgscan symlinks in the /sbin directory?

How does a process deal with user credentials?

Background

A question came up on the Stack Exchange site Unix & Linux in which I wrote up a pretty good answer, that describes some of the mechanics of how a process deals with its user credentials, so I’m adding my writeup to the blog.

It really comes down to what makes up a process in Unix. […]

Continue reading

Posted in credentials, linux, permissions, process, Security, Syndicated, tutorials | Comments Off on How does a process deal with user credentials?

How is my password stored in Linux?

Background

People that use Linux on a daily basis probably are completely oblivious to the actual mechanisms being used to store their passwords safely and securely on a given Linux system. Oh they might guess that their password is stored in the /etc/passwd file (they’d be wrong by the way) but most probably never even gave […]

Continue reading

Posted in encryption, linux, passwords, Security, SHA-512, shadow, Syndicated, sysadmin, tutorials | Comments Off on How is my password stored in Linux?

[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]: 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]: Statically building Subversion on Fedora 14

Background

In my experience it can be tricky to compile applications that make use of 3rd party libraries and/or system libraries such as glibc etc. The problem is that in addition to your application being built statically, all these libraries need to provide both a dynamic (.so) version as well as a static version (.a) and […]

Continue reading

Posted in compiling, linux, one-liner, programming, Syndicated, tip, tips & tricks | Comments Off on [one-liner]: Statically building Subversion on Fedora 14

Significant Software Development Developments of 2012

I have written before (2007, 2008, 2009, 2010, 2011) on my biased perspective of the most significant developments in software development for that year. This post is the 2012 version with all my biases and skewed perspectives freely admitted.

10. Gr… Continue reading

Posted in Akka, Cloud Computing, General Development, Groovy, HTML5, linux, NoSQL, Scala, Syndicated | Comments Off on Significant Software Development Developments of 2012