MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Resources",
        "continue": "gapcontinue||"
    },
    "query": {
        "pages": {
            "294": {
                "pageid": 294,
                "ns": 0,
                "title": "Remote desktop using SSH tunneling",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "[[Category:Linux]]\n\n=Principle=\n\nSometimes you cannot open the external Windows RDP port TCP 3389. It can be for a security reason or simply because you do not manage your company's firewall.\n\n\nTo overcome this problem you can use a SSH tunnel. That's how it look like:\n\n[[File:Tunnel SSH.png|950px]]\n\n\n=Requirements=\n\n* You must be able to SSH to the middle server (''code.vehco.com'' in the example) from both ends [source + target].\n* The '''source''' computer is a Windows workstation. \n* The '''target''' computer can be anything: iPad, Windows, Linux, Android... \n\n\n\n=Source PC=\n\n==Requirements==\n\n\n* Windows computer with RDP enable\n* Bitvise # Tunnelier -> http://www.bitvise.com/download-area\n\n\n==How to proceed?==\n\n\n* Enable Windows RDP\u200b\n* Install Bitvise # Tunnelier\n* Create a SSH tunnel\n** Start Tunnelier\n** Go to the '''S2C''' tab\n** '''Add''' a new entry\n*** LISTEN => remote server (''code.vehco.com'' in that example)\n**** LISTEN interface: 127.0.0.1 \u200b\n**** LISTEN port: what_you_want (ex: 60001)\n*** DESTINATION => local machine (RDP server)\n**** DESTINATION interface: localhost\n**** DESTINATION port: 3389 \n** Go to the '''login''' tab\n*** server: code.vehco.com\n*** port: TCP 22 \n*** login: ''myLogin''\n*** passwd: ''myPassword'' \n** '''\u200bSave''' your profile\n** ''Start'' your profile\n\n\n\n==How to start Bitvise on boot?==\n\nTo start Bitvise automatically:\n\n\n* \u200bCreate a new entry in your Windows > Start menu > startup \u200bfolder\n* put the following shortcut: \"C:\\Program Files (x86)\\Bitvise SSH Client\\BvSsh.exe\" -profile=\"portforward.tlp\" \u2013loginOnStartup \n\n\nwhere ''portforward.tlp'' is the name of your profile.\n\n\n\n'''Limitations'''\n\n\n* [!] You have to log-in on your PC for the SSH tunnel to work. \n* [!] You should disable screensavers | energy savers otherwise your PC will NOT be available anymore.\n\n\n\n\n=Target PC - Windows computer=\n\n\n==Requirements==\n\n\n* Bitvise # Tunnelier -> http://www.bitvise.com/download-area\n\n\n==How to proceed?==\n\n\n===Bitvise configuration===\n\n\n* Install a RDP client or use the default one (Microsoft Windows Remote Desktop)\n* Install Bitvise # Tunnelier\n** Go to the '''S2C''' tab\n** '''Add''' a new entry\n*** LISTEN => remote server (''code.vehco.com'' in that example)\n**** LISTEN interface: 127.0.0.1 \u200b\n**** LISTEN port: what_you_put_earlier (ex: 60001)\n*** DESTINATION => local machine (RDP client)\n**** DESTINATION interface: localhost\n**** DESTINATION port: 3390 \n** Go to the '''login''' tab\n*** server: code.vehco.com\n*** port: TCP 22 \n*** login: ''myLogin''\n*** passwd: ''myPassword'' \n** '''\u200bSave''' your profile\n** ''Start'' your profile\n\n\n[!] Note the local TCP '''3390''' ! Not TCP ''3389'' !!\n\n\n[!] Don't forget to adjust the port number 60001\n\n\n\n===RDP configuration===\n\n\n* Start Windows RDP\n* Connection to: '''localhost:3390'''\n\n\nThat's All !! :-)\n\n\n\n\n\n=Target PC - Linux computer=\n\n\n==Create a SSH tunnel==\n\nYou can use the SSH -L command. The pattern is:\n\nSSH -L localComputer:remoteComputer\n\n\nSo:\n\n<syntaxhighlight lang=\"bash\">\nssh -v -N -L 127.0.0.1:3390:127.0.0.1:60001 myLogin@code.vehco.com\n</syntaxhighlight>\n\n[!] replace 3390 by your LOCAL port\n\n[!] replace 60001 by the port you previously chose.\n\n[!] replace ''mylogin'' and ''code.vehco.com'' by our own server!\n\n\nSince you're already log-on to the remote server through SSH you don't need to put \"code.vehco.com\" again ; 'localhost' is enough.\n\n\n==RDP client==\n\nJust execute a RDP client and connect to '''localhost:3390'''\n\n\nThat's All !! :-)\u200b"
                    }
                ]
            },
            "573": {
                "pageid": 573,
                "ns": 0,
                "title": "Reset Asus ZenBook laptop",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "[[Category:Linux]]\n[[Category:Asus]]\nThis page describes how to reset the Asus ZenBook to a clean state. \n(i) The default configuration provided by Asus is full of non-useful software, trials and non-required stuff. \n\nBy following this guide '''all the default programs and data will be wiped out'''! \nYou'll end up with a clean Windows using the official ISO image + dual boot (optional)\n\n\n\nEverything below has been tested on an Asus ZenBook UX510U\n\n\n\n=Requirements=\n\nBefore starting the clean-up you must:\n# Start the new laptop with its default configuration. \n# Connect your PC to Internet\n# Register hardware and software (see next chapters)\n# Download ISOs and tools \n\n\n\n=Registration=\n\n==Hardware registration==\n\nRegister laptop for warranty\n* Asus online registration: http://vip.asus.com/onlineregister\n\n==Software registration==\n\nSource: https://support.microsoft.com/en-us/help/12440/windows-10-activation\n\nTo check activation status in Windows 10\n* select the '''Start''' button\n* select '''Settings''' > '''Update & security''' > '''Activation'''\n\nIf Windows 10 isn\u2019t activated on your device, see Get help with Windows 10 activation errors for more info. \n\n\n=Get Windows 10 installation USB drive=\n\n==Download Windows 10 ISO==\n\n''Get your windows version and key''\n\nThe key is not displayed in Windows. You must use a 3rd party tool to retrieve it. I recommend [https://github.com/Superfly-Inc/ShowKeyPlus/releases/tag/ShowkeyPlus ShowKeyPlus]\n* Download [https://github.com/Superfly-Inc/ShowKeyPlus/releases/tag/ShowkeyPlus ShowKeyPlus latest release]\n* Run it\n* Note all information\n\n\n''Download Windows ISO''\n\n* Download the [https://www.microsoft.com/en-us/software-download/windows10/] Microsoft Windows 10 download tool]\n* Select '''create installation media for another PC'''\n* Download the '''ISO file'''\n\n==Setup bootable key==\n\nPrepare bootable key\n\n* Download the utility to create a USB bootable key [http://rufus.akeo.ie/ RUFUS] \n* Launch RUFUS\n* Create a new bootable disk using the following parameters\n* Partition scheme: '''GTP partition scheme for UEFI'''\n** File system: '''FAT32''' \n** Select the ISO file \n** Click start ... and wait\n\n\n=BIOS configuration for USB drive boot=\n\nBy default you're not allowed to boot on USB drive. To overcome that problem you must adjust some settings in you BIOS.\n\n==BIOS access==\n\nTo access BIOS: ''' press F2''' and keep it press '''on boot''' until you see the BIOS.\n\n\n==BIOS configuration==\n\n1. Set administrator password\n* You must '''set an administrator password''' (mandatory)\n* You have to '''save & exit''' then come again to the BIOS later...\n\n2. Disable security\n* Go the '''Advanced mode (F7)'''\n* '''Security''' Settings\n** Set '''Secure boot control''' to ''Disabled''\n* '''Boot''' Settings\n** Set '''Fast boot''' to ''Disabled''\n** Set '''CSM support''' to ''Enabled'' ==> the screen should change upon activation\n* You have to '''save & exit''' then come again to the BIOS later...\n\n3. Choose boot device\n* At last you can select a boot device from the BIOS. The USB drive should appear.\n\n\n\n=Windows re-installation=\n\n==Partition setup==\n\nRe-install windows on the SSD partition. \n\n!! In case of issues please read the next chapter !!\n\n\n'''Dual-boot'''\n\n(i) For dual-boot you can create partitions for Linux during the installation. \n* Windows partition = 70Gb (Primary) [76 022 Mb]\n* Linux partition = 37 Gb (Primary) [37 888 Mb]\n* Swap linux = 8192 Mb (Primay)\nWindows will create the boot loader partition, say ''yes'' to authorize windows to create additional partitions.\n\n\n==Fixing GPT issue==\n\nIf you have the following error: <code>windows cannot be installed to this disk. the selected disk is of the gpt partition style</code>\n\n* You need to '''open a terminal''' during installation: '''Shift + F10'''\n* Launch <code>diskpart</code>\n* Type <code>list disk</code>\n* Select the SSD disk number <code>select disk 1</code>  \n* Type <code>clean</code>\n* Type <code>convert gpt</code>\n* Type <code>exit</code>\n\n\nSource: https://msdn.microsoft.com/en-us/windows/hardware/commercialize/manufacture/desktop/windows-setup-installing-using-the-mbr-or-gpt-partition-style\n\n\n==Disable fast startup==\n\nSource: https://www.tenforums.com/tutorials/4189-fast-startup-turn-off-windows-10-a.html\n\n* Go to '''Control Panel''' > '''Hardware and sound''' > '''Power options''' > On the left, click on '''Choose what the power button do'''\n* Click on the shield to enable administrator settings '''Change settings that are currently unavailable'''\n* Under '''Shutdown settings''' > '''uncheck''' ''Turn on fast startup box'' \n\n\n\n\n==Useful programs==\n\nInstall windows normally with your favorites programs.\n\n\n==Configuration tricks==\n\nDon't forget to set your TEMP directories to the DATA HDD. This is one of the key point to use a small partition for windows.\n\n\n=Linux setup=\n\n==Download *Ubuntu ISO==\n\nGo to [https://www.ubuntu.com/ Ubuntu] website and download the ISO you'd like to use. \n\nI'm using [https://xubuntu.org/getxubuntu/ Xubuntu]\n\n\n==Create bootable USB key==\n\nUse [https://unetbootin.github.io/ UNetBootIn] to put the ISO image to create a bootable USB key.\n\n\n==Mount Windows and Data partitions==\n\nTo mount the NTFS partitions you have to: \n# Create the target mount points\n<syntaxhighlight lang=\"bash\">\nmkdir -p /mnt/windows\nmkdir -p /mnt/data\nchown -R guillaume:users /mnt/*\nchmod -R 777 /mnt/*\n</syntaxhighlight>\n\n# Get the UUID of each partition using <code>ls -ld /dev/disk/by-uuid/*</code>\n# Edit the boot file <code>/etc/fstab</code>\n\n!! Adjust the UUID to your own values + adapt the partitions disk and number to your actual configuration !!\n\n<syntaxhighlight lang=\"bash\">\n# / was on /dev/sdb2 during installation\nUUID=e2504785-deae-4d12-ac63-de84dda3c980 /               ext4    errors=remount-ro                                    0       1\n# swap was on /dev/sdb3 during installation\nUUID=774c5306-a718-4cb7-a874-cec444b78a75 none            swap    sw                                                   0       0\n# Data drive (/sda2)\nUUID=405A07D75A07C89C                     /mnt/data       ntfs    defaults,windows_names,umask=007,uid=1000,gid=1000   0       0\n# Partition windows (/sdb1)\nUUID=DAF00EACF00E8EC7                     /mnt/windows    ntfs    defaults,windows_names,umask=007,uid=1000,gid=1000   0       0\n</syntaxhighlight>\n\nYou must reboot for the partitions to appear in /mnt/...\n\n\n==Fix READ-ONLY issue==\n\nAfter the reboot the partition might be in a read-only mode - probably because windows uses \"fast reboot\" option. \nTo fix that:\n* Unmount the target disk: \n\n<code>umount /mnt/data</code>\n\n* Run NTFSFIX\n\n<code>sudo ntfsfix /dev/sda2</code>\n\n* Mount the partition again: \n\n<code>sudo mount -t ntfs-3g -o rw /dev/sda2 /mnt/data/</code>\n\n\n==Configure GRUB menu==\n\n<syntaxhighlight lang=\"bash\">\napt-get install grub-Customizer\n</syntaxhighlight>\n\n\n<syntaxhighlight lang=\"bash\">\n# Backup GRUB data\nsudo cp -Rp /etc/grub.d /etc/grub.d.ori\n\n# Install application\nsudo add-apt-repository ppa:danielrichter2007/grub-customizer\nsudo apt-get update\nsudo apt-get install grub-customizer\n\n# Lancer l'application\ngksudo grub-customizer\n</syntaxhighlight>\n\n\nSource: https://doc.ubuntu-fr.org/grub-customizer  (in French)\n\n\n==Particular points==\n\nEverything works fine after reboot under Xubunt 16.10. Wifi, bluetooth, graphics, sound, keyboard shortcuts and light, etc. All is good ! :)\n\n\n==Windows configuration changes==\n\nAt last, you can set the Windows TEMP to the correct drive letter. \n  \n\nHappy coding to all of you ! ;)\n\n\n\n=Contact=\n\nIf you have questions or issues with the guide above feel free to contact me to:   guillaume [@]  qin-diaz.com"
                    }
                ]
            }
        }
    }
}