Walid-Shouman
7/5/2014 - 7:39 AM

After installation todos

After installation todos

  • update software till you finish the following steps

  • enable receiving files over bluetooth

  • from dash open personal file sharing

  • check receives files in downloads folder over bluetooth

  • check notify about received files

  • system-settings:

  • add Arabic/Japanese

  • make changing language through Alt+Shift

  • remove Keyboard settings->Shortcuts->Windows->Minimize Window

  • Install Japanese -- choose Japanese Mozc (Google's) or Anthy (mature) from the text entry options

  • Make English main regional format

  • Enable workspaces

  • Show the menus for a window->in the window's title bar

  • When the led is closed do nothing

  • Turn screen of when in active for never

  • files:

  • .bashrc: change HISTFILESIZE from 2000 to 20000

  • change the history to append each line by line by adding the following lines in .bashrc

shopt -s histappend
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
  • .bash_aliases: take a copy of any of the old ones

  • install firefox extension:

  • readlater

  • install some apps

  • git

  • synaptic

  • vim

  • dconf-editor (edit system configurations)

  • remove unused partitions/apps from launcher

  • install nvidia's things either

  • install prime-indicator -- if u ever the quickswitcher doesn't work ... and needs a real restart, try the following -- sudo prime-select nvidia -- sudo prime-select intel -- then try the quick switch (that solved it for me) or

  • purge the proprietary driver

  • install bumblebee

  • start bootcharting

  • sudo apt-get install bootchart pybootchartgui

  • then reboot

  • check them in /var/log/bootchart/*.png

  • setup open in terminal

  • sudo apt-get install nautilus-open-terminal

  • then reset nautilus with: nautilus -q

  • manage users/groups through ui

  • install gnome-system-tools through the software center

  • from start choose "Users and Groups"

  • add custom apps to the dash -- nano ~/.local/share/applications/blender272.desktop -- type the following/edit where needed

[Desktop Entry]
Name=Blender 2.72
Comment=
Exec=/home/walid5/Documents/blender/blender-2.72-RC1-linux-glibc211-x86_64/blender
Icon=/home/walid5/Documents/blender/blender-2.72-RC1-linux-glibc211-x86_64/icons/48x48/apps/blender.png
Terminal=false
Type=Application
StartupNotify=true

-- check this for more info http://askubuntu.com/a/112812

  • change the file association
    -- change the defaults.list in /usr/share/gnome/applications/defaults.list -> /etc/gnome/defaults.list
    sudo nano /etc/gnome/defaults.list -- add a line similar to the following (notice that we've used the blender272.desktop that we've just registered before)
    application/x-blender=blender272.desktop
    -- check this for more info http://askubuntu.com/questions/289337/how-can-i-change-file-association-globally -- someone used this xdg-mime and update-desktop-database http://crunchbang.org/forums/viewtopic.php?id=8451

  • install makerware -- sudo apt-add-repository 'deb http://downloads.makerbot.com/makerware/ubuntu trusty main' -- sudo apt-get update -- sudo apt-get install makerware

  • install sketchup using wine -- install wine (winex.x supports 64 and 32 arch, winex.x-amd64 supports only 64) -- add /DisableRubyAPI to the command in the desktop shortcut or use wine "/path/to/sketchup.exe" "/DisableRubyAPI" to open sketchup

  • change desktop font (use get first if you're not sure), could dconf-editor for that -- gsettings set org.gnome.nautilus.desktop font 'Ubuntu Bold 10'

  • change all fonts -- gsettings set org.gnome.desktop.interface font-name 'Ubuntu 9'

  • install rabbitvcs -- sudo apt-get install rabbitvcs-nautilus-3.0 -- nautilus -q && nautilus &

  • install systemc

  • use the gist for that

Install tree

Usefull to watch directory contents

sudo apt-get install tree
# usage example
# tree Documents -L 2

Install xclip

Useful for clipboard interaction with the shell

sudo apt-get install xclip

Add the following to .bashrc

alias "c=xclip"
alias "v=xclip -o"

Now we can copy to clipboard using pwd| c and paste from it using cd `v`
ref: Stackoverflow answer for How can I copy the output of a command directly into my clipboard?

  • setting environment variables in a better place than bashrc
  • gedit /etc/environment
  • add the lines u wish after PATH="/bla/bla/bla"
# my gitconfig options
[user]
	email = my@email.com
	name = Walid Shouman
[alias]
  co = checkout
  ci = commit
  st = status
  br = branch
  dc = diff --cached
  hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
  type = cat-file -t
  dump = cat-file -p
	dd = diff --cached
# git fame Walid
# shall get the number of commits with the name walid in them
  fame = "!f() { git rev-list --all --count --author=\""$1"\"; }; f"
  contribution = "!f() { git shortlog --author=\""$1"\"; }; f"

# git ag "cleanup"
  ag = "!f() { git log --all --grep=\""$1"\"; }; f"

# git ag "cleanup" "Walid" #not working
  ag-author = "!f() { git log -all --grep=\""$1"\" --author=\""$2"\"; }; f"

# git branches
  branches = "!f() { git for-each-ref --sort=committerdate refs/remotes/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'; }; f"

# git abbrev
  abbrev = "!f() { git -c 'user.cmdline=true' config --list --show-origin; }; f"

# this one was a hack
#  fame = "!f() { git log | grep -o "$1" | wc -l; }; f"
# I usually add a similar block to the .bashrc
##### things added by me ~Walid ####

# Custom bin file
export PATH="$PATH:~/bin"

# Append line by line
shopt -s histappend
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"

# Custom variables
export prosrc="/home/$USER/Documents/projects/pro"
export mymongosrc="/home/$USER/Documents/tests/mymongo"

# Use rvm directly
source /home/walid/.rvm/scripts/rvm

alias c='xclip -selection clipboard'
alias v='xclip -o'

# Reference: make bash alias that takes parameter
# http://stackoverflow.com/a/7131683/2730737
# ```mkdir -p``` makes dirs recursively
my_mkdir_and_cd_function() {
    mkdir -p $1
    cd $1
}
alias mkdircd=my_mkdir_and_cd_function
###### end of things created by ~Walid ####