Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


How to setup your Linode with Red Hat Linux Small

Click here to go to the original topic
Goto page Previous  1, 2, 3  Next
 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials
Author Message
adamgent



Joined: 23 Jun 2003
Posts: 261

Posted: Fri Apr 30, 2004 7:24 am    Post subject:  

Hi,

If that is through the LPM it just means you have assigned all your disk space to images.

Do a df -h via ssh and it will list what you actually have used and what you have free.

Adam
Back to top  
mikel



Joined: 30 Apr 2004
Posts: 2

Posted: Fri Apr 30, 2004 9:34 am    Post subject:  

Great, many thanks for that.

Just one other thing, is assigning all the disk space to images like this a good/bad move ? It wasn't something I explicity specified, I just followed the default. I'm a newbie at this so appreciate any advice!
Back to top  
adamgent



Joined: 23 Jun 2003
Posts: 261

Posted: Fri Apr 30, 2004 9:44 am    Post subject:  

It is up to you.

Some people like to put things like /var and /home on seperate partitions.

Usually due to security and to stop some side effects of DDoS attacks.

You can always resize your image to get some space to make some more.

Adam
Back to top  
rjp



Joined: 15 Aug 2003
Posts: 102

Posted: Fri Apr 30, 2004 11:26 am    Post subject: disk space on control panel  

The disk space on the control panel shows how much space you have allocated toward disk images (for filesystems and swap areas). To find out how much free space you have on your filesystem(s), use the df command from within your Linode.
Back to top  
bji



Joined: 27 Aug 2003
Posts: 182

Posted: Fri Apr 30, 2004 1:45 pm    Post subject:  

mikel wrote: This thread has been very helpful, thanks. I've just got a new Linode 128 account with Red Hat Linux 9 Small and followed these steps exactly. It seemed to all worked fine, however now my account is showing no free disk space at all.

Total: 6144 Megabytes
Used: 6144 Megabytes
Free: 0 Megabytes

Any ideas what's gone wrong, or how to fix it ? Thanks.

Sorry all, didn't realize that I was just rehashing what was already written by other posters, I didn't realize that this was a multi-page topic and missed the responses to the original poster before providing mine.

The account page lists how much free space you have that is not used by any of your virtual disks. You *want* to have 0 megabytes free because you want it all to be in a virtual disk, and thus actually available to your running Linode.

Mine also lists 0 megabytes free because I've used it all for my root filesystem. Which doesn't mean that my root filesystem is full - if I log into my Linode directly and check the disk usage, I'm at about 74%.

If you ever upgrade to more disk space, you will see this space appear as free space in your Linode account page, until you assign it to a virtual disk, at which point it will be available to your running Linode process, and will once again show up as 0 megabytes free on your Linode account page.

Hope I've explained this in a way that is clearer rather than more confusing.[/b]
Back to top  
bji



Joined: 27 Aug 2003
Posts: 182

Posted: Fri Apr 30, 2004 1:48 pm    Post subject:  

mikel wrote: Great, many thanks for that.

Just one other thing, is assigning all the disk space to images like this a good/bad move ? It wasn't something I explicity specified, I just followed the default. I'm a newbie at this so appreciate any advice!

I put all of my disk space into one partition, my root partition. I've been running my own Linux systems for almost 10 years, and have done some for employers as well, and started out using multiple partitions, but found that they never actually realized any of the theoretical benefits. So I've switched to using just one partitition as it's easier to deal with and the situations in which multiple partitions are useful turn out to be so very very rare.
Back to top  
shunchu



Joined: 18 Apr 2004
Posts: 19

Posted: Tue May 04, 2004 10:09 pm    Post subject:  

Code: apt-get install PyXML autofs bind bind-utils caching-nameserver curl cyrus-sasl cyrus-sasl-md5 cyrus-sasl-plain fetchmail gettext gnupg httpd imap kbd lftp libuser libwvstreams lynx mod_auth_mysql mod_python mod_ssl mutt openldap openssh openssh-clients openssh-server passwd php php-imap php-ldap php-mysql php-odbc pine postfix proftpd pyOpenSSL pygtk2 pygtk2-libglade pyorbit python python-optik pyxf86config redhat-config-securitylevel redhat-switch-mail rhnlib rhpl rpm-python sendmail stunnel up2date usermode usermode-gtk w3m wget

NICE!! Thank you for your step-by-step tutorial.... It's people like you that keep this community alive and kicking! Thanks!

A word of advise for those who'd like to use this tutorial... BACKUP your pref. and conf files! And it's best if done from the very beginning before your server is in production becuase it WILL interrupt your services....
Back to top  
sweh



Joined: 13 Apr 2004
Posts: 223

Posted: Wed May 05, 2004 6:14 am    Post subject:  

bji wrote:
I put all of my disk space into one partition, my root partition.
...snip...
So I've switched to using just one partitition as it's easier to deal with and the situations in which multiple partitions are useful turn out to be so very very rare.
I tend to use 3 partitions: 1=root, 2=swap, 3=datadisk. datadisk is where /home, /usr/local, webroot etc all live (symlinks as required). Basically it means I can upgrade the OS on the root disk without risk of losing data. Worked well when I upgraded one of my home machines from RH7.3 to Fedora 1 a few weeks back :-)
Back to top  
PT



Joined: 15 Aug 2003
Posts: 11

Posted: Wed May 05, 2004 1:31 pm    Post subject:  

mikel wrote: This thread has been very helpful, thanks. I've just got a new Linode 128 account with Red Hat Linux 9 Small and followed these steps exactly. It seemed to all worked fine, however now my account is showing no free disk space at all.

Total: 6144 Megabytes
Used: 6144 Megabytes
Free: 0 Megabytes

Any ideas what's gone wrong, or how to fix it ? Thanks.

If you are talking about the screen in the linode webpage then it is disk space allocated not used
Back to top  
Ciaran



Joined: 13 Feb 2004
Posts: 138
Location: England, UK

Posted: Wed Jun 02, 2004 9:48 am    Post subject:  

mikel: Is that in the LPM that these figures are showing? If so, it's nothing to worry about. That simply means that all of the space available on your account is assigned to your Linode - it doesn't show how much of it is actually being used. To find that out, type df -h at a console, and it'll list all of the partitions along with how much free space, etc. they have.

[edit: Sorry! Didn't click through to the second page. :oops:]
Back to top  
jsalloum



Joined: 01 Jun 2004
Posts: 15
Location: Toronto, Canada

Posted: Wed Jun 02, 2004 8:31 pm    Post subject: Re: How to setup your Linode with Red Hat Linux Small  

CSpurrier wrote: Step Three
Update your hostname

Code:  echo yourdomainnamehere >/etc/hostname 
Code:  /bin/hostname -F /etc/hostname

Just a question -- shouldn't the hostname file have a fully qualified domain name? (i.e. host.domain.com)... If so, would you consider changing "yourdomainhere" to "host.domain.com" or something similar? I think that yourdomainhere tempts people to put only the "domain.com" part...

But that's if the hostname should have a FQDN...
j.
Back to top  
CSpurrier



Joined: 23 Feb 2004
Posts: 22
Location: Aiken,SC USA

Posted: Thu Jun 03, 2004 9:47 am    Post subject: Re: How to setup your Linode with Red Hat Linux Small  

jsalloum wrote: CSpurrier wrote: Step Three
Update your hostname

Code:  echo yourdomainnamehere >/etc/hostname 
Code:  /bin/hostname -F /etc/hostname

Just a question -- shouldn't the hostname file have a fully qualified domain name? (i.e. host.domain.com)... If so, would you consider changing "yourdomainhere" to "host.domain.com" or something similar? I think that yourdomainhere tempts people to put only the "domain.com" part...

But that's if the hostname should have a FQDN...
j.
I am not sure if it should be a FQDN from what I have found it does not need to be. If any one can prove it does need to be please let me know and I will change it.
Back to top  
Bill Clinton



Joined: 23 Nov 2003
Posts: 79

Posted: Fri Jun 04, 2004 7:53 am    Post subject:  

sweh wrote:
I tend to use 3 partitions: 1=root, 2=swap, 3=datadisk. datadisk is where /home, /usr/local, webroot etc all live (symlinks as required). Basically it means I can upgrade the OS on the root disk without risk of losing data. Worked well when I upgraded one of my home machines from RH7.3 to Fedora 1 a few weeks back :-)

IMO this is some pretty damn good advice.

Bill Clinton
Back to top  
CSpurrier



Joined: 23 Feb 2004
Posts: 22
Location: Aiken,SC USA

Posted: Sat Jul 17, 2004 9:37 pm    Post subject:  

These directions are now obsolete. I have posted them here as an alliterate way to install SSLeay. Use only if other directions do not work.
Please you the directions in the first post
Quote:


Step five
Get OpenSSl and Net_SSLeay source code

Code:  wget http://www.openssl.org/source/openssl-0.9.7d.tar.gz
Code:  wget http://www.cpan.org/modules/by-module/Net/Net_SSLeay.pm-1.25.tar.gz

Step six
Uninstall openSSL RPM
Code:  apt-get remove openssl

You will be asked if you whould like to uninstall a lot of other packages type
"Yes, do as I say!"

Step Seven
Compile and Install openssl

Code:  tar zxvf openssl-0.9.7d.tar.gz

Code:  cd openssl-0.9.7d
Code:  ./config
Code:  make
Code:  make install
Code:  cd ..

Step Eight
Compile and Install Net_SSLeay [/code]
Code:  tar zxvf Net_SSLeay.pm-1.25.tar.gz 
Code:  cd Net_SSLeay.pm-1.25
Code:  perl Makefile.PL
Code:  make install

Step Ten
Reinstall everything removed when OpenSSL was removed

Code:  apt-get install PyXML autofs bind bind-utils caching-nameserver curl cyrus-sasl cyrus-sasl-md5 cyrus-sasl-plain fetchmail gettext gnupg httpd imap kbd lftp libuser libwvstreams lynx mod_auth_mysql mod_python mod_ssl mutt openldap openssh openssh-clients openssh-server passwd php php-imap php-ldap php-mysql php-odbc pine postfix proftpd pyOpenSSL pygtk2 pygtk2-libglade pyorbit python python-optik pyxf86config redhat-config-securitylevel redhat-switch-mail rhnlib rhpl rpm-python sendmail stunnel up2date usermode usermode-gtk w3m wget
Back to top  
zaz



Joined: 17 Sep 2004
Posts: 11

Posted: Sat Sep 18, 2004 3:25 am    Post subject:  

I had to install atrpms-56-1.rh9.at.i386.rpm to get these steps to work.

Use these steps:

Code:
wget http://download.atrpms.net/production/packages/redhat-9-i386/atrpms/atrpms-56-1.rh9.at.i386.rpm
rpm -Uvh atrpms-56-1.rh9.at.i386.rpm


The error that I was getting was:

error: Failed dependencies:
atrpms-perl-module-helper is needed by perl-Net_SSLeay.pm-1.25-2.rh9.at

Easy to find the fix, figured I would post this info in case someone following the steps runs into the same error.

Anyone have a guide like this for Mandrake? :) Fedora? :roll:
Back to top  
 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials Goto page Previous  1, 2, 3  Next
Page 2 of 3