标签:
sudo -s# 生成一个 WPA/WPA2 网络配置文件sudo wpa_passphrase ESSID "PASSWORD">/etc/wpa_supplicant.conf# 使用vim编辑器打开网络配置文件sudo vim /etc/network/interfaces# 在配置文件最后添加几行(静态IP与有线网卡一样)# FOR DHCPauto wlan0iface wlan0 inet dhcpwpa-conf /etc/wpa_supplicant.conf# FOR STATICauto wlan0iface wlan0 inet staticaddress IP-ADDRESSnetmask NETMASKnetwork NET-ADDRESSgateway GATEWAYwpa-conf /etc/wpa_supplicant.confsudo vim /etc/default/locale#修改下面项LANG="en_US.UTF-8"LANGUAGE="en_US:en"sudo vim /etc/systemd/logind.conf#HandlePowerKey:按下电源键后的动作#HandleSleepKey:按下挂起键后的动作#HandleHibernateKey: 按下休眠键后的动作#HandleLidSwitch:合上笔记本盖后待机#动作可以是:#ignore|poweroff|reboot|halt|suspend|hibernate|hybrid-sleep|lock|kexec#重启服务生效sudo restart systemd-logind#修改传输速率sudo iwconfig wlan0 rate 300M fixed#关闭电源管理sudo iwconfig wlan0 power off#重启sudo shutdown -r now#查看无线状态sudo iwconfig wlan0Webmin安装:http://www.webmin.com/deb.html
sudo apt-get install smartmontoolssudo apt-get install vsftpd#配置修改write_enable=YES # 允许写入xferlog_enable=NO # 关闭登录日志connect_from_port_20=NO # 不强制数据传输使用20端口chroot_local_user=YES # 限制只能访问登录的目录#配置添加allow_writeable_chroot=yes # 设置chroot后不添加此项可能无法登录local_root=xxxx # 强制登录目录,默认是用户目录listen_port=xxxxx# 监听端口#重启服务sudo service vsftpd restartsudo vim /etc/samba/smb.conf
[global] max log size =32 usershare allow guests = yes security = share follow symlinks = no wide links = no use sendfile = yes read raw = yes write raw = yes getwd cache = yes large readwrite = yes aio write behind = true
aio read size =16384 aio write size =16384 write cache size =2097152 max xmit =65536 [froot] path =/home/alex/froot force user = alex guest account = alex public = yes writeable = yes browseable = yes delete readonly = yes create mode =0600 directory mode =0700-rw-------(600)#只有所有者才有读和写的权限-rw-r--r--(644)#只有所有者才有读和写的权限,组群和其他人只有读的权限-rwx------(700)#只有所有者才有读,写,执行的权限-rwxr-xr-x (755)#只有所有者才有读,写,执行的权限,组群和其他人只有读和执行的权限-rwx--x--x (711)#只有所有者才有读,写,执行的权限,组群和其他人只有执行的权限-rw-rw-rw-(666)#每个人都有读写的权限-rwxrwxrwx (777)#每个人都有读写和执行的权限#删除系统不再使用的孤立软件包sudo apt-get autoremove#清理旧版本的软件缓存sudo apt-get autoclean#清理所有软件缓存sudo apt-get clean#查询旧的内核dpkg --get-selections|grep linux#删除sudo apt-get purge xxxxx标签:
原文地址:http://www.cnblogs.com/far-taurus/p/4261428.html