Saturday, February 28, 2015

Fedora 21: to do after install

dnf install @xfce-desktop
dnf upgrade
su -c "curl https://satya164.github.io/fedy/fedy-installer -o fedy-installer && chmod +x fedy-installer && ./fedy-installer"
dnf install terminator vim mc htop git bless okular chromium-browser krusader krename kdiff3 vnc4server gimp boost-devel yumex gcc-c++ ImageMagick ImageMagick-devel ImageMagick-c++-devel python3-matplotlib python3-ipython python3-scipy kernel-devel kernel-headers dkms make bzip2 perl eqlipse-pydev python3-devel kate
vim etc/gdm/custom.conf

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=mz2



Ubuntu 14.04: Install boost 1.57

sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev
wget http://downloads.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.bz2
tar xvjf ./boost_1_57_0.tar.bz2
./bootstrap.sh --prefix=/opt/boost_1_57_0
sudo ./b2
sudo ./b2 install

Friday, February 27, 2015

Ubuntu 14.04: My essential packages to be installed.

sudo apt-get install vim mc terminator bless chromium-browser krusader krename kdiff3 vnc4server gimp inkscape build-essential libmagick++-dev libboost1.55-all-dev rar octave okular network-manager-pptp network-manager-vpnc network-manager-openvpn gcc-multilib apt-file htop git xtightvncviewer Numix theme sudo add-apt-repository ppa:numix/ppa
sudo apt-get update
sudo apt-get install numix-gtk-theme numix-icon-theme-circle
sudo apt-get install numix-wallpaper-notd

Sublime 3 sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
Bash promptexport PS1="\[\e]0;\u@\h: \W\a\]${debian_chroot:+($debian_chroot)}\u@\h:\W\$ "

Friday, February 13, 2015

Wednesday, December 24, 2014

irfanview: rename file names in batch processing

Renaming camera photos in
$E36868(%Y%m%d)_$E36868(%H%M%S)

terminator: windows size and position

Example of a confing file: ~/.config/terminator/config


[global_config]
[keybindings]
[profiles]
  [[default]]
    use_system_font = False
    font = Monospace 12
    background_image = None
[layouts]
  [[default]]
    [[[child1]]]
      profile = default
      type = Terminal
      parent = window0
    [[[window0]]]
      type = Window
      parent = ""
      position = 1110:1043
      size = 1300, 450 

[plugins]

Wednesday, November 05, 2014

Ubuntu: pdf to images and images to pdf

pdftoppm -png a_pdf_file.pdf img
convert *.png a_pdf_file_as_img.pdf

Tuesday, November 04, 2014

Git pretty tree alias

git config --global alias.tree "log --graph --full-history --all --color --pretty=format:\"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s\""

Tuesday, September 23, 2014

rename with grouping

rename "s/(\d\d)/0\$1/" 28/ The code will rename folder named "28" into "028".

Thursday, September 04, 2014

Firefox OS MultiROM build from 4th September 2014 for Nexus 5

Following this guide, I built the current (4th September 2014) Firefox OS from git repositories for Nexus 5 for MultiROM.  The guide explains how to build it, make MultiROM and how to install it on Nexus 5. The problem is that it contains build rom from June 2014. So I decided to build the current one from September 2014

 USE AT OWN RISK! 
I don't assume any responsibility for damage caused to your device or lost data.

The Firefox_OS_2014_09_04.zip rom for MultiRom can be downloaded from here.