LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: minus273

Slackware tips and tricks 集锦

[复制链接]
发表于 2004-10-18 22:58:06 | 显示全部楼层

在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一样了。
发表于 2004-10-26 19:42:25 | 显示全部楼层

如何在网上邻居中访问中文目录和文件:


        dos charset = CP936
        unix charset = CP936
到/etc/samba/smb.conf的[global]一节中
发表于 2004-11-27 13:51:55 | 显示全部楼层

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过程并自动关机。
发表于 2004-11-30 20:43:40 | 显示全部楼层

Slackware 10.0中编译安装zhcon 0.2.3

如果make出现错误,在zhcon-0.2.3/src/下的inputclient.h和mouse.cpp中加入
  1. #include <assert.h>
复制代码
发表于 2005-1-26 01:15:44 | 显示全部楼层

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                                #暴笑
------------------------------------------------------------------------------------------------
回复 支持 反对

使用道具 举报

发表于 2005-2-3 09:10:49 | 显示全部楼层

slackware10+thunderbird+hotwayd/hotsmtpd收hotmail

呵呵,不是什么好东西,但说不定用的上。
写在自己的blog里了,因为有附件又有图片,所以没直接copy过来。
就留个链接吧。
http://blog.vetcafe.net/blog.php ... d=a_20050202_025650
回复 支持 反对

使用道具 举报

发表于 2005-4-5 13:28:35 | 显示全部楼层

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.cn/bbs/attachment.php?attachmentid=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 (打包)
回复 支持 反对

使用道具 举报

发表于 2005-9-25 20:25:39 | 显示全部楼层

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 00E: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
回复 支持 反对

使用道具 举报

发表于 2005-10-15 18:48:43 | 显示全部楼层
Post by phenix3344
1、不编内核让slackware能自断电源关机
(选择默认Bare的,此方法为Klite兄提供,此处借用一下)
修改/etc/rc.d/rc.modules
去掉/sbin/apmd前的#
……

10.2略有改动:
修改/etc/rc.d/rc.modules
去掉/sbin/modprobe apmd前的#
回复 支持 反对

使用道具 举报

发表于 2005-11-15 20:51:15 | 显示全部楼层

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、完毕。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表