linux

Streaming audio from Linux to Android using PulseAudio over LAN

Permalink 1 minute read Modified: (Rohan Verma)

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

Permalink 1 minute read Modified: (Rohan Verma)

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

Permalink 4 minute read Modified: (Rohan Verma)

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…

Permalink 1 minute read Modified: (rhnvrm)

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

Permalink 2 minute read Modified: (rhnvrm)

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

Permalink 1 minute read Modified: (rhnvrm)

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…

Permalink 1 minute read Modified: (rhnvrm)

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

Permalink 2 minute read Modified: (rhnvrm)

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

Permalink 1 minute read Modified: (rhnvrm)

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

Permalink 1 minute read Modified: (rhnvrm)

[][1]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.

At last I am now on Fedora 25…

Permalink 1 minute read Modified: (rhnvrm)

At last, I am now on Fedora 25. It’s great to again be able to use VLC and TexStudio without having to do use any workarounds! Still need to test the Optimus improvements but can’t seem to be able to get Nvidia module to start. bbswitch is loaded. Need some time to figure this one out. I guess will have to try Dota 2 7.00 on WinDoze. Edit: It now works perfectly.