Saturday, October 22, 2016

Getting started with virtualization

Installing and configuring Fedora For virtualized guests

This section covers setting up libvirt on your system. After the successful completion of this section you will be able to create virtualized guest operating systems.

System requirements


[root@localhost ~]# dnf search libvirt | grep network
libvirt-daemon-driver-network.x86_64 : Network driver plugin for the libvirtd
libvirt-daemon-config-network.x86_64 : Default configuration files for the

And run what you want ..

Quick C Reference































Thursday, October 20, 2016

C/C++ for VS Code

Getting Started

To install the Microsoft C/C++ extension:
  • Open VS Code.
  • Click the Extensions View icon on the Sidebar.
  • Search for cpptools.
  • Click Install, then click Enable.
  • Open a folder that contains your C/C++ code.
You should now create a tasks.json file in your workspace .vscode folder that looks something like:
{
"version": "0.1.0",
"command": "gcc",
"isShellCommand": true,
"showOutput": "always",
"args": ["-g","FILENAME.c"]
}
 After that you can generate a.out file by pressing CTRL+SHIFT+B.

To enable debugging, you will need to create a launch.json file in .vscode folder : 

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "C++ Launch",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceRoot}/a.out",
            "args": [],
            "stopAtEntry": false,
            "cwd": "/PATH/TO/WORKSPACE",
            "environment": [],
            "externalConsole": true,
            "linux": {
                "MIMode": "gdb"
            },
            "osx": {
                "MIMode": "lldb"
            },
            "windows": {
                "MIMode": "gdb"
            }
        },
        {
            "name": "C++ Attach",
            "type": "cppdbg",
            "request": "attach",
            "program": "${workspaceRoot}/a.out",
            "processId": "${command.pickProcess}",
            "linux": {
                "MIMode": "gdb"
            },
            "osx": {
                "MIMode": "lldb"
            },
            "windows": {
                "MIMode": "gdb"
            }
        }
    ]
}

Monday, October 17, 2016

Users names and passwords


How to view, add, remove or edit the saved Users names and passwords on a given system 

To do this:-

1] Start> Run> type in:rundll32.exe keymgr.dll,KRShowKeyMgr > OK

One can also use Control Userpasswords2

Start>Run>type in:Control Userpasswords2 > OK

Click the Advanced tab and then click Manage Passwords.

Tuesday, October 11, 2016

Share a Wired or Wireless Internet Connection in Windows 10

If you’re running Windows 10 with theAnniversary Update installed, then you’re in luck. With that update, Windows now has a single switch for turning any PC with Wi-Fi into a hotspot, and it doesn’t matter whether the Internet connection you want to share is wired or wireless.
First, fire up Settings by pressing Windows+I on your keyboard. On the main Settings page, click “Network & Internet.”


On the Network & Internet page, on the left-hand side, click “Mobile hotspot.”


On the right-hand side, turn on the “Share my Internet connection with other devices” switch. If you want something other than the default network name and password, click the “Edit” button.


In the Edit window, type whatever network name and password you want to use and then click “OK.”

And that’s all you really have to do in Windows 10. It’s one of the best new features of the Windows 10 Anniversary Update, even though it rolled out with relatively little fanfare.