Linux : Access Mounted Drive from Media Servers

So for the longest time, I had been annoyed, because I could just not get plex media server to access all the songs, or videos on my partitioned hard drive, which I had configured to mount at boot time.

I went deep with it, trying to figure out if there was any way to change the default umask for mounting drives so that I could give any system process the permission to read contents from the drive.

And finally the solution:

Mount your drive at /mnt instead of /media. The instructions on how to mount your drive are here.The only difference will be to use this line in the fstab entry.

 UUID=<previously-copied-uuid> /mnt/<mydiskname> ntfs defaults 0 0 

doing this allowed my drive to be accessed by the plex media server, since the system treated it not as an external removable drive with limited permissions.

Advertisements

Run Wireshark (not) as Root

We all know, that capturing packets on any interface requires root access.(ok maybe not all, but it’s true) But wireshark is too large and complex a program to be given root permissions. (Do keep this in mind, programs with more than 20,000 lines of code are a risk in sudo).

Luckily for us, the portion of Wireshark that does packet capturing is a much smaller program, which can easily be allowed some capabilities. So we just set some obscure variable names from the kernel  into this thing, and voila, it works.

Here’s the best way to make it work.

sudo apt-get install libcap2-bin
sudo groupadd -g wireshark
sudo usermod -a -G wireshark &lt;Insert-Your-Username-Here&gt;
sudo chmod 750 /usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap

Thank this guy (he has a better explanation too)
https://blog.wireshark.org/2010/02/running-wireshark-as-you/

IPtalk (A new IPmessenger)

So me along with a few friends have developed a new LAN messenger for windows and linux, and all things that run a .jar file.

It helps people on the same LAN to communicate, as well as share files with each other and anyone else on the LAN. It works like any decent chat messenger without the need for making a server.

Download it from here

IPtalk

And here’s where you can report bugs.
report bug

Try it out!

Install Whatsapp on Ubuntu 12.04, 12.10, 13.04, 13.10, 14.04, Mint 13/14/15/16/17

While I would recommend you to simply go for Viber instead, because it’s available for all operating systems; Here’s how to do it for whatsapp. However, if the same number is registered to two devices, Whatsapp doesn’t like you accessing both simultaneously. I’ve read, one at a time works fine.

sudo apt-get install python python-dateutil python-argparse
sudo wget https://github.com/tgalal/yowsup/archive/master.zip
sudo unzip master.zip
cd yowsup-master/src
cp config.example yowsup-cli.config
vi yowsup-cli.config #(Write the following according to you)
#cc=34
#phone=34123456789 #(Phone number with country code)
#id=
#password=
chmod +x yowsup-cli
./yowsup-cli --requestcode sms --config yowsup-cli.config
#status: sent
#retry_after: 3605
#length: 6
#method: sms

You will receive an sms with a code on the above written mobile number. Use that in the next request.

./yowsup-cli --register 123-456 --config yowsup-cli.config (replace 123-456 with the code)
#status: ok
#kind: free
#pw: S1nBGCvZhb6TBQrbm2sQCfSLkXM=
#price: 0,89
#price_expiration: 1362803446
#currency: EUR
#cost: 0.89
#expiration: 1391344106
#login: 34123456789
#type: new
cat yowsup-cli.config
cc=34
phone=34123456789
id=
password=S1nBGCvZhb6TBQrbm2sQCfSLkXM=

If you don’t have pidgin, install it (From software center or by sudo apt-get install pidgin in terminal) Now open a terminal and write

sudo add-apt-repository ppa:whatsapp-purple/ppa
sudo apt-get update
sudo apt-get install pidgin-whatsapp

Now simply launch Pidgin. Add a whatsapp account, put username as the phone number with country code ( as written above) and password as the string we obtained earlier. Use whatsapp on your laptop. (PS- Don’t use it simultaneously on your mobile) Better still, use viber, and ask your friends to do the same! : it has a desktop client. Credits for this : http://hacktracking.blogspot.com.ar/2013/02/yowsup-cli-send-whatsapp-messages-from.html https://launchpad.net/~whatsapp-purple/+archive/ppa

Edit : If you’re having trouble registering the number on whatsapp, you can use this service here.

Update : The latest update to whatsapp has broken the functioning of the yow-sup api used here.
The issues have been created and developers are working on it. Hopefully it will be sorted soon, but till then, all we can do is wait.

How to Install Cinnamon 2.0 on Mint 13 (and others)

To install Cinnamon 2.0 on a non-officially supported Mint version (including Mint Maya 13)

1. Go to a terminal and type

sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
sudo apt-get dist-upgrade

2. Go to /etc/apt/preferences and add the following :

Package: *
Pin: release o=LP-PPA-gwendal-lebihan-dev-cinnamon-stable
Pin-Priority: 800

3. Go to terminal

sudo apt-get update
sudo apt-get dist-upgrade

UPDATE:
1.Go to menu->preferences->software sources
2. Select backports
3. Go to update manager-> software sources, make sure all 1, 2, and 3 are checked. click on refresh, and install updates.

Linux Mint Cinnamon 2.0 – Review ( They’re doing it right )

I’ve been using linux – mainly Ubuntu for almost 2-3 years now.
I started with Ubuntu 11.04. And as the updates from Canonical rolled in, I hated every new design decision that they were taking.
Like:

1. Removal of custom command in open with dialog box – I mean, when you can offer both the options why remove one?
2. Removal of option to create custom launcher – WHYYY?
3. Growing number of problems with the Nautilus file manager – like how they removed being able to go to root drive, or the extra efforts to add a folder to the bookmarks bar.
4. The pre-installed movie player – needed a billion codecs before any file could actually be played
5. The pre-installed music player was no good.
6. Empathy – the messenger couldn’t do basic things such as work behind a proxy
7. Badly integrated social networking menus that weren’t useful.

The power of linux lies in it’s stability and customizability. With every new update, I would cringe as they made things that could be done in a few simple clicks worth much more effort.

Welcome Linux Mint.

I downloaded the Maya 13 Cinnamon version. The interface was clean. It was built for people familiar with windows, with a bar at the bottom including the start-like menu button for applications, and the closing buttons on the right. It came pre-installed with VLC as the media player. For music, I prefer Clementine ( another brilliant design and execution).

Soon after that, Cinnamon 2.0 was released. I decided to install it ( even though it’s not yet available in the official repositories for Maya).

Behold Brilliance. Customizability + Design at a new level.

1. Applets:  title bar

CPU Cycle control.
CPU  Temperature Multicore
CPU usage %age (can select graphs as well)
RAM usage %age(can select graphs as well)
Network usage graph

And many more…! All with a single click from the applets panel.Applets_003

2. Desklets

Workspace 1_004

For improving your productivity.( here using an accuweather desklet)

All with a few clicks.

3. Hot Corners

-Scale
-Expo
-Custom

Screenshot from 2013-12-02 11:21:41

4. Custom Commands in file manager are back.

Wordpress - Installing plugin and updating wp AstronomyClub.zip Properties_005

5. Creating Custom Launcher is back + useful right click menu options, like open as root.

Menu_006

6. Extensions

Extensions_007

7. Alt-Tab cover flow/ Timeline options.

(Cover Flow)

Workspace 1_011

8. Natural Scrolling ( Improved Mouse options)

Mouse and Touchpad_012

9. Ubuntu based apps.
Being a fork of Ubuntu, all precise-pangolin apps work for Linux Mint 13.

Definitely an IDE to look out for.

How to update your nexus 7(wifi) to JB 4.3 keeping root

Hello folks

This post is about upgrading your Nexus 7 from any custom ROM or recovery in Jelly Bean 4.2.1 to 4.3 while keeping your root access intact. We do this by going through 4.2.2 in between.

The reason I start from 4.2.1 is because many people ( myself included) had not been able to get the OTA update from google to install automatically. I believe this is because of a change in the bootloader from 4.2.1 to 4.2.2. However I maybe wrong, so check that out and let me know as well if you wish.

I am assuming, that if you have rooted and flashed a ROM on your nexus through your recovery, you’ll find the following method very basic and easy. However I will elaborate it just in case it makes a difference to anyone.

Step 1: For those running 4.2.1

Check your build. if it’s 4.2.1, you need to flash the 4.2.2 zip.
You can grab the file here

To check if your ROM is odexed or not, install a root explorer go to /system/apps, if you see no .odex files there (.odex.bak don’t count), you’re running a deodexed ROM. you can download the deodexed file from the above link on to your storage, and flash it by going into your recovery, like you would flash any other zip.

Factory wipe isn’t necessary as your data will be preserved in this update. This basically saves you time as the real objective is to update to 4.3

Reboot into your system check your android version. It should be listed as 4.2.2

Step 2 : for those with 4.2.2

Again, you just need to flash a zip which will preserve your root.
grab your file from here

Or check out this page. It’s from the creator of these files.

It is important to do a factory reset and a wipe cache and wipe dalvik cache.After that flash the zip using your recovery.

Reboot into 4.3.
Use root checker to check root access.
It should be preserved.

PS- All credit to the developers of those two files. Make donations if it helps you.

Cheers