FOSS India Pune Meetup, 2025

- Posted in Club Frenzy by

I came back from Pune FOSS Meetup (monthly ones usually) today (my first ever). The monthly meetup was nice, interactive, and the room was filled (approx 40-45 of us were there) with youngsters beaming for new things, knowledge, and pretty shy as well. πŸͺ­πŸ˜³

Onkar, Sriya, Agastya, Prathamesh, Khushi (FOSSUnited) and Joshua (host/Technogise) were very supportive, open and made every one feel very welcomed. It was real nice to be there, got to know a lot.

What I really liked was that youngsters were filled with thoughts about what FOSS is all about? They were intently listening, even interacting, asking questions, and I saw few take notes. I am bad at remembering names (not faces though), so I am not sure I recall the names (anger management). Anyways, I heard one enthusiast take the name of Joplin, which peaked my height, as being India, and knowing how things go (to a certain extent of course), I liked it and started to pitch for the usage of F-Droid as well, which I was sad to see, hardly anyone knew.

Some knew of AuroraStore as well, and were using it daily. I was pitching more on take control and switch from closed source to open source. I spoke about some nightmares of my rooting experience of more than a decade & half back, which was like a WOAH for me too.

All working individuals were pitching Linux/Unix, which was so nice. I kept cringing about being a non-dev 😜, and liked how we had a good interactive session throughout.

What I found odd, and I have been vocal anyways: usage of google and proprietary stuff a lot by everyone. We need to move out of the GAFAM nonsense and take back our privacy, which I tried to pitch as much as possible. Drumming the R.E.M. Privacy is Scrooge McDuck saving his Lucky Coin from Cruella, Money from Maa Beagle & Beagle Boys.

Another thing I found odd, XMPP is missing from India & FOSS. Start using it too people. πŸ™‚

FYI: I host a lot of stuffs, and own my domain and what not. Start using them, and happy to have that traffic.. --> LibreQR | 4G Search | LibreY Search | PasteBin | Hosts

To wrap this post up...

There were refreshments for everyone and the best part for me; they kept it vegetarian. πŸ‘ŒπŸ‘Œ Overall, I enjoyed being there, and I hope they liked my butting too. 😎🫑



Keeping this small so as not to bore anyone wishing to read this. Unfortunately, I will not be able to attend the Bangalore one. Guess, I can do it next year.

Linux - Find files having 0777 permission level!

- Posted in Linux/Unix by

A 0777 permission means -rwxrwxrwx for files & drwxrwxrwx for folders. Look it up here for more details.

Again, I will not try and go on about how security matters and how the incorrect file permission makes your Linux system vulnerable.

A file with permission 0777 is open to everyone for read and write. Any user logged in to system can write to this file. Which can be harmful for your system.

In some conditions you do require 0777 permissions, like log files. However, in most cases it is best to not have this.

The easiest way to locate all files having 0777 permission is:

find /path/to/dir -perm 777

The -perm command line parameter is used with the find command to search files based on permissions. You can use any permission instead of 777 to find files with that permission details only.

For example to search all files with permission 0777 under the logged in user home directory, type:

find $HOME -perm 777

The above command will search all the files & directories with permission 777 under the specified directory.

But if you don’t want to include directories in this list. Define the type with -type in command line parameter as below.

This will search only files with permission 777 under the /var/www directory.

find /var/www -perm 777 -type f

To search for directories only, type:

find /var/www -perm 777 -type d

[Unix/Linux] Manipulating PDF's

- Posted in Linux/Unix by

This thread is just to share couple of excellent applications, open source and for Unix/Linux systems (probably has windows package too) for arranging PDF files, and or combining, bursting PDF files.

We all know how these portable document files are, and so heavy too. Unlike PDF24, which is only for windows, this application is a great tool for people like myself, who prefer GUI over CLI (though, I admit, CLI is more intuitive then GUI), but trust me, GUI has its niche and is better eyed compared to CLI.

For the most part, PDF documents are generally designed to be read, but not altered or modified (coming from old ages). They are useful for sharing information in a consistent format, but manipulating the contents of a PDF document can be medial to difficult. Many applications which display PDFs do not provide the necessary tools for editing or rearranging the pages of these documents.

First, let's look at a desktop application for managing PDFs.

PDFArranger can generally be found in the repositories of modern versions of most distributions.

The application features a pleasantly simple interface. At the top of the window is a menu bar where we can choose to import existing documents and perform simple manipulations on documents or pages we have selected. Below this, the bulk of the window displays the document pool. Any PDF we import into PDF Arranger is divided into individual pages. These pages are displayed, in order, in the pool. If we import multiple documents, their pages will all be shown in the pool.

We can then use the mouse to drag and drop a page into a new order in the pool. We can also use the Shift and arrow keys to highlight groups of pages to manipulate. Once a page (or multiple pages) have been highlighted, we can choose an action to perform on them. We can delete pages from the pool, rotate them, or crop their edges. Then we can re-arrange them into the order we like.

Once we have re-arranged and manipulated the pages into the form we want, we can either select a range of pages to export into a new PDF, or we can export the entire pool into one new, big PDF.

PDFArranger PDF Arranger -- Manipulating a single PDF page


There are also command line tools for working with PDFs. My favorite is a tool called PDFtk. Now, to be accurate, there is a desktop version of PDFtk, but I prefer PDF Arranger's desktop interface while I like the flexibility and script-ability of the command line version of PDFtk.

The PDFtk program is run with a series of parameters. Typically we start by passing PDFtk a list of documents we want to manipulate. Then we provide it with an action command, indicating what kind of operation we are performing. Then we provide the keyword output followed by the name of the file we are going to create. This output file contains our changes.

In its simplest form, PDFtk does not need to be given any action command. We can, technically, give it an input file to work on, the keyword output, and the name of a new file to create. This effectively makes a new copy of our PDF. This can be useful either for testing purposes or to try to repair any damaged meta-data in the original document. Here is what a PDFtk command looks like when we want to just make a clean copy of the original file:

pdftk original.pdf output new-file.pdf

While PDFtk supports a lot of action commands and options, I want to focus on five. These are called:

  • cat - merge together a series of pages from one or more documents
  • shuffle - collate multiple pages, usually from multiple files
  • burst - expand one PDF document into multiple, one-page documents
  • rotate - turn pages on their sides
  • unpack_files - extract files embedded in a PDF and save them in a directory

Let's look at a few examples of these action commands being used. This first example uses the cat action command. This allows us to either insert pages of documents into one big document, or possibly remove a series of pages. Here we append one PDF to another one, making one long document:

pdftk original-one.pdf original-two.pdf cat output new-long-file.pdf

We can also specify a range of pages to collect and place in the output file. For instance, here we take the first 5 pages, and then every page from page 20 until the end of the document. All of these end up in one final PDF with the original pages 6 through 19 removed.

pdftk original-file.pdf cat 1-5 20-end output new-file.pdf

Here is one more example where we simply reverse the order of all the pages in a document, handy for when we fed pages the wrong way around into the scanner:

pdftk backward-file.pdf cat end-1 output proper-order.pdf

The shuffle command works in a similar way to cat, but it takes the first page of each specified file/range in parallel and places them in the output file. This effectively collates the original files. The next example effectively merges two documents, placing their pages together as if they were shuffled together like a deck of cards:

pdftk left-pages.pdf right-pages.pdf shuffle new-book.pdf

The next example takes one PDF file and creates a new PDF for each page included in the original. When it is done we end up with files named pg_0001.pdf, pg_0002.pdf, pg_0003.pdf, etc:

pdftk original-file.pdf burst

The rotate command is fairly straight forward. It turns a PDF's pages around, usually 90 degrees left or right. We can also tell PDFtk to rotate a page to an absolute position using the four compass directions: north, south, east, and west. For example, this command rotates every page 90 degrees to the right:

pdftk original-file.pdf rotate 1-endright output new-file.pdf

While this next example will turn all the pages in the document upside down. This is again helpful if every copy was scanned upside down and we want to correct it:

pdftk upside-down-file.pdf rotate 1-endsouth output fixed-file.pdf

Finally, the unpack_files command extracts the file elements from a PDF and places them in a directory. In this case we dump the contents of the PDF into a new directory called target-directory:

pdftk original-file.pdf unpack_files output target-directory

The PDFtk software can do more operations, including compressing files and working with passwords. However, these are probably the most commonly used operations.

enter image description here PDFtk in action (free version)


Necessary Links: 1. https://github.com/jeromerobert/pdfarranger 2. https://pdflabs.com/tools/pdftk-the-pdf-toolkit