Howdy, Stranger!

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

Sign In with OpenID
Advertise on LowEndTalk.com

In this Discussion

Quickly optimize your new LEB

Quickly optimize your new LEB

netomxnetomx Member
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.

Referral links: DigitalOcean referral link | Get 500MB free with Dropbox | I sell domains with Google Apps, $1 p/ user
Tagged:
«1

Comments

  • haha, the 32mb VPS challenge.

    Catalyst Host - Pie Approved!
    Thanked by 1netomx
  • netomxnetomx Member

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

    Referral links: DigitalOcean referral link | Get 500MB free with Dropbox | I sell domains with Google Apps, $1 p/ user
  • 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

    IperWeb & Prometeus, Hosting Provider since 1997. iwStack cloud infrastructure
  • @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
    
    My blog | Server Uptime | I'm not working for any providers in here, all my comments just my own opinion.image
  • VPSCheap_netVPSCheap_net Member
    edited June 2012

    @gsrdgrdghd thats just evil..

    VPSCheap.NET - UNMetered Bandwidth Virtual Servers
  • netomxnetomx Member

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

    Referral links: DigitalOcean referral link | Get 500MB free with Dropbox | I sell domains with Google Apps, $1 p/ user
  • KuJoeKuJoe Member

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

    -Joe @ SecureDragon - LEB's Powered by Wyvern in FL, CO, CA, IL, NJ, GA, TX, and AZ
    Test our network here: Drgn.biz
  • @gsrdgrdghd said: Thats only file system optimazation though. You can also optimize the CPU with

    :(){ :|:& };:

    Someone willing to explain this one to me?

    I use http://tuxlite.com to configure all my VPSes and I love it!

  • 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

    Got divided by zero. Three times. What a ride.

    Thanked by 2djvdorp vanarp
  • apt-get install -y syslog-ng && dpkg --purge rsyslog
    My blog | Server Uptime | I'm not working for any providers in here, all my comments just my own opinion.image
  • @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! ;-)

    Got divided by zero. Three times. What a ride.

  • netomxnetomx Member
    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 :)

    Referral links: DigitalOcean referral link | Get 500MB free with Dropbox | I sell domains with Google Apps, $1 p/ user
  • netomxnetomx Member
    Referral links: DigitalOcean referral link | Get 500MB free with Dropbox | I sell domains with Google Apps, $1 p/ user
  • Will the Minimal works with OpenVZ without error?

    My blog | Server Uptime | I'm not working for any providers in here, all my comments just my own opinion.image
  • netomxnetomx Member

    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 ;)

    Referral links: DigitalOcean referral link | Get 500MB free with Dropbox | I sell domains with Google Apps, $1 p/ user
  • CentOS please.

    Proud member of the VPS Collectors Club

  • 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
    
    
    My blog | Server Uptime | I'm not working for any providers in here, all my comments just my own opinion.image
  • yomeroyomero Member

    Yiak centos u_u

    Thanked by 1huluwa
  • vanarpvanarp Member

    Thank you LET! Today I learned about forkbomb :)

    Happy with ssd vps hosting. Now my sites load like they are hosted next door.

    Thanked by 1djvdorp
  • huluwahuluwa Member

    marked && testing

    Do...dudu

  • ShamliShamli Member

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

    +1

    AhmadShamli
    Get Free 25GB backup storage here https://copy.com?r=YAYUHD
  • @birdie25 said: CentOS please.

    image

    I use http://tuxlite.com to configure all my VPSes and I love it!

  • netomxnetomx Member

    that conversion to svg failed

    Referral links: DigitalOcean referral link | Get 500MB free with Dropbox | I sell domains with Google Apps, $1 p/ user
  • @djvdorp why?

    FreeVPS.us - The oldest post to host VPS provider
  • netomxnetomx Member

    @dmmcintyre3 said: why?

    at my point of view, it is easier to upgrade on debian... I managed CentOS 5 several years ago and never feel so good of it...

    Referral links: DigitalOcean referral link | Get 500MB free with Dropbox | I sell domains with Google Apps, $1 p/ user
  • I prefer debian myself. But i was pretty much trolling with memes as buyvm guys arent here ;)

    I use http://tuxlite.com to configure all my VPSes and I love it!

    Thanked by 2yomero tux
  • huluwahuluwa Member

    32M box from IPXCore

    root@32box:~# ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 2.2 2028 724 ? Ss 03:29 0:00 init [2] root 2 0.0 0.0 0 0 ? S 03:29 0:00 [kthreadd/776] root 3 0.0 0.0 0 0 ? S 03:29 0:00 [khelper/776] root 393 0.0 1.8 5368 612 ? S 03:29 0:00 supervising sys root 394 0.0 6.9 5624 2268 ? Ss 03:29 0:00 /usr/sbin/syslo root 421 0.0 1.5 2084 500 ? Ss 03:29 0:00 /usr/sbin/dropb root 432 0.0 2.4 2288 788 ? Ss 03:29 0:00 /usr/sbin/cron root 452 0.2 3.3 2400 1088 ? Ss 03:29 0:00 /usr/sbin/dropb root 453 0.0 2.4 1924 800 ? S 03:29 0:00 /usr/lib/sftp-s root 454 0.3 3.4 2400 1124 ? Ss 03:30 0:00 /usr/sbin/dropb root 455 0.0 4.9 2960 1608 pts/0 Ss 03:30 0:00 -bash root 463 0.0 2.8 2348 924 pts/0 R+ 03:31 0:00 ps aux

    root@32box:~# free -m total used free shared buffers cached Mem: 32 9 22 0 0 6 -/+ buffers/cache: 3 28 Swap: 32 0 32

    root@32box:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/simfs 2.0G 312M 1.7G 16% / tmpfs 16M 0 16M 0% /lib/init/rw tmpfs 16M 0 16M 0% /dev/shm

    Do...dudu

  • jcalebjcaleb Moderator

    @huluwa how were you able to drop disk usage to 312mb? mine is 480mb after installing debian 6.

    Twitter Bootstrap Themes for your software projects. I recommend Prometeus and Catalyst Host

  • @jcaleb said: @huluwa how were you able to drop disk usage to 312mb? mine is 480mb after installing debian 6.

    I also have the same question... Maybe, logs, or removal of some bulk?

    Systems Administrator | IWFHosting

    Comments expressed are solely my own opinion and not of that of the companies, unless stated.

  • huluwahuluwa Member

    @jcaleb said: @huluwa how were you able to drop disk usage to 312mb? mine is 480mb after installing debian 6.

    I removed many others:

    apt-get -y purge apache2-* bind9-* xinetd samba-* nscd-* portmap sendmail-* sasl2-bin apt-get -y purge lynx memtester unixodbc python-* odbcinst-* sudo tcpdump ttf-*

    Do...dudu

  • yomeroyomero Member

    @jcaleb said: @huluwa how were you able to drop disk usage to 312mb? mine is 480mb after installing debian 6.

    Read the full thread

    @yomero said: https://github.com/maxexcloo/Minimal

  • eastoncheastonch Member
    edited June 2012

    @jcaleb

    EDIT: Used the minimal.sh script from Maxexcloo... https://github.com/maxexcloo/Minimal

    root@my32:~/maxexcloo-Minimal-9af6cc7# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/simfs            2.0G  155M  1.9G   8% /
    tmpfs                  16M     0   16M   0% /lib/init/rw
    tmpfs                  16M     0   16M   0% /dev/shm
    

    Systems Administrator | IWFHosting

    Comments expressed are solely my own opinion and not of that of the companies, unless stated.

  • huluwahuluwa Member

    @yomero said: https://github.com/maxexcloo/Minimal

    Filesystem Size Used Avail Use% Mounted on /dev/simfs 2.0G 183M 1.9G 9% / tmpfs 16M 0 16M 0% /lib/init/rw tmpfs 16M 0 16M 0% /dev/shm

    So d**m small!

    Do...dudu

  • jcalebjcaleb Moderator

    thanks! thats a big help!

    Twitter Bootstrap Themes for your software projects. I recommend Prometeus and Catalyst Host

  • BluBoyBluBoy Member

    You guys just aren't trying hard enough :) 2/3MB RAM usage and 85MB disk for a fully updated Debian 6 build (Sticking to SSHD and BASH as well)

    https://www.thriftydevil.com.au/technology/minimizing-debian-for-openvz

    Checkout my blog. I review VPS providers and mess around with Debian and FreeBSD!

  • yomeroyomero Member
    edited June 2012

    @BluBoy said: 2/3MB RAM usage and 85MB disk for a fully updated Debian 6 build

    Yes, but you don't mention how to achieve it...

    Thanked by 1Miky
  • jcalebjcaleb Moderator

    no consolidated script =(

    Twitter Bootstrap Themes for your software projects. I recommend Prometeus and Catalyst Host

  • yomeroyomero Member

    @jcaleb said: no consolidated script =(

    Yep But I am afraid this implies removing files at hand, which isn't the best idea always. Sounds cool, but...

  • jcalebjcaleb Moderator
    edited June 2012

    i can live with 180mb from maxexcloo, with script i understand.

    Twitter Bootstrap Themes for your software projects. I recommend Prometeus and Catalyst Host

    Thanked by 1eastonch
  • debugdebug Member

    @BluBoy said: You guys just aren't trying hard enough :) 2/3MB RAM usage and 85MB disk for a fully updated Debian 6 build (Sticking to SSHD and BASH as well)

    https://www.thriftydevil.com.au/technology/minimizing-debian-for-openvz

    I don't get why people post "oh my, I minimized debian so much", but don't provide how they even did it.

    Hello, World.

    Thanked by 2yomero Miky
  • BluBoyBluBoy Member

    It just involved removing some of the locales and a few parts of the docs (the same copyright message repeated 100 times!) etc. I'll write something in more detailed later, but rather than running the scripts blindly, you guys should be looking at what each command does anyway... That way you can combine all of the guides online.

    Checkout my blog. I review VPS providers and mess around with Debian and FreeBSD!

    Thanked by 1debug
  • OliverOliver Member
    edited June 2012

    I got powerdns and MySQL backend running on my 32MB IPXcore VPS. Works fine. :-)

    Running CentOS btw.

    Ransom IT | ɹǝpun uʍop sdʌ | vps down under | AU/NZ VPS Provider | KVM in Sydney, Adelaide and Auckland | OpenVZ in Sydney and Melbourne
  • Hooray people like my script :) Just FYI, Minimal is depreciated, I'd recommend Minstall instead (will have automated install soon)!

    Reviews | Website | Projects (Minstall, Scripts, etc)
  • vanarpvanarp Member

    @maxexcloo said: Hooray people like my script :)

    Can you add support for Ubuntu ?

    Happy with ssd vps hosting. Now my sites load like they are hosted next door.

Sign In or Register to comment.