Skip to main content

Posts

Showing posts from April, 2017

Show Caps Lock indicator in Debian

For laptop who lacks of Caps Lock indicator, it's headache to check the button again and again. So, adapt a plugin should be a good idea. For Debian, I select indicator-keylock who was designed for Ubuntu although. You can find details here . Download .deb file on the right side. Right click to install with GDebi Package Installer, then logout to active it as following: Indicator for Lock Keys: An appindicator for showing the status of the keyboard lock keys, including Caps Lock, Num Lock and Scroll Lock. 

Setup Python Environment in Atom

If Atom is your preference text editor and Python 3 is one of your programming language, the blog is for you. It'll show you how to setup Python environment in Atom: edit and run. OS                 : Debian 9 Python          : 3.5 Atom version: 1.16.0 Atom Plugin :  atom-runner & autosave the 1st step is Atom installation, I think it should be done on your PC, otherwise, download .deb file from Atom website  and install it in terminal as following: sudo dpkg -i atom-amd64.deb If problem, fix it with: sudo apt-get install -f  The 2nd step is adjust configuration. Open Atom, select 'Edit'-->'Preferences'-->'Editor': Tick 'Show Indent Guide' Change 'Tab Length' to '4' The 3nd one is adding ' atom-runner ' and 'autosave' plugin. Click 'Packages' under 'Preferences' in above step, then search and install 'atom-runner' and 'autosave'. For 'autosave', clic

Remove a PPA in Debian

Firstly, remove PPA from below directories: /etc/apt/sources.list /etc/apt/sources.list.d/ directory Remark: add sudo as prefix due to permission. eg, 'sudo rm noob*' Then, do an update: $sudo apt update

-bash: python: command not found

OS: Debian 9 Python: 3.5.3 Title error encountered when I add ' #! python3 ' in .py file as 1st line. Seems lost the path. As I installed python 3 already, so check its path with 'which' command: peter@Debian:~$ which python3 /usr/bin/python3 Then replace it with absolute path '#! /usr/bin/python3'. Pass! 

Solved: Pyperclip could not find a copy/paste mechanism for your system.

OS: Debian 9 Python version: 3.5 After import pyperclip module, encounter error message ' Pyperclip could not find a copy/paste mechanism for your system. '. Solution: install xsel utility $ sudo apt install xsel then reboot Python IDLE3, import pyperclip, solved. *************** Install pip/pyperclip: $ sudo apt install python3-pip $ sudo pip3 install pyperclip

How to solve Debian / Chromium ugly font

OS: Debian Stretch Chromium version: 57.0.2987.98 The bad feeling for Debian initial font showing comes since the installation. One word: ugly, especially for Chromium web Browser v.s. Windows. I hesitated to return Ubuntu or switch to Elementary OS. But thanks to Google, I find the solution on Debian Wiki. A decent looking fonts can be setup in Debian by creating a .fonts.conf file to any user account home folder. An example of .fonts.conf which you can add to your user account home folder. You can create it with Gedit, just remind to save as '.' as prefix, under Home folder. After that reboot, then you'll find the changing, perfect for Chromium. Enjoy it~ <?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <fontconfig> <match target="font"> <edit mode="assign" name="rgba"> <const>rgb</const> </edit> </match> <match target="font">