Saturday, January 19, 2013

Installing Ubuntu font family in Debian 7 Wheezy

Download Ubuntu font family from http://font.ubuntu.com. Using file manager and as a user root, do:

  1. Create a directory in /usr/share/fonts/truetype named ttf-ubuntu.
  2. Using a file manager copy the *.ttf files to /usr/share/fonts/truetype/ttf-ubuntu.
Note:
- I am not sure if this is the proper way to do it but it works.

Installing Google Chrome in Ubuntu 12.10 from the command line

Of course you can install Chromium, but hey I wanna use Google Chrome. To install from the command line, do:
$: cd ~/Downloads
$: wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
$: sudo dpkg -i ~/Downloads/google-chrome-stable_current_i386.deb
$: sudo apt-get -f install

The last line is needed to install the required dependencies and complete Chrome installation.
To install 64bit version of Chrome, you have to change download path to https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb, like:

$: wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

Note(s):
* This applies to Debian 7 Wheezy

Reference(s):
http://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line

Additional packages for my base Debian 7 Wheezy

Below are the packages that I normally install after having configured by minimal base Debian 7 system.
  • Leafpad text editor (leafpad)
  • LightDM Display Manager (lightdm)
  • LXDE Core window manager (lxde-core)
  • LXDE GTK+ theme switcher (lxappearance)
  • Midnight Commander (mc)
  • Midori light weight GUI browser (midori)
  • Synaptic package manager (synaptic)
  • Terminus xfonts (xfonts-terminus)

Install LightDM in Debian 7 Wheezy

#: apt-get install lightdm

References:
http://wiki.debian.org/LightDM

Install core LXDE in Debian 7 Wheezy

#: apt-get install lxde-core

References:
http://wiki.debian.org/LXDE

Sunday, January 06, 2013

Additional applications after installing mini Ubuntu

I have installed Ubuntu using netinstall to have more control as to what gets installed in the system. I have selected Lubuntu minimal installation in Software Selection (tasksel). It is pretty clean I should say.

Here are some of the tools that I install to make it more useful for my needs:
  • Customize Look and Feel (lxappearance) - LXDE GTK+ theme switcher
  • Chromium Browser (chromium-browser) - open source version of Google's Chrome browser
  • Image Viewer (gpicview) - lightweight image viewer
  • Leafpad (leafpad) - a text editor, it is a GTK+ based simple editor
  • LXTerminal (lxterminal) - LXDE terminal emulator
  • Midnight Commander (mc) - a powerful file manager

Saturday, January 05, 2013

Powershell Quick Tips: Return exit code

Short command below returns exit code of 1.
powershell -Command exit 1
To sequence one command after another one can use & to do it. For example:
set test=hello & call echo %test%
set test="hello" sets the value and call echo %test% shows the result to the standard output. Note also the use of call instruction, that forces the interpreter to re-interpret echo otherwise it will not see changes made.

Wednesday, January 02, 2013

Powershell Quick Tips: Kill a process

Stop-Process -ProcessName "notepad"

Where notepad is the name of the process to kill. Or to make life more difficult, you can:

[System.Diagnostics.Process]::GetProcessesByName("notepad") | ForEach-Object {$_.Kill()}

References:
http://technet.microsoft.com/en-us/library/ee177004.aspx

How to: Install Visual Studio 2012 Update 1 Offline

Inspired by Rob Caron's blog on installing VS2012 Update 1 offline. Below shows how to download without user interaction with the GUI.
C:\> vsupdate_KB2707250.exe /layout f:\tmp /passive

Of course you need to download the installer first, see this link. It is assumed that vsupdate_KB2707250.exe is in the system path or in the root of drive C:. And you have enough space in drive F:\.

References:
http://blogs.msdn.com/b/robcaron/archive/2012/11/26/how-to-install-visual-studio-2012-update-1-offline.aspx

How to add a Windows user to a group from command line

net localgroup administrators timus /add

Where administrators is the group that timus will be added. Of course, you need to have administrative privileges to do this.

Tuesday, January 01, 2013

How to delete Windows user from the command line

net user /delete timus

Where timus is the user to delete. And of course you have to have administrative privileges to do this.

How add a Windows user from the command line

Open command prompt and type:

net user /add timus timuspassword

Where timus is the username and timuspassword is the password. Of course you have to have administrative privileges to do this.