A bit of help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers A bit of help
# 1  
Old 09-16-2008
A bit of help

Hi,guys.
Maybe you could help me a bit to become more flexible with unix...
I've installed on server CentOS,working on php script,that would send me emails and receive to my server and maybe a bit more later on.
I know how to copy,read,make files etc..i've learned file system a bit...i've even installed apache and php with tutorialSmilie
So i got to know a bit unix os,but the things that i miss is...
Like for example..on Windows,i've got Control Panel,to check what's on system installed,as i understood same is on etc directory in unix..is that correct?
Also what i don't understand is installment of new software,not compiling/making it etc(that i tryeid and everything is fine),but exactly installment,like for example:
Quote:
yum install courier-base courier-authdaemon courier-authlib-mysql courier-imap courier-imap-ssl courier-ssl
Now how the hell can i come up with something like that?Smilie I should just sit around and there's the thought:"oh,right!i should install courier!here's how it's installed! yum ... " ??Smilie I know i can download source or rpm,tar,gz etc,but i never seen on downloads such lines etc,how do ppl come up with this thing,how to understand it?
Another thing is like...I've tryied to install Postfix,finally i figured it out that i already have itSmilieSmilie So now comes the tricky part...configurationSmilie
Seems nothing too kinky,there's a lot of tutorials,there's a lot of documentation,but the thing is that when i open the document,i see a lot of stuff i don't even understand,i see it for the first time...Smilie Even reading the description doesn't make it clear enough...do i have to type in something?Or it isn't necessery and i can leave it blank?Like this:
Quote:
# not sure of the difference of the next two
# but they are needed for local aliasing
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
# this specifies where the virtual mailbox folders will be located
virtual_mailbox_base = /var/spool/mail/virtual
# this is for the mailbox location for each user
virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf
# and their user id
virtual_uid_maps = mysql:/etc/postfix/mysql_uid.c
alias_maps?db?virtual_mail?the mail that comes in or something else?their user id,login or what is it?it's just random config text,but there are far more complex,i think you know what i mean,but the question is...is there a way to understand it,besides finding some person who could sit near you and explain everything step by step?Because i tried Google and it gives kazillion links which are rarely relevant or i even don't undestand what the connection is...Smilie
So any advice on how to get more flexible with installment of new soft and configuration of it,on how to better understand what are you configing and what you don't need to change at all?
# 2  
Old 09-17-2008
Quote:
Originally Posted by Belhor
Hi,guys.
Maybe you could help me a bit to become more flexible with unix...
I've installed on server CentOS,working on php script,that would send me emails and receive to my server and maybe a bit more later on.
I know how to copy,read,make files etc..i've learned file system a bit...i've even installed apache and php with tutorialSmilie
linuzx is not exactly unix. i wont say what i think is better, because im getting impaled here :P, but be aware that in linux, you have some apps that are not present in more arcane unix (like stat, date behaves weird, ect)
for now, try to get comfortable with gnu
Quote:
Originally Posted by Belhor
So i got to know a bit unix os,but the things that i miss is...
Like for example..on Windows,i've got Control Panel,to check what's on system installed,as i understood same is on etc directory in unix..is that correct?
that is not correct.
you can read this nifty link (directly linked to the etc part)
/etc
here is the full version
Linux Filesystem Hierarchy

again, beware that older unixes might be different
Quote:
Originally Posted by Belhor
Also what i don't understand is installment of new software,not compiling/making it etc(that i tryeid and everything is fine),but exactly installment,like for example:
Code:
yum install courier-base courier-authdaemon courier-authlib-mysql courier-imap courier-imap-ssl courier-ssl

Now how the hell can i come up with something like that?Smilie I should just sit around and there's the thought:"oh,right!i should install courier!here's how it's installed! yum ... " ??Smilie I know i can download source or rpm,tar,gz etc,but i never seen on downloads such lines etc,how do ppl come up with this thing,how to understand it?
welcome to the wonders of automated package management Smilie
this is a linux feature
yum will read the config files in /etc/ymu.conf, and /etc/yum.repos.d/ and collect a series of urls (might be ftp, or http).
from those internet sites (calles repositories) yum will download a list of available apps (simple text file that has the name and version and some other stuff).
in your example, you say "yum install courier-base"
yum will read the list of available apps.
if the text you gave it, is the exact name of an package, then it will simple dowload the rpm (red hat package) from the said repository, unpack it, execute any posible pre-install script, copy all the files where they belong, and run any post-install script. simple as that.
if you want to install a package that needs other packages to be installed previously, yum will realize that, check if they need to be installed (you might have them already), and add them to the download queue

and how in earth someone came up with the name ? well, simple
Code:
yum search <some text that might be name of the app, or description>

Code:
yum list <name of the app, you can use wildcards like *fire*>

i suggest you read the manpage of yum, it has more neat options like, "yum provides libstdc++.6.so" and it will tell you which package has that file

Quote:
Originally Posted by Belhor
Another thing is like...I've tryied to install Postfix,finally i figured it out that i already have itSmilieSmilie So now comes the tricky part...configurationSmilie
Seems nothing too kinky,there's a lot of tutorials,there's a lot of documentation,but the thing is that when i open the document,i see a lot of stuff i don't even understand,i see it for the first time...Smilie Even reading the description doesn't make it clear enough...do i have to type in something?Or it isn't necessery and i can leave it blank?Like this:

alias_maps?db?virtual_mail?the mail that comes in or something else?their user id,login or what is it?it's just random config text,but there are far more complex,i think you know what i mean,but the question is...is there a way to understand it,besides finding some person who could sit near you and explain everything step by step?Because i tried Google and it gives kazillion links which are rarely relevant or i even don't undestand what the connection is...Smilie
part of the automated package management. the packages comes with the app and its configs.
some times, the default works fine (for example for example sshd)
some times it works fine, but is most certain that you will need to change it (like apache, who comes with a etst page configd, and you need to add your own, but you dont need to config EVERY thing, like ports or log files)
or some tiimes, it comes configeured to suit system nneds, which are most certanly not waht you want, for example, postfix. in that case, it comes preconfigured to suit the internal mailing. some programs like logwatch, use them to mail the root user some status files of hd usage, or similar

this is to much specific for me, i never touched postfix, but if i where you i would read the config file, and when i found an option i dont know, i would read in this order
man page
oficial faq or documentation
google the exact config option, along with postfix config
sorry i cant point you to a good document, never had the oportunity to work it myself
Quote:
Originally Posted by Belhor
So any advice on how to get more flexible with installment of new soft and configuration of it,on how to better understand what are you configing and what you don't need to change at all?
the best way is to simple try and break it Smilie
and learn from the mistakes, and the hard work spend in fixing it
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Which version of Windows Vista to install with a product key? 32-bit or 64-bit?

Hello everyone. I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies

2. Shell Programming and Scripting

How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H

Hi, Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result. perl interpreter info, perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies

3. Red Hat

boot the 32 bit kernel on a 64 bit PPC Linux machine?

Hi all, I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html I've done... (0 Replies)
Discussion started by: philrau
0 Replies

4. Programming

copying or concatinating string from 1st bit, leaving 0th bit

Hello, If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit. How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies
Login or Register to Ask a Question