Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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.

Quickly optimize your new LEB

netomxnetomx Moderator, Veteran
edited June 2012 in General

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.

«13

Comments

  • haha, the 32mb VPS challenge.

    Thanked by 1netomx
  • netomxnetomx Moderator, Veteran

    And if you remove the cron, maybe you can get something better... and syslog, I dont know if you need syslog on these machines.

  • bretonbreton Member
    rm / -rf --no-preserve-root
    

    Optimizy!

    Thanked by 1djvdorp
  • @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

  • @breton said: Optimizy!

    Thats only file system optimazation though. You can also optimize the CPU with

    :(){ :|:& };:
    Thanked by 1MrDOS
  • 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
    
  • VPSCheap_netVPSCheap_net Member
    edited June 2012

    @gsrdgrdghd thats just evil..

  • netomxnetomx Moderator, Veteran

    I used Debian 6 32bit. @prometeus i know :( hahaha

  • KuJoeKuJoe Member, Host Rep

    @netomx said: and syslog, I dont know if you need syslog on these machines.

    apt-get install syslog-ng, much less RAM than normal syslog.

  • @gsrdgrdghd said: Thats only file system optimazation though. You can also optimize the CPU with

    :(){ :|:& };:

    Someone willing to explain this one to me?

  • AmitzAmitz Member
    edited June 2012

    @gsrdgrdghd: Since when are fork bombs considered as optimization? ;)
    @djvdorp: It's a 'fork bomb'...
    http://en.wikipedia.org/wiki/Forkbomb

    Thanked by 2djvdorp vanarp
  • apt-get install -y syslog-ng && dpkg --purge rsyslog
  • @Amitz said: @gsrdgrdghd: Since when are fork bombs considered as optimization? ;)

    Since @breton 's code removed root (i suppose) :P

  • AmitzAmitz Member

    @gsrdgrdghd: Valid point! ;-)

  • flyfly Member

    great a 2mb system that does nothing weeeeee

  • netomxnetomx Moderator, Veteran
    edited June 2012

    @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 -bash
    

    I was using 2mb with the last syslog :(

    @kbar said: great a 2mb system that does nothing weeeeee

    Well, that is just to lower the RAM - you can try not to use rsync, apache2, whatever :)

  • Will the Minimal works with OpenVZ without error?

  • netomxnetomx Moderator, Veteran

    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/shm
    

    It is like my work, BUT, look the disk space =0 !

    I should install localepurge then, to preserve space with new packages ;)

  • CentOS please.

  • edited June 2012
    ~# 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/shm
    
    
  • yomeroyomero Member

    Yiak centos u_u

    Thanked by 1huluwa
  • vanarpvanarp Member

    Thank you LET! Today I learned about forkbomb :)

    Thanked by 1djvdorp
  • huluwahuluwa Member

    marked && testing

  • ShamliShamli Member

    @vanarp said: Thank you LET! Today I learned about forkbomb :)

    +1

  • netomxnetomx Moderator, Veteran

    that conversion to svg failed

Sign In or Register to comment.