[推荐]linux下的梦幻桌面——xwinwrap,让您的桌面与众不同 07/11/28 更新

各种窗口管理器和美化相关
回复

满意度

鲜花
178
64%
鸡蛋
23
8%
不知道该扔啥
76
27%
 
总计票数: 277
头像
夕阳
帖子: 192
注册时间: 2006-07-31 0:09
来自: 四季都好,若是你在
联系:

#16

帖子 夕阳 » 2007-01-28 15:52

ThinkPad
口水啊。攒钱。。
Nothing is Sound..
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#17

帖子 skyx » 2007-01-28 15:57

uname -a
Linux ThinkPad 2.6.17-10-generic #2 SMP Tue Dec 5 22:28:26 UTC 2006 i686 GNU/Linux
附件
cb.gif
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#18

帖子 skyx » 2007-01-28 16:01

是686的啊
no security measure is worth anything if an attacker has physical access to the machine
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#19

帖子 zhuqin_83 » 2007-01-28 16:02

终端输入arch看看
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#20

帖子 zhuqin_83 » 2007-01-28 16:03

照理6.10的应该自动认出686的。很奇怪。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
xzymail
帖子: 513
注册时间: 2006-06-29 11:36

#21

帖子 xzymail » 2007-01-28 16:27

我晕,我的Want to run in foreground?后点Y就关了,N也关了,不知道怎么回事!
大家都来关注下了,我对这个很已经是想很久了哦,从第一次看那个SUSE的演示片就看过这个
只不过不知道这个是什么了,
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#22

帖子 skyx » 2007-01-28 16:40

zhuqin_83 写了:终端输入arch看看

sky@ThinkPad:~$ arch
i686


的确是686的啊,不改不行,绝不骗人。
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#23

帖子 skyx » 2007-01-28 16:44

sky@ThinkPad:~/Desktop$ sh coolbg.sh
[: 37: ==: unexpected operator
[: 37: ==: unexpected operator
coolbg.sh installMSfonts.sh~ 新文件 新文件 1~
coolbg.sh~ xwinwrap_0.1+cvs20060209_i386.deb 新文件~ 新文件 2~
Select your cool background:


把arch 还有接下来的if 语句中#去掉后运行就是上面的样子
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#24

帖子 skyx » 2007-01-28 16:45

加了#号后就可以了

sky@ThinkPad:~/Desktop$ sh coolbg.sh
antinspect engine gleidescope metaballs sierpinski3d
antspotlight euphoria glknots mirrorblob skyrocket
atunnel fiberlamp glmatrix moebius slidescreen
biof fieldlines glslideshow molecule solarwinds
blinkbox flipflop glsnake morph3d sonar
braid flipscreen3d gltext penrose spheremonics
bubble3d flocks helios pipes spirographx
busyspheres flurry hufo_smoke plasma stonerview
circuit flux hufo_tunnel polyhedra sundancer2
colorfire flyingtoasters hyperspace polytopes superquadrics
cubestorm fuzzyflakes hypertorus popsquares swirl
cyclone galaxy jigglypuff pulsar xlyap
deco gears lattice queens
distort gflux lavalite ripples
endgame glblur matrixview shadebobs
Select your cool background:
flux
Want to run in foreground? (y/n) y
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#25

帖子 skyx » 2007-01-28 16:48

我觉得也不可思议,是不是这句

代码: 全选

if [ $ARCH == "i686" ]; then
有问题啊。
no security measure is worth anything if an attacker has physical access to the machine
头像
zhan
帖子: 1880
注册时间: 2005-08-15 0:04
来自: 南7技校

#26

帖子 zhan » 2007-01-28 16:59

不是 bash 的语法..
试试这个

代码: 全选

if [ $ARCH -eq "i686" ]; then
飞得高,飞得低,学习再学习,多少大秘密!
http://zhan.blog.ubuntu.org.cn
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#27

帖子 skyx » 2007-01-28 17:00

我帮你debug好了,你在==前后分别加了空格,去掉就可以了

下面的在我的 ubuntu上可以用了。




ARCH=`arch`
if [ $ARCH=="i686" ]; then
SAVERPATH=/usr/lib/xscreensaver
elif [ $ARCH == "x86_64" ]; then
SAVERPATH=/usr/lib64/xscreensaver
fi
while true; do
ls $SAVERPATH
echo "Select your cool background:"
read background
bg=$background
echo -n "Want to run in foreground? (y/n) "
read yn
case $yn in
y* | Y* ) xwinwrap -ni -argb -fs -s -st -sp -nf -- $SAVERPATH/$bg -root -window-id WID; break ;;
[nN]* ) xwinwrap -ni -argb -fs -s -st -sp -b -nf -- $SAVERPATH/$bg -root -window-id WID; break ;;
q* ) exit ;;
* ) echo "unknown response. Asking again" ;;
esac
done
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#28

帖子 skyx » 2007-01-28 17:02


代码: 全选

if [ $ARCH == "i686" ]; then

改成

代码: 全选

if [ $ARCH=="i686" ]; then
就可以用了
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#29

帖子 skyx » 2007-01-28 17:06

有64的那句也要改,

反正我的能用了,不管了,楼主改一下吧,把386的语句也加上吧。
no security measure is worth anything if an attacker has physical access to the machine
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#30

帖子 zhuqin_83 » 2007-01-28 17:14

不知道是不是个别情况?因为我的没有任何问题。
而且我觉得空格是加不加无所谓的,编程编到现在还没见过说这种地方的空格还有影响的。
还请大家多多实验。
困死我了,睡觉。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
回复