Thursday, May 4, 2023

Terminal based linux news readers RSS readers

newsboat

newsbeuter

snownews

Canto or canto-ng

more.

Three Linux terminal web browsers

elinks

lynx

w3m

Linux terminal music players

Command-line terminal based music players.

cplay

cmus

moc (Music on Console)

mpg123

mplayer based...

Thursday, November 3, 2016

Thursday, August 11, 2016

Locked out of Raspberry Pi after changing locale or keyboard layout

Locked out of Raspberry Pi? It all settles down to the keyboard layout.
Most common probable is the locale change. After doing a first boot either through ssh or using an hdmi display and keyboard, most people start with setting up or configuring their raspberry pi.
When using raspi-config most people end up changing password first because in raspi-config tool password change is the top most option. A bad move since it would most likely end up with you being locked out after a locale change.
The default Raspbian images come with en_GB (Great Britain) locale pre-installed. First thing you need to do is change locale and keyboard layout. Install whatever language or locale you want and if you want International US keyboard layout QWERTY or DVORAK, install it first.
When you change the keyboard layout after the password change the characters you might have used in password sequence don't exist anymore after a keyboard layout change. Thus one end up entering wrong password each time.

So first things first change locale >> then change the keyboard layout. Most people outside Europe use International US. Whatever layout you use install it first.

Thursday, March 3, 2016

Monday, November 2, 2015

Transfer contacts from a windows phone to android

Windows is closed, so it is very limited.
You can't transfer contacts simply with copy contacts to SIM card. There is only import from SIM, no export.

So you want to transfer contacts from a windows phone (7,8) to an android. Here is how:

Your old Windows phone has a Microsoft, Live or Hotmail account associated to download apps and content from the store.
Sync your windows phone contacts to your Microsoft account, enable the option in settings to sync automatically or schedule sync.
Then login to your Microsoft account from a desktop browser. Microsoft account is hub for mail, contacts, calendar, onedrive and office suite.
For contacts, Go to the url people.live.com where contacts are synced within your Microsoft account.
Select Manage > Export for Outlook.com and other services. It will download your contacts in a .csv file, which you can upload to your Google account or convert to vcard (.vcf) file.

Login to google account and go to google.com/contacts or you can login to Gmail where you have mail, contacts, tasks, above the Compose button. In Google contacts you can choose to import contacts, it will ask for a .csv or .vcf file, upload your .csv contacts file.
Your contacts are now in your google account, which will sync automatically with your android device, which uses your google account.

Alternatively you can get a .vcf file by exporting contacts from Google contacts, because android doesn't let you import directly from a .csv file, then transfer the .vcf file to android device and use import from .vcf file, to import locally.

Caution: Don't use an online format converter unless you absolutely trust your contacts with them.

Wednesday, April 22, 2015

Minimize or maximize w3m

W3m is console text browser, to minimize w3m use ctrl-z, which stops w3m. Then use bg to put it in background.

Now to bring it back to foreground or maximize it, you need job number w3m is running. bg will also list and assign job number to the task it is putting in background.
Now use fg n to bring a job to foreground, with n being the job number, example: fg 1

Alternatively you can use top or htop to view jobs running in background or their job numbers.

Wednesday, January 21, 2015

rtorrent lock file

rtorrent exits displaying error message:
Could not lock session directory: "/home/user/rtorrent/.session/" held by user
It usually results from not closing rtorrent properly, or due to abrupt ending of an rtorrent session.

To resolve this, delete the rtorrent.lock file,
Find rtorrent.lock file in rtorrent session directory, to get the location of session directory, see rtorrent config file .rtorrent.rc
cd ~/.rtorrent_session/
remove rtorrent.lock file using rm