Debian( 三 )

nano ~/.XdefaultsXcursor.theme: OpenZone几种常见的联网方式1,使用ppp拨接(ppp依赖libpcap0.8)####cat > /etc/ppp/peers/wan << EOF user "账号"password "密码"defaultroutehide-passwordnoauthpersistplugin rp-pppoe.so eth0usepeerdnsEOF####ifconfig eth0 uppoff -a #断开pon wan #连线2,连线无线网路3,USB共享联网dhclient usb0合盖不休眠nano /etc/systemd/logind.conf,添加一行HandleLidSwitch=ignore常见问题自动登录以root为例,其余用户类似1,/lib/systemd/system/getty@.serviceExecStart=-/sbin/agetty --noclear %I 38400 linux -a root2,/etc/rc.localtouch /tmp/X3,/root/.profile[ -f /tmp/X ] && rm /tmp/X && /usr/bin/startxVIM基本设定nano ~/.vimrc"vilanguage messages en_US.UTF-8set autoread history=1000 laststatus=2 nobackup nocompatibleset encoding=utf-8 fileencoding=utf-8 fileencodings=ucs-bom,utf-8,gbk,euc-jp,euc-kr,latin1 fileformat=unix termencoding=utf-8 "set termencoding=gbkset makeprg=make shell=bash shellcmdflag=-c"vimif has("vertsplit")autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endifcolor desertfiletype indent onif expand('%:p') == ''chdir ~/Document/WORK "$VIM\\..\WORKendif"环境变数 let $PS1="\$PWD # "set autochdirset linespace=1 list listchars=tab:·\ ,eol:? numbersyntax on"绑定键盘map <F2> :echom "Done"<CR>imap <F2> <Esc><F2>liendif"gvimif has("gui_running")"添加选单项amenu Edit.- :highlight SpecialKey ctermfg=0 guifg=grey30highlight NonText guibg=grey20 guifg=grey30set columns=85 lines=36set guifont=unifont\ 12 guioptions=aeim guitablabel=%tendifMPlayer设定编译打包MPlayer以便去掉大量无用的依赖库nano ~/.mplayer/configaf=volnorm,volume=5ao=alsaautosync=30cache=10240font=SimSunosdlevel=3overlapsub=1quiet=yesstop-xscreensaver=yessub-fuzziness=1subfont-autoscale=1subfont-osd-scale=5subfont-text-scale=6subcp=utf-8vo=xvxy=800zoom=yes省电设定echo 1 > /sys/module/snd_hda_intel/parameters/power_savefor f in /sys/class/scsi_host/host*/link_power_management_policy; do echo min_power > $f; donefor f in /sys/bus/usb/devices/*/power/autosuspend; do echo 1 > $f; done1,cpu频率调节设定ondemand2,将bbswitch编入核心任何情况下都不要使用类似nvidia的闭源驱动cp bbswitch.c linux-3.15/drivers/acpi/ sed -i "403s/DEVICE_ACPI_HANDLE/ACPI_HANDLE/" linux-3.15/drivers/acpi/bbswitch.csed -i "53iacpi-y\t\t\t\t+= bbswitch.o" linux-3.15/acpi/MakefileOpenbox基本设定mkdir -p ~/.config/openbox && cp /etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml添加4个基本的快捷键F1 打开终端Ctl+F1 退出Alt+F1 重启Mod+F1 关闭视窗lunar提供的Solar2Lunar函式可以提供公曆农曆转换<keybind key="W-F1"><action name="Close"/></keybind><keybind key="A-F1"><action name="Restart"></action></keybind><keybind key="C-F1"><action name="Exit"><prompt>no</prompt></action></keybind><keybind key="F1"><action name="Execute"><command>xterm</command></action></keybind>杂七杂八由于许多Debian相关词条内容缺失,所以暂时添加一些繁琐的内容附在后面GRUB2syslinux不支持btrfs(开启压缩)和zfs,而grub2支持常见的档案系统,扩展性强 。此外,非Linux平台可以使用grub4dos 。######/boot/grub/grub.cfginsmod all_videoinsmod gettextinsmod gfxterminsmod part_msdosinsmod zfsloadfont $prefix/fonts/unicode 。pf2set default="0"set gfxmode=autoset have_grubenv=trueset lang=set locale_dir=$prefix/localeset menu_color_normal=cyan/blueset menu_color_highlight=white/blueset timeout=3terminal_output gfxtermmenuentry 'Debian -- The Universal Operating System' {linux /@/boot/vmlinuz acpi_backlight=vendor MOUNT="/bin/zpool import -f zroot" ROOT="" INIT="/lib/systemd/systemd" initrd /@/boot/initrd.img}#引导ISOmenuentry 'ISO' {linux16 /boot/syslinux/memdisk raw isoinitrd16 /boot/xx.iso}#使用其他分区引导menuentry 'Other Bootloader' {set root='(hdX,msdosY)'chainloader +1}