cli

General, Tips & Guides

How to convert character encoding in text files

Here is how to convert text files from one character encoding to another in GNU/Linux: The -f parameter denotes “from” and -t parameter denotes “to” character set.//IGNORE means the “iconv” will ignore any characters that are not available in the target character set. While “//TRANSLIT” means the converter will attempt to substitute characters that are […]

Open Source, PHP, Python

How to convert Microsoft Office *.docx files to PDF using Linux in command-line

Here’s how to convert Microsoft Office *.docx files to PDF using Linux in Command Line. This trick can also be used together with other documents files supported by LibreOffice First make sure you’ve installed the latest version of LibreOffice for use in command line environment. Assuming the user is ‘example’ and the filename to convert […]

Internet Stuff, Tips & Guides

How to build and use telegram-cli client for Linux

You can actually send Telegram message from command-line interface / bash in Linux using an unofficial “telegram-cli“ client by Vitali Valtman (vysheng) Obtaining and Compiling telegram-cli But first, before sending telegram messages, you need to build the client. You may start by installing its dependencies sudo git apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev […]

Computers, GNU/Linux, security, Ubuntu/Debian

How to make sudo display funny error messages in Ubuntu Linux

sudo is probably the most used command in Ubuntu. In this post, I will show you how to make ‘sudo’ display funny and humorous error messages in Ubuntu Linux. To do that, you would only need to edit the /etc/sudoers : sudo nano /etc/sudoers Then find the line that starts with Defaults env_reset, add insults […]

BSD, Computers, GNU/Linux, Tips & Guides, Ubuntu/Debian

Generate QR Code in Ubuntu Linux

You can easily generate QR Code under Ubuntu using the command line ‘qrencode’ package. In Ubuntu 11.04 Natty Narwhal, you can install qrencode using this command: apt-get install qrencode To generate QR Code image, you only need to run this command: qrencode -l L -v 1 -o qrcode-test.png “Hello, World!” QR Code is a form […]

Internet Stuff, Open Source, Other Programming Language, Tips & Guides

Twitter Command Line Client

A nice twitter client for those who are working in CLI environment. Get twitter-cmdline. A Windows alternative is also available at : Twitter Windows Command Line Client. Alternatively you can try a cURL hack to post your update to twitter from command line. btw my twitter id is ‘mypapit’. Happy twittering.

Computers, GNU/Linux, Open Source

FLV2MPEG4 : Convert FLV to MPEG4

Here is an easy way to convert Adobe Flash Video files (FLV) to MPEG-4 using a tool called flv2mpeg4. First you need to download flv2mpeg4 using svn from its project websites svn co https://vixynet.svn.sourceforge.net/svnroot/vixynet/trunk vixynet . Install ffmpeg, libavcodec-dev, libavformat-dev and libavutil-dev package read the docs and compile flv2mpeg4 You can convert flash video file […]

Scroll to Top