分享
 
 
 

Section 6. Solutions to common miscellaneous problems

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

Q6.1 Setuid scripts don't seem to work.

Q6.2 Free memory as reported by free keeps shrinking.

Q6.3 When I add more memory it slows to a crawl.

Q6.4 Some programs (e.g. xdm) won't let me log in.

Q6.5 Some programs let me log in with no passWord.

Q6.6 My machine runs very slowly when I run GCC / X / ...

Q6.7 I can only log in as root.

Q6.8 My screen is all full of weird characters instead of letters.

Q6.9 I have screwed up my system and can't log in to fix it.

Q6.10 Emacs just dumps core.

Q6.11 I've discovered a huge security hole in rm !

Q6.12 lpr and/or lpd aren't working.

- -----------------------------------------------------------------------------

Question 6.1. Setuid scripts don't seem to work.

That's right. This feature has been deliberately disabled in the Linux

kernel because setuid scripts are almost always a security hole. If you

want to know why read the FAQ for comp.unix.questions.

- -----------------------------------------------------------------------------

Question 6.2. Free memory as reported by free keeps shrinking.

The `free' figure printed by free doesn't include memory used as a disk

buffer cache - shown in the `buffers' column. If you want to know how

mUCh memory is really free add the `buffers' amount to `free'.

The disk buffer cache tends to grow soon after starting Linux up, as you

load more programs and use more files and the contents get cached. It

will stabilise after a while.

- -----------------------------------------------------------------------------

Question 6.3. When I add more memory it slows to a crawl.

This is quite a common symptom of a failure to cache the additional

memory. The exact problem depends on your motherboard.

Sometimes you have to enable caching of certain regions in your BIOS

setup. Look in the CMOS setup and see if there is an option to cache the

new memory area which is currently switched off. This is apparently most

common on a 486.

Sometimes the RAMs have to be in certain sockets to be cached.

Sometimes you have to set jumpers to enable the caching.

Some motherboards don't cache all the RAM if you have more RAM per amount

of cache than they eXPect. Usually a full 256K cache will solve this

problem.

If in douBT, check your motherboard manual. If you still can't fix it

because the documentation is inadequate you might like to post a message

giving *all* the details - make, model number, date code, etc. so that

other Linux users can avoid it.

- -----------------------------------------------------------------------------

Question 6.4. Some programs (e.g. xdm) won't let me log in.

You are probably using non-shadow-password programs but are using shadow

passwords.

If so, you have to get or compile a shadow password version of the

program(s) in question. The shadow password suite can be found in

(amongst other places):

tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow-*

This is the source code; you will probably find the binaries in

.../linux/binaries/usr.bin.

- -----------------------------------------------------------------------------

Question 6.5. Some programs let me log in with no password.

You probably have the same problem as in Q6.4 `Some programs (e.g. xdm)

won't let me log in.', with an added wrinkle:

If you are using shadow passords you should put an asterisk in the

password field of /etc/passwd for each account, so that if a program

doesn't know about the shadow passwords it won't think it's a passwordless

account and let anyone in.

- -----------------------------------------------------------------------------

Question 6.6. My machine runs very slowly when I run GCC / X / ...

You may not have any swap enabled. You need to enable swapping to allow

Linux to page out bits of data programs aren't using at the moment to disk

to make more room for other programs and data. If you don't Linux has to

keep data in memory and throw away in-memory copies of programs (which are

paged straight from the filesystem) and so less and less program is in

memory and everything runs very slowly.

See the Installation HOWTO and the Installation and Getting Started Guide

[Q2.1 `Where can I get the HOWTOs and other documentation ?

'] for details

of how to set up a swap partition or swapfile; see also Q4.5 `My swap area

isn't working.'.

Alternatively you may have too little real memory. If you have less RAM

than all the programs you're running at once use Linux will use your hard

disk instead and thrash horribly. The solution in this case is to not run

so many things at once or to buy more memory. You can also reclaim some

memory by compiling and using a kernel with less options configured. See

Q7.6 `How do I upgrade/recompile my kernel ?'.

You can tell how much memory and/or swap you're using by using the free

command, or by typing

cat /proc/meminfo

If your kernel is configured with a ramdisk this is probably wasted space

and will cause things to go slowly. Use LILO or rdev to tell the kernel

not to allocate a ramdisk (see the LILO documentation or type man rdev).

- -----------------------------------------------------------------------------

Question 6.7. I can only log in as root.

You probably have some permission problems, or you have a file

/etc/nologin.

If the latter put rm -f /etc/nologin in your /etc/rc or /etc/rc.local.

Otherwise check the permissions on your shell, and any filenames which

appear in error messages, and also the Directories containing these files

all the way back up the tree to the root directory.

- -----------------------------------------------------------------------------

Question 6.8. My screen is all full of weird characters instead of letters.

You probably sent some binary data to your screen by mistake. Type echo

^V^[c (that's e c h o space control-V escape c return) to fix it. Many

Linux distributions have a command reset that does this.

- -----------------------------------------------------------------------------

Question 6.9. I have screwed up my system and can't log in to fix it.

Reboot from an emergency floppy or floppy pair, for example the Slackware

boot- and root-disk pair (in the install subdirectory of the Slackware

mirrors) or the MCC installation boot floppy. There are also two diy

rescue disk creation packages on sunsite.unc.edu in

/pub/Linux/system/Recovery. These are better as they'll have your own

kernel on them, so that you don't run the risk of missing devices,

filesystems, etc.

Get to a shell prompt and mount your hard disk with something like

mount -t ext2 /dev/hda1 /mnt

Then your filesystem is available under the directory /mnt and you can fix

the problem. Remember to unmount your hard disk before rebooting (cd back

down to / first or it will say it's busy).

- ----------------------------------------------------

right"(出处:清风软件下载学院)

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有