Mount Pendrive Hard-drive in Nix
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
# ntfs:
apt install ntfs-3g
# exfat:
apt install exfat-fuse exfat-utils
lsblk
sudo blkid
sudo fdisk -l
sudo mkdir /mnt/usb
sudo mount /dev/sdb1 /mnt/usb
Main branches directly from linux kernels:
RHEL = Red Hat (Inc.) Enterprise Linux
SLE = SUSE Linux Enterprise
openSUSE Leap <–> CentOS(Rocky Linux)
openSUSE Tumbleweed <–> Fedora
OS | Installation DISK size en (GB) |
Installation DISK size cn (GB) |
RAM (GB) |
Notes |
---|---|---|---|---|
Deepin 20.4 | ? | 6.5 | .75 | 深度. Debian + DDE, the Deepin Desktop Environment based on QT. |
Kubuntu 1804 | ? | 8.3 | .81 | |
Kylin 1804 | 6.9 | 6.7 | 1.0 | |
Xubuntu 1804 | 5.4 | 6.1 | .62 | |
Lubuntu 1804 | 5.3 | 5.6 | .55 | LXDE/LXQT, min GUI: Pentium 4 1.3G CPU + 512MB RAM. |
Ubuntu 1804 | ? | 8.1 | 1.0 | |
Ubuntu 2004 | ? | 8.6 | .88 | |
Kylin 2004 | ? | 13 | 1.9 | Ready to go in CN, default Sogou IM |
Manjaro 21.2.4 | ? | 5.9 | .67 | Arch based. Easy to use + LTS. Fast installation. |
ReactOS | Not nix, but like open source windows, mimicing windows server 2003. |
Big Picture Here (3000*2116)
ref 2015, src (2015)
Note: Putty officially recommends to use Bitvise SSH Client & Server.
See also Powershell.
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
Add two commands to avoid long time before asking passwords:
GSSAPIAuthentication no
UseDNS no
GSS API is alternative to SSH-keys
Change to get high security by using key auth only:
...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 |
C+a , c
create new windowC+a , A
set window nameC+a , w
window listC+a , "
choose windowC+a , d
detach windowC+a , ?
helpC+a , [
copy: move cursor & press ENTER, move & select, ENTER to copy to bufferC+a , ]
paste from bufferC+a , n
window nextC+a , p
window previousC+a , 2
switch to window no. 2C+a , C+a
switch to the window that you just lefthttps://gist.github.com/MohamedAlaa/2961058
...shift / esc to menu , then ’e’ to modify boot option, change “quiet splash” to “text”, F10 / Ctrl+x to continue boot.
#> 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
from: http://www.embeddedlinux.org.cn/html/xinshourumen/200811/07-311.html
apt-get / yum search mbstring ; apt-get / yum install php-mbstring ...
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
Solution: modify php.ini:
date.timezone = Asia/Shanghai
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
...
see also jlevy/the-art-of-command-line (multi-language)
from: qa.taobao.com
最近接触了下淘宝的性能框架PAP,觉得系统中的监控真的做的很不错,但是非pap运行的程序,则无法监控,同时也查了下淘宝性能百科对监控命令Sar介绍,觉得讲的比较粗,这里把自己以前用过的Sar监控分享下;有问题,大家共勉哈!