- edit
/etc/default/grub
- adapt line
GRUB_DEFAULT=4
(entries shown in update-grub, starting from ‘0’) sudo update-grub
sudo reboot
Author Archives: Markus Killer
Keyboard Layout Xubuntu Login Screen
It seems to be rather difficult to change the default keyboard layout used for the lightdm login screen. The following solution worked for me:
- adding the following block of code at the end of
/etc/X11/xorg.conf
- (adapt country-code
"ch"
in line 3):
Section "InputClass" Identifier "evdev keyboard catchall" Option "XkbLayout" "ch" MatchIsKeyboard "on" MatchDevicePath "/dev/input/event*" Driver "evdev" EndSection
AntConc 3.4.1m (2014) on OSX Mavericks (OS X 10.9)
[Last update: 06/02/2014]
By default, if you try to open AntConc 3.4.1m (2014) on Mac OS X Mavericks, it is blocked by OSX Gatekeeper:
- To be able to start the app, you need to add it as an exception: Go to ‘Apple Icon’ ⇨ ‘System Preferences’ ⇨ ‘Security & Privacy’:
- Click on ‘Open Anyway’ (you need to have double-clicked AntConc before for this option to appear):
- and click on ‘open’ in the following dialogue:
For a discussion of known issues, visit: https://groups.google.com/forum/#!forum/antconc
Users reported:
- screen refresh issues when changing parameters (workaround: change tab or move window to reflect changes)
AntConc 3.2.4m (2011) on OSX Mavericks (OS X 10.9)
There are two things that you have to bear in mind, when trying to start AntConc 3.2.4m on Mac OS X Mavericks:
(jump to Troubleshooting section if antconc pops up briefely and disappears again)
1) By default, if you try to open the app, it is blocked by OSX Gatekeeper:
- To be able to start the app, you need to add it as an exception: Go to ‘Apple Icon’ ⇨ ‘System Preferences’ ⇨ ‘Security & Privacy’:
- Click on ‘Open Anyway’ (you need to have double-clicked antconc3.2.4m before for this option to appear):
- and click on ‘open’ in the following dialogue:
2) Download, install & run the latest X11:
- The first time you try to open the app, you’ll see the following message:
- You can click on ‘Continue’ or go directly to the download page:
- Download and open the latest .dmg file
- Install XQuartz on your system
- Start X11 (‘Finder’ ⇨ ‘Go’ ⇨ ‘Utilities’ ⇨ ‘XQuartz’)
- Double-click antconc3.2.4m
Troubleshooting
If the antconc3.2.4m icon only pops up briefly in the doc area and disappears again, you forgot to start X11 before starting AntConc:
Open ‘XQuartz’: ‘Finder’ ⇨ ‘Go’ ⇨ ‘Utilities’ ⇨ ‘XQuartz’
and double-click antconc afterwards. (Go back to Section 2 if ‘XQuartz’ is not present in the ‘Utilities’ folder.)
Installing uplug on Linux
Tested on: Xubuntu 12.04 LTS (64-bit) for languages English, German (& French)
- Install/check for uplug dependencies (
libmodule-install-perl
is compulsory, others could also be installed through cpan when runningmake
):
-
sudo apt-get install libmodule-install-perl libxml-parser-perl libxml-simple-perl libfile-sharedir-perl libipc-run-perl
- Clone latest version from bitbucket repository:
-
git clone https://bitbucket.org/tiedemann/uplug.git uplug
- Third-party tools that are not automatically installed:
- MElt (Tagger for French)
- Dependencies:
sudo apt-get install gawk python-numpy
- Dependencies:
- MElt (Tagger for French)
- Install individual modules:
cd uplug-XY perl Makefile.PL make sudo make install
- Install all modules:
cd uplug make all sudo make install make test
Running InterText Editor on Linux
Tested on: Xubuntu 12.04 LTS (64-bit)
- Install/check for InterText dependencies:
-
sudo apt-get install libqt4-gui
- Download latest release (InterText is a 64-bit linux binary without extension) and run InterText Editor:
-
mkdir InterText cd InterText wget http://wanthalf.saga.cz/InterText chmod +x InterText ./InterText
- Download icon and create desktop shortcut (copy-paste [Desktop Entry] into a new file called
InterText.desktop
on your Desktop, don’t forget to adapt the full path toInterText
binary and InterText_logo.gif):
-
wget http://langui.ch/wp/wp-content/uploads/2014/01/InterText_logo.png
-
[Desktop Entry] Version=1.0 Type=Application Name=InterText 1.1.1 Comment=Parallel Alignment Editor Exec=/path/to/InterText/InterText Icon=/path/to/InterText/InterText_logo.png
Running TextSTAT on Linux
Tested on: Xubuntu 12.04 LTS (64-bit), using default python interpreter (v2.7.3)
[Last update: 04/03/2014]
- Install/check for TextSTAT dependencies:
-
sudo apt-get install python-tk
- Download latest release (check here for latest version number) and run TextSTAT:
-
mkdir TextSTAT cd TextSTAT wget http://neon.niederlandistik.fu-berlin.de/static/textstat/TextSTAT-2.9c-source.zip unzip TextSTAT-2.9c-source.zip chmod +x TextSTAT.pyw ./TextSTAT.pyw
- Download icon and create desktop shortcut (copy-paste [Desktop Entry] into a new file called
TextSTAT.desktop
on your Desktop, don’t forget to adapt the full path toTextSTAT.pyw
and textstat_logo.gif
):
-
wget http://neon.niederlandistik.fu-berlin.de/static/textstat/textstat_logo.gif
-
[Desktop Entry] Version=1.0 Type=Application Name=TextSTAT 2.9c Comment=Concordancing Program written in Python Exec=/path/to/TextSTAT/TextSTAT.pyw Icon=/path/to/TextSTAT/textstat_logo.gif
Installing nltk3 for Python3 in virtual environment on Linux
[Last update: 04/01/2015]
Prerequisites: Install Python and set up virtual environment & Install pip in virtual environment
Tested on: Xubuntu 12.04 LTS / 13.10 / 14.04 LTS (64-bit) with ActivePython installed in /opt
- (skip, if activated) Activate the virtual environment you would like to install nltk (v3) in:
-
cd ~/venv/apy3341 source bin/activate
- Use
pip
to install the latest version ofnltk
:
-
(apy3341):~$ pip install -U nltk
- [January 2015] Workaround for users with
setuptools
versions>=10
(see NLTK Issue #824):
-
(apy3341):~$ pip install setuptools==9.1 (apy3341):~$ pip install -U nltk
- (skip, if nltk_data already present on system) Start Python interpreter in virtual environment and download nltk_data (corpora, packages & models):
(apy3341) mki@ubuntu:~$ python ActivePython 3.3.4.1 (ActiveState Software Inc.) based on Python 3.3.4 (default, Feb 25 2014, 14:59:15) [GCC 4.0.2 20051125 (Red Hat 4.0.2-8)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import nltk >>> nltk.download()
pip installations of sphinx, numpy & imapclient in virtual environment on Linux work out-of-the-box
Prerequisites: Install Python and set up virtual environment & Install pip in virtual environment
Tested on: Xubuntu 12.04 LTS / 13.10 / 14.04 LTS (64-bit) with ActivePython installed in /opt
[Last update: 03/07/2014]
- (skip, if activated) Activate the virtual environment you would like to install additional python packages in:
-
cd ~/venv/apy3341 source bin/activate
- Use pip to install/update additional packages (the installation of the following packages worked out-of-the-box):
-
bin/pip install -U sphinx
-
bin/pip install -U numpy
-
bin/pip install -U imapclient
Installing lxml in virtual environment on Linux
Prerequisites: Install Python and set up virtual environment & Install pip in virtual environment
Tested on: Xubuntu 12.04 LTS / 13.10 / 14.04 LTS (64-bit) with ActivePython installed in /opt
[Last update: 03/07/2014]
- (skip, if activated) Activate the virtual environment you would like to install lxml in:
-
cd ~/venv/apy3341 source bin/activate
- Install/check for lxml dependencies (for pip to be able to compile lxml from source code):
-
sudo apt-get install libxml2-dev libxslt1-dev zlib1g zlib1g-dev
- Use pip to install/update lxml:
-
bin/pip install -U lxml