linux

Streaming audio from Linux to Android using PulseAudio over LAN

19 Nov 2018 - 1 minute read
categories: notes tags: android linux

Suppose you are in a situation where you want to watch a movie on your TV or monitor but don’t want to use speakers. Maybe you are looking to listen to an audio book stored on your laptop but don’t want to transfer it to your phone. Or you just want to buy an audio jack splitter. Look no further, PulseAudio to the rescue. PulseAudio provides streaming via SimpleProtocol on TCP via a simple command.

Automate fast download of a large files through FTP

20 Aug 2018 - 1 minute read
categories: notes tags: linux productivity

lftp -e 'set net:timeout 10; pget -n 10 BigFile.zip; bye' -u UserName,PassWord ftp://BigFiles.com

Reviving an old Samsung N150 Netbook and making it a solid Dev Environment

16 May 2018 - 4 minute read

I had an old Samsung N150 netbook lying around in my parent’s house. It was an amazing netbook and I remember fondly using it when my parents were not using it to browse the internet and sometimes even use it for school work. It came with Windows Vista if I recall correctly but I had installed Windows XP service pack 3 on it because as we know, Vista sucked! Well, the netbook was very solid, it even ran small games such as Fifa Manager etc and came with a solid keyboard, ethernet and VGA as well for connecting to a big screen.

Extract filenames without their extensions…

18 Mar 2018 - 1 minute read
categories: tutorials tags: linux

Extract filenames without their extensions and put it in the clipboard ls -C | awk -F"." '{print $1}' | xclip -selection c

Setting up LaTeX on Spacemacs

20 Dec 2017 - 2 minute read
categories: notes tags: emacs foss latex linux spacemacs vim

I have been using Vim for text editing and even Vim mode even in Sublime Text. Although, I wanted to use Org mode so I switched to Spacemacs with Evil mode that gives the best of both worlds. I had been using TeXworks and TeXstudio for editing and building LaTeX documents but now that I have Emacs, I wanted to try out the pdf-tools layer and latex layers so that all my work can be done from inside Spacemacs itself.

Adding xfce4 Keyboard Shortcuts for Clementine or Spotify

20 May 2017 - 1 minute read

xfce4 has default media key settings for Pragha music player. Although, if you use clementine music player you can use keyboard shortcuts to control it with DBus and MPRIS. Clementine is known as org.mpris.clementine and you can add the following entries to your Keyboard Settings > Application Shortcuts If you use spotify, it is registered as org.mpris.MediaPlayer2.spotify on qdbus. qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Next qdbus org.mpris.clementine /Player org.freedesktop.MediaPlayer.Pause qdbus org.mpris.clementine /Player org.

Just discovered Xfce4 has an inbuilt Drop Down…

12 Mar 2017 - 1 minute read

Just discovered Xfce4 has an inbuilt Drop Down Terminal which you can use by running the command `xfce4-terminal –drop-down` using an Application Shortcut. Applications – Settings – Keyboard. Select the Application Shortcuts tab, click on the Add button, type in the command and give a shortcut key. I used F12.

Working with J2ME on Linux in 2017

07 Feb 2017 - 2 minute read

I recently had to work on the J2ME platform for a course at my university. It is an old technology and does not have many recent articles about using or installing J2ME on Linux. J2ME SDK has had no support for Linux for a long time. The SDK 3.x only has support for Mac and Windows. The last version available was by Sun which is called the Sun Java Wireless Toolkit 2.

SOCKS Proxy

04 Feb 2017 - 1 minute read
categories: uncategorized tags: foss linux

I used to use the `-L` flag in SSH but today I was going through the man page and saw the `-D` flag. It can be used to make a SOCKS5 proxy easily. For eg. `ssh -f -N -D 8080 [email protected]` Also, a big thanks to EliteBNC.org for giving a free ZNC node. Feels great to be back on IRC after so long.

How to Sign PGP Keys using GPG

07 Jan 2017 - 1 minute read
categories: apache foss tags: aceu16 foss linux misc

xkcd #364: Responsible Behavior I participated in ApacheCon EU 2016’s PGP Keysigning Party recently. Being a newbie about PGP keysigning, I made the mistake of not sending the keys back to the key server after signing as I was using a GUI tool called Seahorse. So today, after realizing this from searching my key on MIT’s PGP keyserver, I decided to do it again and send the keys this time using GnuPG.