Saturday, May 9, 2009

Remote login using x11vnc for Hoary (Xubuntu) Server

Installation of x11vnc server (port 5900) to the remote desktop (RD) PC (tested using KRDC)
  • Install x11vnc and set VNC password for security, as it is described here.
  • Enable remote desktop login: open with sudo the file
    /etc/gdm/gdm.conf
    find and change the following lines of [xdmcp] section to be:
    [xdmcp]
    Enable=true
    MaxPending=4
    MaxWait=15
    DisplaysPerHost=2
    Port=177
    Willing=/etc/gdm/Xwilling
  • Turn on VNC server after each reboot: open with sudo the file
    /etc/gdm/Init/Default
    and append the line:
    /usr/bin/x11vnc -dontdisconnect -shared -forever -rfbport 5900 -bg -o /var/log/x11vnc.log -rfbauth /home/your_login_name/.vnc/passwd
    before
    exit 0
    line. This way you can login to the remote PC, without loosing your login session each time you disconnect your VNC client. Thus, the next time(s) that you will connect with your VNC client again, you will see your RD session (until you logout -or reboot- the remote PC).

  • Turn up VNC server after each login: open with sudo the file
    /etc/gdm/PreSession/Default
    and append the line:
    /usr/bin/x11vnc -dontdisconnect -shared -forever -rfbport 5900 -bg -o /var/log/x11vnc.log -rfbauth /home/your_login_name/.vnc/passwd
    before
    exit 0
    line. This is a workaround to the known problem of gdm, which kills x11vnc server after login. Note however that, in order to login to remote PC using this workaround, you have to connect twice with your VNC client:
    • the first one to give login and passwd and
    • the second to use your remote Xubuntu Desktop.

  • Restart gdm:
    sudo /etc/init.d/gdm restart

Friday, May 8, 2009

Remote login using x11vnc for Jaunty Kubuntu

Installation-configuration of x11vnc server (port 5900) to the remote desktop (RD) PC (tested using KRDC)
  • Install x11vnc:
    $sudo apt-get install x11vnc
  • Set VNC password for security (password is saved by default in ~/.vnc/):
    $x11vnc -storepasswd
  • Enable remote desktop login: open with sudo the file
    /etc/kde4/kdm/kdmrc
    find and change the following lines of [Xdmcp] section to be:
    [Xdmcp]
    #Enable=false
    KeyFile=/etc/kde4/kdm/kdmkeys
    Willing=/etc/kde4/kdm/Xwilling

  • Turn on VNC server after each reboot: open with sudo the file
    /etc/kde4/kdm/Xsetup
    and append the line (see also the 4th comment(σχόλια) of "Ed" for a better solution):
    /usr/bin/x11vnc -dontdisconnect -shared -forever -rfbport 5900 -bg -o /var/log/x11vnc.log -rfbauth /home/your_login_name/.vnc/passwd
    This way you can login to the remote PC, without loosing your login session each time you disconnect your VNC client. Thus, the next time(s) that you will connect with your VNC client again, you will see your RD session (until you logout -or reboot- the remote PC).

  • Restart kdm:
    sudo /etc/init.d/kdm restart
    or (better?) reboot remote PC.

Tuesday, February 17, 2009

Wine fonts totally messed up?

The problem relates to incompatibilities between Nvidia drivers for linux and card GeForce4 MX440 (and probably others). Solution comes from arch linux geeks.

Saturday, July 19, 2008

Visual Studio C++ and MEX 2007b in x64 WinXP

To use VS C++ free compilers with Matlab 2007b MEX in x64 WinXP machines:
  • Install VS C++ free components
    1. Download vcsetup.exe for Visual Studio C++ 2008 Express Edition
    2. Run it to install the free Visual Studio C++ components (ignoring the optional ones).
    3. Download setup.exe of Windows SDK for Windows Server 2008 and .NET Framework 3.5
    4. Run it to install Windows SDK.
  • Let Matlab know where Windows SDK resides:
    1. Set environment variable MSSDK to C:\Program Files\Microsoft SDKs\Windows\v6.0A
    2. Run cmd and mex -setup in it (alternatively, open matlab and give mex -setup in the matlab command prompt).
    • Answer 'no' to the suggestion of mex to automatically locate compilers,
    • choose Microsoft Visual C++ 2005 in the list that appears,
    • answer 'no' to the suggestion for the default path of VS C++ and then,
    • give C:\Program Files\Microsoft SDKs\Windows\v6.0A as the new path for VS C++.
  • To compile mex files:
    1. Navigate with Win Explorer to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin and double click Visual Studio 2008 x64 Win64 Command Prompt
    2. In that terminal, navigate (using command cd) to the directories where YOUR C/C++ code is located and make the mexw64 file(s).

Installation of MySQL(MariaDB) and phpMyAdmin on Ubuntu LTS focal (20.04)

Coming back again, "ten years after", trying to cope with this incredible mess that has resulted from the -admittedly- very good e...