Updates from March, 2012 Toggle Comment Threads | Keyboard Shortcuts

  • Jay Versluis 3:01 pm on March 31, 2012 Permalink | Reply  
    Categories: Linux ( 101 )   

    How to use vi to edit files in Linux 

    Here’s a brief reminder on how you can edit files with vi directly from the command line. Text is all you get, no other visual clues or menus are included, and best of all you need to know each keyboard shortcut once you’ve entered it.

    vi is an old editor going back all the way to 1976. It’s not the most comfortable one, but the beauty is that it’s available on pretty much every distribution. There are several other common editors out there, but it’s not always an option to install those just for a quick file edit.

    In this article I’ll show you the most commonly used commands and shortcuts, help you delete old versions of a file and show you a couple of links to more in-depth sources.

    I assume here that you are comfortable using the command line interface (CLI).

    (More …)

  • Jay Versluis 5:50 pm on March 25, 2012 Permalink | Reply  
    Categories: Linux ( 101 ), Plesk ( 76 )   

    How to use SFTP with Plesk 10.4.4 

    We had a discussion recently about using SFTP under Plesk 10. It’s possible, however the feature is not called SFTP explicitly so I thought it’s best to describe how it works here.

    Note that SFTP is only possible for the main domain owner, not for additional FTP Users that you may create under Web Users… sorry! Here’s the Parallels Knowledgebase article which explains why.

    That said, here’s how you activate SFTP for your account:

    (More …)

    • Jay Versluis 10:10 am on September 28, 2013 Permalink | Reply

      The same procedure works in Plesk 11.5 but the menu items have changed slightly:

      From the Websites and Domains tab click FTP Access. From here select the main FTP user (little world icon). On the next page you’ll find the drop down menu to select /bin/bash (chrooted).

  • Jay Versluis 5:50 pm on March 24, 2012 Permalink | Reply

    Categories: Themes ( 28 ), WordPress ( 145 )   

    How to tweak P2: adding and replacing categories 

    Today I’m going to tweak the marvellous P2 Theme by Automattic.

    P2 is one of my all time favourite themes – not only because it transforms WordPress into something completely different, but also because it’s an innovative way we communicate internally here at WP Hosting. If you don’t know P2 yet, do check it out at p2theme.com and watch the video.

    At the time of writing P2 is at Version 1.3.3 and has been since November last year. Code changes quickly, so by the time you’re reading this my ramblings may be out of date.

    Let’s have a look at how we can add and amend the default categories (i.e. Status Update, Blog Post, Quote and Link).

    (More …)

    • Jay Versluis 6:31 am on April 12, 2012 Permalink | Reply

      UPDATE: Tweaking categories and labels this way no longer works since Version 1.4.0. See here for all the latest features: https://wpguru.co.uk/2012/04/new-features-in-p2-140/

      Sadly this means that we have to go back to the drawing board here…

    • Jay Versluis 10:37 am on April 16, 2012 Permalink | Reply

      But the good news is I’ve found a way to back-port categories into v1.4.0:

    • Luis 6:42 am on September 4, 2012 Permalink | Reply

      Hey Jay, thanks a lot for this. I’ve been racking my head for the last 24 hours trying to edit a child theme with P2. With this and the newer post for back-porting cats I’m almost set.

      I do have a final question though. For people who change the theme’s color scheme. How would I go about changing the background color of notifications? My bg is no longer white, but every time I post a new comment or status I get the slow animation that fades to white. Please help!

      • Jay Versluis 11:16 am on October 8, 2012 Permalink | Reply

        Hi Luis,

        that’s a really tricky one – I know what you mean though, a new post always fades from yellow to white. I’ve been through all the CSS and the ajax.php but can’t find where this is being done, sorry I can’t help on this occasion. If you find out please let me know, I’ll add it to http://p2guide.wordpress.com ๐Ÿ˜‰

        It’s worth asking that question in the P2 Forum: http://wordpress.org/tags/p2

    • nav 7:43 pm on November 13, 2012 Permalink | Reply

      very useful post. P2 should have had this in built. i spent hours before i found both of your posts.

    • Jay Versluis 10:56 am on July 28, 2013 Permalink | Reply

      There appear to have been some messed up code samples in my post – this happens time and time again if I correct a typo and then ALL my code turns into 5H1T standard. I’m happy to report that this is now fixed.

    • Fab 7:35 am on April 10, 2015 Permalink | Reply

      Thanks for this post ,Jay, helped a lot 3 years later

      • Jay Versluis 10:16 am on April 13, 2015 Permalink | Reply

        Always good to hear – thank you, Fab!

  • Jay Versluis 9:21 pm on March 15, 2012 Permalink  
    Categories: Snapshot Backup Devlog ( 8 )   

    Snapshot Backup 2.1 

    After over 20.000 downloads and one day before “the new iPad” hits the shelves, I give you an update on Snapshot Backup. I have finally found the time this week to work again on this project. It’s been too long, (8 months since my last update) but better late than never. It’s like a good wine.

    I’ll tell you upfront: if this was easy for me, and it wouldn’t have taken this long if my knowledge of PHP was better. The latest version is available immediately from the WordPress repository.

    Here’s what I’ve been slaving away over, and what’s new in Version 2.1

    (More …)

    • Jay Versluis 3:27 pm on April 2, 2012 Permalink

      I’ve just added a quick fix to a Maintenance Release, Version 2.1.1:
      This switches the way auto delete operates by deleting the old snapshot(s) first, and then writing the new one to the FTP site.

      I’ve also corrected the Archving spelling mistake which has been there since Version 1.0 (ouch).

      Sadly this update does not address the empty database problem which occurs on some setups, pretty much because I don’t know how to fix it. Yet. It’s next on my list, together with adding Amazon S3 storage.

    • George 8:17 am on December 30, 2012 Permalink

      Without instructions of how to use it your plugin is pretty much useless.

  • Jay Versluis 1:32 am on March 4, 2012 Permalink | Reply  
    Categories: Linux ( 101 )   

    How to install CentOS with Parallels Desktop 

    You can never have enough servers flying around, be that for testing, playing or developing. Today I decided that I wanted my local copy of CentOS on my Mac Book Pro – and thanks to Parallels Desktop I can run this in a virtual container alongside Mac OS X. Nice!

    It’s a bit complex so I took some notes – may they be useful for both you and me at some point in the future.

    I’m installing CentOS 6.2 in 64bit on OS X Lion on a 13″ Mac Book Pro with 8GB of RAM and an Intel i7. I’m using Parallels Desktop 7 for this exercise.

    (More …)

    • Oye 5:47 am on June 24, 2012 Permalink | Reply

      Hi Jay. The method you described here works perfectly! Thanks a lot. Keep up the good work!

    • Yulok Lam 3:22 am on October 19, 2012 Permalink | Reply


      When you install Parallels Desktop does it include
      Mircosoft Windows also? I want to install Centos OS without
      MS Windows on my MacPro book.


      • Jay Versluis 4:04 pm on October 23, 2012 Permalink | Reply

        No, Parallels Desktop is literally only the virtualisation environment, it does not include any operating systems. You need to provide them either from a disk or have a valid download link.

    • jrid 3:45 pm on November 24, 2012 Permalink | Reply

      A couple of days ago I made the same installation.
      But I’m fighting now to be able copy/paste to Centos without any luck.
      Have you managed to do that?
      It frustrating sometime to type long lines of text in command line when they a already in the Texteditor.

      • Jay Versluis 2:16 am on November 25, 2012 Permalink | Reply

        Yes that can be tedious indeed. Technically the Mac clipboard doesn’t know the CentOS clipboard and vice versa. Try dragging marked text from the Mac OS into the CentOS window, it works if you want to drag something from Mac into the terminal window.

    • Daniel Frechette 6:15 am on December 13, 2012 Permalink | Reply

      Thank you. This was very helpful.

    • Thomas 12:22 am on April 16, 2013 Permalink | Reply

      When I did this, it was slightly different. Under “Installing CentOS virtually” when you select, โ€œinstall a new system or update an existing oneโ€ it didn’t immediately ask me where the files were, first it asked me to verify the install disk. I had to click, “Skip”, or it would fail every time.

    • Stephen 2:28 pm on August 21, 2013 Permalink | Reply

      Thank you for this. I have bit of a dilemma trying to boot Graphical User Interface. If i google, many results tell me to type ‘startx’, but this command is not valid. Any help would be cool. Thank you.

      • Jay Versluis 7:05 pm on August 21, 2013 Permalink | Reply

        Hi Stephen, I know what you mean – I also had trouble getting that GUI to work. As with many things in Linux, there’s always some hidden way to activate something retrospectively that hasn’t been installed. In case of the GUI however, it depends which type of installation you chose. I believe that “minimal” does not install the GNOME component (which is the GUI) – but the “full” option does. Sadly I don’t know how to turn one into the other… sorry!

        What I would do is to start the installation again and then choose the “full installation”, I believe it’s the first option. IF all goes well, your machine should then automatically boot into the GUI.

        Good luck ๐Ÿ˜‰

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc