Skip to main content

Posts

Showing posts from January, 2018

Windows 10: Install SuSE Linux Enterprise - SLES

With Microsoft-Windows-Subsystem-Linux feature enabled, we can install Linux distributions on Windows 10.

Linux command: lsusb

lsusb - list USB devices NAME        lsusb - list USB devices SYNOPSIS        lsusb [ options ] DESCRIPTION        lsusb is a utility for displaying information about USB buses in the system and the devices connected to them. OPTIONS        -v, --verbose               Tells  lsusb to be verbose and display detailed information about the devices shown.  This includes configuration descriptors for the device's cur‐               rent speed.  Class descriptors will be shown, when available, for USB device classes including hub, audio, HID, communications, and chipcard.        -s [[bus]:][devnum]               Show only devices in specified bus and/or devnum.  Both ID's are given in decimal and may be omitted.        -d [vendor]:[product]               Show only devices with the specified vendor and product ID.  Both ID's are given in hexadecimal.        -D device               Do not scan the /dev/bus/usb directory, instead display only information

Linux command: lspci

Linux command: lspci - list pci devices tuyendq@ubuntu001:~$ man lspci NAME        lspci - list all PCI devices SYNOPSIS        lspci [options] DESCRIPTION        lspci is a utility for displaying information about PCI buses in the system and devices connected to them.        By  default,  it  shows a brief list of devices. Use the options described below to request either a more verbose output or output intended for parsing by        other programs.        If you are going to report bugs in PCI device drivers or in lspci itself, please include output of "lspci -vvx" or even better  "lspci  -vvxxx"  (however,        see below for possible caveats).        Some  parts of the output, especially in the highly verbose modes, are probably intelligible only to experienced PCI hackers. For exact definitions of the        fields, please consult either the PCI specifications or the header.h and /usr/include/linux/pci.h include files.        Access to

Learn: git - 'the stupid content tracker'

Linus Torvalds named git in man page as " the stupid content tracker ".

VMware vCenter: user@vsphere.local password expired - Authentication Failure

SSO log file: C:\ProgramData\VMware\vCenterServer\logs\sso\vmware-sts-idmd.log [2017-10-15T12:19:28.148+07:00 vsphere.local        e18baecc-2ce5-479a-adec-1bcbef603cdb ERROR] [IdentityManager] Failed to authenticate principal [tuyendq@vsphere.local]. User password expired. [2017-10-15T12:19:28.148+07:00 vsphere.local        e18baecc-2ce5-479a-adec-1bcbef603cdb INFO ] [IdentityManager] Authentication failed for user [tuyendq@vsphere.local] in tenant [vsphere.local] in [15] milliseconds with provider [vsphere.local] of type [com.vmware.identity.idm.server.provider.vmwdirectory.VMwareDirectoryProvider] [2017-10-15T12:19:28.148+07:00 vsphere.local        e18baecc-2ce5-479a-adec-1bcbef603cdb ERROR] [ServerUtils] Exception 'com.vmware.identity.idm.PasswordExpiredException: User account expired: {Name: tuyendq, Domain: vsphere.local}' com.vmware.identity.idm.PasswordExpiredException: User account expired: {Name: tuyendq, Domain: vsphere.local} at com.vmware.identity.idm.serve

井 well

井 well (n) vs. 升

Linux command: telnet

RHEL install telnet: yum install -y telnet telnet-ssl on Ubuntu Before installing telnet-ssl, there is no -z options tuyendq@2:~$ telnet -h telnet: invalid option -- 'h' Usage: telnet [-4] [-6] [-8] [-E] [-L] [-a] [-d] [-e char] [-l user] [-n tracefile] [ -b addr ] [-r] [host-name [port]] tuyendq@2:~$ tuyendq@2:~$ apt show telnet-ssl Package: telnet-ssl Version: 0.17.41+0.2-3build1 Priority: extra Section: universe/net Source: netkit-telnet-ssl Origin: Ubuntu Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Mats Erik Andersson <mats.andersson@gisladisker.se> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 217 kB Provides: telnet-client Depends: libc6 (>= 2.15), libssl1.1 (>= 1.1.0), libstdc++6 (>= 5) Download-Size: 85.2 kB APT-Sources: http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages Description: telnet client with SSL encryption support The telnet command is u

Linux command: swapon

Two ways to check if swap partition exists.

英 Britain, British

英 Britain, British

雲 cloud

雲 cloud

雨 - rain

雨 - rain

Youtube: How to download

youtube-dl - Youtube downloader and yt-dlp .

Linux: compound commands

command1 ; command2 ; command3 command1 is executed, then command2, and then command3 command1 && command2 && command3 command2 is executed only if command1 run successfully (exit code is 0), command3 is executed only if command2 run successfully (exit code is 0) command1 || command2 || command3 command2 is executed only if command1 exit code is 0 (failure), command3 is executed only if command2 exit code is 0 (failure)

Linux command: top

NAME        top - display Linux processes SYNOPSIS        top -hv|-bcHiOSs -d secs -n max -u|U user -p pid -o fld -w [cols]        The traditional switches `-' and whitespace are optional. DESCRIPTION        The  top program provides a dynamic real-time view of a running system.  It can display        system summary information as well as a list of processes or  threads  currently  being        managed  by  the  Linux  kernel.  The types of system summary information shown and the        types, order and size of information displayed for processes are all user  configurable        and that configuration can be made persistent across restarts.        The  program  provides a limited interactive interface for process manipulation as well        as a much more extensive interface for personal configuration  --   encompassing  every        aspect  of  its  operation.  And while top is referred to throughout this document, you        are free to name the program any

Powershell: Install-WindowsFeature DHCP

Install-WindowsFeature DHCP Powershell: Install-WindowsFeature DHCP

Powershell: Install-WindowsFeature AD-Domain-Services

Install-WindowsFeature AD-Domain-Services Powershell: Install-WindowsFeature AD-Domain-Services Check if AD-Domain-Services is installed Powershell: Check if AD-Domain-Services is installed

Windows command: powercfg

powercfg: power configure Check current active power scheme powercfg -list powercfg -list: Check current active power scheme Disable hibernate powercfg /hibernate OFF powercfg /hibernate OFF: disable hibernate

Microsoft security baseline

Built-in Administrator account cannot logon remotely