You are currently browsing the archives for 2014.
Displaying 1 - 4 of 4 entries.

Changing WordPress Header-text

  • Posted on September 3, 2014 at 18:38

Status change

Up until about a year ago I thought of myself as an IT-guy lacking ambition. You may have read about it.
But things can change! People can change. Your status can change…

But what if you have your status listed as an under-title in your WordPress-blog?
You would update, you say?
Yes, but how in the world can you do that in WordPress?

 

Problem

To cut a long story short; I didn’t really find an easy way on changing the layout of what WorPress calls the Header-text. Of course, changing the text is not a problem. But specifically changing the layout or making it an hyperlink. That’s where it gets troubling.

Finding the header-text in the database was doable:

MySQL Query: Header text

Updating using SQL was also a peace of cake. But inserting HTML-code appeared to be ‘impossible’.
WordPress, or Apache, or PHP, whoever you want to blame, just renders the HTML to unformatted text. And that is not cool!

 

Solution

I just edited the header.php file, and added raw HTML.
File: [apacheroot]/wordpress/wp-content/themes/purple-pastels/header.php

VIM Screenshot of header.php

This is particularly a solution that I am not proud of. But I am proud of the result!

Just have to keep in mind that an update of the theme my so beloved updated header-text will be gone.
Therefor I documented all this.

GRUB: Change Splash-screen

  • Posted on July 26, 2014 at 02:37

SPLASH-SCREEN

  • Make sure you make it with GIMP Creating with Photoshop and saving (in different formats) never worked for me. Even opening the Photoshop-image with GIMP and saving it afterwards was not good enough for GRUB.
  • You can place the image everywhere. If you want to place it with the original grub-splashes, this is a good place: /usr/share/images/desktop-base.
  •  Then edit /etc/default/grub. Add the line:
GRUB_BACKGROUND="your_image.jpg"
  • Update GRUB
# update-grub2

 

GRUB-MENU

  •  Create a file called /boot/grub/custom.cfg and add the lines:
set color_normal=light-black/black
set color_highlight=white/black

 

MENU-ENTRIES

Maybe you would like to change the menu entries:
Edit /etc/grub.d/10_linux
(You can find them starting with title=. I added LISA for this example)

linux_entry ()
{
  os="$1"
  version="$2"
  recovery="$3"
  args="$4"
  if ${recovery} ; then
    title="$(gettext_quoted "LISA %s, with Linux %s (recovery mode)")"
  else
    title="$(gettext_quoted "LISA %s, with Linux %s")"
  fi

 

And then when you reboot things may look like this:
(If you’re lucky)

lisa_grub_splash

 

REFERENCES

 

 

Start Debian in text-mode

  • Posted on January 6, 2014 at 21:56

Edit /etc/default/grub file, locate the following line:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet”

and change it to:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet text”

and don’t forget to run ‘update-grub’ afterwards to update.

(thanks to Eu2200 on debainadmin.com)

Clone Debian over SSH using Rsync

  • Posted on January 5, 2014 at 03:11

A simple walk-through

On the target machine:

  • Net-install the same Debian-distro with Graphical User-Environment and SSH-Server
  • Boot that the new installed Debian OS
  • Install some tools:
    # apt-get install rsync parted htop xfsprogs
  • If you feel like it: Make a separate /home – partition, mount it, and add it to you /etc/fstab
  • Secure your fstab:
    # cp /etc/fstab /boot/_etc_fstab
  • Start the SSH-Server:
    # /etc/init.d/ssh start
  • Get the target IP:
    # ifconfig -a eth0

 

On the original machine:

  • Go cloning:
    # rsync -aAXv --delete --progress --exclude={/boot/*,/dev/*,/mnt/*,/proc/*,/sys/*,/tmp/*,/run/*,/media/*,/lost+found} --rsh='ssh -p22' /* root@ip-target-machine:/

 

Go back to your target machine and copy back your fstab and reboot:

  • Restore your fstab:
    # cp -f /boot/_etc_fstab /etc/fstab
  • Reboot:
    # shutdown -r now

Have fun with your fresh Debian install!
Well fresh… “Your already configured Debian install”.

Don’t forget to re-install your VMware-Tools! Your GRUB may needs updating for some extra kernel-parameters.