In this day and age, you need your machines to be up and running 100% of the time, or as close to that as possible. This means that rebooting a server just to get some detail about your RAID configuration is completely out of the question.
Luckily, some RAID cards have the ability to be configured even from a running system. In the case of this article, we’re looking at LSI or PERC (As the Dell guys call them) cards.
If you want to run a slide show or something similar on your Pi, you don’t want to constantly go into ‘screensaver mode’ or ‘energy star’ mode.
This guide is based on Raspbian, fully updated as at 4 Aug 2014.
If your Pi runs X by default, you can disable the screensaver or power saving mode as follows:
# Edit the /etc/X11/xinit/xinitrc file and add the following three lines at the bottom of the file xset s off # don't activate screensaver xset -dpms # disable DPMS (Energy Star) features. xset s noblank # don't blank the video device
If you run the console by default, but still want to prevent the screen from going blank, you can do it with the following single command:
sudo sh -c "TERM=linux setterm -blank 0 >/dev/tty0"
To resize all the JPEG files in a directory so that one of the dimensions is maximum 800 pixels.
The \> implies that the images will only be made smaller, never bigger
ImageMagick must be installed
mkdir tmp for file in `ls *jpg`; do echo $file; convert $file -resize 800x800\> tmp/$file; done
To install VMWare tools using YUM on CentOS/RHEL 6.5, do the following.
Note, I’m logged in as the ‘root’ user, but you could execute these commands using ‘sudo’ as well.
Step 1: Download and import GPG keys
[root@techedemic /var/tmp]# wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub [root@techedemic /var/tmp]# rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub
Step 2: Add VMWare repository
# Create/Modify /etc/yum.repos.d/vmware-tools.repo, I use 'vim' as an editor [root@techedemic /var/tmp]# vim /etc/yum.repos.d/vmware-tools.repo
Please see Connect via RDP to Ubuntu 14.04 using XRDP for an updated version of this post.
If you need to connect to a Linux machine, and in the scope of this guide, Ubuntu 13.10 (I’m sure this guide should be fine for earlier versions as well), then your options include:
- Pure and simple SSH – The admin’s super tool! (just install openssh-server – works every time!)
- VNC – I don’t like this method because you need to install software on your client AND server
- XRDP – This still involves VNC to some degree but you can use the normal Windows Remote Desktop Client
The latter is the one I’ll guide you through here. Continue reading
Changing something small, on the fly, is possible in WordPress by navigating to Appearance -> Editor. It’s a great tool if you need a web guru on your server but you don’t want to give him access to your backend. But them he calls you and explains that he is getting the following error when trying to edit your theme files using the WordPress editor
"You need to make this file writable before you can save your changes. See the Codex for more information."
Ok, sure, I’ll check the codex. But it still doesn’t work, even with permissions of
Speedtest.net is the de facto internet link speed testing tool out there. Some people might argue that it is not accurate, but it’s still the most popular tool of it’s kind out there.
For us geeky individuals that have only the command line (cli) available to us in Linux but still want to test our link speed to the internet, there is a solution. speedtest-cli
To use, do the following (Tested in Ubuntu)
Step 1: Install GIT (git-core)
user@techedemic:~$ sudo apt-get install git-core
So you’ve created a magnificent automated report in Excel that just pulls the data in via XML and your customers go “wow!” when they see how easily your reports work, until….
This seams to be because a newer version of MSXML (v6.0 in this case) was installed. To get your document to work as expected again, you need to select the proper reference libraries for MSXML. In my case I needed to change it back to MSXML v3.0 to get it to work.
I cannot believe how simple this is, yet I had to google to figure it out (why oh why didn’t I just read the ‘man’ pages). The syntax for executing a remote command is as simple as:
## SYNTAX ssh [user]@[remote host] [command] ## EXAMPLE ssh email@example.com df -h firstname.lastname@example.org's password: Filesystem Size Used Avail Use% Mounted on /dev/mapper/td--VG1-td--LV2 443G 89G 332G 22% / udev 993M 4.0K 993M 1% /dev tmpfs 401M 628K 401M 1% /run none 5.0M 0 5.0M 0% /run/lock none 1002M 0 1002M 0% /run/shm /dev/sda1 241M 38M 191M 17% /boot