Re: [gentoo-user] Re: Web server mirror
Momesso Andrea momesso.and...@gmail.com [Wed, 8 Apr 2009 21:09:57 +] : On Wed, Apr 08, 2009 at 11:06:24PM +0300, Nikos Chantziaras wrote: [..] 2) Keeping a copy of the working site on a virtual host in the other machine allows the admin (my wife) to test new stuff, change things, add modules, without putting in danger the main site. rsync the main machine to the second machine. You can rsync specific folders. If your website is in /var/www of the first machine, you can rsync that to the /var/www of the second for example. What I ask is some advice on best practice to achieve the needed result; I suppose that all I need is to rsync the webserver directory in a virtual server on the slave machine and to dump the databases, but I'm not sure this will be enough. rsync does the mirroring, NAT does the redirection of traffic. Those are the tools used by most to achieve what you described. Ok, but what about databases? Joomla has his own and mediawiki too... Just dump it and copy it? Will it work? Maybe you can configure some kind of replication ? ß Rafał (ert16) Trójniak m...@il : ert...@gmail.com Jid : ert...@gmail.com GPG key-ID : 3F38968F 4711 E3BC B674 C841 BED8 0F8F 69D3 80CF 3F38 968F signature.asc Description: PGP signature
[gentoo-user]Unable to download Imagemagick
Hello Since last week, i'm unable to download new imagemagick sources. This is what i get from emerge : [EMAIL PROTECTED] ~ $ sudo emerge -vu imagemagick These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] media-gfx/imagemagick-6.4.4.6 [6.4.0.6] USE=bzip2 corefonts%* jpeg jpeg2k openmp%* perl png svg tiff truetype xml zlib -X -djvu -doc -fontconfig -fpx -graphviz -gs -hdri -jbig -lcms -nocxx -openexr -q32 -q8 -raw% -wmf 8,650 kB Total: 1 package (1 upgrade), Size of downloads: 8,650 kB Verifying ebuild Manifests... Emerging (1 of 1) media-gfx/imagemagick-6.4.4.6 to / Downloading 'http://gentoo.dsv.agh.edu.pl/distfiles/ImageMagick-6.4.4-6.tar.bz2' --2008-12-01 12:59:40-- http://gentoo.dsv.agh.edu.pl/distfiles/ImageMagick-6.4.4-6.tar.bz2 Resolving gentoo.dsv.agh.edu.pl... 149.156.124.22 Connecting to gentoo.dsv.agh.edu.pl|149.156.124.22|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2008-12-01 12:59:40 ERROR 404: Not Found. Downloading 'ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.4.4-6.tar.bz2' --2008-12-01 12:59:41-- ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.4.4-6.tar.bz2 = `/usr/portage/distfiles/ImageMagick-6.4.4-6.tar.bz2' Resolving ftp.imagemagick.org... 74.63.3.20 Connecting to ftp.imagemagick.org|74.63.3.20|:21... connected. Logging in as anonymous ... Logged in! == SYST ... done.== PWD ... done. == TYPE I ... done. == CWD /pub/ImageMagick ... done. == SIZE ImageMagick-6.4.4-6.tar.bz2 ... done. == PASV ... done.== RETR ImageMagick-6.4.4-6.tar.bz2 ... No such file `ImageMagick-6.4.4-6.tar.bz2'. !!! Couldn't download 'ImageMagick-6.4.4-6.tar.bz2'. Aborting. * Fetch failed for 'media-gfx/imagemagick-6.4.4.6' !!! can't process invalid log file: merge.ERROR When i'm trying to download it manually i get : wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.4.4-6.tar.bz2 --2008-12-01 13:01:30-- ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.4.4-6.tar.bz2 = `ImageMagick-6.4.4-6.tar.bz2' Resolving ftp.imagemagick.org... 74.63.3.20 Connecting to ftp.imagemagick.org|74.63.3.20|:21... connected. Logging in as anonymous ... Logged in! == SYST ... done.== PWD ... done. == TYPE I ... done. == CWD /pub/ImageMagick ... done. == SIZE ImageMagick-6.4.4-6.tar.bz2 ... done. == PASV ... done.== RETR ImageMagick-6.4.4-6.tar.bz2 ... No such file `ImageMagick-6.4.4-6.tar.bz2'. Thank You for Your help ? -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: Unable to download Imagemagick
[ 01.12.2008 13:16 ], Nikos Chantziaras : ert256 wrote: Hello Since last week, i'm unable to download new imagemagick sources. This is what i get from emerge : [EMAIL PROTECTED] ~ $ sudo emerge -vu imagemagick [...] When i'm trying to download it manually i get : No such file `ImageMagick-6.4.4-6.tar.bz2'. Try this mirror: http://ftp.surfnet.nl/pub/ImageMagick/ImageMagick-6.4.4-6.tar.bz2 Thank You for help. Downloading file directly to /usr/portage/distfiles fixed the problem. -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Smartd
[ 23.10.2008 17:14 ], Jon Hardcastle : Probably not strictly a Gentoo issue, but as i am running Gentoo I'll see if the collective knowledge here can help me! I have a strange problem with my server. All the hard drives go to sleep after ~3hrs of inactivity. BUT if they happen to still be asleep when the scheduled smart check takes place you can hear it 'spin up' and just before you know the drive is 'up' smartd decides the drive isn't smart capable and gives up. I get log entries in 'messages' and dmesg and also smartd emails me to tell me the drive isn't smart capable. You get the same result if you do -a on a sleeping drive... it says the drive isn't capable.. run it again.. and Bob's your uncle. Any clues? Can you vary the time before it tries after a spin up? If this is a server, why don't you turn auto-sleep off ? Or maybe you can check out -n option in manual -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Asus Eee Gentoo install - no CD drive
If You have somewhere running PXE configuration, You can run liveCD remotely from some pretend-nfs-serwer. I've done that using simple pxe-configuration as follows : LABEL gentoo-nfs menu label ^Gentoo over NFS KERNEL gentoo/gentoo APPEND initrd=gentoo/gentoo.igz ip=dhcp root=/dev/nfs nfsroot=10.0.0.1:/srv/nfs/gentoo And files gentoo and gentoo.igz was copied from live-cd i suppose, and /dev/nfs was was livecd as far as i remember. I've done that few months ago, can help but cannot remember all details now. [ 06.10.2008 17:01 ], Grant : I'm very familiar with installing Gentoo via LiveCD, but I'm not sure how to go about it without a CD drive. I'm sure there are many exotic options to choose from, but I'd rather not have to learn too much new stuff to get this done. Can anyone recommend a simple method? I have a wired/wireless LAN/internet connection and 3 systems on the LAN running Gentoo. No USB drive though. - Grant -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] webdav + foxmarks
[ 24.09.2008 15:58 ], James : All, I am trying to set up Foxmarks to use my Apache webdav implementation to store my Firefox bookmarks. Unfortunately when Foxmarks tries to upload the appropriate files to the webserver it fails and I then see the following message in my Apache error_log: [Tue Sep 23 21:38:23 2008] [error] [client 10.2.6.2] client denied by server configuration: /var/webdav My Apache webdav configuration is shown below: IfModule mod_dav.c Alias /dav /var/webdav DavMinTimeout 600 Directory /dav Options None Dav On AllowOverride None Order allow,deny Allow from all Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK AuthType Basic AuthName WebDav Restricted Repository AuthUserFile /var/webdav/.davpasswd Require valid-user /Limit /Directory /IfModule Maybe You need directory /var/webdav Allow from all /directory -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] NTFS free space disappeared
[ 21.09.2008 05:51 ], Stroller : On 20 Sep 2008, at 18:36, Norberto Bensa wrote: On Saturday September 20 2008 11:22:21 Stroller wrote: NTFS file-systems written (created?) by Vista add some new special features. Do you have more info on that? Any link? This Wikipeadia epic is nearly as comprehensive as some of the articles on chapters of the Warhammer 40k Space Marines: http://en.wikipedia.org/wiki/NTFS It seems I may have been mistaken - after a little search it's not clear to me whether its really unsafe to write to a Vista disk from XP. I think I'd check before trying to do so from Linux. Stroller. On my scenario, system was always running on Windows XP, and i mount filesystems RO when coping files on Linux. -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] NTFS free space disappeared
Hello Thank You for all your help. There was knoppix launched, so i need to run M$ installation disk to check disk. There was couple of 'Unexpected reboots', so Filesystem may be a bit corrupt. I need to go to office, and do it over there, everything else i did remotely. I'll lunch Windows XP Installation disk, and run 'chkdsk /F /V'. After everything I'll write back. Bye [ 20.09.2008 12:09 ], b.n. : Alan McKinnon ha scritto: That's true enough, but I would still be mighty suspicious of those numbers. He has a 31G filesystem, df says he has used 29G worth of blocks and du says the total amount of data in those blocks is 19G. The difference is always file allocation slack, but a full third of the filesystem? It's not impossible of course. I don't know what the block size is on NTFS, but with 1k, you'd need 10 million files each 1 byte to consume 10G of slack. With 64k blocks it's something like 150,000 files. That's a whole lot of very very tiny files - not impossible, but highly unlikely in normal usage[1] It looks like that disk could bear some investigation, even if only for peace of mind. alan [1] I wouldn't be surprised if NTFS had some insane block allocation policy where this is quite common... or if MS has built some kind of hidden backup region (aka AllYouBaseAreBelongToUsFS) into the filesystem that is invisible to du He said the Windows partition is infected. Could have some virus corrupted the filesystem? m. -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] NTFS free space disappeared
Hello again [ 20.09.2008 19:13 ], Alan McKinnon : [..] I shudder to ask, but I will anyway - how many files? Any idea? I really don't know how many files may be hidden there inside that filesystem. It wasn't my box, just taking care of it few weeks. There are not mine data, so i must be sure before cleaning up partition. Bye -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
[gentoo-user] NTFS free space disappeared
Hello I have some weird problem width NTFS partition in linux environment. I have Knoppix LiveCD on some machine, which i want to clean out. There was some virus and windows is unusable, so I'm copying data over network to other machine, but what is the point /media/sda5 is ntfs mounted in rea-only mode [EMAIL PROTECTED]:/media# df -h FilesystemSize Used Avail Use% Mounted on /dev/sda5 31G 29G 2.3G 93% /media/sda5 [EMAIL PROTECTED]:~# du -h --summarize /media/sda5/ 19G /media/sda5/ I cannot fire up windows, because it is dangerous, and that windows on this machine is broken. Question is : Where is missing 10G on NTFS partition ? Can I safely clean disk without risk of data loss? Thank you -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
[gentoo-user] Re: NTFS free space disappeared
[ 18.09.2008 22:00 ], ert256 : Hello I have some weird problem width NTFS partition in linux environment. I have Knoppix LiveCD on some machine, which i want to clean out. There was some virus and windows is unusable, so I'm copying data over network to other machine, but what is the point /media/sda5 is ntfs mounted in rea-only mode [EMAIL PROTECTED]:/media# df -h FilesystemSize Used Avail Use% Mounted on /dev/sda5 31G 29G 2.3G 93% /media/sda5 [EMAIL PROTECTED]:~# du -h --summarize /media/sda5/ 19G /media/sda5/ I cannot fire up windows, because it is dangerous, and that windows on this machine is broken. Question is : Where is missing 10G on NTFS partition ? Can I safely clean disk without risk of data loss? Thank you Line from /etc/mtab for that disk : /dev/sda5 /media/sda5 fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 0 0 -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Weird df listing
[ 02.09.2008 13:51 ], Michael Sullivan : Can someone please explain to me what's going on with /dev/sda6? I couldn't log into GNOME after my reboot yesterday, and when I asked for a df listing in the console, I got this. Shouldn't there be 4GB available? camille ~ # df -h FilesystemSize Used Avail Use% Mounted on /dev/sda6 78G 74G 0G 100% / udev 10M 184K 9.9M 2% /dev /dev/sda7 52G 40G 12G 78% /mnt/store shm 247M 0 247M 0% /dev/shm catherine:/backup 44G 34G 8.5G 80% /backup/catherine Hello If this is ext3 partition, it may be root reserved space. You reduce it by running as root tune2fs /dev/sda6 -m reserved-blocks-percentage or tune2fs /dev/sda6 -r reserved-blocks-count Bye -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] root on raid 1 = no boot
[ 28.08.2008 16:41 ], Volker Armin Hemmann : Hi, I have tried to setup a software Raid1 for root (/), boot, home and var. So far, so good. Support is in kernel. The four ones are assembled: Personalities : [raid1] md3 : active raid1 sda6[0] sdb6[1] 421906944 blocks [2/2] [UU] md2 : active raid1 sda5[0] sdb5[1] 19534912 blocks [2/2] [UU] md1 : active raid1 sda3[0] sdb3[1] 39061952 blocks [2/2] [UU] md0 : active raid1 sda1[0] sdb1[1] 64128 blocks [2/2] [UU] looks good. and in grub.conf I have this: title=raid root (hd0,0) kernel /vmlinuz root=/dev/md1 md=1,/dev/sda3,/dev/sdb3 nopat I also created md1,2,3, in /dev. But on every single boot I get a kernel panic because rootfs is not found. Has anybody an idea why and what is going wrong? If you are sure kernel has compiled-in modules for raid, device mappers and others to look at the disk .. Maybe it is type of the partition, it should be FD which means 'Linux raid autodetect' . -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] System beep during low battery
BIOS ? [ 05.08.2008 04:54 ], Benoit St-Pierre : When my battery gets below 10% my laptop has a very loud system beep. I thought I disabled the PC speaker in the kernel. Any clues as to what could be causing this? -- Rafał (ert16) Trójniak [EMAIL PROTECTED] : [EMAIL PROTECTED] Jid : [EMAIL PROTECTED] [EMAIL PROTECTED] GPG key-ID : DD681D47 749F E1DC A58F 9084 BBC0 797A 0691 53D6 DD68 1D47 signature.asc Description: OpenPGP digital signature