Category Archives: cli

rename: batch renames filenames

rename is a cli program to change filenames to a list of files. It can search for regexp and change them by others. First do a dry run: rename -n ‘s/\(//g’ $1; rename -n ‘s/\)//g’ $1; rename -n ‘y/A-Z/a-z/’ $1; rename -n ‘s/ /./g’ $1; rename -n ‘s/\.-\./-/g’ $1; } and if everything is alright, […]

apt-file: find which files are installed where and by what package

apt-file is a program to find what package installed some file, and where it was installed.

mldonkey

It’s a great p2p network client. It can connect to the edonkey network, but also to kademlia, directconnect, filetp, bittorrent. It has a cli interface (mlnet or mldonkey), but can be controled by a web interface (visit “localhost:4080” in your browser) and there is also a gtk interface (mlgui)

vdirsyncer + khal + khard

This set of tools allow to manage caldav and carddav collections from the cli. vdirsyncer is the one that syncs the collections. khal is used to visualise the .ics calendar files khard manages the .vcf contact files To install vdirsyncer the “easy and clean” way, pipsi install vdirsyncer And be sure to have lixml2-dev, libxlst-dev […]

SSH agent

To store an ssh key in the cache for the current session, pgrep ssh-agent If there is no ssh-agent instance ssh-agent and finally ssh-add ~/.ssh/id_rsa

Manually install kernel in Debian derivatives

From https://www.thinkpenguin.com/gnu-linux/manually-upgrading-linux-libre-kernel-trisquel-6x: If your on a 64-bit installation download the following packages (or the latest kernel): linux-headers-x.xx.x-gnu_1.0_amd64.deb linux-image-x.xx.x-gnu_1.0_amd64.deb linux-source-x.xx.x-gnu_1.0_all.deb You can get these packages from (you’ll need to locate the directory that says linux-source-3.14.1-gnu, but the 3.14.1 part may be newer): http://linux-libre.fsfla.org/pub/linux-libre/freesh/pool/main/l/ Then open a terminal and run: sudo dpkg -i *deb Finally, sudo update-grub2

gnupg cache

In order to have gnupg cache your passwords from gpg-agent, you must set ~/.gnupg/gpg.conf use-agent and in ~/.gnupg/gpg-agent.conf default-cache-ttl 3600 (min) max-cache-ttl 3600 (min) which is the time the password will be kept in the cache, and the maximum time it can be kept.

Youtube viewer

This software is developed by trizen at Github and packaged for Ubuntu (trisquel) by the Webupd8 Group It is a command-line interface to youtube, written in perl, from which you can download and play videos directly from the cli with mplayer or mpv.

pmount (policy mount)

pmount is a mount wrapper for mounting external devices and partitions without the need to create a mount point and to become root (through sudo). The most simple usage is pmount which will mount (/dev/sdX) on mount point /media/

Partitions and filesystems

When partitioning disks, there are several things to take into account. 1. The partition table (Gnu parted) 2. The filesystem (resize2fs, ntfsresize) 3. The partitions (fdisk) 2- Redhat – Storage Administration Guide 2-3 Partedmagic – Cli partitioning 2-3 Ubuntu help – Install a new hard drive Resize a partition and filesystem Partedmagic – Cli partitioning […]