User Tools

Site Tools


infrastructure

This is an old revision of the document!


Infrastructure

Linux Mint Setup

Change the font size: Preferences > Appearance > Fonts > DPI > [x] Own DPI value (modify value)

Ubuntu Setup

Get latest desktop version from the Ubuntu website.

For usage as a VirtualBox virtual machine install guest extensions:

sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11

Shortcuts

Ubuntu general keyboard shortcuts.

Move the window:

apt-get install compizconfig-settings-manager compiz-plugins-extra

CompizConfig Settings Manager | [x] Put: Set shortcut for Put To Next Output.

Maximize and minimize windows: System settings | Keyboard | Shortcuts

  • Maximize windows: Super+Up
  • Restore window size: Super+Down

Sublime Text

Installation

Download the latest version of Sublime Text.

tar xf Sublime\ Text\ 2.0.2\ x64.tar.bz2
sudo mv Sublime\ Text\ 2 /opt/
sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime

Create start bar icon:

sudo sublime /usr/share/applications/sublime.desktop

Paste into sublime.desktop:

[Desktop Entry]
Version=1.0
Name=Sublime Text 2
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Text Editor

Exec=sublime
Terminal=false
Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png
Type=Application
Categories=TextEditor;IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow

[NewWindow Shortcut Group]
Name=New Window
Exec=sublime -n
TargetEnvironment=Unity
Setup

Install Package Control, View | Show Console, execute:

import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')

Install packages (CTRL+SHIFT+P, “Package Control: Install Package”):

Git installation

sudo apt-get install git-core git-gui git-doc

Issues with Ubuntu in VirtualBox

Restoring the VM after it was saved freezes Ubuntu. Resizing the VM windows helps to resolve the issue: VirtualBox Ticket #13487: Ubuntu Desktop 14.04.1 freezes when restarting from saved state (3D)

VirtualBox

Change the UUID of a hard drive:

VBoxManage.exe internalcommands sethduuid Hard_Disk.vdi

Unix Settings

Shell Prompt Prefix

export PS1='$(whoami)@$(hostname):$(pwd)$ '

This can be executed manually, added to ~/.profile or ~/.bashrc for using bash and leads to a command shell prompt like:

myuser@myserver:/home/myuser$

http://superuser.com/questions/601181/how-to-display-current-path-in-command-prompt-in-linuxs-sh-not-bash

Windows Setup

Show symbols instead of preview in ALT+TAB window choosing menu:

  1. Right-click task bar | Properties | Taskbar | Preview desktop with Aero Peek | [ ] Use Aero peek to preview desktop

Choose colour scheme:

  1. Right-click desktop | Personalize | Basic designs | Windows 7 Basic.

Set environment variables without administrator privileges:

  • English: Start | Accounts | Change my environment variables
  • German: Start | Benutzerkonten | Eigene Umgebungsvariablen ändern
  • Registry: HKEY_CURRENT_USER\Environment

Taskbar | Properties:

  • [x] Lock the taskbar
  • [ ] Auto-hide the taskbar
  • [x] Use small icons
  • Taskbar location on screen: Left
  • Taskbar buttons: Always combine, hide labels

Wifi sharing on Windows

share_wifi.bat

:: Creates a Local Area Connection network adapter.
:: For the first time of the connection setup an internet connection must be
:: shares with the local area connection. In the network adapter configuration
:: select the network adapter which provides the internet connection, choose
:: Properties, Sharing, [x] Share with others, select Local Area Connection
:: from drop down. Confirm.

:: Open network adapter configuration
start "" ncpa.cpl
:: Configure hosted network
netsh wlan set hostednetwork mode=allow ssid=wifi_name key=wifi_key
:: Start hosted network
netsh wlan start hostednetwork
pause
:: Stop hosted network
netsh wlan stop hostednetwork
infrastructure.1479420467.txt.gz · Last modified: (external edit)