亮的MARK库

mark.liangliang.org.cn

vi /etc/ssh/sshd_config

  • #PermitRootLogin yes
  • PermitRootLogin no

vi /etc/ssh/sshd_config

  • X11Forwarding yes

shell:

  • xhost +                     //允许服务器的的x11界面连接过来
  • ssh -X foo@ip     //-X参数表示转发X11数据

root@X61T:~# pwd

/root

root@X61T:~# less .bashrc

root@X61T:~#

-———————————————————————————————————-

  • # ~/.bashrc: executed by bash(1) for non-login shells.

  • # Note: PS1 and umask are already set in /etc/profile. You should not

  • # need this unless you want different defaults for root.

  • # PS1=’${debian_chroot:+($debian_chroot)}\h:\w\$ ‘

  • # umask 022

  • # You may uncomment the following lines if you want `ls’ to be colorized:

  •  export LS_OPTIONS=’–color=auto’

  •  eval “`dircolors`“

  •  alias ls=’ls $LS_OPTIONS’

  •  alias ll=’ls $LS_OPTIONS -l’

  •  alias l=’ls $LS_OPTIONS -lA’

  • # Some more alias to avoid making mistakes:

  •  alias rm=’rm -i’

  •  alias cp=’cp -i’

  •  alias mv=’mv -i’

  • # ‘dpkg-reconfigure locales ‘  LANG= zh_cn.UTF-8

  • LANG=en_US.UTF-8

-————————————————————————————————————

Debian9

我们可以用 bash 的内建命令 set,或者是 printenv 程序来查看环境变量。set 命令可以 显示 shell 或环境变量,而 printenv 只是显示环境变量。因为环境变量列表比较长,最好 把每个命令的输出通过管道传递给 less 来阅读:

[me@linuxbox ~]$ printenv  less

apropos是LINUX系统中的一个命令,用来通过关键字查找定位手册页的名字和描述。它相当于使用带有-k选项的man命令。

每个手册页里都有一个简短的描述。apropos在这个描述中查找keyword。keyword是正则表达式,如果使用了选项-r,或者包含通配符(-w),或文本(-e)。apropos使用的数据库通过mandb命令来更新。

1、第二块硬盘分区留空

2、windows10中下载win32diskimager程序

(win32diskimager 默认只会显示输入档名为 *.img 的档案,而 Debian 映像的档名为 *.iso。 如果要使用此工具,请记得更改过滤器为 *.*)

下载iso镜像

地址:https://www.debian.org/CD/http-ftp/#stable

win32diskimager烧录至U盘后用U盘引导。

3、安装完毕用163替换apt sources.list ,支持non-free源。

http://mirrors.163.com/.help/debian.html

apt-get update

apt-get install firmware-atheros*

支持无线网卡firmware

4、中文

apt-get install locales

dpkg-reconfigure locales

这里需要注意一下安装完后的U盘需要用disk genius将分区改为hdd模式,并且清0前面的分区数据,否则Windows下你会认为U盘坏了。

将win7字体文件夹打包,winfonts.rar,

新建字体目录

# mkdir /usr/share/fonts/winfonts

复制字体文件

# cp ~/winfonts/* /usr/share/fonts/winfonts

更新系统字体

sudo mkfontscale

sudo mkfontdir

sudo fc-cache

历经10年的个人网站,成了备案规则中的牺牲品。虽然数据库找到了恢复了,但老的服务器已经无法找到,存储空间中的图片和附件我会继续寻找。

停止5年后的今天再次开始,遗憾的是丢失了很多时间。

不管如何今天再次开启。

0%