LPTHW Exercise 0: The Setup

  Last modified on Saturday 28 May 2016

Learn Python the Hard Way by Zed Shaw .: I am doing the Python exercises on a computer running Ubuntu bundled with Python 2.7.

Zed recommends gedit as the text editor to begin writing code. Let's give it a shot:

$ sudo apt install gedit

Upon launching the editor I immediately run into a problem of thick transparent borders being drawn around its windows. Fix... Create ~/.config/gtk-3.0/gtk.css with the following:

.window-frame, .window-frame:backdrop {
box-shadow: 0 0 0 black;
border-style: none;
margin: 0;
border-radius: 0;
}

.titlebar {
border-radius: 0;
}

Source: Evince (GTK3?) doesn't actually run fullscreen

My terminal is urxvt:

$ sudo apt install rxvt-unicode

Terminal settings (fonts, colours, tabs) are modified in ~/.Xresources. This is mine.

Launching Python in interactive mode I see:

$ python
Python 2.7.10 (default, Oct 14 2015, 16:09:02)
[GCC 5.2.1 20151010] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

Happy hacking!

More • pythonprogramminglinux