Re: [gentoo-user] Re: i486
I have try LFS (linux from scratch) ,and install gentoo use stage3 .Does the stage1 installs like that,Compile the toolchain and build the system? On 24 November 2010 23:58, David W Noon dwn...@ntlworld.com wrote: On Wed, 24 Nov 2010 08:10:01 +0100, sam new wrote about Re: [gentoo-user] Re: i486: still do stage 1 installs? sounds good ,any guide or tutorial? If you need a tutorial then you aren't ready for doing a stage 1. Do a few stage 3 installs first and you will get the hang of what goes into those larger tarballs, then you'll be able to build that yourself starting from a stage 1. -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* dwn...@ntlworld.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Re: [gentoo-user] On what to base a custom live CD?
I'd suggest SystemRescueCD. It's upgraded quite often (currently using kernel 2.6.35-x) has a ready to go X11 environment and most useful, it's an up-to-date Gentoo system, so one immediately knows where to look if there are any problems. And it has a well documented (easy) procedure for extending it. Helmut. On 11/24/10 23:02:10, Grant Edwards wrote: I need to build a liveCD that boots on as wide a variety of hardware as is practical. It needs to load one custom kernel module and then run one console-mode application. Instead of building something from scratch, I was hoping I might be able to modify an existing liveCD. There's no need for support for networking, graphics, or even access to optical or hard drives. The current version of this CD is built sort of from scrach using a labor-intensive and error-prone process. However, it does produce something that's small (less that 10MB), and boots fast (around 10 seconds). But, updating the existing CD with a newer kernel (to gain support for newer hardware) is difficult. I thought about using a customized systemrescuecd, but that takes ages to boot (almost 5 minutes). This CD is intended as something a customer can run to do a quick hardware test, and making them sit there for 5 minutes to see a 5-second test just isn't going to fly. I also looked at the gentoo minimal install CD, but that's still pretty slow (3-4 minutes), and it's not at all obvious how to add a kernel module to it. Does anybody have an recommendations for a good way to build a small liveCD with a custom kernel module? -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany
[gentoo-user] Re: On what to base a custom live CD?
On 2010-11-25, Neil Bothwick n...@digimed.co.uk wrote: On Wed, 24 Nov 2010 22:02:10 + (UTC), Grant Edwards wrote: I thought about using a customized systemrescuecd, but that takes ages to boot (almost 5 minutes). This CD is intended as something a customer can run to do a quick hardware test, and making them sit there for 5 minutes to see a 5-second test just isn't going to fly. It it actually booting all that time, or is it waiting for user input? I doesn't take anything like that long to boot on my netbook, but I have modified the USB install to set a keymap choice and a couple of other options. AFAICT, it's booting that whole time. I picked the initial isolinux menu entry that selects the US keymap, so there is no user input until it gets to the bash prompt. That time is booting on a qemu VM (but so is the ~10 seconds for the other CD I'm comparing to). I've since done a little testing with a Thinkpad T510, and the difference between the two CDs isn't nearly as much (maybe 5X instead of 30X). Since I don't need much in the way of resources (no networking or hard-drive acess) I've been thinking about ditching the squashfs stuff completely and just putting everything I need in the initrd image. That way I can disable the both the networking and IDE/PATA/SATA/SCSI support in the kernel. That ought to speed up the boot time considerably. Does anybody have an recommendations for a good way to build a small liveCD with a custom kernel module? Have you looked at Tiny Core Linux; 10MB, fast to boot and extensible. I've been doing some looking around, and that's now on my short list. -- Grant
Re: [gentoo-user] 200-line patch to kernel = superkernel
Am 23.11.2010 19:26, schrieb Florian Philipp: BTW: I've implemented a slightly adjusted version of the bash script (Ubuntu alternative) for Gentoo yesterday and I must say, I'm really impressed. Would you share?
Re: [gentoo-user] 200-line patch to kernel = superkernel
Would you share? +1 I only have an empty /sys/fs/cgroup with the following config on 2.6.36, so please share the kernel config as well. # zgrep CGROUP /proc/config.gz CONFIG_CGROUPS=y # CONFIG_CGROUP_DEBUG is not set CONFIG_CGROUP_NS=y CONFIG_CGROUP_FREEZER=y CONFIG_CGROUP_DEVICE=y CONFIG_CGROUP_CPUACCT=y # CONFIG_CGROUP_MEM_RES_CTLR is not set CONFIG_CGROUP_SCHED=y CONFIG_BLK_CGROUP=y # CONFIG_DEBUG_BLK_CGROUP is not set # CONFIG_NET_CLS_CGROUP is not set
Re: [gentoo-user] copy paste problem from any app other than Konsole to Konsole
On Thu, Nov 25, 2010 at 2:54 PM, Coert Waagmeester lgro...@waagmeester.co.za wrote: Hello all, Using ksh in konsole. Whenever I select something in any app apart from Konsole, and middle click paste it in Konsole, it does not paste exactly as it should. I have attached a screenshot where I copy from Firefox to Konsole. What could be the reason for this? Regards, Coert This problem happens also in vim. In vim you need to run the command ':set paste' and then insert the copied text. My guess it works the same, and there is a way to set paste on konsole. Regards, Kfir
Re: [gentoo-user] Varying clocks freqs of CPU ?
On Wed, Nov 24, 2010 at 7:00 PM, meino.cra...@gmx.de wrote: Hi, new features, new problems... Recent multi-core CPUs modify the clock freqs of their core if only a subset of all cores are used. Are their any CONFIGs need to be set in the linux kernel to guarantee a stable system running those kind of CPUs ? Thank you very much in advance for any help! Most Intel CPUs need: CONFIG_X86_ACPI_CPUFREQ All AMD CPUs need: CONFIG_X86_POWERNOW_K8 enabled in the kernel. And after that you need to install and enable/run the cpufrequtils daemon.
Re: [gentoo-user] copy paste problem from any app other than Konsole to Konsole
On 25/11/2010, at 12:54pm, Coert Waagmeester wrote: Using ksh in konsole. Whenever I select something in any app apart from Konsole, and middle click paste it in Konsole, it does not paste exactly as it should. I have attached a screenshot where I copy from Firefox to Konsole. That looks like what you'd see if you were trying to paste into vim. When posting with a problem, it's worth stating more information that you might think necessary. Have you tried pasting into other terminals? Is there any app running in the konsole? I'm surprised you're not seeing ksh errors about command not found between each line. If you're trying to paste into vim then set the paste option. I.E. from command mode type :set paste (from insert mode type esc:set pasteenteri and paste your text. The oppose is :set nopaste This is part of vim's auto-indenting. Stroller.
[gentoo-user] nvidia and i/o problem
My hardware 00:00.0 RAM memory: nVidia Corporation MCP61 LPC Bridge (rev a1) 00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2) 00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2) 00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2) 00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3) 00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3) 00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1) 00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2) 00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2) 00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2) 00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2) 00:09.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2) 00:0b.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2) 00:0c.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2) 00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration 00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map 00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller 00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control 00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control 02:00.0 VGA compatible controller: nVidia Corporation G86 [GeForce 8400 GS] (rev a1) processor : 3 vendor_id : AuthenticAMD cpu family : 16 model : 4 model name : AMD Phenom(tm) II X4 945 Processor stepping: 3 cpu MHz : 3000.000 cache size : 512 KB physical id : 0 siblings: 4 core id : 3 cpu cores : 4 apicid : 3 initial apicid : 3 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt npt lbrv svm_lock nrip_save bogomips: 6200.02 TLB size: 1024 4K pages clflush size: 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate [r...@sakurazukamori ~rodolfo]$ free 12:41 total used free sharedbuffers cached Mem: 20482761257624 790652 0 218124 579888 -/+ buffers/cache: 4596121588664 Swap: 4008212 04008212 My system [r...@sakurazukamori ~rodolfo]$ emerge --info |more 12:41 app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11-r1 dev-lang/python: 2.6.6-r1, 2.7, 3.1.2-r4 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.5 sys-apps/sandbox:2.3-r1 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2, 4.4.4-r2, 4.4.5 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.34 (sys-kernel/linux-headers) Repositories: gentoo gentoo-haskell zugaina proaudio ACCEPT_KEYWORDS=amd64 ACCEPT_LICENSE=* CBUILD=x86_64-pc-linux-gnu CFLAGS=-march=amdfam10 -Os -pipe CHOST=x86_64-pc-linux-gnu CONFIG_PROTECT=/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat. d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c CXXFLAGS=-march=amdfam10 -Os -pipe DISTDIR=/usr/portage/distfiles FEATURES=assume-digests binpkg-logs candy distlocks fail-clean fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch GENTOO_MIRRORS=http://gentoo.c3sl.ufpr.br/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://www.las.ic.unicamp.br/pub/gentoo ftp://ftp.las.ic.unicamp.br/pub/gentoo; LANG=pt_BR.utf8 LDFLAGS=-Wl,-O1 -Wl,--as-needed LINGUAS=pt_BR MAKEOPTS=-j8 PKGDIR=/usr/portage/packages PORTAGE_CONFIGROOT=/
Re: [gentoo-user] nvidia and i/o problem
Zhu Sha Zang wrote: SNIP My problems: 1) Gentlemen, with this hardware when i try to compile some nice software like chromium, pyside or openoffice my system freeze. I can't do anything like use keyboard, mouse or switch betwenn windows. How can i find the motive to this strange (???) problem? I've used --load-average in MAKEOPTS with the same result. 2) The source x11-drivers/nvidia-drivers-256.53 don't compile against kernel-2.6.36-r3 and upgrading to nvidia-drivers-260.19.21 my X don't start using the same LG FLATRON W2043S. Appears to be a resolution problem, cos the light that monitor blink and the screen keep black. A bug? Att For #1. Mine does this at times when compiling OOo too. I think it hits spots in the compile process that are really using the CPU and it just crams it through. I had it do it on my current machine and on another machine I installed OOo on. I don't think this is to out of the norm. I guess if you have fast enough processor that you won't be able to tell it tho. I haven't' noticed this in the other packages tho. I don't use chromium and don't think I use pyside either. For #2. I have a older card and sometimes I have to unmask a newer nvidia driver to get it to work. Sometimes, I have to use a somewhat older kernel until nvidia gets the driver updated to work with the new kernel, usually not to long tho. You use a newer driver but still may have to check and make sure the driver works with that kernel. Gentoo is bleeding edge sometimes. ;-) Dale :-) :-)
Re: [gentoo-user] 200-line patch to kernel = superkernel
Am 25.11.2010 12:21, schrieb Adam Carter: Would you share? +1 I only have an empty /sys/fs/cgroup with the following config on 2.6.36, so please share the kernel config as well. I guess you have to mount your cgroup there, first. The original link describes, how. I don't have a /sys/fs/cgroup at all. So I don't think my kernel config will help you. My solution isn't that great, anyway. I thought about writing an init script but I haven't done that yet and don't think I'll do it soon. Anyway, if you want my solution, here it is, although it's mostly copy'n'paste from the original link: 1. Create '/usr/local/sbin/cgroup_start' with the following content: #!/bin/bash mkdir -p /dev/cgroup/cpu mount -t cgroup cgroup /dev/cgroup/cpu -o cpu mkdir -m 0777 /dev/cgroup/cpu/user /bin/echo '/usr/local/sbin/cgroup_clean' /dev/cgroup/cpu/release_agent (Execution right for root, only) ## Please note ## Since I had no /sys/fs/cgroup directory to start with and I didn't want to fiddle with /proc or /sys, I create a new directory /dev/cgroup to work with. If you have a better directory, you have to adjust all following code snippets to work on that directory. Please also note that I use /bin/echo instead of the shell built-in echo. There is supposed to be a difference in write error detection between the both which is important to detect problems when you configure cgroups. # 2. Create '/usr/local/sbin/cgroup_clean' #!/bin/sh rmdir /dev/cgroup/cpu/$* (Execution right for root, only) 3.a If you use OpenRC / Baselayout-2, edit /etc/conf.d/local local_start() { /usr/local/sbin/cgroup_start # We should always return 0 return 0 } 3.b If you use Baselayout-1, edit /etc/conf.d/local.start and add /usr/local/sbin/cgroup_start ## Please note ## It would be great to know what to do in order to stop using cgroups again. Then we could create a proper init script for this. Does anyone know? Can you just unmount it? Do you need to delete its content, first? # 4. Create a file /etc/bash/local/cgrouprc if [ $PS1 ] ; then mkdir -p -m 0700 /dev/cgroup/cpu/user/$$ /dev/null 21 /bin/echo $$ /dev/cgroup/cpu/user/$$/tasks /bin/echo 1 /dev/cgroup/cpu/user/$$/notify_on_release fi 5. Edit your own ~/.bashrc file and /root/.bashrc and add the following line: source /etc/bash/local/cgrouprc ## Please note ## The last two steps can be varied as you wish. The creation of a /etc/bash/local directory is my own policy. It is useful for collecting common bashrc code that all users can include as they wish. # Then call `/etc/init.d/local restart` and type `source ~/.bashrc` in all your open shells and you are done. Hope this helps, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] 200-line patch to kernel = superkernel
Am 24.11.2010 22:13, schrieb Mick: On Tuesday 23 November 2010 16:42:51 7v5w7go9ub0o wrote: FYI. If anyone understands the bash tweak, please explain :-) TIA 1. Original article: The ~200 Line Linux Kernel Patch That Does Wonders http://www.phoronix.com/scan.php?page=articleitem=linux_2637_videonum=1 2. The alternative (or additional) bash tweak: http://www.webupd8.org/2010/11/alternative-to-200-lines-kernel-patch.html The second link keeps crashing my konqueror ... Yep, here too. Interesting ... signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] 200-line patch to kernel = superkernel
Am 25.11.2010 16:40, schrieb Florian Philipp: Am 24.11.2010 22:13, schrieb Mick: On Tuesday 23 November 2010 16:42:51 7v5w7go9ub0o wrote: 2. The alternative (or additional) bash tweak: http://www.webupd8.org/2010/11/alternative-to-200-lines-kernel-patch.html The second link keeps crashing my konqueror ... Yep, here too. Interesting ... Here it works without problems in konqueror Konqueror Version 4.5.80 (4.6 Beta1) Unter KDE 4.5.80 (4.6 Beta1) Greetings Sebastian Beßler
[gentoo-user] Re: On what to base a custom live CD?
On 2010-11-25, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: I'd suggest SystemRescueCD. That was my first thought, but it's not going to It's upgraded quite often (currently using kernel 2.6.35-x) has a ready to go X11 environment and most useful, it's an up-to-date Gentoo system, so one immediately knows where to look if there are any problems. And it has a well documented (easy) procedure for extending it. But, I'm going to have to speed up the boot time considerably: I thought about using a customized systemrescuecd, but that takes ages to boot (almost 5 minutes). This CD is intended as something a customer can run to do a quick hardware test, and making them sit there for 5 minutes to see a 5-second test just isn't going to fly. The current version of the liveCD I'm attempting to replace boots in about 10 seconds on the same machine that takes 5 minutes to boot systemrescue CD. Slowing the boot time that much isn't going to be acceptable. I'm trying to figure out ways to speed up systemrescuecd. I may ditch the squashfs stuff entirely and run from the initrd filesystem. It looks like that should save a minute or two. After that I'm going to try disabling Networking and most block device (IDE, PATA, floppy, SCSI, and SATA) support. -- Grant
Re: [gentoo-user] Re: i486
On Thu, 25 Nov 2010 11:10:02 +0100, sam new wrote about Re: [gentoo-user] Re: i486: I have try LFS (linux from scratch) ,and install gentoo use stage3 .Does the stage1 installs like that,Compile the toolchain and build the system? Yes, You have to use the bootstrap compiler to build GCC, even before you build a kernel or glibc. It's long-winded and fairly technically demanding. -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* dwn...@ntlworld.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* signature.asc Description: PGP signature
Re: [gentoo-user] Re: i486
On Thursday 25 November 2010 17:40:08 David W Noon wrote: On Thu, 25 Nov 2010 11:10:02 +0100, sam new wrote about Re: [gentoo-user] Re: i486: I have try LFS (linux from scratch) ,and install gentoo use stage3 .Does the stage1 installs like that,Compile the toolchain and build the system? Yes, You have to use the bootstrap compiler to build GCC, even before you build a kernel or glibc. It's long-winded and fairly technically demanding. I recall building a few systems in the early days of gentoo. The funny thing is that other than burning and booting Knoppix a couple of times I had no Linux knowledge or experience. However, the gentoo handbook held my hand step by step and all these years later I'm still here. So, if I could do it, I wouldn't really call it technically demanding. ;-) I guess the OP could use something like this, unless there's a better way documented somewhere else: http://www.gentoo.org/doc/en/faq.xml#stage12 -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Varying clocks freqs of CPU ?
On 25/11/2010, at 1:24pm, App Deb wrote: On Wed, Nov 24, 2010 at 7:00 PM, meino.cra...@gmx.de wrote: new features, new problems... Recent multi-core CPUs modify the clock freqs of their core if only a subset of all cores are used. Are their any CONFIGs need to be set in the linux kernel to guarantee a stable system running those kind of CPUs ? Thank you very much in advance for any help! Most Intel CPUs need: CONFIG_X86_ACPI_CPUFREQ All AMD CPUs need: CONFIG_X86_POWERNOW_K8 enabled in the kernel. And after that you need to install and enable/run the cpufrequtils daemon. How does one determine whether one's CPU supports this, please? Stroller.
Re: [gentoo-user] Varying clocks freqs of CPU ?
On Thu, Nov 25, 2010 at 21:51, Stroller strol...@stellar.eclipse.co.uk wrote: On 25/11/2010, at 1:24pm, App Deb wrote: On Wed, Nov 24, 2010 at 7:00 PM, meino.cra...@gmx.de wrote: new features, new problems... Recent multi-core CPUs modify the clock freqs of their core if only a subset of all cores are used. Are their any CONFIGs need to be set in the linux kernel to guarantee a stable system running those kind of CPUs ? Thank you very much in advance for any help! Most Intel CPUs need: CONFIG_X86_ACPI_CPUFREQ All AMD CPUs need: CONFIG_X86_POWERNOW_K8 enabled in the kernel. And after that you need to install and enable/run the cpufrequtils daemon. How does one determine whether one's CPU supports this, please? Stroller. Doc for this is located at /usr/src/linux/Documentation/cpu-freq/ Speaking of my case, I first get to know my cpu looking at /proc/cpuinfo and then grep the doc directory. # grep Sempron /usr/src/linux/Documentation/cpu-freq/* /usr/src/linux/Documentation/cpu-freq/amd-powernow.txt:8th Generation: powernow-k8: Athlon, Athlon 64, which tells me to select powernow-k8. powetnow-k7, for instance, wont work. But for Intel I *guess* acpi-intel is the one. -- Fatih
[gentoo-user] Re: nvidia and i/o problem
On 11/25/2010 06:55 AM, Zhu Sha Zang wrote: ... i try to compile some nice software like chromium, pyside or openoffice my system freeze. I can't do anything like use keyboard, mouse or switch betwenn windows. How can i find the motive to this strange (???) Does the freeze always happen in the same place while compiling those packages? If not, I would suspect hardware problems, e.g. overheating due to poor ventilation of the CPU, or memory chips that are going bad. When I have random malfunctions like you describe, I open the computer case and spray the dust off of everything using compressed air. If that doesn't fix the problem I run memtest86 overnight to find failing memory chips. One of those two steps usually fixes the problem for me. Also, you could rule out bugs in the nvidia driver by trying to compile chromium or openoffice from a console terminal (i.e. while X is not running).
Re: [gentoo-user] How to exclude a directory from rsync
On Tue, 16 Nov 2010 23:01:51 + Mick michaelkintz...@gmail.com wrote: On Tuesday 16 November 2010 22:26:28 Stefan G. Weichinger wrote: Am 2010-11-16 22:24, schrieb Alan McKinnon: Apparently, though unproven, at 23:12 on Tuesday 16 November 2010, Mick did opine thusly: Excellent, it worked! :-) Glad to hear it. I could help because part of my job is running a rather big public ftp mirror that management graciously pay for. And I went down this rsync road a long time ago myself. You have no idea how many brain cells died in agony to figure out this specific piece of rsync behaviour :-) ;-) I would like to know if my suggestion also works ;-) Yeah, include/exclude-patterns are rather hard to figure out sometimes ... nearly like regexes - write once, read never Ha, ha! True! Stefan, I tried escaping the spaces (even tried \\ double and \\\ triple escapes in case it makes a difference because of using ssh) but still did not work. In my head I couldn't see how the full path would not work, but the relative path would, but I tried it out all the same. I still don't understand why Alan's recommendation works ;-) I'm probably late with my reply, but I'll post it so it will be in the archives for future reference. The man page is actually pretty clear on this issue. Quote: if the pattern starts with a / then it is anchored to a particular spot in the hierarchy of files, otherwise it is matched against the end of the pathname. This is similar to a leading ^ in regular expressions. Thus /foo would match a name of foo at either the root of the transfer (for a global rule) or in the merge-file’s directory (for a per-directory rule). An unqualified foo would match a name of foo anywhere in the tree because the algorithm is applied recursively from the top down; it behaves as if each path component gets a turn at being the end of the filename. Even the unanchored sub/foo would match at any point in the hierarchy where a foo was found within a directory named sub. Root of the transfer is the directory you want to sync. Thus, if you run e.g. rsync /var/log/ /mnt/backups/ --exclude=/portage/ then root of the transfer is /var/log, and therefore the directory /var/log/portage will be excluded. If on the other hand you write --exclude=portage/ then a directory named portage anywhere in the tree under /var/log will be excluded. Without the trailing slash, i.e. just --exclude=portage any file (regular file, directory, link, whatever) named portage anywhere in the tree gets excluded. And finally --exclude=/portage would exclude a file only at the top of the tree that is going to be synchronsed. Hope it helps. Cheers, Renat -- Probleme kann man niemals mit derselben Denkweise loesen, durch die sie entstanden sind. (Einstein) signature.asc Description: PGP signature
Re: [gentoo-user] nvidia and i/o problem
1) Gentlemen, with this hardware when i try to compile some nice software like chromium, pyside or openoffice my system freeze. I can't do anything like use keyboard, mouse or switch betwenn windows. How can i find the motive to this strange (???) problem? I've used --load-average in MAKEOPTS with the same result. When you say freeze, do you mean? A. That the system locks up and you have to restart, or B. That the systems becomes unresponsive, during the compile but returns to normal once the compile is over
[gentoo-user] Console-kit instances...
Hi, is it really necessary, that console-kit runs 65 instances of itsself??? Best regards, mcc
Re: [gentoo-user] Accessing CVS on non-standard port
On 11/24/2010 04:35 PM, Alan McKinnon wrote: I need to get to the work CVS server from home. It's not exposed to the internet but never fear! we have ssh -L and a convenient sshd host that is on the internets. So, locally ssh -Llocalhost::cvs.example.com:22 a...@gateway.example.com and tell cvs that the server is localhost: I do this all the time for lots of other stuff. Doesn't work for CVS because there's no way to tell cvs to tell ssh what port to use. Google gives lots of hits about using the host-specific Host directive in ~/.ssh/config but that won't work for me - it assumes I can see the CVS server directly and doesn't take into account that I have port forwarding in the way. Anyone know a way to get cvs to use any port other than 22? I'm receptive to alternate cvs clients with this support, just not ones that tweak ssh to do it. Use a full-blown tunnel instead of redirection magic. At home: #!/bin/bash modprobe tun ssh -w 0:0 -C -f \ r...@work.example.com \ /root/ssh_tunnel ifconfig tun0 10.0.2.2 netmask 255.255.255.252 # Replace 10.1.1.0/24 with your work subnet. ip route add 10.1.1.0/24 via 10.0.2.1 dev tun0 And on the workstation at work: #!/bin/bash # # /root/ssh_tunnel # # The internal IP of your workstation, on the work network. INTERNAL_IP=10.1.1.x modprobe tun ifconfig tun0 10.0.2.1 netmask 255.255.255.252 echo 1 /proc/sys/net/ipv4/ip_forward # You will probably not want to trash all of your iptables rules. # Adjust as necessary. iptables -F iptables -F -t nat iptables -P FORWARD DROP iptables -A FORWARD -d 10.0.2.0/29 -j ACCEPT iptables -A FORWARD -s 10.0.2.0/29 -j ACCEPT iptables -t nat -A POSTROUTING -s 10.0.2.2 -j SNAT \ --to-source $INTERNAL_IP This worked fine for me for about a year. Eventually, I gave in and set up a real-ass VPN with OpenVPN. If you need to access services remotely often, I would suggest skipping the intermediate step and going straight to OpenVPN.
Re: [gentoo-user] Console-kit instances...
On Fri, 2010-11-26 at 01:20 +0100, meino.cra...@gmx.de wrote: Hi, is it really necessary, that console-kit runs 65 instances of itsself??? They're not instances (whatever that means anyway). They're threads... the short of it is... it's already been discussed . It's not hurting anything (much) and upstream takes a better safe than sorry approach (there is a thread to monitor each possible virtual console). It's easy enough to patch if you you think it's a big deal (but it isn't). -a
Re: [gentoo-user] Re: i486
Thanks all, I have a question , when we build the system, always use host client to build the toolchain , then GCC Glibc ...kernel some unity ... from source ,but where the frist system come from ,does it build using the Assembly language or machine language? I mean just give you X86 hardware and power , no OS, no livd cd . I am afraid it is out of this topic.but it always puzzled me :-) On 26 November 2010 03:47, Mick michaelkintz...@gmail.com wrote: On Thursday 25 November 2010 17:40:08 David W Noon wrote: On Thu, 25 Nov 2010 11:10:02 +0100, sam new wrote about Re: [gentoo-user] Re: i486: I have try LFS (linux from scratch) ,and install gentoo use stage3 .Does the stage1 installs like that,Compile the toolchain and build the system? Yes, You have to use the bootstrap compiler to build GCC, even before you build a kernel or glibc. It's long-winded and fairly technically demanding. I recall building a few systems in the early days of gentoo. The funny thing is that other than burning and booting Knoppix a couple of times I had no Linux knowledge or experience. However, the gentoo handbook held my hand step by step and all these years later I'm still here. So, if I could do it, I wouldn't really call it technically demanding. ;-) I guess the OP could use something like this, unless there's a better way documented somewhere else: http://www.gentoo.org/doc/en/faq.xml#stage12 -- Regards, Mick