当前位置: 首页 > news >正文

长春网站建设方案外包/百度地图轨迹导航

长春网站建设方案外包,百度地图轨迹导航,做食物网站应该考虑些什么意思,珠海自助建站软件最近经常重装系统,而刚装完Debian系统的电脑需要各种配置真心有点烦躁,于是乎想写个脚本偷偷懒,解决一下每次装系统都要重新配置的问题(在这分享给大家,也简化了大家装Debian后麻烦的配置过程)。 一、使用…

最近经常重装系统,而刚装完Debian系统的电脑需要各种配置真心有点烦躁,于是乎想写个脚本偷偷懒,解决一下每次装系统都要重新配置的问题(在这分享给大家,也简化了大家装Debian后麻烦的配置过程大笑)。

一、使用方法

1. 下载我打包的文件new_machine.tar (下载地址),然后在我的云盘分享处下载Linux的wps安装包(我自己会在Debian系统中使用WPS,这样可以轻松在Linux中对文档进行修改,如果直接Libreoffice对Windows下的文档进行修改,以后再拿到Windows下打开时排版都会全乱了)

2. cd ~/Download  ---> tar -xvf new_machine.tar 进入下载目录解压new_machine.tar文件

3.cd new_machine 

4.mv ~/Download/wps-office_8.1.0.3724~b1p2_i386.deb  .

5.ifconfig 或者ping www.baidu.com确认电脑是否联网

6.su 切换至 root 用户

7.chmod +x install.sh  --->  ./install.sh  好了,脚本会安装很多东西,所以此时你可以去吃饭或者打球去了!


二、脚本展示

初学者写的比较简单,有好的建议还望大家提出来:

#!/bin/bash
# (C) 2014 Yunlong Zhou <reaper888@yeah.net>
# Under licence  GPL
# File :	install.sh
# Introduction:
# 		This script is using for simplify the installing of Debian 5/6/7 new install machine 
# Useage :
#  		1. "su"  	-- get root permission
# 		2. "ifconfig" or "ping www.baidu.com "	-- to check if the computer is connecting Internet
#		3. if have no Internet , "dhclient eth0"	-- to connect the Internet
#		4. "tar -xvf new_machine.tar"  then "cd new_machine"
#		5. "chmox +x install.sh" 		-- give our script a execution permission
#		5. "./install.sh"   -- auto install and you can have a coffee now			# firstly ,we set the apt-source, here we just give Debian 5/6/7 set module, if you use older or newer Debian version ,Just do a little change !echo "Now setting apt source"if grep -q "7.*" /etc/debian_version || grep -q -i "wheezy" /etc/debian_version ; [[ $? == 0 ]] ; then echo "deb http://mirrors.163.com/debian wheezy main contrib non-free" >/etc/apt/sources.listelif grep -q "6.*" /etc/debian_version || grep -q -i "squeeze" /etc/debian_version ; [[ $? == 0 ]] ; then echo "deb http://mirrors.163.com/debian squeeze main contrib non-free" >/etc/apt/sources.list	elif grep -q "5.*" /etc/debian_version || grep -q -i "lenny" /etc/debian_version ; [[ $? == 0 ]] ; thenecho "deb http://mirrors.163.com/debian lenny main contrib non-free" >/etc/apt/sources.list	fi	apt-get update# add chinese fonts and ibus,if you don't need ,just comment itecho "Now doning Chinese install"echo Y | apt-get install ttf-wqy-zenhei xfonts-intl-chinese wqy*   ibus im-switch ibus-pinyin  # add some useful application ,if you need some changes ,just do itecho " Now doing some application install"echo Y | apt-get install aptitude  dia xournal wireshark ssh unzip  ctags cscope git chromium-browser vim screen linuxlogo libncurses5-dev  build-essential libc6-dbg kernel-package# install sudo ,if you don't need just comment itecho "Now install sudo for your system and give your user a sudoer permission"echo Y | apt-get install sudomy_user=`who | head -n 1 | cut -d " " -f 1` echo "$my_user	ALL=(ALL:ALL) ALL" >> /etc/sudoers	# the function is using for check if a application is installed ,if not installed just install it with apt-get install
function install_app  # para is the func you want to install
{aptitude search $1 > /tmp/logfile_line=`cat /tmp/log | wc -l`for((i=1;i<=$file_line;i++));do sed -n "$i"'p' /tmp/log >/tmp/log1i_status=`awk '{print $1}' /tmp/log1`par2=`awk '{print $2}' /tmp/log1`par3=`awk '{print $3}' /tmp/log1`if [[ $par2 == $1 || $par3 == $1 && $i_status != 'i' ]]; thenecho "Sorry ,\"$1\" not installed,we will install it"apt-get install $1elif [[ $par2 == $1 || $par3 == $1 && $i_status == 'i' ]]; thenecho "OK ,\"$1\" has been installed "breakfidonerm /tmp/log /tmp/log1
}# sometimes ,our system have no graphic interfaces,we use these to install GNOME, if no need comment itecho " Now installing gnome"
install_app  xorg
install_app  gnome-core
install_app  gdm3# add flash support for FireFox and Chrome Browse
echo " Now add flash support for browse"
mkdir -p /home/$my_user/.mozilla/plugins/ 
mv libflashplayer.so /home/$my_user/.mozilla/plugins/# add vim config 
echo " Now add vim config"
mkdir -p /home/$my_user/.vim/plugin
mv taglist.vim /home/$my_user/.vim/plugin/
mv vimrc /etc/vim/vimrc	# install WPS for i386/i686 system 
echo "Now installing WPS"
uname -a >/tmp/system_version
if grep "i386" /tmp/system_version || grep "i686" /tmp/system_version ; thendpkg -i symbol-fonts_*if [ ! -f wps-office_* ] ;thenecho " Now doloading wps for linux ,may need a little long time"wget http://wdl1.cache.wps.cn/wps/download/Linux/unstable/wps-office_8.1.0.3724~b1p2_i386.debfidpkg -i wps-office_*
elseecho "Sorry ,your system is not 32 bit system ,we will not install wps"
fi# install deepin screenshot
echo "Now installing deepin screen shot"
echo Y | apt-get install python-xlib
dpkg -i deepin-scrot*



转载请注明:“ 转自 :http://blog.csdn.net/longerzone/article/details/20874311”

===========

注:

文中涉及很多Debian配置方面的东西,如果大家有兴趣欢迎出门右拐看一下我之前的博文:

《Debian安装全攻略》 http://blog.csdn.net/longerzone/article/details/8075079 

《Ubuntu 下安装WPS for Linux》http://blog.csdn.net/longerzone/article/details/9010687 

《Ubuntu下创建vim+Taglist+cscope+ctags组合编辑器》 http://blog.csdn.net/longerzone/article/details/7789581

http://www.jmfq.cn/news/5001247.html

相关文章:

  • 美食地图网站开发/seo网站推广方法
  • 哪个网站可以查询即将到期的域名/杭州网站制作排名
  • 阿里巴巴外贸平台怎么操作/杭州seo网站排名
  • 厦门百度seo排名/北京seo排名服务
  • 如何直接用jsp做网站不写servlet/长春seo
  • 两个网站做响应式网站/营销模式
  • 如何做后台管理员网站/温州seo招聘
  • 注册免费网站/免费做网站怎么做网站链接
  • 电子商务网站建设的步骤过程/seo运营推广
  • 网站 首页 栏目 内容/seo快速排名首页
  • 做地方网站赚钱吗/seo外包 杭州
  • 建设项目环保备案网站/关于进一步优化当前疫情防控措施
  • 中国交通建设监理协会官方网站/百度网站推广
  • 手机软件做的相册怎样传到网站/郑州seo培训
  • 网站服务器系统盘满了怎么清理/长沙搜索排名优化公司
  • 网站怎样优化seo/深圳网站优化推广
  • 大型公司为什么做网站/竞价排名采用什么计费方式
  • 昆明云纺片区网站建设/怎么优化网站关键词的方法
  • 网站图片分辨率尺寸/蚁坊软件舆情监测系统
  • 炫酷的个人网站/免费的网络推广平台
  • 那些网站可以做问答/中国大数据平台官网
  • 广州荔湾区网站建设/1688网站
  • 网站栏目怎么做301定向/优化公司
  • 外国企业网站模板免费下载/百度联盟怎么加入
  • 建设项目环保竣工验收备案网站/seo免费教程
  • 搜索引擎搜不到网站/长沙哪家网络公司做网站好
  • vs做的网站排版错位/百度查重免费
  • 日本图形设计网站/网站建站教程
  • 深圳营销型网站公司电话/媒体网站
  • 网站建设的数据所有权/广告招商