Tag Archives: linux

Securely share files between your computer and phone using samba

Introduction

In this tutorial, I am going to talk about samba and ufw services. If you limit your file share within a dedicated range of ip addresses in your local network, your files are generally secure (from outside access), and still able to share files.

Continue reading

2 Comments

Filed under Uncategorized

Search your torrent directory using find command

Introduction

Often, when you browse a torrent site for your favorite Linux distribution, you might ask the question, have I already downloaded this torrent or not? One way to find out is to actually go into your torrent directory and search (by the way, new nautilus is pretty good at searching), but it is always good to have a script (that uses find command) to do that.

Continue reading

Leave a Comment

Filed under Uncategorized

Open all your reddit subscriptions using a single command (alias)

Introduction

The alias command is considered both good and bad. It can sometimes simplify long and complex commands, but on the other hand it can also be misused to hide commands everyone could learn otherwise.

Long time Linux users have been using alias for many commands and scripts. Even the operating system itself uses alias for certain commands e.g ll for ls -alF, la for ls -A and so on. However, this tutorial is not going to be about simplifying existing commands, rather it is going to be about aliasing your reddit subscriptions.

Continue reading

Leave a Comment

Filed under Uncategorized

Setup Ubuntu 12.04

Introduction

In this tutorial, I will try to list things you can do during Ubuntu LTS installation to make the experience little better. This tutorial will have specific settings for dell laptop, however I will mention when it comes in this tutorial, so that you can differentiate your setup. If you want to play with more cutting edge distro try my Arch Linux Tutorial.

Continue reading

Leave a Comment

Filed under Uncategorized

Install java (jdk) on Linux

Introduction

If you have downloaded java development kit (JDK) Linux binary tar.gz file from oracle.com (e.g jdk-7u21-linux-x64.tar.gz), you might probably be thinking how do I install it. On most Linux distributions, you might be able to install java or jdk using official or third party repository, but some people prefer doing it offline. In this tutorial, I will try to explain that.

Continue reading

Leave a Comment

Filed under Uncategorized

Fix catalyst driver in Ubuntu 13.04

1. Introduction

I found lots of people struggling to get catalyst driver work in Ubuntu 13.04. This issue has been persistent for some laptops, ever since Ubuntu 13.04 came out, specially for Intel, AMD dual graphics setup. For people, who have been looking at catalyst drivers ever since http://ubuntuforums.org/showthread.php?t=1930450 post was published, should not be that hard to find the solution, but for those who are new to Linux, or don’t have time for these kinds of issues, this issue might be a show stopper bug. In this post I will try to reiterate the solution discussed at askubuntu.com.

Continue reading

1 Comment

Filed under Uncategorized

Rename large list of files by removing just one character

Sometimes, we have a large collection of files e.g mp3 files that plays fine in a computer, but fails to copy to an external devices like a mobile phone, because of weird file naming. One of such cases happened to me, where all the files in a directory had pipe character (|) on them.

Those files would play fine on a computer, but failed to copy to a phone. Therefor,e I had to create following script to rename all those files, just by removing the pipe character(|). Here is the script (rename.sh).

for file in *.mp3
do
 rename 's/\|//' "$file"
done

I hope it helps someone.

 

Leave a Comment

Filed under Uncategorized

Create your second QML app for Ubuntu touch

Why second ?

I expect you have already completed the first one at http://developer.ubuntu.com/get-started/. I hope you are also familiar with little javascript as well.

1. Introduction

In this post, I will try to provide enough resources for you to get started on mobile application development using QT Meta Language (QML). Although QML is not Ubuntu specific package, there will be some libraries and convention used in this tutorial that is specific for Ubuntu. However, you could easily use resources mentioned in this post to port your application to the platform of your choice.

Continue reading

1 Comment

Filed under Uncategorized

Record desktop in Linux using ffmpeg

Step 1: Install PulseAudio Volume Control and ffmpeg

Search your distribution’s software repository to install them. On a typical Ubuntu like OS the terminal command would be

$ sudo apt-get install pavucontrol ffmpeg

Step 2: Record

Use following command to record your desktop.

ffmpeg -f alsa -i default -f x11grab -s 1366x768 -r 30 -i :0.0 -sameq filename.avi

Continue reading

6 Comments

Filed under Uncategorized

Git tutorial

Introduction

Git is a distributed version control system. It can be used by anyone (programmers, non-programmers) to manage their text files. E.g Homework, blogs, configuration files, source code, xml files etc.

Continue reading

Leave a Comment

Filed under Uncategorized