logs archiveIRC Archive / Freenode / #centos / 2007 / February / 1 / 1
ed_mann
bish0p: would me giving the answer be spoon feeding?
alleycat
usually "grep bash$ /etc/passwd" will filter the valid accounts
+ some more which should be removed
bleve
half of which should be removed, usually.
ed_mann
for i in `cat /etc/passwd |grep /home |cut -f 1 -d :`; do mkdir /home/$i chown $i.$i /home/$i; done;
alleycat
on my machine there is only one account in addition to root and valid users
CaT_MaN
hmm
cat /etc/passwd |cut -d ':' -f
alleycat
netdump
CaT_MaN
im here :)
this list is usefull
alleycat
no need to cat before cut
         

bleve
ed_man: mkdir isn't enough.
ed_mann: you need contents of /etc/skel
CaT_MaN
ed_mann and bish0p: thnks
bish0p
ed_mann: you probably should cp -r /etc/skel not mkdir
ed_mann
oh ya. my bad
ya... your right
bish0p
yeah
ed_mann
(Action) hangs head in shame
CaT_MaN
bleve: ive backup etc/skel but i dont have any usefull files
bleve
etc/skel has necessary .bashrc etc files.
bish0p
if you dont' mind. what did you do to cause the lost /home but you still had /etc ?
CaT_MaN
pwd
/bu1/backups/rsync-devel/etc/skel
noting there
bish0p
do an ls -a
should be things like .bash_profile and stuff
CaT_MaN
.bash_logout and .bash_profile .bashrc .emacs .zshrc
im i need this?
ed_mann
CaT_MaN: yes
bish0p
yes, otherwise their shells will be kinda lame (no sexy prompt, missing path stuff)
CaT_MaN
i have only mail users
:)
system no-shell users
alleycat
CaT_MaN: then no need for the content of /etc/skel...
but why not going fully virtual and use mysql stored users?
bleve
Cat_man: I'd suggest chsh -s /sbin/nologin user for all mail users.
CaT_MaN
for bla in `cat userlist` ;do chown \"$bla\":\"$bla\" /home/$bla ; done
damn...
chown: `"info.mp3.bg":"info.mp3.bg"': invalid user
i have some errors :)
ive did
chown $bla: /home/$bla
:-)))
hmmm
karrotx
too many lines
fbset
hi
         

karrotx
hello
fbset
how do i upgrade from mysql 4.1.19 to 4.1.22 on CentOs 4 ?
CaT_MaN
sry.
ed_mann
fbset: take db offline, do a backup, yum update mysql, bring back on line
fbset
ed_mann, but how yum update mysql will know to upgrade to ver 4.1.22 ?
ed_mann
fbset: download mysql 4.1.22 and do yum localinstall mysql... make sure you have all the other packages that depend on it.
karrotx
fbset: i think the current stable release for mysql is 4.1.20 in centos4
ed_mann
that is one way to insure that it will work.
fbset: remember if you use a package that is not part of CentOS you are going to be on the hook to insure that it gets updated whenever there are issues.
and that it may break other things.
fbset
oh ok
thanks for the help
instaling...
Aikideshi
What is the best way to copy/move an entire installation to a new server? My current server has a software RAID array, but both drives are showing signs of failure. I would simply like to move to the new server, with the same configuration; but I don't know how to do things like lock the file systems and which directories not to copy.
karrotx
which mail server does centos prefer to use?
ed_mann
i think it comes with sendmail... but i know i prefer postfix
sendmail as default, unless you check postfix during install.
karrotx
i prefer postfix too, i was wondering if it's geared toward another
alleycat
karrotx: postfix, exim and sendmail are included
ed_mann
not that i am aware of
alleycat
by default sendmail is selected
karrotx
do you run your postfix with mysql?
ed_mann
no postregsql
alleycat
postfix in centos does not have mysql support by default
ed_mann
s/postregsql/postgresql
alleycat
the one with mysql is in centosplus I believe
s/believe/think/
karrotx
alleycat: will it break dependencies?
alleycat
karrotx: no
karrotx
i could always just compile it with mysql support
i'm just wondering because i'm trying to make this as easy as possible
alleycat
but, as a sidenote, I prefer to compile my own, starting from postfix.wl0.org
http://ftp.wl0.org/official/2.3/SRPMS/
riker_mini
hi
ed_mann
riker_mini: hey
riker_mini
I install CentOS 4.4 x86_64 but I discovered that multiple packages are getting installed - x86_64 and i386 also
karrotx
alleycat: thanks
riker_mini
why is that?
I burned the x86_64 dvd image
and 4.3 did tha same btw
alleycat
riker_mini: it depends on what you have selected, I think. the x86_64 contains i386 packages too
riker_mini
I don't get it. :)
alleycat
when I wanted a pure x86_64, I run a variant of rpm -qa --qf{%arch} and removed non-arch and non-x86_64
riker_mini: the x86_64 dvd contains the i386 packages, too
not just the x86_64
riker_mini
ok, that I understand
but why do they get installed
ed_mann
(Action) is overjoyed that the boss cannot do image work.
alleycat
I do not know why, the installer sometimes decides to pull in i386
theoretically, if you select a i386 package (maybe non-available as x86_64)
it will pull in all its dependencies
riker_mini
and btw not all i386 packages get installed, just let's say 70% of the packages
karrotx
does anyone have a howto on building packages from source with centos?
alleycat
karrotx: the proper way ?
karrotx
yes?
alleycat
karrotx: follow the fedora extras guidelines, http://fedoraproject.org/wiki/Packaging/Guidelines
riker_mini
ok, which brings us to the question: are there packages in centos which only have i386 variants and do not exit in x86_64?!
that doesn't sound logical
alleycat
riker_mini: in the wild there are programs which do not build or do not run on x86_64, so an excludearch is needed when bulding them
karrotx
alleycat: sorry, i meant building .src.rpms
alleycat
however I do not know if centos includes such programs
karrotx: so did I
riker_mini
karrotx: rpmbuild --rebuild
alleycat
karrotx: or you mean building binary rpm from src.rpm ?
in which case riker_mini has provided the answer
karrotx
alleycat: building binary rpm from src.rpm
riker_mini
alleycat: in that case, the wild sux :)
alleycat
riker_mini: generally speaking, the packagers for rhel/fedora/centos try to avoid such situations
ed_mann
(Action) is going home
alleycat
and as I said before, I do not know if such programs exist in centos 4
you'll have to ask again later
riker_mini
alleycat: that's what I tought by default and that's why I would find it strange
but again, if there are no such packages in centos, then we killed the only logical answer for the i386 packages sofar :)
anyway, thx for the co-thinking :)
karrotx
riker_mini: this puts the new rpm in /usr/src/redhat/RPMS/{arch}/?
alleycat
karrotx: yes
if you run it as root
which you should NOT do
karrotx
sounds like a dumb question but is serious, why?
alleycat
because permission might not be correctly set, because a script might do something you do want ...
karrotx
ah
alleycat
sorry, you do NOT want
jsoftw
What do you do when yum just takes ages to do anything.
Reading repository metadata in from local files
Yeah well, that was ages ago.
BlackHand
jsoftw: go for some coffee ^_^
jsoftw
Yum always seems to take way too long.
riker_mini
jsoftw: upgrade ur telco line :)
alleycat
jsoftw: take a nap while yum works
jsoftw
riker_mini: thats nice, its fine though.
Its just yum that is a sloth
alleycat
karrotx: there is a howto on dag's site on setting up a rpm structure for an ordinary user
riker_mini
jsoftw: or maybe ctrl-c so it jumps to next mirror which might be faster
karrotx
alleycat: dag?
riker_mini
dag.wieers.com
alleycat
http://dag.wieers.com/howto/bits/rpm-build-user.php
I would be uch happier if firefox would not die when launching the acrobat plugin
karrotx
thanks!
riker_mini
alleycat: to be honest I don't even know why there is no file conflict when both i386 an x86_64 versions of a package are installed
alleycat
riker_mini: because they are installed in different paths
riker_mini
I'm just trying to check, but I don't see how files in /bin, /usb/bin, etc could be in different paths
fbset
what are the differences between mysql-4.1.21-1.art.art.src.rpm and mysql-4.1.21-2.art.src.rpm ?
guess none
« prev 1 2 3 4 5 6 7 next »