Saturday, April 23, 2022

How to delete more than 50 emails in Gmail in one shot ? - Cleanup Gmail

   Gmail regular-user account provides maximum 15 GB storage, by default.  It is usually not sufficient for this information explosive age.  We may need to bulk delete multiple old/spam emails from a sender in one shot to quickly save storage.


   Gmail provides a way to create a new Filter to find all these emails from a sender and then delete it.  Unfortunately, creating a new filter rule everytime may be an overhead and here I show how we can find all these emails and delete it without creating rules.


    For example, Here, I am going to delete all the emails I received from "(noreply+feedproxy@google.com)".

1.) Find all the emails by searching them in the search box, from:(noreply+feedproxy@google.com).



(OR) 

Select any one message, and then choose 'More :', choose 'Filter messages like these'.


2.) Now 'Select all' message option now, and then choose 'Select all conversations that match this search'.



3.) Now all the conversations selected. Simply press 'Delete' button. 



That's all !!!


Friday, July 31, 2020

How to move OneNote Note book to OneDrive ?


How to move OneNote Note book to OneDrive ?

I am not able to follow the documentation here, as it asks me to move individual OneNote Sections.

To move a notebook using OneNote 2010:
Open the notebook that you want to move, and then click File > Info > Share on Web or Network.

Follow the on-screen instructions to finish moving your notebook to OneDrive or SharePoint.

Instead I move with one step like this:

1. Let me move 'My Notebook' from local drive to cloud (OneDrive).

2. Go to File -> Info. And see 'Settings' of the notebook.

3. Choose Properties.

4.  Choose 'Change Location' and choose OneDrive Location. That's all.


Tuesday, June 30, 2020

Backup files in MicroSoft OneDrive without loosing existing folder structure


Problem:

To backup files/folders in OneDrive, you need to move the files/folders under "OneDrive" cloud folder.
This can be painful if you already have applications/links referring to this source folder.
Moving your folder to 'OneDrive' cloud folder is disruptive here.
Alas! Those applications will break, and it is not easy to fix the links to new locations one by one.

Solution:


  1. Move the files/folders to 'OneDrive' cloud folder as you do normally.
  2. Create a link to the new folder under 'OneDrive' from previous location using mklink' utility.  This is explained here: How to take advantage of symbolic links in Windows 10

Example:
a.) Win + R, "CMD", Ctrl + Shift + Enter to enter Administrator mode.
b.) C:\Users\Saravanan\Desktop>  mklink /D C:\Users\Saravanan\Desktop\Step_One "C:\Users\Saravanan\OneDrive - My corportation\Step_One"

Here, I moved my "Step_One" folder from Desktop to OneDrive, and then I created a link in Desktop to new location of this folder under OneDrive.

This will make transparent redirect of file pointers to new locations for your applications, and make your OneDrive transition easy :-)


Friday, July 31, 2015

Enabling debugging in OpenSSH client and server

Assumptions :
     1.) Linux Debian based configuration files are used. (OpenSSH_5.5p1 Debian-6+squeeze5)

SSH Server :

1.) Update the /etc/init.d/ssh file to include debug option.


#diff /etc/init.d/ssh /etc/init.d/ssh.orig

30d29
< SSHD_OPTS="$SSHD_OPTS -ddd"
#

2.) Start the ssh services in the server.

# service ssh --full-restart
Stopping OpenBSD Secure Shell server: sshd.
Starting OpenBSD Secure Shell server: sshddebug1: sshd version OpenSSH_5.5p1 Debian-6+squeeze5
debug1: read PEM private key done: type RSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: private host key: #1 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
.....
.....



SSH Client :

2.) Start the ssh client with verbose options enabled.


$ ssh -vvv USERNAME@SERVER_IP_ADDRESS
OpenSSH_5.5p1 Debian-6+squeeze5, OpenSSL 0.9.8zc 15 Oct 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to SERVER_IP_ADDRESS port 22.
debug1: Connection established.
debug1: identity file /h/palsarav/.ssh/id_rsa type -1
debug1: identity file /h/palsarav/.ssh/id_rsa-cert type -1
debug1: identity file /h/palsarav/.ssh/id_dsa type -1
debug1: identity file /h/palsarav/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze5
debug1: match: OpenSSH_5.5p1 Debian-6+squeeze5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze5
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss


Reference :
1.)
sshd(8) - Linux man page 

Synopsis
sshd [-46DdeiqTt] [-b bits] [-C connection_spec] [-f config_file] [-g login_grace_time] [-h host_key_file] [-k key_gen_time] [-o option] [-p port] [-u len]
 
sshd (OpenSSH Daemon) is the daemon program for ssh(1). Together these programs replace rlogin(1) and rsh(1), and provide secure encrypted communications between two untrusted hosts over an insecure network.
sshd listens for connections from clients. It is normally started at boot from /etc/rc. It forks a new daemon for each incoming connection. The forked daemons handle key exchange, encryption, authentication, command execution, and data exchange.

-d'
 Debug mode. The server sends verbose debug output to the system log, and does not put itself in the background. The server also will not fork and will only process one connection. This option is only intended for debugging for the server. Multiple -d options increase the debugging level. Maximum is 3.

2.)
SSH(1)                                                             BSD General Commands Manual                                                            SSH(1)

NAME
     ssh â OpenSSH SSH client (remote login program)

SYNOPSIS
     ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D  [bind_address:]port] [-e escape_char] [-F configfile] [-I pkcs11]
         [-i identity_file] [-L  [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R
         [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] [user@]hostname [command]

      -v      Verbose mode.  Causes ssh to print debugging messages about its progress.  This is helpful in debugging connection, authentication, and configuraâ
             tion problems.  Multiple -v options increase the verbosity.  The maximum is 3.