SilverWav's Journal

The best is yet to come…

Note: WordPress upgrade loop fix “Database Upgrade Required”

leave a comment »

Looked all over but this guy saved the day!

Solution for WordPress WP-Options Issue – Database Upgrade Required

This is a problem related with a table named as “WP_Options” of WordPress database. The wp_options table contains some general information related to the blog which appears in the setting tab of admin. It also contains some information about the plug-in installed for the blog.

The Option Name db_version in WP_Options table is not equal to the field wp_db_version of version.php. You can have a look at the Version.php located under wp-include folder of your wordpress blog.

My db said 22441 so I changed my version.php to match.

I just needed to get in to Admin so I could do an export, so this did the trick :-)

______________________________

Details:

54 db_version 22441 yes

______________________________

”’db_version”’ for WordPress releases:
3.9 = 27916
3.8.3 = 26691
3.8.2 = 26691
3.8.1 = 26691
3.8 = 26691
3.7.1 = 25824
3.7 = 25824
3.6.1 = 22448
3.6 = 22448
3.5.2 = 22442
3.5.1 = 22441
3.5 = 22441

______________________________
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
*
* @global int $wp_db_version
*/
$wp_db_version = 27916;

Written by SilverWav

April 21, 2014 at 9:59 pm

Posted in Notes

Tagged with

SD card “disappears” after HP Pavilion 14 wakes from sleep.

leave a comment »

This is helpful, being able to bookmark, browse and use “save as” with the external SD card.

This is a partial work around for the “disappearing” SD card issue. (ChromeOS is the problem not the hardware, as I can still see the SD card from the chroot).

Fortunately, the web browser does support the file: URI scheme allowing access to the File Shelf and External Devices directories.

Directory URL
File Shelf file:///home/chronos/user/Downloads/
External Storage file:///media/removable/External%20Drive/

To copy a file from one directory or device to another, use the URL listed above to locate the target file, then right click on the file and select “Save link as…” to copy the file to a new location. (via William Shotts)

The other workaround is to use the command line which still allows for access to the SD card, once you use “shell”.

cp ~Download/somefile ‘media/removable/External Drive/’

__________

SD card “disappears” after HP Pavilion 14 wakes from sleep.

My newest Chromebook is the HP Pavilion 14, the older, black model. Fully updated. Today, I purchased a SanDisk SDHC card. The HP Chromebook recognizes it as “External Drive” and I can add files to it just fine. Just one problem: when this Chromebook wakes from sleep, and I click the Files icon, “External Drive” is no longer listed. Any ideas why? Removing and re-inserting the card forces Chrome OS to “see” it again.

Written by SilverWav

February 24, 2014 at 2:25 am

Crouton Upgrade raring to saucy

leave a comment »

A worked example so I don’t forget for the next time.

1. Backup chroot – after logging out of raring:

chronos@localhost:~$ sudo edit-chroot -b raring

2. Upgrade to new Distribution Release:
me@localhost:~$ sudo do-release-upgrade

3. Update your chroot using the latest crouton -u to make sure all of the crouton-related scripts are still in place.
me@localhost:~$ croutonversion -u -d -c

4. chronos@localhost:~$ sudo sh -e ~/Downloads/crouton -t xfce -t chrome -n raring -u

5. Rename the chroot (edit-chroot -m) to match the new release name:
chronos@localhost:~$ sudo edit-chroot -m saucy raring

Works a treat just need to run synaptic or software-center as root or I get errors:
gksudo synaptic-pkexec

PolicyKit error when trying to install/remove programs in the software center

Upgrade raring to saucy

Written by SilverWav

February 23, 2014 at 6:13 pm

Posted in Feature

Tagged with , , ,

How may Chromebooks run Crouton?

leave a comment »

Where Are All The Chromebooks?

Crouton has 171,342 users?… hmm interesting

Google URL Shortener - Google Chrome_023

goo.gl stats

__________

More interesting still the ratio of Chromebook users to Crouton installers…

1 in 10? then 1,713,420 Chromebooks

1 in a 100?  then 17,134,200

__________

Chromebook shipments in 2014 are expected to increase to 4-5 million units, the sources indicated.

__________

Hmm that Linux Web Growth looks like the Crouton affect – using Xfce on your Chromebook.

This is exactly how I use my HP Pavilion 14.

Hmm that looks like Crouton – using Xubuntu on your Chromebook

Chitika, an online advertising network and Yahoo partner, recently concluded a five-month study of Chrome OS and Linux Web usage growth. The company found that the Chrome OS drives 0.2% of desktop Web traffic in North America.

That represents a doubling of Chrome OS traffic in September 2013, when Chitika’s study began. But in the overall scheme of things, Chromebook-generated Web traffic remains insignificant. Chrome OS Web traffic is about a tenth of desktop Linux Web traffic in North America.

Written by SilverWav

February 23, 2014 at 1:49 pm

SSH Is Easy! Linux’s best kept secret.

leave a comment »

Read this first SSH: An Easier-Than-You-Thought Tutorial by Paul Arnote (parnote)

I had no problem with this:

ssh -l paul_lenovo 192.168.1.101

-l (small L) logs the listed computer as a trusted computer, and we only have to do this once (per remote machine, per local machine).

though to log-out I used “logout” not “~.”

Then…

ssh -v remote_account_name@remote_ip_address

…worked fine!

But…

ssh -v -X remote_account_name@remote_ip_address

gave me an error:

X11 forwarding request failed on channel 0

This turned out to be because IPv6 was disabled:

$ sysctl net.ipv6.conf.all.disable_ipv6
$ net.ipv6.conf.all.disable_ipv6 = 1

The easy answer was:

1) Adding the following to your sshd_config (/etc/ssh/sshd_config)
AddressFamily inet
2) Restart SSH

Hell Yeah!

Typed “thunar” and after a brief delay there was my remote file manager forwarded to my desktop.

Sheer magic.


Notes:

Ensure you have OpenSSH client and the OpenSSH server installed.

sudo nmap -sP 192.168.0.0/24 scans your network and lists all of your devices.

https://gist.github.com/adrianratnapala/1324845

http://www.gossamer-threads.com/lists/openssh/users/51998

http://pclosmag.com/html/Issues/201102/page18.html

Written by SilverWav

August 27, 2013 at 9:48 pm

The Best Chrome Extensions For An Ex Firefox User (9 month later)

leave a comment »

Extensions:

Adblock Plus  1.5.4

Blocks all annoying ads on the web: video ads on YouTube, Facebook ads, banners and much more. Visit website

Close tab on context menu 0.2

A simple extension that add a ‘close tab’ context menu entry. Visit website

Create Link  0.2.9

Copy current page URL to clipboard in various formats. Visit website

Double Click Closes Tab 1.0.9

Double left/right or triple left clicks on WEBPAGE (not tab) to close tab. Reopen tab by shiftKey + DC/TC. Visit website

Force Background Tab 2.0.4

Force New Tab Running In Background Visit website

Netflix Rate 1.3.18

Add IMDB and Rotten Tomato ratings to the Netflix webpage. Visit website

PageZipper 1.3
A free bookmarklet which automatically merges all the ‘Next’ pages into one page Visit website

Pocket (formerly Read It Later) 1.5.6
Pocket Extension for Google Chrome – The best way to save articles, videos and more Visit website

Readability Redux 1.3.4

Readability for Chrome. Now fully customizable! Visit website

Scroll To Top Button 6.2.4

Adds a scroll to top or bottom button. Visit website

Stylebot 2.1

Change the appearance of websites instantly. Visit website

I use this to generate CSS code then create a style at http://userstyles.org/users/98352 for use in Stylish 1.2

I find Stylebots use of a form and click’n’pick selection easy to use, but prefer saving to Stylish.

Main thing you have to change in the CSS is adding “!important” to things.

Stylish 1.0

Restyle the web with Stylish, a user styles manager. Stylish lets you easily install themes and skins for Google, Facebook, YouTube, Orkut, and many, many other sites. Visit website

The best :-) see http://userstyles.org/users/98352.

Having the styles on the web makes it easy to add then on any Chrome browser, at home or work.

URL Pinner 0.6.15
Auto pin your websites via URL and keep them sorted! Visit website

Set “RegExmode” to “.*” then all tabs are pinned.

______________________________

Notes:

RSS: I now use Feedly via the web, no need for an extension.

Font Size: Chrome’s Built In Page Zoom and Minimum Font Size mean that there is no need for an extension.

Not perfect but with the occasional Stylish hack, workable.

HP Chromebook: Xfce Setup and Apps

leave a comment »

To add Xfce to your HP Chromebook you need to go here first.

Now on with the configuring of your new Xfce Desktop… :-)

Xfce Setup and Apps

sudo apt-get install arandr

sudo apt-get install synaptic

file-roller

gnome-system-monitor

pina

keepassx

Appearance

Icons > Harmony.

Rendering > enable anti-aliasing: slight, rbg

Written by SilverWav

August 24, 2013 at 9:01 am

Follow

Get every new post delivered to your Inbox.