FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 03-10-2009, 03:10 PM
Jhair Tocancipa Triana
 
Default How to keep unnecessary processes from starting

Charles Howse <chowse@charter.net> writes:

> Hi,
> I have 8.10-server-i386 running in command-line only.
> Surely some of the processes below are unnecessary.
> What's the best way to separate the wheat from the chaff?
>

k* processes are chaff :-)...

It depends on what you use the machine for. For instance, do you use it
to serve files via FTP?

> 5754 proftpd 20 0 5052 1432 616 S 0.0 0.6 0:05.18 proftpd

--
--Jhair

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-10-2009, 03:32 PM
Chris Jones
 
Default How to keep unnecessary processes from starting

Hi,

Charles Howse wrote:
> Hi,
> I have 8.10-server-i386 running in command-line only.
> Surely some of the processes below are unnecessary.
> What's the best way to separate the wheat from the chaff?

Exactly what processes do you think are superfluous ? I don't see
anything there I wouldn't expect to see ...

That said, what you expect depends entirely on what you want this
machine to do ? Is it a web server, an NFS server, Samba server etc...
Do you want ssh access or not. etc. etc.

I would suggest better than just randomly looking at processes, to look
at the services you have running and disable those you know you don't need.

cheers Chris

>
>
> top - 06:18:40 up 1 day, 13:19, 1 user, load average: 0.02, 0.21, 0.15
> Tasks: 51 total, 1 running, 50 sleeping, 0 stopped, 0 zombie
> Cpu(s): 1.4%us, 4.1%sy, 0.0%ni, 93.0%id, 0.1%wa, 0.2%hi,
> 1.3%si, 0.0%st
> Mem: 254716k total, 237116k used, 17600k free, 10456k buffers
> Swap: 393552k total, 4660k used, 388892k free, 193432k cached
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 13029 charles 20 0 2284 964 764 R 7.2 0.4 0:00.10 top
> 1 root 20 0 2944 1860 544 S 0.0 0.7 0:13.98 init
> 2 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kthreadd
> 3 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0
> 4 root 15 -5 0 0 0 S 0.0 0.0 0:00.66 ksoftirqd/0
> 5 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
> 6 root 15 -5 0 0 0 S 0.0 0.0 0:04.76 events/0
> 7 root 15 -5 0 0 0 S 0.0 0.0 0:00.24 khelper
> 46 root 15 -5 0 0 0 S 0.0 0.0 0:00.00
> kintegrityd/0
> 48 root 15 -5 0 0 0 S 0.0 0.0 0:02.08 kblockd/0
> 69 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue
> 73 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
> 115 root 20 0 0 0 0 S 0.0 0.0 0:43.12 pdflush
> 116 root 20 0 0 0 0 S 0.0 0.0 6:50.68 pdflush
> 117 root 15 -5 0 0 0 S 0.0 0.0 2:01.47 kswapd0
> 162 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
> 1029 root 15 -5 0 0 0 S 0.0 0.0 0:00.00
> ksuspend_usbd
> 1031 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
> 1073 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ata/0
> 1075 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ata_aux
> 1090 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
> 1092 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
> 1919 root 15 -5 0 0 0 S 0.0 0.0 0:11.16 kjournald
> 2069 root 16 -4 2176 684 392 S 0.0 0.3 0:04.12 udevd
> 3272 root 15 -5 0 0 0 S 0.0 0.0 0:17.16 kjournald
> 3273 root 15 -5 0 0 0 S 0.0 0.0 0:57.72 kjournald
> 3623 root 20 0 1668 496 436 S 0.0 0.2 0:00.00 getty
> 3625 root 20 0 1668 504 436 S 0.0 0.2 0:00.00 getty
> 3633 root 20 0 1668 504 436 S 0.0 0.2 0:00.00 getty
> 3637 root 20 0 1668 500 436 S 0.0 0.2 0:00.00 getty
> 3638 root 20 0 1668 496 436 S 0.0 0.2 0:00.00 getty
> 3676 syslog 20 0 1884 696 540 S 0.0 0.3 0:02.54 syslogd
> 3694 root 20 0 1824 528 436 S 0.0 0.2 0:00.66 dd
> 3696 klog 20 0 3136 1984 420 S 0.0 0.8 0:01.82 klogd
> 3714 messageb 20 0 2508 784 588 S 0.0 0.3 0:05.52 dbus-daemon
> 3745 root 20 0 2052 668 524 S 0.0 0.3 0:14.38 dovecot
> 3747 root 20 0 9396 2356 1796 S 0.0 0.9 0:05.68 dovecot-auth
> 3771 daemon 20 0 1940 444 316 S 0.0 0.2 0:00.00 atd
> 3796 root 20 0 3284 1016 804 S 0.0 0.4 0:01.32 cron
> 3806 root 20 0 1668 504 436 S 0.0 0.2 0:00.00 getty
> 3811 root 20 0 16076 2500 1596 S 0.0 1.0 0:17.69 console-
> kit-dae
> 5754 proftpd 20 0 5052 1432 616 S 0.0 0.6 0:05.18 proftpd
> 5856 root 20 0 5180 1052 664 S 0.0 0.4 0:00.02 sshd
> 11691 root 20 0 8204 2812 2256 S 0.0 1.1 0:00.58 sshd
> 11698 charles 20 0 8340 1560 984 S 0.0 0.6 0:01.86 sshd
> 11699 charles 20 0 5472 2928 1424 S 0.0 1.1 0:02.08 bash
> 12220 root 20 0 9396 2384 1852 S 0.0 0.9 0:00.22 dovecot-
> auth
> 12222 dovecot 20 0 3424 1556 1288 S 0.0 0.6 0:00.06 pop3-login
> 12623 dovecot 20 0 3424 1552 1288 S 0.0 0.6 0:00.06 pop3-login
> 12994 dovecot 20 0 3424 1552 1288 S 0.0 0.6 0:00.06 pop3-login
> 13018 charles 20 0 4248 1496 1056 S 0.0 0.6 0:00.10
> daily_report.sh
>
>
> --
> Thanks,
> Charles
>
> Things that make you say, Hmmmmmm...
> How can someone be dirt poor, and another be filthy rich?
>
>
>
>


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-10-2009, 04:24 PM
Florian Diesch
 
Default How to keep unnecessary processes from starting

Charles Howse <chowse@charter.net> wrote:

> I have 8.10-server-i386 running in command-line only.
> Surely some of the processes below are unnecessary.

I don't see anything uncommon for a server.

You could reduce the number of pop3-login processes
(login_processes_count in /etc/dovecot/dovecot.conf) if you have very
few POP3 users or the number of active consoles (ACTIVE_CONSOLES in
/etc/default/console-setup) if you don't need 6 consoles.

But as your machine doesn't seem to be busy and most RAM is unused (or
used for file caching) I don't see much reason for that.

> What's the best way to separate the wheat from the chaff?
>
> top - 06:18:40 up 1 day, 13:19, 1 user, load average: 0.02, 0.21, 0.15
> Tasks: 51 total, 1 running, 50 sleeping, 0 stopped, 0 zombie
> Cpu(s): 1.4%us, 4.1%sy, 0.0%ni, 93.0%id, 0.1%wa, 0.2%hi,
> 1.3%si, 0.0%st
> Mem: 254716k total, 237116k used, 17600k free, 10456k buffers
> Swap: 393552k total, 4660k used, 388892k free, 193432k cached
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 13029 charles 20 0 2284 964 764 R 7.2 0.4 0:00.10 top
> 1 root 20 0 2944 1860 544 S 0.0 0.7 0:13.98 init
> 2 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kthreadd
> 3 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0
> 4 root 15 -5 0 0 0 S 0.0 0.0 0:00.66 ksoftirqd/0
> 5 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
> 6 root 15 -5 0 0 0 S 0.0 0.0 0:04.76 events/0
> 7 root 15 -5 0 0 0 S 0.0 0.0 0:00.24 khelper
> 46 root 15 -5 0 0 0 S 0.0 0.0 0:00.00
> kintegrityd/0
> 48 root 15 -5 0 0 0 S 0.0 0.0 0:02.08 kblockd/0
> 69 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue
> 73 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
> 115 root 20 0 0 0 0 S 0.0 0.0 0:43.12 pdflush
> 116 root 20 0 0 0 0 S 0.0 0.0 6:50.68 pdflush
> 117 root 15 -5 0 0 0 S 0.0 0.0 2:01.47 kswapd0
> 162 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
> 1029 root 15 -5 0 0 0 S 0.0 0.0 0:00.00
> ksuspend_usbd
> 1031 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
> 1073 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ata/0
> 1075 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ata_aux
> 1090 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
> 1092 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
> 1919 root 15 -5 0 0 0 S 0.0 0.0 0:11.16 kjournald
> 2069 root 16 -4 2176 684 392 S 0.0 0.3 0:04.12 udevd
> 3272 root 15 -5 0 0 0 S 0.0 0.0 0:17.16 kjournald
> 3273 root 15 -5 0 0 0 S 0.0 0.0 0:57.72 kjournald
> 3623 root 20 0 1668 496 436 S 0.0 0.2 0:00.00 getty
> 3625 root 20 0 1668 504 436 S 0.0 0.2 0:00.00 getty
> 3633 root 20 0 1668 504 436 S 0.0 0.2 0:00.00 getty
> 3637 root 20 0 1668 500 436 S 0.0 0.2 0:00.00 getty
> 3638 root 20 0 1668 496 436 S 0.0 0.2 0:00.00 getty
> 3676 syslog 20 0 1884 696 540 S 0.0 0.3 0:02.54 syslogd
> 3694 root 20 0 1824 528 436 S 0.0 0.2 0:00.66 dd
> 3696 klog 20 0 3136 1984 420 S 0.0 0.8 0:01.82 klogd
> 3714 messageb 20 0 2508 784 588 S 0.0 0.3 0:05.52 dbus-daemon
> 3745 root 20 0 2052 668 524 S 0.0 0.3 0:14.38 dovecot
> 3747 root 20 0 9396 2356 1796 S 0.0 0.9 0:05.68 dovecot-auth
> 3771 daemon 20 0 1940 444 316 S 0.0 0.2 0:00.00 atd
> 3796 root 20 0 3284 1016 804 S 0.0 0.4 0:01.32 cron
> 3806 root 20 0 1668 504 436 S 0.0 0.2 0:00.00 getty
> 3811 root 20 0 16076 2500 1596 S 0.0 1.0 0:17.69 console-
> kit-dae
> 5754 proftpd 20 0 5052 1432 616 S 0.0 0.6 0:05.18 proftpd
> 5856 root 20 0 5180 1052 664 S 0.0 0.4 0:00.02 sshd
> 11691 root 20 0 8204 2812 2256 S 0.0 1.1 0:00.58 sshd
> 11698 charles 20 0 8340 1560 984 S 0.0 0.6 0:01.86 sshd
> 11699 charles 20 0 5472 2928 1424 S 0.0 1.1 0:02.08 bash
> 12220 root 20 0 9396 2384 1852 S 0.0 0.9 0:00.22 dovecot-
> auth
> 12222 dovecot 20 0 3424 1556 1288 S 0.0 0.6 0:00.06 pop3-login
> 12623 dovecot 20 0 3424 1552 1288 S 0.0 0.6 0:00.06 pop3-login
> 12994 dovecot 20 0 3424 1552 1288 S 0.0 0.6 0:00.06 pop3-login
> 13018 charles 20 0 4248 1496 1056 S 0.0 0.6 0:00.10
> daily_report.sh


Florian
--
<http://www.florian-diesch.de/>

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-10-2009, 05:46 PM
Charles Howse
 
Default How to keep unnecessary processes from starting

On Mar 10, 2009, at 9:56 AM, Mark Janssen wrote:

> On Tue, Mar 10, 2009 at 2:12 PM, Charles Howse <chowse@charter.net>
> wrote:
>> Hi,
>> I have 8.10-server-i386 running in command-line only.
>> Surely some of the processes below are unnecessary.
>> What's the best way to separate the wheat from the chaff?
>
> Actually... that already is a clean list without any useless stuff
> running.
> Unless you want to lose your mailserver, the only thing you could
> remove were some of the getty's (but then you lose some consoles)

Mark, Brian, thanks for the replies! I guess I was thinking that the
processes that started with k had something to do with a gui that had
been installed without my knowledge.
A little rtfm would have been in order before I posted, eh? ;-)
Thanks again, I'll not fix it if it's not broken!

charles@shemp:~$ ps auxwwf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 2 0.0 0.0 0 0 ? S< Mar07 0:00
[kthreadd]
root 3 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[migration/0]
root 4 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[watchdog/0]
root 6 0.0 0.0 0 0 ? S< Mar07 0:08 \_
[events/0]
root 7 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[khelper]
root 46 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[kintegrityd/0]
root 48 0.0 0.0 0 0 ? S< Mar07 0:02 \_
[kblockd/0]
root 69 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[cqueue]
root 73 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[kseriod]
root 115 0.0 0.0 0 0 ? S Mar07 0:43 \_
[pdflush]
root 116 0.1 0.0 0 0 ? S Mar07 6:52 \_
[pdflush]
root 117 0.0 0.0 0 0 ? S< Mar07 2:01 \_
[kswapd0]
root 162 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[aio/0]
root 1029 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[ksuspend_usbd]
root 1031 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[khubd]
root 1073 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[ata/0]
root 1075 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[ata_aux]
root 1090 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[scsi_eh_0]
root 1092 0.0 0.0 0 0 ? S< Mar07 0:00 \_
[scsi_eh_1]
root 1919 0.0 0.0 0 0 ? S< Mar07 0:12 \_
[kjournald]
root 3272 0.0 0.0 0 0 ? S< Mar07 0:17 \_
[kjournald]
root 3273 0.0 0.0 0 0 ? S< Mar07 0:57 \_
[kjournald]
root 1 0.0 0.7 2944 1860 ? Ss Mar07 0:14 /sbin/
init
root 2069 0.0 0.2 2176 684 ? S<s Mar07 0:04 /sbin/
udevd --daemon
root 3623 0.0 0.1 1668 496 tty4 Ss+ Mar07 0:00 /sbin/
getty 38400 tty4
root 3625 0.0 0.1 1668 504 tty5 Ss+ Mar07 0:00 /sbin/
getty 38400 tty5
root 3633 0.0 0.1 1668 504 tty2 Ss+ Mar07 0:00 /sbin/
getty 38400 tty2
root 3637 0.0 0.1 1668 500 tty3 Ss+ Mar07 0:00 /sbin/
getty 38400 tty3
root 3638 0.0 0.1 1668 496 tty6 Ss+ Mar07 0:00 /sbin/
getty 38400 tty6
syslog 3676 0.0 0.2 1884 696 ? Ss Mar07 0:04 /sbin/
syslogd -u syslog
root 3694 0.0 0.2 1824 528 ? S Mar07 0:00 /bin/
dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg
klog 3696 0.0 0.7 3136 1984 ? Ss Mar07 0:01 /sbin/
klogd -P /var/run/klogd/kmsg
104 3714 0.0 0.3 2508 784 ? Ss Mar07 0:09 /bin/
dbus-daemon --system
root 3745 0.0 0.2 2052 668 ? Ss Mar07 0:25 /usr/
sbin/dovecot
root 3747 0.0 0.9 9396 2356 ? S Mar07 0:10 \_
dovecot-auth
dovecot 19357 0.0 0.6 3424 1552 ? S 11:33 0:00 \_
pop3-login
dovecot 19385 0.0 0.6 3424 1556 ? S 11:48 0:00 \_
pop3-login
dovecot 19678 0.0 0.6 3424 1556 ? S 13:33 0:00 \_
pop3-login
daemon 3771 0.0 0.1 1940 444 ? Ss Mar07 0:00 /usr/
sbin/atd
root 3796 0.0 0.3 3284 1016 ? Ss Mar07 0:02 /usr/
sbin/cron
root 3806 0.0 0.1 1668 504 tty1 Ss+ Mar07 0:00 /sbin/
getty 38400 tty1
root 3811 0.0 1.0 16200 2608 ? Ssl Mar07 0:39 /usr/
sbin/console-kit-daemon
proftpd 5754 0.0 0.5 5052 1432 ? Ss Mar07 0:10
proftpd: (accepting connections)
root 5856 0.0 0.4 5180 1052 ? Ss Mar07 0:00 /usr/
sbin/sshd
root 19681 0.1 1.1 8204 2812 ? Ss 13:35 0:00 \_
sshd: charles [priv]
charles 19688 0.0 0.6 8204 1548 ? S 13:36 0:00
\_ sshd: charles@pts/0
charles 19689 0.4 1.1 5472 2936 pts/0 Ss 13:36
0:02 \_ -bash
charles 19769 0.0 0.3 2616 976 pts/0 R+ 13:44
0:00 \_ ps auxwwf


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-10-2009, 09:26 PM
NoOp
 
Default How to keep unnecessary processes from starting

On 03/10/2009 08:21 AM, Brian McKee wrote:
> On Tue, Mar 10, 2009 at 9:12 AM, Charles Howse <chowse@charter.net> wrote:
>> Hi,
>> I have 8.10-server-i386 running in command-line only.
>> Surely some of the processes below are unnecessary.
>> What's the best way to separate the wheat from the chaff?
>
> Well, I don't know too much how to help - since your wheat might be
> our chaff :-)
> e.g. if you are not running a mail server some of that stuff is chaff
> - but if you are, it's wheat.
> It doesn't look that bad to me.
>
> ps -auxwwf is much more readable for me for that task, and shows association.
> If it's in square brackets leave it alone :-)
>
> Brian
>

$ ps -auxwwf | more
makes it easier to view/read via the terminal. Do you know of a way to
get that to pipe to a text file?

A simple pstree usually works for me:

$ pstree -pah|more

or you can pipe it to a text file to view:

$ pstree -pah > pstree.txt
$ gedit pstree.txt




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-10-2009, 11:45 PM
Derek Broughton
 
Default How to keep unnecessary processes from starting

Charles Howse wrote:

> Hi,
> I have 8.10-server-i386 running in command-line only.
> Surely some of the processes below are unnecessary.
> What's the best way to separate the wheat from the chaff?
>

As Brian says, one person's wheat is another's chaff, but as near as I can
tell, since you have pop3-login tasks under dovecot, you _are_ running a
mail server and so the only unnecessary tasks you have are at least 5 of
the 6 gettys - those are the consoles waiting for someone to login - and
possibly proftpd. Since you're accessing the server from ssh, 1 console is
probably enough (actually, one console is almost _always_ enough, but they
take so few resources). And since you're accessing the server from ssh,
you should have on-demand sftp, so if it's just you you don't really need
proftpd, and if it's others you might prefer them to use sftp anyway (more
secure).
--
derek


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-11-2009, 01:31 AM
Charlie Kravetz
 
Default How to keep unnecessary processes from starting

On Tue, 10 Mar 2009 15:26:48 -0700
NoOp <glgxg@sbcglobal.net> wrote:

> On 03/10/2009 08:21 AM, Brian McKee wrote:
> > On Tue, Mar 10, 2009 at 9:12 AM, Charles Howse <chowse@charter.net>
> > wrote:
> >> Hi,
> >> I have 8.10-server-i386 running in command-line only.
> >> Surely some of the processes below are unnecessary.
> >> What's the best way to separate the wheat from the chaff?
> >
> > Well, I don't know too much how to help - since your wheat might be
> > our chaff :-)
> > e.g. if you are not running a mail server some of that stuff is
> > chaff
> > - but if you are, it's wheat.
> > It doesn't look that bad to me.
> >
> > ps -auxwwf is much more readable for me for that task, and shows
> > association. If it's in square brackets leave it alone :-)
> >
> > Brian
> >
>
> $ ps -auxwwf | more
> makes it easier to view/read via the terminal. Do you know of a way to
> get that to pipe to a text file?
>

What I use when working with developers and filing bugs:
$ ps -auxwwf > ps.txt

> A simple pstree usually works for me:
>
> $ pstree -pah|more
>
> or you can pipe it to a text file to view:
>
> $ pstree -pah > pstree.txt
> $ gedit pstree.txt
>
>
>
>


--
Charlie Kravetz
Linux Registered User Number 425914 [http://counter.li.org/]
Never let anyone steal your DREAM. [http://keepingdreams.com]

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-11-2009, 02:07 AM
Charles Howse
 
Default How to keep unnecessary processes from starting

On Mar 10, 2009, at 9:31 PM, Charlie Kravetz wrote:

>
> What I use when working with developers and filing bugs:
> $ ps -auxwwf > ps.txt

I learned earlier today that ps doesn't want the dash before the
options. It will work, but complains of bad syntax:
$ ps auxwwf > ps.txt

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-11-2009, 12:06 PM
Charles Howse
 
Default How to keep unnecessary processes from starting

On Mar 10, 2009, at 7:45 PM, Derek Broughton wrote:

> Charles Howse wrote:
>
>> Hi,
>> I have 8.10-server-i386 running in command-line only.
>> Surely some of the processes below are unnecessary.
>> What's the best way to separate the wheat from the chaff?
>>
>
> As Brian says, one person's wheat is another's chaff, but as near as
> I can
> tell, since you have pop3-login tasks under dovecot, you _are_
> running a
> mail server and so the only unnecessary tasks you have are at least
> 5 of
> the 6 gettys - those are the consoles waiting for someone to login -
> and
> possibly proftpd. Since you're accessing the server from ssh, 1
> console is
> probably enough (actually, one console is almost _always_ enough,
> but they
> take so few resources). And since you're accessing the server from
> ssh,
> you should have on-demand sftp, so if it's just you you don't really
> need
> proftpd, and if it's others you might prefer them to use sftp anyway
> (more
> secure).

Thanks for the input Derek.

I had completely forgotten about sftp! That's a great tip. I can
uninstall ProFtpd now.

Now, here's something I may have gone about all wrong. I use FreeBSD
on my webserver, which comes with /usr/bin/mail by default. I use
that and sendmail (installed by default) to send mail in scripts, and
retrieve it from my Mac using a lightweight pop3 app called qpopper.
I don't do *any* mail outside the box.
Since 'mail' isn't installed by default, I installed mailutils, which
installed Exim4. I read a little about Exim, couldn't find a howto to
set it up as a pop server, so I installed Dovecot as a pop server
(crazy hard for me).
IIRC, sendmail wasn't difficult to set up to send local mail in
FreeBSD, so I wonder if I could use sendmail in Intrepid, and
uninstall Dovecot and Exim?
Does that make sense?


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-11-2009, 12:47 PM
Rashkae
 
Default How to keep unnecessary processes from starting

NoOp wrote:

>
> $ ps -auxwwf | more
> makes it easier to view/read via the terminal. Do you know of a way to
> get that to pipe to a text file?
>

I'm sorry, this confuses me. It looks like your asking how to re-direct
to a file, but my brain grinds to a halt because:

1. who you are.

2. you answer the question yourself next paragraph down.




> A simple pstree usually works for me:
>
> $ pstree -pah|more
>
> or you can pipe it to a text file to view:
>
> $ pstree -pah > pstree.txt
> $ gedit pstree.txt
>
>
>
>


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 08:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org