Profile cover photo
Profile photo
Santanu Chatterjee
Santanu's posts

Post has attachment
Using xdg-mime to set default programs to open certain filetypes in Linux
Recently I had a need to set xpdf as the default program for opening pdf files instead of evince. I decided to use the command line to achieve this. Turns out that I can do this using xdg-mime. To know what is the filetype (in the mime 'language') of pdf fi...

Post has attachment
Making git know about my http and https proxy server
Following is the general syntax of the commands that will set the http and https proxy servers for git: git config --global http.proxy http://proxyuser:proxypassword@proxyserver:proxyport
git config --global https.proxy http://proxyuser:proxypassword@pro...

Post has attachment
Go away Desktop icons
I want my desktop to be clean. That means no icons. Recently I have been trying various window managers, and finally I settled down to i3 for the past few weeks. I love it. Today, I just wanted to log into Unity just for change, and found things have change...

Post has attachment
Getting audio volume go beyond 100% in Ubuntu Gnome
In some videos I find the audio volume to be too low, even after the I turn the volume up to 100%. However, from gnome's sound control, I can see that I can use the mouse to make the volume go beyond 100% so that the audio becomes louder. So, I was looking ...

Post has attachment
Solution for: Mouse cursor disappears when starting i3 with gnome-settings-daemon (in Arch Linux)
In my arch installation, whenever I start the i3 (or awesome) window manager as a gnome-session (which starts gnome-settings-daemon), the mouse cursor disappears. It is there, since I can click on things, but not visible. The solution turns out to be to run...

Post has attachment
Font settings I used in my Arch Linux install (on USB Pendrive)
I have the following content in my ~/.config/fontconfig/fonts.conf: <?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<match target="font">
<edit mode="assign" name="autohint">

Post has attachment
Using gsettings to set font preferences in my shiny Ubuntu Gnome 14.04 Desktop
Instead of using gnome-tweak-tool, this time I have used the command line utility 'gsettings' to set my font preferences in Gnome (Ubuntu Gnome - 14.04). After invoking some 'gsettings set ...' commands, I have the following: ubuntu-gnome@ubuntu-gnome:~$ gs...

Post has attachment
Prevent right click menu and icons to show up in Unity Desktop (Ubuntu 14.04)
Just type in the following command at a shell prompt: $ gsettings set org.gnome.desktop.background show-desktop-icons false

Post has attachment
Case Insensitive Autocompletion in Bash
Today I learnt how to get case insensitive autocompletion in Bash. Just put the following line in ~/.inputrc: set completion-ignore-case On That's it. To learn more about what is really going on, the bash and readline manual pages should be read.

Post has attachment
Using Upstart in Ubuntu 12.04 to set screen brightness during boot in Asus Eee PC
First I wrote a small script in /usr/local/bin to set the brightness to the lowest possible value (the lowest value is plenty bright for my eyes): $ cat /usr/local/bin/
echo $1 > /sys/class/backlight/acpi_video0/br...
Wait while more posts are being loaded