Nix

Mount Pendrive Hard-drive in Nix

2017-08-28. Category & Tags: Nix, Mount

INSTALL DRIVERS: # # ntfs: apt install ntfs-3g # exfat: apt install exfat-fuse exfat-utils FIND # lsblk sudo blkid sudo fdisk -l MOUNT # sudo mkdir /mnt/usb sudo mount /dev/sdb1 /mnt/usb

Nix Linux Distribution Comparison, Timeline and Relationship

2016-07-13. Category & Tags: Nix, Linux, Distro, Distributions

Main branches directly from linux kernels: Debian, (K)Ubuntu/Deepin … RedHat, CentOS, Fedora … Slackware, Suse, OpenSuse (Leap vs. Tumbleweed) … Arch, Manjaro … Android … RHEL = Red Hat (Inc.) Enterprise Linux SLE = SUSE Linux Enterprise openSUSE Leap <–> CentOS(Rocky Linux) openSUSE Tumbleweed <–> Fedora Sizes Just After Installation (Disk & RAM) # OS Installation DISK size en (GB) Installation DISK size cn (GB) RAM (GB) Notes Deepin 20.4 ? ...

Screen, Tmux, Window, Session

2015-12-09. Category & Tags: Nix, Soft&amp;Skills Nix, Soft&amp;Skills

Screen # http://neophob.com/2007/04/gnu-screen-cheat-sheet/ CMD Description screen -ls list all ( format: pid.session_name ) screen create session screen -S session_name create session with name screen -r session_name re-attach screen -dr session_name de- & re- attach /_ force detach and then attach, use this when previous attachment is dropped due to network failure _/ screen -wipe remove dead kill <pid> kill session killall screen kill all C+a , C+d detach C+a, [ / Esc, C+u / C+d scroll half a page ref C+a, [ / Esc, Page Up /Down scroll a full page (cursor up/down is moving the cursor) NA switch session //can NOT find a good method screen windows (tabs) # C+a , c create new window C+a , A set window name C+a , w window list C+a , " choose window C+a , d detach window C+a , ? ...

Boot to text console terminal mode [Ubuntu Kubuntu Nix Linux]

2015-09-08. Category & Tags: Nix Nix

Once # shift / esc to menu , then ’e’ to modify boot option, change “quiet splash” to “text”, F10 / Ctrl+x to continue boot. Always # #> sudo su #> vi /etc/default/grub comment out: # GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" add: GRUB_CMDLINE_LINUX="text" Uncomment : GRUB_TERMINAL=console #> sudo update-grub

PHP In Case Of

2013-07-24. Category & Tags: Nix, Soft&amp;Skills Nix, Soft&amp;Skills

Fatal error: Call to undefined function mb_strlen() # apt-get / yum search mbstring ; apt-get / yum install php-mbstring ... http://blog.fity.cn/post/187/ Fatal error: Call to undefined function imagecreate() # and it takes a lot of time to upload a image. apt-get install php5-gd http://www.php.net/manual/en/image.installation.php Warning: It is not safe to rely on the system’s timezone settings # Solution: modify php.ini: date.timezone = Asia/Shanghai http://stackoverflow.com/questions/2213608/php-configuration-it-is-not-safe-to-rely-on-the-systems-timezone-settings Set Include Path in PHP File # set_include_path(get_include_path() . ...

[bak] Sar 监控命令小览

2012-03-07. Category & Tags: Leading, Soft&amp;Skills Bak, Nix, Linux, Leading, Soft&amp;Skills

see also jlevy/the-art-of-command-line (multi-language) from: qa.taobao.com 最近接触了下淘宝的性能框架PAP,觉得系统中的监控真的做的很不错,但是非pap运行的程序,则无法监控,同时也查了下淘宝性能百科对监控命令Sar介绍,觉得讲的比较粗,这里把自己以前用过的Sar监控分享下;有问题,大家共勉哈!

SSH In Case Of

Category & Tags: Nix, Linux, SSH

Note: Putty officially recommends to use Bitvise SSH Client & Server. See also Powershell. Sudo # sudo without passwd vim /etc/sudoers # or sudoedit /etc/sudoers modify ALL=(ALL) ALL to ALL=(ALL) NOPASSWD:ALL (i.e. add NOPASSWD: before the last ALL), e.g. %sudo ALL=(ALL:ALL) NOPASSWD:ALL SSHD Config > Less Time # Add two commands to avoid long time before asking passwords: GSSAPIAuthentication no UseDNS no GSS API is alternative to SSH-keys SSHD Config > More Security # Change to get high security by using key auth only: ...