跳至主要内容

博文

目前显示的是标签为“os”的博文

javascript detect client OS

        function detectOS() {             var sUserAgent = navigator.userAgent;             var isWin = (navigator.platform == "Win32") || (navigator.platform == "Windows");             if (isWin) return "Windows"             var isMac = (navigator.platform == "Mac68K") || (navigator.platform == "MacPPC") || (navigator.platform == "Macintosh") || (navigator.platform == "MacIntel");             if (isMac) return "Mac";             var isLinux = (String(navigator.platform).indexOf("Linux") > -1)||(String(navigator.platform).indexOf("Android") > -1)||((navigator.platform == "X11") && !isWin && !isMac);  ...

chromebook install linux

1.Enable developer mode: ESC + Refresh + Power button 2.Ctrl + Alt + Forward  login as root.  #passwd chronos  3.Ctrl + Alt + Backward 4.Ctrl + Alt + T : 5.Download  crouton 6.(Optional) connect to USA vpn,  cuz it's gonna download things at https://chromium.googlesource.com , if you in China ,you gonna stuck there! 7.Execute crouton   see the list of available targets by running  sh ~/Downloads/crouton -t help . Run  sh ~/Downloads/crouton -r list   to list the recognized releases and which distros they belong to. $sudo sh ~ /Downloads/ crouton - t touch , xfce - a i386 - r trusty    Done ! 1.startxfce4 $sudo startxfce4 2.How to switch between Chrome OS & ubuntu? to Chrome OS : Ctrl + Shift + Alt + Backward to Ubuntu : Ctrl + Shift + Alt + Forward 3.Delete crouton $delete-chroot    zesty