
linux
文章平均质量分 59
tg5156
这个作者很懒,什么都没留下…
展开
-
Debian development
<br />general development<br /># apt-get install build-essential<br />X development<br /># apt-get install x-window-system-dev<br />GNOME development<br /># apt-get install gnome-devel<br />KDE development<br /># apt-get install kde-devel原创 2010-07-09 15:37:00 · 464 阅读 · 0 评论 -
xdg-user-dirs
/etc/xdg/user-dirs.conf/etc/xdg/user-dirs.defaults~/.config/user-dirs.dirs~/.config/user-dirs.locale/usr/bin/xdg-user-dir/usr/bin/xdg-user-dirs-update用户登录时会读取user-dirs.defaults,并根据user-dir原创 2013-11-18 22:24:11 · 5896 阅读 · 0 评论 -
Debian Broadcom BCM4313
参考:http://wiki.debian.org/brcm80211http://wiki.ubuntu.org.cn/Quick_HOWTO_:_Ch13_:_Linux_Wireless_Networking/zh#Debian_.2F_Ubuntu# apt-get install firmware-brcm80211# apt-get install wireless-t原创 2012-01-09 12:57:51 · 2763 阅读 · 0 评论 -
How To Install Git on Debian 7
原文地址:http://digitalocean.com/community/articles/how-to-install-git-on-debian-7Install Git with Apt-Getapt-get install git-coreInstall Git from the Sourceapt-get install libcurl4-gnutls-d转载 2013-11-07 14:36:27 · 977 阅读 · 0 评论 -
debian l7-filter
https://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.tar.gzhttp://www.netfilter.org/projects/iptables/files/iptables-1.4.7.tar.bz2http://download.clearfoundation.com/l7-filter/l7-protocols-20原创 2014-02-08 16:42:46 · 984 阅读 · 0 评论 -
umask
umask r = 4 w = 2 x = 1系统不允许在创建一个文本文件时就赋予它执行权限,必须在创建后用chmod命令修改权限,目录则允许设置执行权限。所以,对于文件,umask值最大为6,对于目录,umask值最大为7。umask = 022 umask是八进制数。rwx rwx rwx rwx rwx rwx000 010 010 000 100 011原创 2014-05-23 22:17:02 · 633 阅读 · 0 评论 -
Debian on VirtualBox共享win7文件夹
原文地址:http://www.dbasoul.com/2010/694.htmlhttp://www.cnblogs.com/hanxi/archive/2012/05/26/2519514.htmlhttp://www.huomo.cn/os/article-19991.html如果是一个全新的Debian系统,直接安装VirtualBox的Guest Additions,可能会失转载 2013-08-22 11:54:33 · 2220 阅读 · 0 评论 -
Debian 7 编译内核
cd /usr/srcwget --no-check-certificate https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.12.tar.bz2apt-get install bzip2 gcc g++ make bc ncurses-develtar -xvjf linux-3.12.tar.bz2cd li原创 2013-11-07 15:37:33 · 2835 阅读 · 0 评论 -
/etc/apt/sources.list
/etc/apt/sources.list/var/lib/apt/listsdeb [web或ftp地址] [发行版名字] [main/contrib/non-free]deb http://http.us.debian.org/debian/ lenny contrib maindebian目录中有个dist目录是默认添加的,lenny是dist目录下的一个最新的stable版转载 2010-07-24 14:00:00 · 1475 阅读 · 0 评论 -
Debian Google Chrome
vi /etc/apt/sources.list.d/google-chrome.listdeb http://dl.google.com/linux/deb/ stable mainwget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -apt-get update原创 2013-10-28 12:49:52 · 1742 阅读 · 0 评论 -
obfuscated
wget -O ofcssh.tar.gz https://github.com/brl/obfuscated-openssh/tarball/master原创 2014-08-12 00:12:27 · 1038 阅读 · 0 评论 -
firewalld firewall-cmd
原文地址:http://fedoraproject.org/wiki/FirewallD/zh-cn转载 2014-10-21 22:58:54 · 12471 阅读 · 0 评论 -
CentOS 7 LAMP
原文地址:http://www.111cn.net/sys/CentOS/63646.htm转载 2014-10-16 13:32:33 · 796 阅读 · 0 评论 -
Debian 系统时间
# vi /etc/default/rcSUTC=no# dpkg-reconfigure tzdata或者# vi /etc/timezoneAsia/Shanghai# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime# date -s xx:xx:xx# hwclock --systohc --localt原创 2012-01-10 09:51:13 · 689 阅读 · 0 评论 -
Debian 5 配置声卡
# apt-get install linux-sound-base# apt-get install lsof下载alsa-base.deb单独安装。使用apt-get会安装两个额外的包:apmd、alsa-oss。# aptitude download alsa-base# dpkg - i alsa_base_1.0.17.dfsg-4_all.deb# apt-get原创 2010-07-14 15:42:00 · 984 阅读 · 0 评论 -
Debian iptables
保存iptables防火墙规则# iptables-save > /etc/iptables.up.rules# vi /etc/network/if-pre-up.d/iptables #!/bin/bash /sbin/iptables-restore #chmod +x /etc/network/if-pre-up.d/iptablesDebian在网络建立前后和网络转载 2014-01-25 15:57:59 · 1175 阅读 · 0 评论 -
没有发现正在运行的xfce4-panel实例
每次启动xfce4都弹出对话框,提示:没有发现正在运行的xfce4-panel实例。然后弹出对话框,提示:因为面板运行于全屏模式下,所以作为普通用户,您不被允许修改面板配置。删除~/.config中相关目录后仍然出现上面的提示。虽然退出时选择了保存会话(session),但下次启动xfce4时,使用的仍是~/.cache/sessions/中上次那个没有面板的session。将~/原创 2013-08-20 11:12:44 · 3995 阅读 · 0 评论 -
GRUB2 控制台分辩率
确保相应显卡的framebuffer支持编译进内核,或者编译成模块。GRUB控制台下查看硬件支持分辨率和色深grub> vbeinfo控制台的“文本模式”实际上叫做“帧缓冲控制台”。是一种使用支持VESA模式的显卡帧缓冲的图形模式,在该模式下理论上可以显示/编辑图形(图片、图像)。最初编写这个内核模块是为了在Linux控制台上可以看到LOGO图片(小企鹅),但它可以用来做很多图形模式才转载 2011-09-22 13:32:56 · 2763 阅读 · 0 评论 -
Debian 5 Chrome 5.0.375.99 FlashPlayer
<br />将xdg-utils.deb下载单独安装,否则在apt-get install xdg-utils时,会将Iceweasel包一并安装。<br /># aptitude download xdg-utils<br /># dpkg -i xdg-utils.deb<br /># apt-get install openssl<br /># apt-get install ca-certificates<br /># dpkg -i google-chrome-stable_current_i38原创 2010-07-12 14:21:00 · 778 阅读 · 0 评论 -
Debian 5 SCIM
<br /># apt-get install libscim8c2a<br /># aptitude download scim<br /># aptitude download scim-modules-table<br /># aptitude download scim-tables-zh<br /># aptitude download scim-pinyin<br /># dpkg -i scim_1.4.7-3_i386.deb<br /># dpkg -i scim-modules-tabl原创 2010-07-16 09:49:00 · 561 阅读 · 0 评论 -
libxml2
<br /> 在RH8上安装PHP5时会报错:<br /> configure: error: libxml2 version 2.6.11 or greater required.<br /> 这是由于libxml2版本低造成的,可以从www.xmlsoft.org下载程序包进行安装。<br /> rpm -e --nodeps libxml2 (强行卸掉)<br /> ./configure --prefix=/usr/lib /<br /> --with-ftp /<br />转载 2010-07-18 01:39:00 · 1661 阅读 · 0 评论 -
Debian code::blocks
<br />下载wxGTK-2.8.11.tar.gz(http://www.wxwidgets.org/)<br /># tar -xvf wxGTK-2.8.11.tar.gz<br /># cd wxGTK-2.8.11<br /># mkdir buildgtk<br /># cd bildgtk<br /># apt-get install make<br /># apt-get install pkg-config<br /># apt-get install libgtk2.0-dev<br原创 2010-07-24 12:51:00 · 1090 阅读 · 0 评论 -
清除log
find /var -type f -exec rm -v {} /;使用-exec参数时,必须以“/;”结尾,否则,系统会提示“find遗漏-exec参数”,命令将无法执行。exec选项后面跟随着所要执行的命令或脚本,然后是一对儿{},一个空格和一个/,最后是一个分号。Linux find命令详解 http://edu.codepub.com/2010/0302/20657.php转载 2010-06-10 12:50:00 · 958 阅读 · 0 评论 -
Debian Lenny - Installing MySQL
<br />Installing MySQL on Debian Lenny is very simple using the 'aptitude' package manager.<br />This article will go through the install process and you will have a database server up and running in no time.<br />MySQL install<br />To begin with, a simple转载 2010-10-26 15:30:00 · 452 阅读 · 0 评论 -
vsftpd
程序下载地址:ftp://vsftpd.beasts.org/users/cevans/安装之前的准备 确认用户nobody和目录/usr/share/empty是否存在,如果不存在需要新建这个用户和目录。 [root@localhost root]# usera原创 2011-08-01 12:47:23 · 1473 阅读 · 0 评论 -
PHP + Oracle
在httpd.conf中查找LoadModule,在最下方添加:LoadModule php4_module d:/php/sapi/php4apache2.dllPHPIniDir "D:/php"第一行是指以module方式加载php,第二行是指明php.ini位原创 2011-08-01 16:17:26 · 497 阅读 · 0 评论 -
Debian 5 x-window 安装及汉化
Debian最小安装,默认语言编码en_US.UTF-8。# apt-get install x-window-system-core# apt-get install gnome-core# Xorg -configure将自动生成的xorg.conf.new改名后复制到/etc/X11,覆盖原有的xorg.conf。# cp xorg.conf.new /etc/X11/x原创 2010-07-09 16:01:00 · 946 阅读 · 0 评论 -
Debian: Driver 'pcspkr' is already registered, aborting
原文地址:http://www.cnblogs.com/javaite/archive/2011/09/22/2184986.html解决"piix4_smbus host smbus controller not enabled"和"Debian: Driver 'pcspkr' is already registered, aborting"错误虚拟机没有SMBus,但debian转载 2013-04-24 22:27:01 · 8296 阅读 · 0 评论 -
Samba
root@linux:~# apt-get install samba (Workgroup/Domain Name默认为WORKGROUP)root@linux:~# useradd -m -p xxxx -g sambashare sambauserroot@linux:~# smbpasswd -a sambauserroot@linux:~# vi /etc/samba/smb原创 2013-04-25 00:20:29 · 654 阅读 · 0 评论 -
Samba配置文件常用参数
原文地址:http://yuanbin.blog.51cto.com/363003/115761/除[global]段外,所有的段都可以看作是一个共享资源。段名是该共享资源的名字,段里的参数是该共享资源的属性。testparm命令可以测试smb.conf配置是否正确。使用testparm –v命令可以详细的列出smb.conf支持的配置参数。全局参数================转载 2013-04-28 23:50:18 · 746 阅读 · 0 评论 -
passdb backend = tdbsam
原文地址:http://zhidao.baidu.com/question/409619165.html passdb backend就是用户后台的意思。目前有三种后台:smbpasswd、tdbsam和ldapsam。sam应该是security account manager(安全账户管理)的简写。 1.smbpasswd passdb backend = smbpasswd转载 2013-04-28 23:38:46 · 8072 阅读 · 0 评论 -
Disable Screen Blanking
原文地址:http://forum.xfce.org/viewtopic.php?id=5234grep -i dpms /var/log/Xorg.0.log(II) Loading extension DPMS(II) R128(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display(**) R转载 2013-08-22 12:58:02 · 1572 阅读 · 0 评论 -
linux桌面菜单与文件关联
原文地址:http://forum.ubuntu.org.cn/viewtopic.php?f=48&t=259119&start=0 菜单 菜单包含三个部分来完成。menu 文件用来把 desktop 文件集中起来形成菜单的样式。directory 文件用来描述菜单的目录层次结构,因为只有 desktop 文件的话就没有目录的层次结构了。 menu 文件的位置 全局:/e转载 2013-08-22 10:26:40 · 807 阅读 · 0 评论 -
CentOS 7 笔记
安装源:http://mirrors.163.com/centos/7/os/x86_64/原创 2015-06-08 09:08:34 · 1055 阅读 · 0 评论