Category Archives: Uncategorized

Synology command line interface

  • Control Panel: User: activate admin account, make sure you know the password.
  • Control Panel: Terminal & SNMP: activate SSH
  • Download Putty (link), a popular terminal client for Windows.
  • Run Putty and enter the Synology IP address without the port, choose connection type SSH. The port will be set automatically by Putty.
  • Press Open. Putty will ask if you want to trust the Synology key. Press yes (make sure your network is safe, otherwise your admin password may be compromised).
  • Synology should ask for login and password. Use admin and the corresponding password.

Additional info:

Flip mouse wheel direction

Since we have got scroll wheels in our mice and touch-screens in our tablets/phones, we are not really using scroll bars for scrolling any more. So it makes sense to assign the mouse wheel direction to the actual scrolling direction (upwards = upwards), rather than to the position of the scroll thumb. This is how to do it in Windows 7 (fastest way):

  1. Copy this text:
    Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
  2. Press / click Start.
  3. In search field, type powershell.
  4. In the results, right-click Windows PowerShell, and click Run as Administrator.
  5. In the PowerShell, go to menu (press Alt+Space) > Edit > Paste, press Enter.
  6. PowerShell just returns to the prompt again.
  7. Unplug and plug in your mouse.

That’s it. There will be no response from PowerShell, but the mouse wheel direction should be flipped now.

Taken from:

Install TortoiseHg (Mercurial GUI) in Ubuntu

Mercurial is provided (even if old) for Ubuntu, it can be installed with Ubuntu Software Center or using sudo apt-get install mercurial. TortoiseHg, the graphical user interface or the front-end for Mercurial is not.

To install it

  1. sudo add-apt-repository ppa:mercurial-ppa/releases
  2. sudo add-apt-repository ppa:tortoisehg-ppa/releases
  3. sudo apt-get update
  4. sudo apt-get install mercurial
  5. sudo apt-get install tortoisehg*

After this, commands hg and thg are available.

Note that in Ubuntu 10.04 (LTS) thg exits with segmentation error, see here.

Moving Mercurial’s parent repository

(Updated 2011-08-12: This post was about moving the central repository only, but the solution is the same if any level parent repository, i.e. the one to which the clone command was applied, was moved. Just go to the child repo and edit the .hg/hgrc file.)

I’ve just found myself having renamed the directory, in which my Mercurial’s central repository was located. After this, the hg commit and other ‘local’ commands still work fine, but the out, in, push and pull result in
abort: repository default not found!

The solution is to open the file .hg/hgrc in the local repository directory and change the lines
default = ...

so that they point to the correct new location.

Lingvo in Ubuntu

Both StarDict and GoldenDict work fine (tested in Ubuntu 11.04 64 bit) with Lingvo dictionaries. I prefer GoldenDict for its look.

One can get Lingvo dictionaries in the Linux format just by searching for them.

Note: I have a purchased Lingvo version. Thus the Abbyy notice that the main cost of Lingvo is the dictionaries, not the program, and that’s why no Linux version exists since the Linux users don’t pay for the programs, doesn’t apply to me.

Install GoldenDict (via Ubuntu Software Center or with an apt-get command) and then install the dictionaries:

  1. Go to the folder with the downloaded deb-files.
  2. To install all English-related dictionaries, execute the command sudo dpkg -i lingvo-stardict-ru-en_3-1_all.deb linstardict-en-*
  3. Restart GoldenDict, if it was running.

Update: Just read here that it is not necessary to convert the Lingvo dictionaries to StarDict form for GoldenDict, the latter can work with Lingvo dictionaries directly. Haven’t this way yet.

Google Talk in Ubuntu

After installing Ubuntu, I immediately see the chat balloon (Indicator Applet) next to the clock. I entered my Google Talk user name and password there (left click > Chat Accounts), but the status is always smth. like ‘disconnected, no reason specified’.

This is solved by installing Pidgin:

sudo apt-get install pidgin

and configuring it for Google Talk account. After that the same chat balloon controls the status of the Pidgin’s Google Talk. To see the contacts list, I have to run Pidgin with Applications > Internet > Pidgin Internet Messenger.