Re: [gentoo-user] Re: FeatureRequest Was: Re: Why are gentoo people so in love with colorized output?!?
Am 11.06.2007 um 09:53 schrieb Alexander Skwar: Robert Welz [EMAIL PROTECTED] wrote: Am 04.04.2007 um 06:17 schrieb [EMAIL PROTECTED]: Why do --nocolor and --color=n not work (sys-apps/portage-2.1.2.3)? Why does the damned thing default to thinking I want blaring bizarre colors scattered all over my screen? Because it makes things easier to read. Today I fought with a shell script: #! /bin/bash restart_result=`/etc/init.d/boinc restart /usr/bin/echo -e $restart_result | /root/bin/mail check chroots cron-Oberon and no simpe way to switch color and other ANSI Sequences to off Where did you get colors? Init scripts support a --nocolor switch. Did this switch not work? Or did you get colors somewhere else? Oh fine, that works: restart_result=`/etc/init.d/boinc --nocolor restart` /usr/bin/echo -e $restart_result | /root/bin/mail check chroots cron-Oberon gives: * Service boinc stopping * Service boinc stopped * Service boinc starting * Service boinc started instead of [32;01m*[0m Service boinc stopping [32;01m*[0m Service boinc stopped [32;01m*[0m Service boinc starting [32;01m*[0m Service boinc started Thanks! Robert Alexander Skwar -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
FeatureRequest Was: Re: [gentoo-user] Why are gentoo people so in love with colorized output?!?
Am 04.04.2007 um 06:17 schrieb [EMAIL PROTECTED]: Why do --nocolor and --color=n not work (sys-apps/portage-2.1.2.3)? Why does the damned thing default to thinking I want blaring bizarre colors scattered all over my screen? I fully agree! But not only for portage (emerge) but for the whole system. Today I fought with a shell script: #! /bin/bash restart_result=`/etc/init.d/boinc restart /usr/bin/echo -e $restart_result | /root/bin/mail check chroots cron-Oberon and no simpe way to switch color and other ANSI Sequences to off exept by a regular expression. bash color can sometimes be evil ;) Robert ;););) -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Eating RAM...
Luigi Pinna schrieb: Alle 01:11, sabato 7 ottobre 2006, Robert Welz ha scritto: Can you post you USE-FLAGS in make.conf and the settings for the video card from there, too? Mine looks like [..] I have a GeForce 6800 GT running flawlessly with 3D since one or two weeks, apart from becoming quite hot. (Its a Gainward card with high performance so I think thats normal). Set the flags and do a emerge --newuse -u -D world and if that doesn't help we can go through X.org config and kernel config. Robert My USE: USE = 3dnow 3dnowex X a52 aac aalib acpi addbookmarks aim alias alsa arts audiofile autoreplace avi bash-completion -berkdb bmp browserplugin bzip2 bzlib cdparanoia cdr connectionstatus contactnotes crypt cscope cups dga dio directfb divx4linux dv dvb dvd dvdr dvdread emacs encode -esd exif fame fortran f77 fam fbcon fdftk -freetds ffmpeg fftw flac flash ftp gadu -gcj gif -gnome gtk gtk2 hal highlight history icq id3 ieee1394 imagemagick imlib ipv6 irc jack java jikes jingle joystick jpeg justify kde kdeenablefinal kdehiddenvisibility kerberos kernel_linux krb4 lame latex lcms -ldap lirc live lm_sensors lzo mad matroska mbox memlimit mime ming mjpeg mmx mng mono motif -mozilla mp3 mpeg mpeg2 mp4live mplayer msn mssql mule multilib musicbrainz mysql mysqli ncurses netmeeting nls nomac nowlistening nptlonly nsplugin objc on-the-fly-crypt ogg oggvorbis openal opengl oscar -oss pam pcre pdflib perl player png posix ppds python qt qt3 qt4 quicktime readline samba sametime sdl sensord sharedmem skey sndfile sox speex spell sse ssl statistics svg svga subtitles swat sysfs szip tcltk test tetex texteffect theora threads tiff tk translator truetype unicode usb userlocales utf8 v4l v4l2 vcd videos vorbis webpresence winpopup wsconvert wxwindows xanim xine xinerama xml2 xmms xosd xpm xprint xscreensaver xv xvid x264 yahoo yv12 zlib zvbi INPUT_DEVICES=keyboard mouse penmount joystick VIDEO_CARDS=nvidia nv vesa v4l Unfortunately emerge --newuse world gives me no update for xorg... (I had wrote wrong nvidia) I suggest VIDEO_CARDS=nvidia vga v41 vesa fbdev (remove nv) and adding nvidia to the USE flags. but for re-emerging Xorg I am not quite shure. Try emerge xorg-server -p -v or emerge xorg-x11 -p -v after emerge --newuse and see if there is a little R on the left table for Re-emerging. Probably there is a xorg-x11 meta ebuild in the portage tree? Look at the howto for Xorg in the www.gentoo.org documentation section and simply re-emerge xorg. Hope that works ;) Robert -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Eating RAM...
Luigi Pinna schrieb: Hi! Since I changed my graphic card from ATI to NVIDIA I have a strange problem. I leave my session always on but I see that a process (I don't know I can recognize it) eats all my ram and my swap. The results is that my computer stopped to work. If I log out and log in again all my memories (ram and swap) are free again. I tried nv and nvidia drivers. I use kde 3.5.2 with a FX5200 on amd64 with 2006.1 desktop profile. Can you help me? Thanks a lot, Luigi Can you post you USE-FLAGS in make.conf and the settings for the video card from there, too? Mine looks like USE=arts -berkdb -bitmap-fonts bzip2 doc dvd -eds -emboss -fortran gif -gnome -ipv6 jikes jpeg jpeg2k kde lo grotate mmx -motif nvidia -ogg -oggvorbis opengl png qt qt3 sse sse2 symlink -tcpd test tiff truetype vorbis X LINGUAS=de en Language=49 # xorg-x11 INPUT_DEVICES=keyboard mouse #VIDEO_CARDS=nv vga v4l VIDEO_CARDS=nvidia vga v41 vesa fbdev I have a GeForce 6800 GT running flawlessly with 3D since one or two weeks, apart from becoming quite hot. (Its a Gainward card with high performance so I think thats normal). Set the flags and do a emerge --newuse -u -D world and if that doesn't help we can go through X.org config and kernel config. Robert -- gentoo-user@gentoo.org mailing list
[gentoo-user] how to execute some scripts after an emerge
Hello! Are there hooks in portage with which I can execute some scripts after an emerge -u world? I need to check my libraries in the chroot jail :) I build for boinc today against their original counterparts in the file system. This would be nicer than having a cronjob looking after them at fixed intervals. Any suggestions welcome. greetings, Robert Sorry for posting twice, but last mail seems to been lost somewhere. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] how to execute some scripts after an emerge
Bo Ørsted Andresen schrieb: On Saturday 07 October 2006 03:16, Robert Welz wrote: Are there hooks in portage with which I can execute some scripts after an emerge -u world? I need to check my libraries in the chroot jail :) I build for boinc today against their original counterparts in the file system. This would be nicer than having a cronjob looking after them at fixed intervals. [SNIP] Please explain what that script does, when exactly it is supposed to run and why you think it needs to use a hook in portage... Yes. I have 14 xen domains + 2 domUs and several services. Some of them must run chrooted so I need to execute a script which compares /chroot/boinc/etc /chroot/boinc/lib and so with their corresponding files in /etc /lib and so. Thats the easy part. But having a hook configurable in make.conf like this would maintaining the script easier: PORTAGE_POST_EXECUTE=/root/bin/mychroottester.sh should fire when emerge is totally done. I understand that I can have a /etc/portage/bashrc but if [[ ${EBUILD_PHASE} == postinst ]]; then ... would fire after each package emerged. Maybe having a variable to test against which shows that the execution of portage is all done would do it. So if the last package is emerged and installed if [[ ${EBUILD_ALL_INSTALLED} == true ]] then /root/bin/mychroottester.sh fi would give a fine hook to execute my script or email notifications with Software update done messages and whatever one likes. What do you think? Greetings, Robert Sorry for posting twice, but last mail seems to been lost somewhere. As you can see e.g. at [1] it wasn't lost. In fact it had two replies within the first 30 minutes. What is the right mail address and is the sometimes lost email bug on both? gentoo-user@lists.gentoo.org or gentoo-user@gentoo.org ? Rob [1] http://news.gmane.org/gmane.linux.gentoo.user -- Bo Andresen -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Bind (Named) SOA Records
Bryan Whitehead wrote: You are missing semi-colons after each record... Also you might want to just make a dummy domain on a test dns - see if it works. On Wed, 23 Aug 2006, Michael Crute wrote: I am trying to write a scrip to maintain my Bind zone files and I was wondering if it is valid to cram the SOA all onto one line. I have scoured the internet and can't find anyone who does it that way. My question is... will it break stuff? Right now my SOA looks like: @ IN SOA ns1.domain.com. hostmaster.domain.com. ( 2006082201 ; serial number 12h ; Refresh 1h ; Retry 2w ; Expire 1h ; Min TTL ) what I am proposing is this: @ IN SOA ns1.domain.com. admin.domain.com. ( 2006082201 12h 1h 2w 1h ) Are the two equivalent? -Mike ; ? Thats just the comments-sign. Rob -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] File replication
Neil Bothwick wrote: On Sat, 26 Aug 2006 08:49:23 +0800 (CST), Stephen Liu wrote: I'm searching a tool/method whenever I save a file on /home/user a duplicate copy will be saved automatically on /mnt/point/of/usb_enclosure/home/user simultaneously, similar to replication/mirroring. Thus the USB enclosure can be used as a mobile storage device and can be plugged in on any Linux PC. You could set up a RAID-1 array on the two devices. Auto-detect RAID information is saved at the end of the device, so it can still be used as a standalone drive/partition when connected to something else. One advantage of RAID is that if you run with the device disconnected and then connect it, the RAID will be updated in the background. Yes, but syncing takes a lot time and should be observeved not to interrupt while in progress. You will need a script to notify you that syncing is done othewise you have a corrupt device. What about a perl script that just copies all files in /home/user to the device once it is plugged in? Robert -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] dispatch-conf auto merging does not work
Trenton Adams wrote: Hi guys, Has anyone else noticed that dispatch-conf does not auto-merge properly all the time? I get files in /etc/init.d/* for instance that do not auto-merge. There's no way I modified any of the files in there. Which files, please? I haven't noticed that yet, but one never knows;) Robert -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Bind (Named) SOA Records
Michael Crute wrote: I am trying to write a scrip to maintain my Bind zone files and I was wondering if it is valid to cram the SOA all onto one line. I have scoured the internet and can't find anyone who does it that way. My question is... will it break stuff? Right now my SOA looks like: @ IN SOA ns1.domain.com. hostmaster.domain.com. ( 2006082201 ; serial number 12h ; Refresh 1h ; Retry 2w ; Expire 1h ; Min TTL ) what I am proposing is this: @ IN SOA ns1.domain.com. admin.domain.com. ( 2006082201 12h 1h 2w 1h ) Are the two equivalent? -Mike They should be. DNS and BIND, 4th issue, German iprint, from Paul Albitz Cricket Liu, O'Reilly 2004 says (I translate free): The brackets allow the SOA-Record to go over several lines. So I would assume they allow but this is an option only. Greetings, Robert -- gentoo-user@gentoo.org mailing list
[gentoo-user] gentoo on an old PPC with Sonnet dual processor upgrade card
Just a question, did someone manage to install gentoo (or another flavour of linux) on an old world PowerMac 7600 with an 1 GHZ Sonnet Dualprocessor Upgrade card (Crescendo)? The gentoo kernel stuck right after booting and I wonder if a self compiled kernel would help. Thank you, Greetings, Robert -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] gentoo on an old PPC with Sonnet dual processor upgrade card
Mike wrote: Robert Welz wrote: Just a question, did someone manage to install gentoo (or another flavour of linux) on an old world PowerMac 7600 with an 1 GHZ Sonnet Dualprocessor Upgrade card (Crescendo)? The gentoo kernel stuck right after booting and I wonder if a self compiled kernel would help. Thank you, Greetings, Robert You probably need to pass it some kernel option at boot like noacpi or something. Mike Well, when I boot with the original processor, everything works but with the Sonnet card booting hangs. Since Sonnet delivers some MacOS drivers with their card could it be that linux won't boot at all without some specific drivers? I mean, would a linux kernel run on this card in general or not? The only thing I changed was the processor card :( Greetings, Robert PS: I have posted this mesage already 1 1/2 hours ago but it never appeared here on my mailserver. Is this a known bug on the list software? Robert -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] XEN on Gentoo, enough stable for production use ?
I have some problems with NFS on a domU. Having mounted my home partition on Dom0 from an nfs server on a domU I invoke an X-Session and get my e-mail from my server from another DomU with thunderbird. I get some 1000 mails a day. Sometimes suddenly all hangs and /var/log/messages tell me NFS server cannot be contacted. I can ping to the outside but I cannot ping each of my DomU's. My second xenified machine doesn't crash and runs several days now. but has neither an nfs server nor an X-server installed. I filed a bug today and do not mount my home partition from the nfs server anymore although every 2nd day a script connects to all my domains over ssh and does an emerge -update -deep world [+metadata] after --sync on the portage proxy over nfs, which is apparently the same nfs server my home partion came from. I will investigate that further and report if I still have problems. Greetings, Robert -- gentoo-user@gentoo.org mailing list
[gentoo-user] barnyard sguil output plugin doesn't work
Hello. I installed snort, sguil-sensor and barnyard on one of my machines and I can't start barnyard. Does someone has a running installation and could tell me the version numbers of all three programs? I suspect that the version numbers of barnyard and sguil don't fit, i.e. that the sguil patch on barnyard doesn't work. The sguil USE flag on barnyard is set. When I start by command line: Merkur snort # barnyard -c /etc/snort/barnyard.conf -d /var/lib/sguil/Merkur -g /etc/snort/gen-msg.map -s /etc/snort/sid-msg.map -f snort_unified.log -w /etc/snort/waldo.file -L /var/lib/sguil/Merkur -a /var/lib/sguil/Merkur/archive Barnyard Version 0.2.0 (Build 32) WARNING /etc/snort/barnyard.conf (136) = Unrecognized argument for Sguil plugin: mysql WARNING /etc/snort/barnyard.conf (136) = Unrecognized argument for Sguil plugin: sensor_id 0 WARNING /etc/snort/barnyard.conf (136) = Unrecognized argument for Sguil plugin: database sguildb WARNING /etc/snort/barnyard.conf (136) = Unrecognized argument for Sguil plugin: server 192.168.6.122 WARNING /etc/snort/barnyard.conf (136) = Unrecognized argument for Sguil plugin: user root WARNING /etc/snort/barnyard.conf (136) = Unrecognized argument for Sguil plugin: password pass WARNING /etc/snort/barnyard.conf (136) = Unrecognized argument for Sguil plugin: sguild_host 192.168.7.122 WARNING /etc/snort/barnyard.conf (136) = Unrecognized argument for Sguil plugin: sguild_port 7736 My barnyard.conf: ... output sguil: mysql, sensor_id 0, database sguildb, server 192.168.6.122, user root, password pass sguild_host 192.168.7.122, sguild_port 7736 Thank you for help, Robert Welz -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] XEN on Gentoo, enough stable for production use ?
Xavier MOGHRABI wrote: Hi guys, I've learnt months ago the existing of Xen project. I think this kind of feature is really interesting for hosting heterogeous application, improve security of my system and reduce the maintain effort. I wonder if any of yours have already experienced Xen on Gentoo ? I wonder if Xen is enough stable to use in production ? Thanks in advance for your information. Hi. I use XEN (latest) without migration and have no big problems so far. The only big problem I had was to set up the network addresses of the domU's to their own subnet and to have dom0 routing instead of bridging. But that was to solve mainly with some websites which describes that task. And I disabled tx checksumming on the network interfaces in each domU to make the network go but this was discussed on the xen mailing list. My network speed from one xenized machine to another xenized machine is asymetric ( 30 MByte/s vs. 15 MByte/s (roughly) from DOM0 to DOM0, depending on the direction, measured with iperf ) on GB Ethernet but I believe that my hardware is the bottleneck, not XEN. I will further investigate the problem when I have some spare time. Robert BTW. I didn't use genkernel, I configured the kernel by hand. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: core packages for a dual-boot system
THUFIR HAWAT wrote: On 3/19/06, Robert Welz [EMAIL PROTECTED] wrote: .. Hi. You don't have to format your windows partition, you don't even toch it. Just format /dev/mapper/VolGroup00-LogVol00 and /dev/hda2 and install gentoo on /dev/mapper/VolGroup00-LogVol00 as described in the handbook. When gentoo is installed completely you just edit grub.conf and you are fine: Add title Windows rootnoverify (hd0,0) chainloader +1 and you can boot into Windows. Robert .. Thanks, Robert. Before doing anything, I just wanted to make sure that I have it right. localhost ~ # localhost ~ # localhost ~ # localhost ~ # localhost ~ # cat /boot/grub/grub.conf -n 1 default 0 2 timeout 30 3 splashimage=(hd0,1)/grub/splash.xpm.gz 4 title=Gentoo Linux 5 root (hd0,1) 6 kernel /kernel-genkernel-x86-2.6.15-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda4 7 initrd /initramfs-genkernel-x86-2.6.15-gentoo-r5 localhost ~ # cat grub.conf -n 1 default 0 2 timeout 30 3 splashimage=(hd0,1)/grub/splash.xpm.gz 4 title=Gentoo Linux 5 root (hd0,1) 6 kernel /kernel-genkernel-x86-2.6.15-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda4 7 initrd /initramfs-genkernel-x86-2.6.15-gentoo-r5 8 9 title Windows 10rootnoverify (hd0,0) 11chainloader +1 localhost ~ # date Tue Mar 21 14:40:40 GMT 2006 localhost ~ # So, just replace /boot/grub/grub.conf with /root/grub.conf , yes? Yes, but make shure the menu menu.lst sybolic ling is pointing to grub (ls -s menu.lst grub.conf.) Robert -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: core packages for a dual-boot system
[EMAIL PROTECTED] wrote: On Sun, 19 Mar 2006, [EMAIL PROTECTED] wrote: .. as can be seen, there's a vfat partition, /mnt/windows. [EMAIL PROTECTED] ~]$ [EMAIL PROTECTED] ~]$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 17394484 14690156 1806488 90% / /dev/hda2 101105 18104 77780 19% /boot /dev/shm111860 0111860 0% /dev/shm /dev/hda1 11451144 9922200 1528944 87% /mnt/windows [EMAIL PROTECTED] ~]$ date Sun Mar 19 12:28:40 EST 2006 [EMAIL PROTECTED] ~]$ 4.b. Designing a Partitioning Scheme Default Partitioning Scheme If you are not interested in drawing up a partitioning scheme for your system, you can use the partitioning scheme we use throughout this book: Partition Filesystem Size Description /dev/hda1 ext2 32M Boot partition /dev/hda2 (swap) 512M Swap partition /dev/hda3 ext3 Rest of the disk Root partition http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1chap=4#fdisk So, I want something like: Partition Filesystem Size Description /dev/hda1 ext2 32M Boot partition /dev/hda2 (swap) 512M Swap partition /dev/hda3 ext3 ??? Root partition /dev/hda4fat32 I'm concerned about overwriting the windows partition, or mucking up the dual-boot bootloader. There are directions at http://gentoo-wiki.com/HOWTO_Dual_boot#Single_Drive_Install_.28Windows_Pre-Installed.29, but I'd like to have it all worked out ahead of time for my own sake. Perhaps I don't even need to format anything? -Thufir [EMAIL PROTECTED] ~]# [EMAIL PROTECTED] ~]# [EMAIL PROTECTED] ~]# cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,1) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=5 splashimage=(hd0,1)/grub/splash.xpm.gz hiddenmenu title Fedora Core (2.6.15-1.1833_FC4) root (hd0,1) kernel /vmlinuz-2.6.15-1.1833_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.15-1.1833_FC4.img title Fedora Core (2.6.14-1.1656_FC4) root (hd0,1) kernel /vmlinuz-2.6.14-1.1656_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.14-1.1656_FC4.img title Fedora Core (2.6.11-1.1369_FC4) root (hd0,1) kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.11-1.1369_FC4.img title Other rootnoverify (hd0,0) chainloader +1 [EMAIL PROTECTED] ~]# date Sun Mar 19 16:18:10 EST 2006 [EMAIL PROTECTED] ~]# I also want to leave grub alone, yes? Well, I want to switch it from fedora to gentoo, somehow. But, I want to leave the windows part alone. Hmm. thanks, Thufir Hi. You don't have to format your windows partition, you don't even toch it. Just format /dev/mapper/VolGroup00-LogVol00 and /dev/hda2 and install gentoo on /dev/mapper/VolGroup00-LogVol00 as described in the handbook. When gentoo is installed completely you just edit grub.conf and you are fine: Add title Windows rootnoverify (hd0,0) chainloader +1 and you can boot into Windows. Robert -- gentoo-user@gentoo.org mailing list