New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Quickly optimize your new LEB
Will remove some unused services:
apt-get update
apt-get -y upgrade
apt-get -y install nano localepurge dropbear
service saslauthd stop
service sendmail stop
service bind stop
service apache2 stop
service xinetd stop
service samba stop
service bind9 stop
update-rc.d saslauthd remove
update-rc.d sendmail remove
update-rc.d bind remove
update-rc.d apache2 remove
update-rc.d xinetd remove
update-rc.d samba remove
update-rc.d bind9 remove
update-rc.d sshd remove
service sshd stop
update-rc.d ssh remove
service ssh stop
Edit: nano /etc/default/dropbear
change NO_START=0 to 1
service dropbear start
REBOOT:
free -m
total used free shared buffers cached
Mem: 32 28 3 0 0 26
-/+ buffers/cache: 2 29
Swap: 32 0 31
You're welcome.

Comments
haha, the 32mb VPS challenge.
And if you remove the cron, maybe you can get something better... and syslog, I dont know if you need syslog on these machines.
Optimizy!
@netomx I still remember when you forced me to manually install centos on my debian test machine 4-5 months ago and now you are all peace and love with debian :-)
And give suggestion on how to run it in 32M! You're a man now!
:P
Thats only file system optimazation though. You can also optimize the CPU with
If we use Debian 6 32 bit :
# free -m total used free shared buffers cached Mem: 32 11 20 0 0 7 -/+ buffers/cache: 4 27 Swap: 32 0 32@gsrdgrdghd thats just evil..
I used Debian 6 32bit. @prometeus i know
hahaha
apt-get install syslog-ng, much less RAM than normal syslog.
Someone willing to explain this one to me?
@gsrdgrdghd: Since when are fork bombs considered as optimization?
@djvdorp: It's a 'fork bomb'...
http://en.wikipedia.org/wiki/Forkbomb
Since @breton 's code removed root (i suppose) :P
@gsrdgrdghd: Valid point! ;-)
great a 2mb system that does nothing weeeeee
@eranwanArifNugroho
root@backupz:~# free -m total used free shared buffers cached Mem: 32 9 22 0 0 6 -/+ buffers/cache: 3 28 Swap: 32 0 32 root@backupz:~# ps ax PID TTY STAT TIME COMMAND 1 ? Ss 0:00 init [2] 2 ? S 0:00 [kthreadd/719] 3 ? S 0:00 [khelper/719] 432 ? S 0:00 supervising syslog-ng 433 ? Ss 0:00 /usr/sbin/syslog-ng -p /var/run/syslog-ng.pid 465 ? Ss 0:00 /usr/sbin/dropbear -d /etc/dropbear/dropbear_dss_host 480 ? Ss 0:00 /usr/sbin/cron 502 ? Rs 0:00 /usr/sbin/dropbear -d /etc/dropbear/dropbear_dss_host 503 pts/0 Ss 0:00 -bashI was using 2mb with the last syslog
Well, that is just to lower the RAM - you can try not to use rsync, apache2, whatever
https://github.com/maxexcloo/Minimal
I hate you
Will the Minimal works with OpenVZ without error?
Yeap
root@backupz:~# ps ax PID TTY STAT TIME COMMAND 1 ? Ss 0:00 init [2] 2 ? S 0:00 [kthreadd/719] 3 ? S 0:00 [khelper/719] 329 ? S 0:00 /usr/sbin/syslogd --no-forward 349 ? Ss 0:00 /usr/sbin/dropbear -d /etc/dropbear/dropbear_dss_host 353 ? Ss 0:00 /usr/sbin/cron 382 ? Ss 0:00 /usr/sbin/dropbear -d /etc/dropbear/dropbear_dss_host 383 pts/0 Ss 0:00 -bash 389 pts/0 R+ 0:00 ps ax root@backupz:~# free -m total used free shared buffers cached Mem: 32 6 25 0 0 3 -/+ buffers/cache: 2 29 Swap: 32 0 32 root@backupz:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/simfs 2.0G 151M 1.9G 8% / tmpfs 16M 0 16M 0% /lib/init/rw tmpfs 16M 0 16M 0% /dev/shmIt is like my work, BUT, look the disk space =0 !
I should install localepurge then, to preserve space with new packages
4 hours late
CentOS please.
~# top top - 03:55:52 up 4:02, 1 user, load average: 0.06, 0.03, 0.00 Tasks: 14 total, 1 running, 13 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 32768k total, 19140k used, 13628k free, 0k buffers Swap: 32768k total, 740k used, 32028k free, 9240k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 588 root 20 0 7144 4936 1276 S 0 15.1 0:00.44 munin-node 21440 root 20 0 8544 3008 2456 S 0 9.2 0:00.07 sshd 493 root 20 0 4820 2036 1524 S 0 6.2 0:07.66 openvpn 21443 root 20 0 2972 1616 1284 S 0 4.9 0:00.00 bash 489 root 20 0 5016 1104 748 S 0 3.4 0:00.21 openvpn 21447 root 20 0 2328 1084 892 R 0 3.3 0:00.00 top 436 root 20 0 5624 996 824 S 0 3.0 0:00.30 syslog-ng 20257 root 20 0 5488 956 568 S 0 2.9 0:00.00 sshd 21442 root 20 0 2816 796 660 S 0 2.4 0:00.00 sftp-server 477 root 20 0 2288 300 204 S 0 0.9 0:00.03 cron 1 root 20 0 2028 284 228 S 0 0.9 0:00.10 init 435 root 20 0 5368 44 40 S 0 0.1 0:00.00 syslog-ng 2 root 20 0 0 0 0 S 0 0.0 0:00.00 kthreadd/712 3 root 20 0 0 0 0 S 0 0.0 0:00.00 khelper/712 ~# free -m total used free shared buffers cached Mem: 32 18 13 0 0 9 -/+ buffers/cache: 9 22 Swap: 32 0 31 ~# df -h Filesystem Size Used Avail Use% Mounted on /dev/simfs 2.0G 562M 1.5G 28% / tmpfs 16M 0 16M 0% /lib/init/rw tmpfs 16M 0 16M 0% /dev/shmYiak centos u_u
Thank you LET! Today I learned about forkbomb
marked && testing
+1
that conversion to svg failed
@djvdorp why?