in Ubuntu/Debian:
To install Scipy:
To install Scikit-learn
To install NLTK
To install Pandas
To install Jupyter notebook
First you have to install setuptools before installing jupyter notebook.
Wednesday, July 20, 2016
Tuesday, July 19, 2016
After fresh new ubuntu linux installation guide
Ubuntu 16.04 LTS
1. Mouse accelerator was too fast. So I run these commands to make it slower.
to see list of devices:
xinput --list --short
to see configuration of my mouse: (my mouse id was 11)
xinput --list-props 11
to set mouse accelerator to 0.5:
xinput --set-prop 11 275 0.5
Here is the full instruction.
2. Installed unity-tweak-tool to add new cool desktop actions such as toggling desktop as mouse approaches the left bottom corner.
sudo apt-get install unity-tweak-tool
but It was not working, so as advised I installed this:
sudo apt-get install compizconfig-settings-manager compiz-plugins-extra -y
after that type ccs in search bar and run the program. Inside the program go to 'desktop' section, choose
'Ubuntu Unity Plugin', inside go to 'Switcher' tab and uncheck 'Show live previews of windows in the Switcher'.
Afterwards, it worked. But I have no idea the last steps had effected or not.
3. Then I installed terminator with
sudo apt-get install terminator
4. Install Chrome. Go to https://www.google.com/intl/en-US/chrome/browser
then download appropriate version, and install with command.
cd /~/Downloads
sudo dpkg -i google-chrome-stable-current_amd64.deb
5. Install Keepass, password saver.
sudo apt-get install keepass2
6. Install Dropbox
Download from https://www.dropbox.com/install?os=lnx
cd /~/Downloads
sudo dpkg -i package-name
7. Install Thunderbird
8. Install Apache2 server
sudo apt-get install apache2
9. Install vim
sudo apt-get install vim
10. From Badaa's twitter: I agree that the Ubuntu a spyware is. If you must use it for any reason, sudo apt-get purge unity-webapps-common is a must-do.
It removes unity-tweak-tool, so reinstalled it again.
11. Install Java
First run these commands:
sudo apt-get purge openjdk*
http://askubuntu.com/questions/521145/how-to-install-oracle-java-on-ubuntu-14-04
https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-debian-8
12. Install git
13. Install apache modules for php7
sudo apt-get install libapache2-mod-php7.0
sudo apt-get install php7.0-mbstring
sudo apt-get install php7.0-xml
After this, you can test phpinfo(); on apache server.
14. Install Laravel
install Composer first:
curl -sS https://getcomposer.org/installer | php
move composer.phar file to /usr/local/bin under name composer.
sudo mv composer.phar /usr/local/bin/composer
15. Clone laravel project from git repository in /var/www/html. Go to the project directory. Run:
sudo composer update
1. Mouse accelerator was too fast. So I run these commands to make it slower.
to see list of devices:
xinput --list --short
to see configuration of my mouse: (my mouse id was 11)
xinput --list-props 11
to set mouse accelerator to 0.5:
xinput --set-prop 11 275 0.5
Here is the full instruction.
2. Installed unity-tweak-tool to add new cool desktop actions such as toggling desktop as mouse approaches the left bottom corner.
sudo apt-get install unity-tweak-tool
but It was not working, so as advised I installed this:
sudo apt-get install compizconfig-settings-manager compiz-plugins-extra -y
after that type ccs in search bar and run the program. Inside the program go to 'desktop' section, choose
'Ubuntu Unity Plugin', inside go to 'Switcher' tab and uncheck 'Show live previews of windows in the Switcher'.
Afterwards, it worked. But I have no idea the last steps had effected or not.
3. Then I installed terminator with
sudo apt-get install terminator
4. Install Chrome. Go to https://www.google.com/intl/en-US/chrome/browser
then download appropriate version, and install with command.
cd /~/Downloads
sudo dpkg -i google-chrome-stable-current_amd64.deb
5. Install Keepass, password saver.
sudo apt-get install keepass2
6. Install Dropbox
Download from https://www.dropbox.com/install?os=lnx
cd /~/Downloads
sudo dpkg -i package-name
7. Install Thunderbird
sudo add-apt-repository ppa:lucid-bleed/ppa sudo apt-get update sudo apt-get install thunderbird thunderbird-locale-en-us thunderbird-gnome-supportThe latest Thunderbird was installed as default in Ubuntu.
8. Install Apache2 server
sudo apt-get install apache2
9. Install vim
sudo apt-get install vim
10. From Badaa's twitter: I agree that the Ubuntu a spyware is. If you must use it for any reason, sudo apt-get purge unity-webapps-common is a must-do.
It removes unity-tweak-tool, so reinstalled it again.
11. Install Java
First run these commands:
sudo apt-get purge openjdk*
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Create a file/etc/profile.d/oraclejdk.shwith the following content (adapt the paths to reflect the path where you stored your JDK)
export J2SDKDIR=/usr/lib/jvm/java-8-oracle export J2REDIR=/usr/lib/jvm/java-8-oracle/jre export PATH=$PATH:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin export JAVA_HOME=/usr/lib/jvm/java-8-oracleexport DERBY_HOME=/usr/lib/jvm/java-8-oracle/db
http://askubuntu.com/questions/521145/how-to-install-oracle-java-on-ubuntu-14-04
https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-debian-8
12. Install git
sudo apt-get install git-all
But git was installed as default in Ubuntu.
13. Install apache modules for php7
sudo apt-get install libapache2-mod-php7.0
sudo apt-get install php7.0-mbstring
sudo apt-get install php7.0-xml
After this, you can test phpinfo(); on apache server.
14. Install Laravel
install Composer first:
curl -sS https://getcomposer.org/installer | php
move composer.phar file to /usr/local/bin under name composer.
sudo mv composer.phar /usr/local/bin/composer
15. Clone laravel project from git repository in /var/www/html. Go to the project directory. Run:
sudo composer update
Installing php7.0 with xdebug in Linux Ubuntu
First run these commands to install php 7.0 and all necessary libraries of php 7.0.
After that, download stable release of x-debug extension.
Extract archive
Build extension
Add following lines to /etc/php/7.0/apache2/php.ini config file
Check whether xdebug is enabled from phpinfo().

# remove php5 modules apt-get autoremove --purge php5-* # add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj) add-apt-repository ppa:ondrej/php # Update index apt-get update # Install php7.0-fpm with needed extensions apt-get install php7.0-fpm php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-mysql php7.0-phpdbg php7.0-mbstring php7.0-gd php7.0-imap php7.0-ldap php7.0-pgsql php7.0-pspell php7.0-recode php7.0-snmp php7.0-tidy php7.0-dev php7.0-intl php7.0-gd php7.0-curl php7.0-zip php7.0-xml
After that, download stable release of x-debug extension.
wget -c "http://xdebug.org/files/xdebug-2.4.0.tgz"
Extract archive
tar -xf xdebug-2.4.0.tgz
Build extension
cd xdebug-2.4.0/
phpize
./configure
make && make install
Add following lines to /etc/php/7.0/apache2/php.ini config file
# Added for xdebugzend_extension="/usr/lib/php/20151012/xdebug.so"xdebug.remote_enable=1xdebug.remote_handler=dbgpxdebug.remote_mode=reqxdebug.remote_host=127.0.0.1xdebug.remote_port=9000xdebug.remote_autostart=0xdebug.remote_connect_back=0
Check whether xdebug is enabled from phpinfo().

Sunday, July 17, 2016
Configure rwth email account with Thunderbird in linux
Follow this instruction, check whether your password is right one.
https://doc.itc.rwth-aachen.de/display/EML/Thunderbird+14+bis+Thunderbird+45
https://doc.itc.rwth-aachen.de/display/EML/Thunderbird+14+bis+Thunderbird+45
Subscribe to:
Posts (Atom)