Session (ID X) remote control failed

Posted on .

remote-control-failed

You may find it impossible to remote control a user from Task Manager on Windows Server and get the above error.

If it only works when using the built-in administrator account, then this may be because UAC is enabled. Task Manager needs to be UAC-elevated in order to perform the remote control task.

The long-term fix is to disable UAC like discussed in this Technet forum post.

task-manager-processes-uac

A quicker method, and if you want to keep UAC enabled, is to elevate Task Manager by going to the “Processes” tab and clicking “Show processes from all users” button. This elevates Task Manager to show all processes and then allows you to remote control.

Compile Owncloud libocsync0 for Debian Wheezy from source

Posted on .

I was trying to get the Python Owncloud CLI package to work on Wheezy. It requires libocsync0 which is available in unstable but it has many depends that would push the box further into unstable than I would of liked (samba and sftp plugins require unstable versions of samba, ssh, libc6, etc.).

To get libocsync working on wheezy, I did the following:

Windows 7 on XEN HVM — Slow Remote Desktop

Posted on .

Update: The same issue and fix are relevant for Windows Server 2008 R2, Server 2012 and Windows 8. Maybe all versions of Windows using the GPL PV drivers.

I just installed a Windows 7 guest onto a Debian Wheezy Xen dom0. I installed these GPLPV drivers v11.0.372. Using RealVNC to setup the machine was fast and responsive, however once I switched over to RDP the machine was acting like a mule. The RDP session was slowly redrawing the screen as each new application loaded. Internet Explorer’s default MSN page with its ever changing news feed image was causing the session to almost lock up.

The fix is to disable Large Send Offload on the Xen network adapter.
 
devmgmt_xen

Simple instructions:

  1. Press the Start Orb
  2. Type: “devmgmt.msc” and press enter
  3. In device manager, find Network Adapters
  4. Right click, “Xen Net Device Driver” and choose Properties
  5. Under the advanced tab, click “Large Send Offload” and adjust the Value to “Disabled”
  6. Click Okay (if you did this via RDP, you will lose the connection as the network is reset, just reconnect)

logcheck — various filters


As mentioned earlier, I have a few of these logcheck filters I have created over the past few years. I use Debian and CentOS so other distros may not perfectly match.

These work in conjunction with the default filters, hence their naming scheme of local_<service>.

Dovecot
login, logout, mysql connections, lda delivery, ssl regen

  local_dovecot (1.5 KiB, 1,918 hits)

Managesieve (part of Dovecot)
login, logout

  local_managesieve (320 bytes, 1,886 hits)

OpenVPN
login related

  local_openvpn (506 bytes, 1,868 hits)

PostFWD
statistic log lines: dnsbl, rules, stats, cache, rate

  local_postfwd (104 bytes, 1,781 hits)

ProFTPd mod_ban (optional module)
obtained, detached, removed, showing ban list

  local_proftpd-banlog (230 bytes, 1,687 hits)

rSYSlog
start, exit, reload/hup, mark

  local_rsyslog (954 bytes, 1,755 hits)

OpenSSH
closed user request, closed preauth 127.0.0.1

  local_ssh (255 bytes, 1,904 hits)

swapspace
allocating, retiring, adding (kernel)

  local_swapspace (324 bytes, 1,848 hits)

Quick Disk Usage Bash Script

Posted on .

The command, du (estimate file space usage) is a core Linux program I use often.

When trying to find where space is being used on a disk I run the following command:

du --max-depth=1 -xh

This produces a list of all directories with their total size in human readable format. However it isn’t sorted, and it doesn’t tell me how much is being used in the current directory.

So I wrote a script which lists the directory sizes in human readable format, sorts them by size, and also has a seperate entry for the current directory, along with total.

Typical output:

$ ddu
0K ./proc
0K ./run
0K ./sys
4K [.]
4K ./boot
4K ./data
4K ./dev
4K ./lib64
4K ./media
4K ./mnt
4K ./opt
4K ./selinux
4K ./tmp
12K ./srv
32K ./home
76K ./root
5.5M ./sbin
5.5M ./bin
5.7M ./etc
12M ./lib
341M ./var
761M ./usr
--
1.1G [total]

 
Download
  ddu.sh (846 bytes, 1,443 hits)