Install and uninstall gnome shell extensions

Install:

sudo apt-get install chrome-gnome-shell

Now go to https://extensions.gnome.org/
Install required extensions after downloading the browser extension. In case of firefox, you may need to disable extension compatibility checking.
You can control extensions and their settings from gnome-tweak-tool

In case of serious issues preventing booting:

apt-get install --reinstall gdm3 gnome gnome-shell

You may also want to move everything from ~/.local/share/gnome-shell/extensions

The lower left corner legacy icons are an irritation. To move them, install the GNOME shell extension TopIcons. This moves the legacy tray icons shown in this bar to the main GNOME bar, up in the top right by the menu.


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

WordPress: This website has a redirect loop

I got the following error in Chrome after transferring my WordPress install across servers:

“This website has a redirect loop”, and seemed to redirect to a url with the signup link.

On Firefox, the error was: “The page isn’t redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies.”

I tried the following:

  1. Clearing cookies.. Duh
  2. Setting the following permissions (recommended for the install. See Codex.)
    [[email protected]] /htdocs #find . -type d -exec chmod 755 {} \;
    [[email protected]] /htdocs #find . -type f -exec chmod 644 {} \;
    [[email protected]] /htdocs #chown -R vu2009.vu2009 *
    

    where vu2009 was my webserver user (See cat /etc/passwd)

  3. Finally, logged into phpmyadmin and found that I’d forgotten to import my database!

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Things to do after installing Kubuntu

Install Google Chrome:

Download the latest Debian package.

Install the package:

sudo dpkg -i ./google-chrome-stable_current_i386.deb
sudo apt-get install -f

The first command attempts to install the .deb file. The second installs any required dependencies and completes installation of the package.

Install Firefox:

Download the latest .tar.bz2 package.

Decompress and move it to a suitable location:

cd ~/Downloads
tar -jxf firefox-23.0.tar.bz2
sudo mv firefox /opt/
sudo ln -s /opt/firefox/firefox /bin/firefox

Now, firefox will be in your path. If you need to add a Shortcut to the KDE menu, do so, to the location /bin/firefox

Right click the KDE icon, and “Edit Applications”
Under the KDE menu editor>Internet>Firefox installer

Rename it to Mozilla Firefox
Change the path from:

muon-installer --application=firefox

to:

/bin/firefox

 Install Shutter screenshot tool:

sudo add-apt-repository ppa:shutter/ppa
sudo apt-get update && sudo apt-get install shutter

Rather than install with muon, this is preferred, as Muon ships with an outdated version of shutter.

Install smplayer for playing videos:

sudo add-apt-repository ppa:rvm/smplayer
sudo apt-get update && sudo apt-get install smplayer smtube smplayer-themes smplayer-skins

You can ignore a message regarding smplayer-skins.

Install Dropbox

Download and install the Debian package:

sudo dpkg -i dropbox_1.6.0_i386.deb
sudo apt-get install -f

Eg:

wget https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_1.6.0_i386.deb

Install the GUI:

dropbox start -i

 Install ksuperkey and assign Win key to KDE menu

Assign various keyboard shortcuts to Win key combos.

Install KDE services addons from Kde-look:.

KDE Service Menu:

http://sourceforge.net/projects/kde-services/files/RPM/

Eg:

wget http://sourceforge.net/projects/kde-services/files/RPM/kde-services-1.8-5.fc18.noarch.rpm/download

sudo apt-get install alien

sudo alien kde-services-1.8-5.fc18.noarch.rpm

sudo dpkg -i kde-services_1.8-6_all.deb

 

Make wget use the correct filename from server:

Create/edit a file $HOME/.wgetrc, with the following content:

content_disposition = on

Alternately, you can invoke wget with the –content-disposition switch.


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Browse sites on remote firefox session and save to remote server

Install firefox on both servers,

Add the following to /etc/ssh/ssh_config on the client computer:

ForwardX11 yes

Now, login to the remote server, and install the following:

apt-get install xauth

Now, on the remote server, run the following:

./firefox --no-remote

A few seconds later, a new firefox window will open locally, ehich actually runs remotely.

Troubleshooting:

[[email protected]] ~ #firefox -no-xshm
(process:2658): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused
Error: cannot open display: localhost:10.0

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Installing Firefox in Debian or Ubuntu with apt-get

Debian by default comes with Iceweasel which is “based on firefox”, but not quite the same as installing the original Firefox.

To install Firefox, do the following:

Add a package source to apt:

sudo emacs /etc/apt/sources.list.d/firefox.list

Now add the following line to this file:

deb http://packages.linuxmint.com debian import[/code]
Now, add the key for this source:
sudo apt-key adv --recv-key --keyserver keyserver.ubuntu.com 3EE67F3D0FF405B2

Now update your sources and install as usual:

sudo apt-get update
sudo apt-get install firefox

 

 


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.
Using Keepass with Chrome and Firefox

Using Keepass with Chrome and Firefox

Keepass, an open source software, is arguably one of the best password management tools available. My personal favorite is Lastpass for the sheer number of available features, and because of close integration with Chrome. Keepass however seems to have a few issues with Chrome, though Firefox integration with the Keefox extension is perfect.

Edit:
Newer steps for installation of chromipass on Linux Mint 18.1 Serena (updated April 2017):
1. Install Chromipass for Chrome.
2. Visit keepassxc-debian github page and get the latest .deb packages.

https://github.com/magkopian/keepassxc-debian/releases/download/2.1.4-1/keepassxc_2.1.4-1_amd64_stable.deb

3. Install the deb:

sudo dpkg -i keepassxc_2.1.4-1_amd64_stable.deb

4. Open keepassxc, open your database and enter password or choose key file.
5. Install mono-complete
apt-get install mono-complete
6. Download keepass http:

wget https://raw.github.com/pfn/keepasshttp/master/KeePassHttp.plgx
sudo cp KeePassHttp.plgx /usr/lib/keepass2/
sudo chmod 644 /usr/lib/keepass2/KeePassHttp.plgx

Older article:
This article explains how to install Keepass on Windows and Linux, and has been tested to work with Keepass 2.22, and Windows 8 64 bit, Ubuntu 12.10 and Debian Squeeze.

To use Keypass with your browsers:

How to install and use Keepass on Windows 7 and 8

The following article applies to Windows 7/8. For Linux info, skip to the end.

How to install and use Keepass on Windows 7 and 8 on Firefox:

Install the latest Keepass installer

Install Keefox extension

Run Keepass, create a database, and add either a Master password or Master Password+Composite key (This is a composite key. Both Key and password will be required), or just a Key.

Import your prior passwords (If using Lastpass, export from Lastpass to a .csv file, and then import the .csv file into Keepass, using the  Keepass menu>Import>Generic csv importer.

Save the key database (Only on saving does your master password and key file get updated into the database).

Now, on running Firefox, Keepass and Keefox will connect.

How to install and use Keepass on Windows 7 and 8 on Chrome/Chromium:

Install the latest Keepass installer

Install Chromipass extension from the Chrome web store.

Download KeePassHttp.plgx from the Github repo here. (If you omit this step, you will get a “KeePassHttp: Error: NETWORK_ERR: XMLHttpRequest Exception 101” error.

Copy the downloaded file to C:\Program Files (x86)\KeePass Password Safe 2\plugins (for 64 bit Win7/8). You can use the environment variable:

%PROGRAMFILES(X86)%\KeePass Password Safe 2
MWSnap004 2013-04-14, 10_19_41

The easiest way to get the correct location is probably to choose Keefox options from Firefox, and look at the Keepass Tab.

Now visit any site with a username/password field, Click on the small Chromipass icon and follow the prompts to Connect Chromipass and Keypass.

Run Keepass, create a database, and add either a Master password or Master Password+Composite key (This is a composite key. Both Key and password will be required), or just a Key.

Import your prior passwords (If using Lastpass, export from Lastpass to a .csv file, and then import the .csv file into Keepass, using the  Keepass menu>Import>Generic csv importer.

Save the key database (Only on saving does your master password and key file get updated into the database).

Common errors and their solutions:

Error #1: Unable to start HttpListener: System.Net.HttpListenerException (0x80004005): Failed to listen on Prefix ‘http://localhost:19455/’ because it conflicts with an existing registation on the machine.

The error is due to two copies of the file KeePassHttp.plgx. In my case, I had one at C:\Program Files (x86)\KeePass Password Safe 2\plugins, and another one at C:\Program Files (x86)\KeePass Password Safe 2. I deleted the latter, and the error disappeared.

Installing Keepass in Ubuntu 12.10:

Firefox

Install Keepass from the Ubuntu repo. Install latest Firefox from Mozilla. Now download and install the Keefox plugin for Firefox. Manually copy the .pglx file from the Firefox profile folder to /usr/lib/keepass2 (as suggested by the extension). Open up Keepass2 and then Firefox. Opening the database links them up.

sudo add-apt-repository ppa:jtaylor/keepass
sudo apt-get install mono-complete
sudo apt-get install keepass2
sudo cp [email protected]/deps/KeePassRPC.plgx /usr/lib/keepass2/

Note: You need to use the correct path as applicable to your PC.

Chrome

Association of Chrome with Chromipass and Keepass2 is buggy. It works on some sites but not on others. The author himself states that he was unable to associate these properly with the .pglx extension. The steps are the same. Get the specific files from Github, copy them to /usr/lib, install Keepass2 from the repo, and Chromipass from Chrome web store.

Note that the folder /usr/lib should contain the following files:

$l /usr/lib/keepass2/
total 2.4M
-rw-r--r-- 1 root root  252 Sep 28  2007 KeePass.config.xml
-rwxr-xr-x 1 root root 1.8M Sep 23 05:43 KeePass.exe
-rw-r--r-- 1 root root  535 May  1  2012 KeePass.exe.config
-rw-r--r-- 1 root root 180K Jan  7 09:53 KeePassHttp.plgx
-rw-r--r-- 1 root root 370K Jan  7 09:59 KeePassRPC.plgx

 

Once you’ve done this, reloading the browser asks for association.

Note that autofilling does not usually work in Chrome on Linux with Keepass2 and Chromipass. You can check if right clicking works.

Selection_001


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.