|
|
第 31 帖 | |
|
|
标题: 在IBM服务器和VMware ESX Server上安装slackware10 by babo
最近在一台VMware ESX Server和一台IBM netfinity 7100上安装了slackware 10 记得以前有人问过如何在服务器上安装,所以写一下。 希望对大家有帮助 在ESX Server上安装的话,一般创建的都是scsi的盘,还可以使用raid。(IDE是不能用的,没有这个选项了) 所以在用光盘启动后,要用支持scsi的内核。 也就是出现“boot:”的时候,要输入scsi.s才可以正确识别硬盘 然后就是在给磁盘分区的时候要使用cfdisk /dev/sda才可以。 在IBM服务器上安装,因为一般都是做了raid,所以启动的时候,要选择支持raid的内核。 也就是在"boot:"的时候,输入raid.s 然后进入后,也是用cfdisk /dev/sda来分区。 以后的安装就和不同pc一样了。
__________________
Free as in freedom, slack as in Slackware. 欢迎访问 http://slack.linuxsir.org 个人blog:http://blog.tuxfans.com/ RSS:http://feeds.feedburner.com/windroseblog |
|
|
|
|
|
|
|
第 32 帖 | |
|
|
标题: 如何在网上邻居中访问中文目录和文件: 加
dos charset = CP936 unix charset = CP936 到/etc/samba/smb.conf的[global]一节中 此帖于 04-10-26 19:52 被 dyte100 编辑. |
|
|
|
|
|
|
|
第 33 帖 | |
|
|
标题: slackware 10 关机断电2法 1、不编内核让slackware能自断电源关机
(选择默认Bare的,此方法为Klite兄提供,此处借用一下) 修改/etc/rc.d/rc.modules 去掉/sbin/apmd前的# 2、ACPI法,需替换内核,但同样不需要自己编译内核 (1)、安装Slackware最后选择带ACPI的那一个内核,(要安装ACPI包,系统自动会启动ACPID服务),此时即可关机 (2)、在Slackware安装光盘中找到带ACPI的那一个内核,替换一下,效果同样 windrose补充: 按电源开关键直接关机的方法(Slackware 10 + kernel 2.6.7) 1.安装带ACPI支持的内核,保证 /etc/rc.d/rc.acpid 的可执行属性,必要时 chmod +x /etc/rc.d/rc.acpid 2.在 /etc/rc.d/rc.local 中添加一句: /sbin/modprobe button 重新启动系统之后,按电源开关,系统应该执行poweroff过程并自动关机。 |
|
|
|
|
|
|
|
第 34 帖 | |
|
|
标题: Slackware 10.0中编译安装zhcon 0.2.3 如果make出现错误,在zhcon-0.2.3/src/下的inputclient.h和mouse.cpp中加入
代码:
|
|
|
|
|
|
|
|
第 35 帖 | |
|
|
标题: slackware10的小技巧,讲得不好莫怪我 首先,启动脚本要写的清楚明了,不要把所有的东西都塞入rc.local,这样会污染了slackware的简明作风。
重要的系统文件位置。 1./etc/rc.d/rc.firewall 防火墙设置 这个文件缺省是没有的,但系统启动中会执行,建议使用它存储防火墙设置,而不是rc.local。 2./etc/rc.d/rc.inet1.conf 网卡设置 不知你有没有两张网卡在slackware的尴尬?请看这里。 3./etc/rc.d/rc.inet2 网络服务 开samba httpd portmap, 共享上网请看这里。 4./etc/rc.d/rc.modules 如果你开机时,看到xxx modules not loaded,到这里来注释它们。 开始正式讲: ------------------------------------------------------------------------------------------------ 开机就开numlock 把它加入rc.local for t in /dev/tty? do setleds -D +num < $t done ------------------------------------------------------------------------------------------------ 在rc.M中找ldconfig和fc-cache,把它们注释掉。缺点是安装新字体和新库后要手动键入两个命令。 ------------------------------------------------------------------------------------------------ 在rc.6中找Umount remote filesystem,如果你没有用NFS和SMB,把它们注释掉后重启的速度快的多。 ------------------------------------------------------------------------------------------------ setconsolefont 请为你的终端选一个好的字符,心情绝对更舒畅。 ------------------------------------------------------------------------------------------------ 把这样几行加入你的.bash_profile alias cd..="cd .." alias ls="ls -F --color=auto" alias ll="ls -lh" alias mv="mv -i" alias rm="rm -i" alias cp="cp -i" alias b='cd $OLDPWD' #返回你的前一级目录(哪里来哪里去) alias h='fc -l' #历史记录,用!num使用数字。 alias d='ls -l |grep ^d' #打印目录名 ------------------------------------------------------------------------------------------------ kde启动时运行fcitx 在.xinitrc中,startkde之前加入exec fcitx & ------------------------------------------------------------------------------------------------ adduser比useradd好用 ------------------------------------------------------------------------------------------------ 试试用kde的kNewTicker,在屏幕顶部加入子面板,在子面板添加kNewTicker,到新华或看天下去复制它们的rss&xml链接进kNewTicker,得到你的国际国外最新新闻滚动条。 ------------------------------------------------------------------------------------------------ 在/etc/profile里请加入 export G_BROKEN_FILENAMES=1 在/etc/profile.d/lang.sh请加入 export LC_ALL=zh_CN export XMODIFIERS="@im=fcitx" 在/etc/profile.d/bsd-game-login-fortune.sh 改fortune fortunes fortunes2 linuxcookie 为fortune linuxcookie #暴笑 ------------------------------------------------------------------------------------------------ |
|
|
|
|
|
|
|
第 36 帖 | |
|
|
标题: slackware10+thunderbird+hotwayd/hotsmtpd收hotmail 呵呵,不是什么好东西,但说不定用的上。
写在自己的blog里了,因为有附件又有图片,所以没直接copy过来。 就留个链接吧。 http://blog.vetcafe.net/blog.php?job...0050202_025650 |
|
|
|
|
|
|
|
第 37 帖 | |
|
|
标题: slack 10.1 在不装gnome的情况下怎么编译使用stardict? by 格格恶
http://stardict-ed.sourceforge.net/ stardict-ed,只需gtk2,无需libgnomeui,可在无gnome的环境下安装。功能没变,速度却快了很多,内存占用率也降低了1/2。 如果编译中出现"ScrollKeeper not found"错误,可试试我的patch:http://www.linuxsir.org/bbs/attachme...chmentid=23844 gzip -d stardict-ed-help.patch.gz cd stardict-ed-2.4.4b cat ../stardict-ed-help.patch | patch -p1 ./configure --prefix=/usr --disable-gnome-support make make install (直接安装) 或 make install DESTDIR=$PKGDIR (打包) |
|
|
|
|
|
|
|
第 38 帖 | |
|
|
标题: Slackware 10.2 Tips 主要关于无线网卡配置的
http://www.dualisanoob.com/slack_102_tips.txt Wireless Access and Anonymity ----------------------------- Oh, the can of worms you open when you go to the local cafe for some coffee and a little Wi-Fi. We are going to show some things that can help you stay anonymous at a public hotspot. You know what we hate? Having our MAC address broadcast for all the world to see. You don't need my MAC, nor does the owner of the hotspot need my MAC. The purple-haired guy with the 12" iBook definitely doesn't need my MAC, and we're going to take some serious steps to prevent it. 1. Make sure that no wireless interface comes up at boot. The way we are going to do this is to edit the file /etc/rc.d/rc.inet1.conf. For example, bland's network interfaces are set up so that eth0 is an Orinoco wireless adapter and eth1 is a 3Com NIC. Determine which interface is your wireless adapter with: # iwconfig Then you are going to, also as root, edit /etc/rc.d/rc.inet1.conf and remove the "yes" from the USE_DHCP line for your wireless device as shown here. USE_DHCP[0]="" This brings networking and the interface up at boot, but does not solicit the DHCP server at the hotspot, keeping your MAC your business. You may be asking, "If my interface does not get an address from the access point, then I cannot partake in the succint and prestigious Internet." That is true, more or less. We are going to obtain an IP from the DHCP server, just not yet. 2. Spoof your MAC address. The fact remains that you are going to need a MAC address for the DHCP server to assign an IP to. So you are going to use a MAC address, just not the one that came with your wireless card. There are many ways to spoof your MAC, but we will show one basic method. As root, type # ifconfig eth0 hw ether 00:DE:AD:BE:EF:00 up # dhcpcd eth0 # ping -c2 google.com | grep received See where it says "2 received, 0% packet loss" down at the bottom? The tingling means that it's working. In just three lines, you: - Gave your wireless card a unique MAC address - Performed a DHCP transaction with dhcpcd that bound an IP to your new, improved MAC - Bounced two packets off of Google to assure ingress and egress from the router that was kind enough to let you on with such a bunk MAC - Have taken a large step towards protecting your privacy 3. Use your, possibly new, bash skills to automate such actions. Remember adding /root/bin/ to root's path? This is where it comes in handy. Copy those three lines above and paste them into a file called pubwifi in /root/bin. Add "#!/bin/bash" to the top and then chmod 700 /root/bin/pubwifi. Now when you go to your local haunt, you simply boot, su -, and type pubwifi. Similarly, you can make a /root/bin/homewifi that contains your home wireless settings, WEP and all: -------------------------------------------------------------------------------- #!/bin/bash /sbin/iwconfig eth0 essid SSID key INSERT_YOUR_WEPKEY /usr/bin/sleep 1 /sbin/dhcpcd eth0 /usr/bin/sleep 1 /bin/ping -c2 google.com | /usr/bin/grep received -------------------------------------------------------------------------------- Speaking of WEP, let us take this opportunity to address overall security. WEP may be acceptable security for you, or it may not. As a Linux user, you are more than likely conscious of security significant situations. Please use that awareness. A final wireless tip, which facilitates the awareness just mentioned, deals with Ethereal. Capturing packets with Ethereal is a prvileged operation. You may find that when you su - to run Ethereal on Slackware that you recive a display error. (ethereal:4148): Gtk-WARNING **: cannot open display: You could log out and then log back in as root, working around the problem. Or, you could just enter these commands, and then successfully launch Ethereal. $ xauth extract .xauth $DISPLAY $ su - # export DISPLAY=":0.0" # xauth merge ~username/.xauth # ethereal Addendum -------- - Reduce laptop boot time by commenting out the probe line in /etc/rc.d/rc.pcmcia and uncommenting the appropriate module. # PCIC=probe # PCIC=i82365 # PCIC=tcic PCIC=yenta_socket
__________________
slackware10.*, linux-2.6.*, icewm, 显卡NV11, pentium 2.6G, SiS主板芯片 Homepage: http://lianwei3.googlepages.com/home2 在音乐史上有一个光明的时刻,所有的对立者都和解了,所有的紧张都消除了,那光明的时刻便是莫扎特。 此帖于 05-09-26 22:49 被 dyte200 编辑. |
|
|
|
|
|
|
|
第 39 帖 | ||
|
|
引用:
修改/etc/rc.d/rc.modules 去掉/sbin/modprobe apmd前的#
__________________
But I was young and foolish, and now am full of tears. |
||
|
|
|
||
|
|
第 40 帖 | |
|
|
标题: slackware10.2下安装stardict的完整方案 by pxl553
参照网上的帖子,已解决(无gnome),: 1、到stardict.sourceforge.net/上下载 stardict-2.4.5.tar.bz2; 2、解压stardict-2.4.5.tar.bz2,进入stardict-2.4.5目录; 3、运行:./configure --prefix=/opt/stardict --disable-gnome-support make make install 4、在/opt/stardict/share/stardict/下建/dic文件夹,下载词典文件,解压后放入/dic中; 5、运行/opt/stardict/bin/stardict,启动程序,或在桌面建一链接。 6、完毕。 |
|
|
|
|
|
|
|
第 41 帖 | |
|
|
标题: slackware贴士 配制工具pkgtool:
Current: Install packages form the current directory #安装来自基本软件包(一般指光盘附带内容) Other: Install packages form some other directory #安装其它部分软件包(可能来自网络或本地硬盘) Floppy: Install packages form floppy disks #安装来自软盘的软件包 Remove: Remove packages that are currently installed #删除已安装的软件 View: View the list of files contained in a packages #浏览或列出已安装的软件部分 Setup: Choose Slackware installation scripts to run again #对Slackware运行脚本并进行设置 Exit: Exit pkgtool #退出pkgtool工具
__________________
邁出沉重的一千步,決不囬頭--[Sven Hedin] 此帖于 05-11-29 19:30 被 LiEn 编辑. |
|
|
|
|
|
|
|
第 42 帖 | |
|
|
标题: SELECT SYSTEM SETUP SCRIPTS 05. fontconfig run fc-cache to locate new fonts for Xft #运行fc-chache 以对新安装的字体进行设置并更改本地字体设置。
70. install-kern Install a Linux kernel form a bootdisk #安装一个Linux内核来自启动盘 80.make-bootdis Create a Linux boot floppy #制作一张可启动的映像软盘 90. modem-device Select mode device #选择和设置modem驱动并账号 hotplug Enable/disable hotplug activation at boot #激活或终止硬件检测启动进程管理 liloconfig Set up LILO to boot Linux(and other OSes) #l设置Linux的Lilo或其它启动选项 mouse Configure the console mouse support (GPM) #设置鼠标端口及配置鼠标 netconfig Configure basic network settings #配置网格及上网方式 services Select/deselect system daemons (services) #选择或取消系统服务守护进程管理 setconsolefont Select a font for the console #选择在控制台中所使用的字体 timeconfig Seect your timezone #设置你的时区 xwmconfig Choose a default window manager for X #设置你默认使用的X窗口管理器如fvwm、KDE等 此帖于 05-11-29 17:44 被 LiEn 编辑. |
|
|
|
|
|
|
|
第 43 帖 | |
|
|
标题: 本地设置 中文或其它语种本地设置在/etc/profile.d/lang.sh
#!/bin/sh # Set the system locale. (no, we don't have a menu for this ;-) # For a list of locales which are supported by this machine, type: # locale -a # zh_CN is the Slackware default locale: # export LANG=zh_CN.GB18030 #设置默认的本地编码 # 'C' is the old Slackware (and UNIX) default, which is 127-bit # ASCII with a charmap setting of ANSI_X3.4-1968. These days, # it's better to use en_US or another modern $LANG setting to # support extended character sets. # export LANG=C #二进制码本地设置(一般不作更改) # There is also support for UTF-8 locales, but be aware that # some programs are not yet able to handle UTF-8 and will fail to # run properly. In those cases, you can set LANG=C before # starting them. Still, I'd avoid UTF unless you actually need it. export LANG=zh_CN.GB18030 #对UTF-8编码设置,或作全局变量申明 # Another option for en_US: # export LANG=en_US.ISO8859-1 # One side effect of the newer locales is that the sort order # is no longer according to ASCII values, so the sort order will # change in many places. Since this isn't usually expected and # can break scripts, we'll stick with traditional ASCII sorting. # If you'd prefer the sort algorithm that goes with your $LANG # setting, comment this out. # export LC_COLLATE=C # End of /etc/profile.d/lang.sh 以上文件是默认配置文件,风格非常规范且工整,但一般不需要还过详细,只需对以上红色部分作更改即可。在这里,我将本地设置定义为GB18030。这里没有决对标准,可接自己的意愿进行设置为UTF-8或GBK都可以。 |
|
|
|
|
|
|
|
第 44 帖 | |
|
|
标题: Fcitx输入法设置 一、定义XMODIFIERS
在/etc/profile中增加以下部分内容: #INPUT OF CHINSES EXPORT export LC_CTYPE="zh_CN.GBK" export XMODIFIERS="@im=fcitx“ 因本人在全局变量本地设置中使用的是GB18030所以在这里我需把LC_CTYPE设置为zh_CN或zh_CN.GBK后,(zh_CN.GBK更好一些)输入法才起作用,另外这样这可实现以英文系统实现中文输入成为可能。本人将本地设置环境变量设置为GB18030是因希望能处理更多的中文汉字,比如堃、噰、嗞等非常用汉字。使用UTF-8或其它编码是可以输入它们,但会在一些情况下出现一个汉字占用4个字符的情况,或在一些软件中这些汉字根本就打不上去如OpenOffice等,而GB2312则不需用这一部分,但可识别的汉字很少。 注:我习惯对系统进行全局变量设置,因此将XMODIFIEFS增加到/etc/profile文件中,但有些人习惯把它写入~/.profile或bashrc文件中,这是个人习惯。 此帖于 05-11-29 18:09 被 LiEn 编辑. |
|
|
|
|
|
|
|
第 45 帖 | |
|
|
标题: 添加中文字体或设置 在slackware10.2中,没有使用gnome环境,因此在/usr/share/目录下没有fonts目录,同样如果将字体放入这里,slackware是不会使用这些字体的,即便是在/etc/fonts/fonts.conf设置或在/etc/X11/xorg.conf设置它仍不会有好的效果。
方法一: slackware10.2与FreeBSD或其它BSD一样,字体目录路径在/usr/X11R6/lib/X11/fonts下。通常可以把你所需要的字体如文泉驿或MS的SimSun字体copy到/usr/X11R6/lib/X11/fonts/TTF或自建一个文件夹中并在/etc/X11/xorg.conf文件增加的字体目录路径名,如/usr/X11R6/libX11/fonts/zh_CN之类的,并在以根用户身分运行/usr/X11R6/bin/fc-cache -f 或再加一个-v选项回显设置过程,如/usr/X11R6/bin/fc-cache -f -v 。 使用一个简单的方法二: 在KDE控制中心──系统管理──字体安装程序,以管理员身份运行,把需要增加的字体装上,系统会自动帮助你解决问题。 方法三(设置字体) copy字体后,第三种方法是在终端中以根身分运行pkgtool工具进入Setup后把05.fontsconfig选上后,系统将运行fc-cache设置你的系统字体,并自动更改/etc/fonts/fonts.config文件。 我就是按照第一种方法这么做的,不需要再次对/etc/fonts/fonts.conf文件再次进行手动更改,以经可以达到windwos中文环境的效果,如果你还不满意,那就自己去改/etc/fonts/fotns.conf文件吧。 此帖于 05-11-29 04:04 被 LiEn 编辑. |
|
|
|
|
|