Re: [gentoo-user] need help with amdgpu driver
Klaus, [ 0.760009] amdgpu :0d:00.0: amdgpu: RAS: optional ras ta ucode is not available [ 0.767012] amdgpu :0d:00.0: amdgpu: RAP: optional rap ta ucode is not available [ 0.767016] amdgpu :0d:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available It seems I made a step forward and I will try to get get X11 up next. yep, that is normal. The firmware for encrypted display connection is not released yet. Cheers, Björn
Re: [gentoo-user] need help with amdgpu driver
On 27.01.23 16:05, Klaus Dittrich wrote: On 27.01.23 15:30, Julien Roy wrote: Klaus Dittrich writes: as I do not use a initrd or initramfs I am, as far as I know, forced to compile the driver amdgpu into the kernel, not as modules to be loaded. No, you can use modules even without an initrd. I looked at https://wiki.gentoo.org/wiki/Amdgpu#Unknown_firmware_blobs but I still do not know what name is relevant to the built-in-gpu of a AMD-7900X processor.(!?) Does this gpu really needs all these blobs of the list there? No, these blobs are given as examples. They vary per GPU models and in fact there are several hundred different blobs available: ls -l /lib/firmware/amdgpu | wc -l 479 So you have to figure out which ones you need. The easiest method is to let the kernel load them itself by having the driver built as a module, otherwise it may take several iterations of modifying the CONFIG_EXTRA_FIRMWARE value until you get it to work. Julien and Peter, now I (assume I) understand what you mean. The kernel needs the entries to CONFIG_EXTRA_FIRMWARE just for drivers to be compiled in and for modules just to reduce the seeking in /lib/firmware/amdgpu ? So when I set CONFIG_DRM_AMDGPU=m and then look at dmesg of the so compiled kernel it detects the type of hardware I have (here the type of the cpu-built-in gpui and tells me (via dmesg) which blobs are needed to satisfy the driver for the hardware it has detected. I will try that, moment please .. Julien and Peter, I got no errors or messages form dmesg saying that some blobs are missed. I got some console messsages written in an very big font- So I compiled the the kernel again with AMDGPU=y this time and now I got all the messages of the kernel boot in normal fonts (my screen is 3840x2160). dmesg: [0.666078] amdgpu :0d:00.0: amdgpu: Fetched VBIOS from VFCT [0.666079] amdgpu: ATOM BIOS: 102-RAPHAEL-008 [0.666084] [drm] VCN(0) decode is enabled in VM mode [0.666085] [drm] VCN(0) encode is enabled in VM mode [0.666087] amdgpu :0d:00.0: vgaarb: deactivate vga console [0.666089] amdgpu :0d:00.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported [0.666091] amdgpu :0d:00.0: amdgpu: PCIE atomic ops is not supported [0.666299] [drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is 9-bit [0.666303] amdgpu :0d:00.0: amdgpu: VRAM: 512M 0x00F4 - 0x00F41FFF (512M used) [0.666305] amdgpu :0d:00.0: amdgpu: GART: 1024M 0x - 0x3FFF [0.666307] amdgpu :0d:00.0: amdgpu: AGP: 267419648M 0x00F8 - 0x [0.666311] [drm] Detected VRAM RAM=512M, BAR=512M [0.666312] [drm] RAM width 128bits DDR5 [0.666327] [drm] amdgpu: 512M of VRAM memory ready [0.666329] [drm] amdgpu: 31782M of GTT memory ready. [0.666525] [drm] GART: num cpu pages 262144, num gpu pages 262144 [0.39] [drm] PCIE GART of 1024M enabled (table at 0x00F41FC0). [0.666963] amdgpu :0d:00.0: amdgpu: PSP runtime database doesn't exist [0.666967] amdgpu :0d:00.0: amdgpu: PSP runtime database doesn't exist [0.667073] [drm] Loading DMUB firmware via PSP: version=0x05000500 [0.668329] [drm] use_doorbell being set to: [true] [0.668408] [drm] Found VCN firmware Version ENC: 1.24 DEC: 2 VEP: 0 Revision: 0 [0.668411] amdgpu :0d:00.0: amdgpu: Will use PSP to load VCN firmware [0.691438] [drm] reserve 0xa0 from 0xf41e00 for PSP TMR [0.760009] amdgpu :0d:00.0: amdgpu: RAS: optional ras ta ucode is not available [0.767012] amdgpu :0d:00.0: amdgpu: RAP: optional rap ta ucode is not available [0.767016] amdgpu :0d:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available [0.767276] amdgpu :0d:00.0: amdgpu: smu driver if version = 0x0004, smu fw if version = 0x0005, smu fw program = 0, smu fw version = 0x00544fcc (84.79.204) [0.768927] [drm] Display Core initialized with v3.2.207! [0.769472] [drm] DMUB hardware initialized: version=0x05000500 [0.815836] amdgpu :0d:00.0: adding component (ops 0x827288f0) [0.816440] device: 'i2c-0': device_add [0.816442] bus: 'i2c': add device i2c-0 [0.843548] device: 'i2c-1': device_add [0.843549] bus: 'i2c': add device i2c-1 [0.843778] device: 'i2c-2': device_add [0.843778] bus: 'i2c': add device i2c-2 [0.843809] device: 'i2c-3': device_add [0.843810] bus: 'i2c': add device i2c-3 [0.88] [drm] kiq ring mec 2 pipe 1 q 0 [0.846850] [drm] VCN decode and encode initialized successfully(under DPG Mode). [0.847968] kfd kfd: amdgpu: Allocated 3969056 bytes on gart [0.848003] amdgpu: sdma_bitmap: 3 [0.848271] amdgpu: Virtual CRAT table created for GPU [0.848480] amdgpu: Topology: Add dGPU node [0x164e:0x1002] [0.848482] kfd kfd: amdgpu: added device 1002:164e [0.848489]
Re: [gentoo-user] need help with amdgpu driver
On 27.01.23 15:30, Julien Roy wrote: Klaus Dittrich writes: as I do not use a initrd or initramfs I am, as far as I know, forced to compile the driver amdgpu into the kernel, not as modules to be loaded. No, you can use modules even without an initrd. I looked at https://wiki.gentoo.org/wiki/Amdgpu#Unknown_firmware_blobs but I still do not know what name is relevant to the built-in-gpu of a AMD-7900X processor.(!?) Does this gpu really needs all these blobs of the list there? No, these blobs are given as examples. They vary per GPU models and in fact there are several hundred different blobs available: ls -l /lib/firmware/amdgpu | wc -l 479 So you have to figure out which ones you need. The easiest method is to let the kernel load them itself by having the driver built as a module, otherwise it may take several iterations of modifying the CONFIG_EXTRA_FIRMWARE value until you get it to work. Julien and Peter, now I (assume I) understand what you mean. The kernel needs the entries to CONFIG_EXTRA_FIRMWARE just for drivers to be compiled in and for modules just to reduce the seeking in /lib/firmware/amdgpu ? So when I set CONFIG_DRM_AMDGPU=m and then look at dmesg of the so compiled kernel it detects the type of hardware I have (here the type of the cpu-built-in gpui and tells me (via dmesg) which blobs are needed to satisfy the driver for the hardware it has detected. I will try that, moment please .. -- Regars Klaus
Re: [gentoo-user] need help with amdgpu driver
Klaus Dittrich writes: > as I do not use a initrd or initramfs I am, as far as I know, forced > to compile the driver amdgpu into the kernel, not as modules to be > loaded. No, you can use modules even without an initrd. > I looked at https://wiki.gentoo.org/wiki/Amdgpu#Unknown_firmware_blobs > but I still do not know what name is relevant to the built-in-gpu > of a AMD-7900X processor.(!?) > > Does this gpu really needs all these blobs of the list there? > No, these blobs are given as examples. They vary per GPU models and in fact there are several hundred different blobs available: ls -l /lib/firmware/amdgpu | wc -l 479 So you have to figure out which ones you need. The easiest method is to let the kernel load them itself by having the driver built as a module, otherwise it may take several iterations of modifying the CONFIG_EXTRA_FIRMWARE value until you get it to work. -- Regards, Julien signature.asc Description: PGP signature
Re: [gentoo-user] need help with amdgpu driver
Hi Klaus, CONFIG_EXTRA_FIRMWARE="amd-ucode/microcode_amd_fam19h.bin amdgpu/psp_13_0_5_toc.bin" CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware" [...] What firmware blobs of linux-firmware has to be installed to support the gpu of a ryzen-7900X? CONFIG_EXTRA_FIRMWARE=? I do not use initrd nor initramfs and all neccessary drivers are not installed as modules but compiled into the kernel. like you, I also use amdgpu hardcompiled into the kernel. It seems to be safe to include _all_ blobs in /lib/firmware/amdgpu. Then you can boot that kernel and check which blobs are actually necessary just by grepping though dmesg. Then you can boil down CONFIG_EXTRA_FIRMWARE to that set. This worked with several different AMD GPUs, RX 7900 included, but I never tried an integrated GPU/APU. Cheers Björn
Re: [gentoo-user] need help with amdgpu driver
Hello Klaus, Klaus Dittrich writes: > > The error happens with and without "amdgpu/psp_13_0_5_ta.bin" in > CONFIG_EXTRA_FIRMWARE as I discoverd meanwqhile. Your issue is most likely that you are missing firmware in the CONFIG_EXTRA_FIRMWARE setting. In my case there at 10 firmware blobs that I need in the kernel. Have you read the AMDGPU page on the Gentoo Wiki? Particularly the part about incorporating firmware blobs in the kernel? https://wiki.gentoo.org/wiki/Amdgpu#Unknown_firmware_blobs What I suggest is you change the AMDGPU driver back to a module rather than built it, and reboot once. Check DMESG (as explain in the link above) and it will show you every firmware that is loaded during boot. What that information you can update your CONFIG_EXTRA_FIRMWARE parameter with the proper values and put the AMDGPU driver back to built-in. -- Regards, Julien signature.asc Description: PGP signature
Re: [gentoo-user] need help with amdgpu driver
On 27.01.23 12:17, Peter Böhm wrote: Hello Klaus, have you made your kernel again after changing EXTRA_FIRMWARE ? Maybe you want read this: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/ Manual_kernel_configuration#Driver_needs_Firmware Greetings, Peter Am Freitag, 27. Januar 2023, 11:08:58 CET schrieb Klaus Dittrich: I it possible that a that moment the kernel cannot get blobs because the ext4 filesystem is not mounted already? So does one have to use initrd to get the blobs loaded? What is the meaning of "failed with error -2"? Peter, thanks for your answer. Sure, the machine is fast so a recompilation of the kernel is no problem. The error happens with and without "amdgpu/psp_13_0_5_ta.bin" in CONFIG_EXTRA_FIRMWARE as I discoverd meanwqhile. -- Regards Klaus
Re: [gentoo-user] need help with amdgpu driver
Hello Klaus, have you made your kernel again after changing EXTRA_FIRMWARE ? Maybe you want read this: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/ Manual_kernel_configuration#Driver_needs_Firmware Greetings, Peter Am Freitag, 27. Januar 2023, 11:08:58 CET schrieb Klaus Dittrich: > I it possible that a that moment the kernel cannot get blobs > because the ext4 filesystem is not mounted already? > So does one have to use initrd to get the blobs loaded? > > What is the meaning of "failed with error -2"?
[gentoo-user] need help with amdgpu driver
I have a ryzen-7900X cpu but I cannot get the amdgpu driver up and running with my kernel 6.1.8 (uefi system) These are the errors dmesg shows: [0.668913] [drm] amdgpu: 512M of VRAM memory ready [0.668915] [drm] amdgpu: 31783M of GTT memory ready. [0.669819] amdgpu :0d:00.0: Direct firmware load for amdgpu/psp_13_0_5_ta.bin failed with error -2 [0.669823] amdgpu :0d:00.0: amdgpu: fail to initialize ta microcode [0.669828] [drm:amdgpu_device_init.cold] *ERROR* sw_init of IP block failed -2 [0.669831] amdgpu :0d:00.0: amdgpu: amdgpu_device_ip_init failed [0.669833] amdgpu :0d:00.0: amdgpu: Fatal error during GPU init [0.669834] amdgpu :0d:00.0: amdgpu: amdgpu: finishing device. [0.670042] amdgpu: probe of :0d:00.0 failed with error -2 [0.670046] amdgpu :0d:00.0: devm_attr_group_remove: removing group (ptrval) [0.670052] [drm] amdgpu: ttm finalized [0.907335] bus: 'pci': add driver pcie_mp2_amd [0.907411] bus: 'platform': add driver amd_pmc [1.007964] amd_hsmp: HSMP is not supported on Fam:19 model:61 [1.007967] amd_hsmp: Or Is HSMP disabled in BIOS ? [1.007968] bus: 'platform': add driver amd-pmf This is my .config # # Firmware loader # CONFIG_FW_LOADER=y CONFIG_FW_LOADER_PAGED_BUF=y CONFIG_FW_LOADER_SYSFS=y CONFIG_EXTRA_FIRMWARE="amd-ucode/microcode_amd_fam19h.bin amdgpu/psp_13_0_5_toc.bin" CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware" CONFIG_FW_LOADER_USER_HELPER=y # CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set CONFIG_FW_LOADER_COMPRESS=y CONFIG_FW_LOADER_COMPRESS_XZ=y CONFIG_FW_LOADER_COMPRESS_ZSTD=y # CONFIG_FW_UPLOAD is not set # end of Firmware loader I do not even get a console because of amdgpu gets not loaded. But I can log into the system via ssh because the system is a copy of my well running mbr system. My questions are: What firmware blobs of linux-firmware has to be installed to support the gpu of a ryzen-7900X? CONFIG_EXTRA_FIRMWARE=? I do not use initrd nor initramfs and all neccessary drivers are not installed as modules but compiled into the kernel. I it possible that a that moment the kernel cannot get blobs because the ext4 filesystem is not mounted already? So does one have to use initrd to get the blobs loaded? What is the meaning of "failed with error -2"? -- regards Klaus
Re: [gentoo-user] Need help to compile a minimal wine
On 09/23 06:39, R0b0t1 wrote: > On Sat, Sep 23, 2017 at 1:21 PM,wrote: > > Hi, > > > > I want to compile wine to execute a single commandline tool. > > That's it. > > > > The commandline tool is the AVR-assembler made by ATmel to recompile > > a FORTH interpreter for the AVR-line of microcontrollers of > > ATMEL/Micorchip: > > > > Are you sure you need the assembler as released by Atmel? Most of > their development work seems to have gone to AVR-GCC. Is the syntax of > avrasm2 unique and are there any features that are not implemented in > GNU as? > > > avrasm2.exe: PE32 executable (console) Intel 80386, for MS Windows > > > > [...] > > > > (My system is not multilib.) > > > > As "WINE is Not an Emulator" it seems to me like you will either need > to reinstall as a multilib system, or set up an x86 chroot or > container to run the assembler. > > There is a small possibility that WINE's WOW64 support (the thing that > runs Win32 executables on Win64) does not require multilib, but if so > then they would have needed to reimplement large parts of multilib and > certain kernel facilities. It does not seem likely that they would > have done this. > > Looking at https://wiki.winehq.org/Building_Wine#Shared_WoW64 it seems > like there is an implicit dependency on a multlib system. Most Linux > distributions are multilib, likely because it is necessary to support > many closed source Linux programs. > > Cheers, > R0b0t1 > Yes, unfortunately I am sure that I need the ATmel-thingy... Amforth as Flashforth are written in ATmel Assembler and based on/compiled with avrasm2...I talked to the developers in beforehand. How can I compile a minimal wine (as described) for my puposes? Cheers Meino
Re: [gentoo-user] Need help to compile a minimal wine
On Sat, Sep 23, 2017 at 1:21 PM,wrote: > Hi, > > I want to compile wine to execute a single commandline tool. > That's it. > > The commandline tool is the AVR-assembler made by ATmel to recompile > a FORTH interpreter for the AVR-line of microcontrollers of > ATMEL/Micorchip: > Are you sure you need the assembler as released by Atmel? Most of their development work seems to have gone to AVR-GCC. Is the syntax of avrasm2 unique and are there any features that are not implemented in GNU as? > avrasm2.exe: PE32 executable (console) Intel 80386, for MS Windows > > [...] > > (My system is not multilib.) > As "WINE is Not an Emulator" it seems to me like you will either need to reinstall as a multilib system, or set up an x86 chroot or container to run the assembler. There is a small possibility that WINE's WOW64 support (the thing that runs Win32 executables on Win64) does not require multilib, but if so then they would have needed to reimplement large parts of multilib and certain kernel facilities. It does not seem likely that they would have done this. Looking at https://wiki.winehq.org/Building_Wine#Shared_WoW64 it seems like there is an implicit dependency on a multlib system. Most Linux distributions are multilib, likely because it is necessary to support many closed source Linux programs. Cheers, R0b0t1
Re: [gentoo-user] Need help to compile a minimal wine
Hi Meino, I haven't tried this, but may I ask why you're not using the ATmel AVR Toolchain [0] that's readily available for Linux? [0] http://www.atmel.com/tools/atmelavrtoolchainforlinux.aspx -- Regards, Christoph Am 23. September 2017 20:21:45 MESZ schrieb tu...@posteo.de: >Hi, > >I want to compile wine to execute a single commandline tool. >That's it. > >The commandline tool is the AVR-assembler made by ATmel to recompile >a FORTH interpreter for the AVR-line of microcontrollers of >ATMEL/Micorchip: > >avrasm2.exe: PE32 executable (console) Intel 80386, for MS Windows > >Most GENTOO related tutorials on how to compile/install wine were >made for those of us who want to use wine as kind a "bootloader" for >games (NO pune intended!). > >I tried to compile wine ... but all end with an compilation error. > >To save time and hassle: >Is there any wine version out there, which is currentlu compilable >and/or recommended? > >Is there any tutorial which covers my intended use case for wine? > >(My system is not multilib.) > >Thanks a lot for any help in advance! >Cheers >Meino
[gentoo-user] Need help to compile a minimal wine
Hi, I want to compile wine to execute a single commandline tool. That's it. The commandline tool is the AVR-assembler made by ATmel to recompile a FORTH interpreter for the AVR-line of microcontrollers of ATMEL/Micorchip: avrasm2.exe: PE32 executable (console) Intel 80386, for MS Windows Most GENTOO related tutorials on how to compile/install wine were made for those of us who want to use wine as kind a "bootloader" for games (NO pune intended!). I tried to compile wine ... but all end with an compilation error. To save time and hassle: Is there any wine version out there, which is currentlu compilable and/or recommended? Is there any tutorial which covers my intended use case for wine? (My system is not multilib.) Thanks a lot for any help in advance! Cheers Meino
Re: [gentoo-user] Need help interpreting kernel panic
On 11.02.2017 20:47, Rich Freeman wrote: > On Sat, Feb 11, 2017 at 2:12 PM, Harry Putnamwrote: >> Again I get a kernel panic but this time its different. It seems to >> mount the disks ok but then fails to find a working `init' command. >> >> Checking that with sysrescueCD I see /sbin/init does exist on that new vm. >> and is executable. >> >> The disk setup is sda1=/boot sda2=swap sda3=/home sda4=/ >> > My guess is that it is mounting the wrong filesystem as root. It > might be detecting /dev/sdb as /dev/sda. Also, the root device might > be named /dev/xda4 depending on the kernel/etc. Systemrescuecd isn't > using the same kernel/etc so it might not see the disks the same way. > > An initramfs with root=UUID="505f850e-b26a-4d0f-a02f-6ba573a48ad8" (or > a label) would be a more reliable way to handle this, or you can > probably just fiddle with the device names until you stumble on the > right one. > > Well, if you look at the kernel messages you see that the init is found but not executable (error -8). I don't know what the error number means, but have you set CONFIG_BINFMT_ELF and CONFIG_BINFMT_SCRIPT in your .config? Is /bin/sh executable?
Re: [gentoo-user] Need help interpreting kernel panic
On Sat, Feb 11, 2017 at 2:12 PM, Harry Putnamwrote: > > Again I get a kernel panic but this time its different. It seems to > mount the disks ok but then fails to find a working `init' command. > > Checking that with sysrescueCD I see /sbin/init does exist on that new vm. > and is executable. > > The disk setup is sda1=/boot sda2=swap sda3=/home sda4=/ > My guess is that it is mounting the wrong filesystem as root. It might be detecting /dev/sdb as /dev/sda. Also, the root device might be named /dev/xda4 depending on the kernel/etc. Systemrescuecd isn't using the same kernel/etc so it might not see the disks the same way. An initramfs with root=UUID="505f850e-b26a-4d0f-a02f-6ba573a48ad8" (or a label) would be a more reliable way to handle this, or you can probably just fiddle with the device names until you stumble on the right one. -- Rich
[gentoo-user] Need help interpreting kernel panic
I didn't want any typos in this kernel output so took a small screen shot. I'm working on a new vm (vbox) install of gentoo but having trouble getting a kernel that boots. Architecture=amd64 (not strict) I started out by copying a .config from a running gentoo vm and using it to do `make oldconfig' then fumbled my way thru the questions, followed by a `make menuconfig' to look things over. That kernel panicked and it seems to say it could not mount an ATA disk. Ok, went back to make oldconfig with that copied .config and and just yessed my way thru the questions. I mean accepting the default on them all. Again I get a kernel panic but this time its different. It seems to mount the disks ok but then fails to find a working `init' command. Checking that with sysrescueCD I see /sbin/init does exist on that new vm. and is executable. The disk setup is sda1=/boot sda2=swap sda3=/home sda4=/ root and kernel lines from grub.conf: root (hd0,0) kernel /vmlinuz root=/dev/sda4 vga=0x31b video=vesfb:mtrr:3,ywrap (see fstab below:) /etc/fstab: # # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. # # NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3 # filesystems. This just tells the kernel to use the ext4 driver. # # NOTE: You can use full paths to devices like /dev/sda3, but it is often # more reliable to use filesystem labels or UUIDs. See your filesystem # documentation for details on setting a label. To obtain the UUID, use # the blkid(8) command. ## /dev/sda1/boot ext2noauto,noatime 1 2 UUID=1e323735-c111-48de-bd04-d255a07cc2b5 /boot ext2noauto,noatime 1 2 ## /dev/sda2noneswapsw 0 0 UUID=5af8156e-3ea7-467e-9bbd-e015dfb25493 noneswapsw 0 0 ## /dev/sda3/home ext4noatime 0 1 UUID=e2a40d27-fdcf-4413-99d5-e01a73ea68f1 /home ext4defaults 0 1 ## /dev/sda4/ ext4noatime 0 1 UUID=505f850e-b26a-4d0f-a02f-6ba573a48ad8 / ext4defaults 0 1 ## ## From blkid: ## /dev/loop0: TYPE="squashfs" ## /dev/sda1: UUID="1e323735-c111-48de-bd04-d255a07cc2b5" TYPE="ext2" PARTUUID="29b3e776-01" ## /dev/sda2: UUID="5af8156e-3ea7-467e-9bbd-e015dfb25493" TYPE="swap" PARTUUID="29b3e776-02" ## /dev/sda3: UUID="e2a40d27-fdcf-4413-99d5-e01a73ea68f1" TYPE="ext4" PARTUUID="29b3e776-03" ## /dev/sda4: UUID="505f850e-b26a-4d0f-a02f-6ba573a48ad8" TYPE="ext4" PARTUUID="29b3e776-04" ## /dev/sdb1: UUID="87d69626-8798-4d1d-8ac9-64e6f8b47f42" TYPE="ext4" PARTUUID="ead06e45-01" ## /dev/sr0: UUID="2017-01-26-18-16-11-00" LABEL="sysrcd-4.9.2" TYPE="iso9660"
[gentoo-user] Need help: Filesystem (ext4) corrupted!
Hi, I need some urgent help... The rootfs and $HOME of my embedded system is stored on a 16GB SD-card (about 5GB used, rest free). The FS is ext4. Since the system hangs for unknown reasons several times I removed the sdcard, put it in a card reader and did an ext4.fsck on it. Clean was the result. Then I forced a check with -f -p. The result was: solfire:/rootfsck.ext4 -f -p /dev/sdb2 rootfs: Inodes that were part of a corrupted orphan linked list found. rootfs: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options) [1]18644 exit 4 fsck.ext4 -f -p /dev/sdb2 Return code 4 means 4- File system errors left uncorrected which indicates nothing and all at the same time. At this point I started to write this mail. Before I fscked the sdcard I mounted the FS and tar'ed everything on it into a backup file. The tar process did not return an error. Since it costs A LOT OF TIME to compile everything from source on a 1GHz CPUed embedded system natively - and for abvious different other reasons - I am very interested in doing the next steps correctly. What can I do to eliminate the problem without data loss (best case) or to save the most while knowing what and where the corrupted data are located on the system? Thank you very much in advance for any help! Best regards, mcc
Re: [gentoo-user] Need help: Filesystem (ext4) corrupted!
On Sep 2, 2013 11:16 PM, meino.cra...@gmx.de wrote: Hi, I need some urgent help... The rootfs and $HOME of my embedded system is stored on a 16GB SD-card (about 5GB used, rest free). The FS is ext4. Since the system hangs for unknown reasons several times I removed the sdcard, put it in a card reader and did an ext4.fsck on it. Clean was the result. Then I forced a check with -f -p. The result was: solfire:/rootfsck.ext4 -f -p /dev/sdb2 rootfs: Inodes that were part of a corrupted orphan linked list found. rootfs: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options) [1]18644 exit 4 fsck.ext4 -f -p /dev/sdb2 Return code 4 means 4- File system errors left uncorrected which indicates nothing and all at the same time. At this point I started to write this mail. Before I fscked the sdcard I mounted the FS and tar'ed everything on it into a backup file. The tar process did not return an error. Since it costs A LOT OF TIME to compile everything from source on a 1GHz CPUed embedded system natively - and for abvious different other reasons - I am very interested in doing the next steps correctly. What can I do to eliminate the problem without data loss (best case) or to save the most while knowing what and where the corrupted data are located on the system? Thank you very much in advance for any help! I'm not really sure how to fix the corrupt fs, but don't forget to backup the whole disk using dd Rgds, --
Re: [gentoo-user] Need help: Filesystem (ext4) corrupted!
Pandu Poluan pa...@poluan.info [13-09-02 18:40]: On Sep 2, 2013 11:16 PM, meino.cra...@gmx.de wrote: Hi, I need some urgent help... The rootfs and $HOME of my embedded system is stored on a 16GB SD-card (about 5GB used, rest free). The FS is ext4. Since the system hangs for unknown reasons several times I removed the sdcard, put it in a card reader and did an ext4.fsck on it. Clean was the result. Then I forced a check with -f -p. The result was: solfire:/rootfsck.ext4 -f -p /dev/sdb2 rootfs: Inodes that were part of a corrupted orphan linked list found. rootfs: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options) [1]18644 exit 4 fsck.ext4 -f -p /dev/sdb2 Return code 4 means 4- File system errors left uncorrected which indicates nothing and all at the same time. At this point I started to write this mail. Before I fscked the sdcard I mounted the FS and tar'ed everything on it into a backup file. The tar process did not return an error. Since it costs A LOT OF TIME to compile everything from source on a 1GHz CPUed embedded system natively - and for abvious different other reasons - I am very interested in doing the next steps correctly. What can I do to eliminate the problem without data loss (best case) or to save the most while knowing what and where the corrupted data are located on the system? Thank you very much in advance for any help! I'm not really sure how to fix the corrupt fs, but don't forget to backup the whole disk using dd Rgds, -- Currently doing exactly this... mcc
Re: [gentoo-user] Need Help!
On Fri, 22 Jun 2012 20:28:11 +0200, Volker Armin Hemmann wrote: protipp: in local.start: dmesg /dmesg.out Or put log_dmesg=YES into /etc/conf.d/bootmisc, which I think is there by default anyway. -- Neil Bothwick When companies ship Styrofoam, what do they pack it in? signature.asc Description: PGP signature
[gentoo-user] Need Help!
Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. -- Willie Matthews matthews.wil...@gmail.com
Re: [gentoo-user] Need Help!
Am Freitag, 22. Juni 2012, 09:20:24 schrieb Willie: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. dmesg, Xorg.0.log, .xsession-errors... for starters. -- #163933
Re: [gentoo-user] Need Help!
Fist thing I do is start XDM, login with my normal users. I can't open Session and Startup. Like I said before, I haven't been on it in XFCE for a long time. When I do that the screen becomes blurry, no keyboard, mouse or ssh access to the computer. I assume that the entire computer is frozen. There is nothing in /var/log/messages but a jump in time from when it crashed to when it started to boot again. Can't read dmesg, if I am not mistaken that starts over when you restart the computer. Haven't tried to read the Xorg.0.log or the .xsession-errors yet. I am going to try it again now and see what it says about this. On Fri, Jun 22, 2012 at 10:17 AM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Freitag, 22. Juni 2012, 09:20:24 schrieb Willie: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. dmesg, Xorg.0.log, .xsession-errors... for starters. -- #163933 -- Willie Matthews matthews.wil...@gmail.com
Re: [gentoo-user] Need Help!
Am Freitag, 22. Juni 2012, 11:07:55 schrieb Willie: Fist thing I do is start XDM, login with my normal users. I can't open Session and Startup. Like I said before, I haven't been on it in XFCE for a long time. When I do that the screen becomes blurry, no keyboard, mouse or ssh access to the computer. I assume that the entire computer is frozen. There is nothing in /var/log/messages but a jump in time from when it crashed to when it started to boot again. Can't read dmesg, if I am not mistaken that starts over when you restart the computer. Haven't tried to read the Xorg.0.log or the .xsession-errors yet. I am going to try it again now and see what it says about this. protipp: in local.start: dmesg /dmesg.out On Fri, Jun 22, 2012 at 10:17 AM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Freitag, 22. Juni 2012, 09:20:24 schrieb Willie: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. dmesg, Xorg.0.log, .xsession-errors... for starters. -- #163933 -- #163933
Re: [gentoo-user] Need Help!
On Fri, Jun 22, 2012 at 11:07 AM, Willie matthews.wil...@gmail.com wrote: Fist thing I do is start XDM, login with my normal users. I can't open Session and Startup. Like I said before, I haven't been on it in XFCE for a long time. When I do that the screen becomes blurry, no keyboard, mouse or ssh access to the computer. I assume that the entire computer is frozen. There is nothing in /var/log/messages but a jump in time from when it crashed to when it started to boot again. Can't read dmesg, if I am not mistaken that starts over when you restart the computer. Haven't tried to read the Xorg.0.log or the .xsession-errors yet. I am going to try it again now and see what it says about this. On Fri, Jun 22, 2012 at 10:17 AM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Freitag, 22. Juni 2012, 09:20:24 schrieb Willie: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. dmesg, Xorg.0.log, .xsession-errors... for starters. -- #163933 -- Willie Matthews matthews.wil...@gmail.com The two files are empty after a reboot. -- Willie Matthews matthews.wil...@gmail.com
Re: [gentoo-user] Need Help!
On Fri, Jun 22, 2012 at 2:28 PM, Willie matthews.wil...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:07 AM, Willie matthews.wil...@gmail.com wrote: Fist thing I do is start XDM, login with my normal users. I can't open Session and Startup. Like I said before, I haven't been on it in XFCE for a long time. When I do that the screen becomes blurry, no keyboard, mouse or ssh access to the computer. I assume that the entire computer is frozen. There is nothing in /var/log/messages but a jump in time from when it crashed to when it started to boot again. Can't read dmesg, if I am not mistaken that starts over when you restart the computer. Haven't tried to read the Xorg.0.log or the .xsession-errors yet. I am going to try it again now and see what it says about this. On Fri, Jun 22, 2012 at 10:17 AM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Freitag, 22. Juni 2012, 09:20:24 schrieb Willie: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. dmesg, Xorg.0.log, .xsession-errors... for starters. [snip] The two files are empty after a reboot. Any Xorg.*.log file would help. dmesg's prior output should find its way into /var/log/messages In any case, try removing xdm from your default runlevel, and run startx and your X session manually? -- :wq
Re: [gentoo-user] Need Help!
On Fri, Jun 22, 2012 at 11:20 AM, Willie matthews.wil...@gmail.com wrote: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. Be sure to emerge --oneshot @x11-module-rebuild after upgrading xorg stuff. Drivers might be out of sync and maybe that's causing your pain. Try to delete/rename your /etc/X11/xorg.conf and see if that makes a difference. Modern Xorg can start a basic environment without it. Try to run startx as a user instead of using xdm and see if you get any better errors/logs. If you have another computer/device SSH into your problematic computer before starting X so you can see if it's still alive, just unresponsive at the local terminal. Maybe then you can see logs and stuff. revdep-rebuild just to ensure everything is consistent on your system.
Re: [gentoo-user] Need Help!
On Fri, Jun 22, 2012 at 11:46 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:20 AM, Willie matthews.wil...@gmail.com wrote: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. Be sure to emerge --oneshot @x11-module-rebuild after upgrading xorg stuff. Drivers might be out of sync and maybe that's causing your pain. Try to delete/rename your /etc/X11/xorg.conf and see if that makes a difference. Modern Xorg can start a basic environment without it. Try to run startx as a user instead of using xdm and see if you get any better errors/logs. If you have another computer/device SSH into your problematic computer before starting X so you can see if it's still alive, just unresponsive at the local terminal. Maybe then you can see logs and stuff. revdep-rebuild just to ensure everything is consistent on your system. I rebuild all of my x11-drivers it rebuild the nvidia driver along with a couple of others. I used startx and got the errors below. I have a feeling it has something to do with my nVidia card (Geforce 8400GS) SSH is not active anymore. It is also the computer that shares the internet and no one can access the internet either. Okay now I think we are getting somewhere. Didn't think to leave XDM out but I did do it. It still froze but I got some useful information soon as it did freeze. This is from /var/log/messages Jun 22 11:52:52 beast kernel: NVRM: Xid (:02:00): 6, PE0001 Jun 22 11:52:54 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:52:54 beast kernel: NVRM: Xid (:02:00): 3, C 0002 SC 0003 M 0100 Data Jun 22 11:53:03 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:05 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:08 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context That was printed as soon as XFCE froze. -- Willie Matthews matthews.wil...@gmail.com
Re: [gentoo-user] Need Help!
On Fri, Jun 22, 2012 at 3:04 PM, Willie matthews.wil...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:46 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:20 AM, Willie matthews.wil...@gmail.com wrote: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. Be sure to emerge --oneshot @x11-module-rebuild after upgrading xorg stuff. Drivers might be out of sync and maybe that's causing your pain. Try to delete/rename your /etc/X11/xorg.conf and see if that makes a difference. Modern Xorg can start a basic environment without it. Try to run startx as a user instead of using xdm and see if you get any better errors/logs. If you have another computer/device SSH into your problematic computer before starting X so you can see if it's still alive, just unresponsive at the local terminal. Maybe then you can see logs and stuff. revdep-rebuild just to ensure everything is consistent on your system. I rebuild all of my x11-drivers it rebuild the nvidia driver along with a couple of others. I used startx and got the errors below. I have a feeling it has something to do with my nVidia card (Geforce 8400GS) SSH is not active anymore. It is also the computer that shares the internet and no one can access the internet either. Okay now I think we are getting somewhere. Didn't think to leave XDM out but I did do it. It still froze but I got some useful information soon as it did freeze. This is from /var/log/messages Jun 22 11:52:52 beast kernel: NVRM: Xid (:02:00): 6, PE0001 Jun 22 11:52:54 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:52:54 beast kernel: NVRM: Xid (:02:00): 3, C 0002 SC 0003 M 0100 Data Jun 22 11:53:03 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:05 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:08 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context That was printed as soon as XFCE froze. What do you have for VIDEO_CARDS in /etc/make.conf? -- :wq
Re: [gentoo-user] Need Help!
On Fri, Jun 22, 2012 at 2:04 PM, Willie matthews.wil...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:46 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:20 AM, Willie matthews.wil...@gmail.com wrote: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. Be sure to emerge --oneshot @x11-module-rebuild after upgrading xorg stuff. Drivers might be out of sync and maybe that's causing your pain. Try to delete/rename your /etc/X11/xorg.conf and see if that makes a difference. Modern Xorg can start a basic environment without it. Try to run startx as a user instead of using xdm and see if you get any better errors/logs. If you have another computer/device SSH into your problematic computer before starting X so you can see if it's still alive, just unresponsive at the local terminal. Maybe then you can see logs and stuff. revdep-rebuild just to ensure everything is consistent on your system. I rebuild all of my x11-drivers it rebuild the nvidia driver along with a couple of others. I used startx and got the errors below. I have a feeling it has something to do with my nVidia card (Geforce 8400GS) SSH is not active anymore. It is also the computer that shares the internet and no one can access the internet either. Okay now I think we are getting somewhere. Didn't think to leave XDM out but I did do it. It still froze but I got some useful information soon as it did freeze. This is from /var/log/messages Jun 22 11:52:52 beast kernel: NVRM: Xid (:02:00): 6, PE0001 Jun 22 11:52:54 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:52:54 beast kernel: NVRM: Xid (:02:00): 3, C 0002 SC 0003 M 0100 Data Jun 22 11:53:03 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:05 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:08 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context That was printed as soon as XFCE froze. Okay, now I googled those errors and it seems to be a fairly common problem. The workaround I saw is to add nolapic_timer to your kernel commandline. Try that, reboot and cross your fingers. ;)
Re: [gentoo-user] Need Help!
On Fri, Jun 22, 2012 at 12:49 PM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 2:04 PM, Willie matthews.wil...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:46 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:20 AM, Willie matthews.wil...@gmail.com wrote: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. Be sure to emerge --oneshot @x11-module-rebuild after upgrading xorg stuff. Drivers might be out of sync and maybe that's causing your pain. Try to delete/rename your /etc/X11/xorg.conf and see if that makes a difference. Modern Xorg can start a basic environment without it. Try to run startx as a user instead of using xdm and see if you get any better errors/logs. If you have another computer/device SSH into your problematic computer before starting X so you can see if it's still alive, just unresponsive at the local terminal. Maybe then you can see logs and stuff. revdep-rebuild just to ensure everything is consistent on your system. I rebuild all of my x11-drivers it rebuild the nvidia driver along with a couple of others. I used startx and got the errors below. I have a feeling it has something to do with my nVidia card (Geforce 8400GS) SSH is not active anymore. It is also the computer that shares the internet and no one can access the internet either. Okay now I think we are getting somewhere. Didn't think to leave XDM out but I did do it. It still froze but I got some useful information soon as it did freeze. This is from /var/log/messages Jun 22 11:52:52 beast kernel: NVRM: Xid (:02:00): 6, PE0001 Jun 22 11:52:54 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:52:54 beast kernel: NVRM: Xid (:02:00): 3, C 0002 SC 0003 M 0100 Data Jun 22 11:53:03 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:05 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:08 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context That was printed as soon as XFCE froze. Okay, now I googled those errors and it seems to be a fairly common problem. The workaround I saw is to add nolapic_timer to your kernel commandline. Try that, reboot and cross your fingers. ;) Yeah I see that too. Tried to add that to my grub.conf/menu.lst. It did not work for me. I rebuild my kernel for nouveau drivers. Rebuilt xorg-drivers and mesa, installed xf86-video-nouveau. So far it is not working, still might have to do some tweaking. -- Willie Matthews matthews.wil...@gmail.com
Re: [gentoo-user] Need Help!
Am Freitag, 22. Juni 2012, 14:51:04 schrieb Willie: On Fri, Jun 22, 2012 at 12:49 PM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 2:04 PM, Willie matthews.wil...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:46 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:20 AM, Willie matthews.wil...@gmail.com wrote: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. Be sure to emerge --oneshot @x11-module-rebuild after upgrading xorg stuff. Drivers might be out of sync and maybe that's causing your pain. Try to delete/rename your /etc/X11/xorg.conf and see if that makes a difference. Modern Xorg can start a basic environment without it. Try to run startx as a user instead of using xdm and see if you get any better errors/logs. If you have another computer/device SSH into your problematic computer before starting X so you can see if it's still alive, just unresponsive at the local terminal. Maybe then you can see logs and stuff. revdep-rebuild just to ensure everything is consistent on your system. I rebuild all of my x11-drivers it rebuild the nvidia driver along with a couple of others. I used startx and got the errors below. I have a feeling it has something to do with my nVidia card (Geforce 8400GS) SSH is not active anymore. It is also the computer that shares the internet and no one can access the internet either. Okay now I think we are getting somewhere. Didn't think to leave XDM out but I did do it. It still froze but I got some useful information soon as it did freeze. This is from /var/log/messages Jun 22 11:52:52 beast kernel: NVRM: Xid (:02:00): 6, PE0001 Jun 22 11:52:54 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:52:54 beast kernel: NVRM: Xid (:02:00): 3, C 0002 SC 0003 M 0100 Data Jun 22 11:53:03 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:05 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:08 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context That was printed as soon as XFCE froze. Okay, now I googled those errors and it seems to be a fairly common problem. The workaround I saw is to add nolapic_timer to your kernel commandline. Try that, reboot and cross your fingers. ;) Yeah I see that too. Tried to add that to my grub.conf/menu.lst. It did not work for me. I rebuild my kernel for nouveau drivers. Rebuilt xorg-drivers and mesa, installed xf86-video-nouveau. So far it is not working, still might have to do some tweaking. if you use nvidia binary, turn off all nvidia graphics related stuff in the kernel and to be sure nothing screws you over - unmerge nouveau. If you use nouveau, try the binary driver. There are reasons, Linus does not like nvidia very much. -- #163933
Re: [gentoo-user] Need Help!
On Fri, Jun 22, 2012 at 4:59 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Freitag, 22. Juni 2012, 14:51:04 schrieb Willie: On Fri, Jun 22, 2012 at 12:49 PM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 2:04 PM, Willie matthews.wil...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:46 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:20 AM, Willie matthews.wil...@gmail.com wrote: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. Be sure to emerge --oneshot @x11-module-rebuild after upgrading xorg stuff. Drivers might be out of sync and maybe that's causing your pain. Try to delete/rename your /etc/X11/xorg.conf and see if that makes a difference. Modern Xorg can start a basic environment without it. Try to run startx as a user instead of using xdm and see if you get any better errors/logs. If you have another computer/device SSH into your problematic computer before starting X so you can see if it's still alive, just unresponsive at the local terminal. Maybe then you can see logs and stuff. revdep-rebuild just to ensure everything is consistent on your system. I rebuild all of my x11-drivers it rebuild the nvidia driver along with a couple of others. I used startx and got the errors below. I have a feeling it has something to do with my nVidia card (Geforce 8400GS) SSH is not active anymore. It is also the computer that shares the internet and no one can access the internet either. Okay now I think we are getting somewhere. Didn't think to leave XDM out but I did do it. It still froze but I got some useful information soon as it did freeze. This is from /var/log/messages Jun 22 11:52:52 beast kernel: NVRM: Xid (:02:00): 6, PE0001 Jun 22 11:52:54 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:52:54 beast kernel: NVRM: Xid (:02:00): 3, C 0002 SC 0003 M 0100 Data Jun 22 11:53:03 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:05 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:08 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context That was printed as soon as XFCE froze. Okay, now I googled those errors and it seems to be a fairly common problem. The workaround I saw is to add nolapic_timer to your kernel commandline. Try that, reboot and cross your fingers. ;) Yeah I see that too. Tried to add that to my grub.conf/menu.lst. It did not work for me. I rebuild my kernel for nouveau drivers. Rebuilt xorg-drivers and mesa, installed xf86-video-nouveau. So far it is not working, still might have to do some tweaking. if you use nvidia binary, turn off all nvidia graphics related stuff in the kernel and to be sure nothing screws you over - unmerge nouveau. If you use nouveau, try the binary driver. There are reasons, Linus does not like nvidia very much. And if you use the nvidia binary driver be sure to blacklist nouveau module so it does not autoload in case the module is still around from a previous build.
Re: [gentoo-user] Need Help!
On Fri, Jun 22, 2012 at 2:59 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Freitag, 22. Juni 2012, 14:51:04 schrieb Willie: On Fri, Jun 22, 2012 at 12:49 PM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 2:04 PM, Willie matthews.wil...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:46 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:20 AM, Willie matthews.wil...@gmail.com wrote: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. Be sure to emerge --oneshot @x11-module-rebuild after upgrading xorg stuff. Drivers might be out of sync and maybe that's causing your pain. Try to delete/rename your /etc/X11/xorg.conf and see if that makes a difference. Modern Xorg can start a basic environment without it. Try to run startx as a user instead of using xdm and see if you get any better errors/logs. If you have another computer/device SSH into your problematic computer before starting X so you can see if it's still alive, just unresponsive at the local terminal. Maybe then you can see logs and stuff. revdep-rebuild just to ensure everything is consistent on your system. I rebuild all of my x11-drivers it rebuild the nvidia driver along with a couple of others. I used startx and got the errors below. I have a feeling it has something to do with my nVidia card (Geforce 8400GS) SSH is not active anymore. It is also the computer that shares the internet and no one can access the internet either. Okay now I think we are getting somewhere. Didn't think to leave XDM out but I did do it. It still froze but I got some useful information soon as it did freeze. This is from /var/log/messages Jun 22 11:52:52 beast kernel: NVRM: Xid (:02:00): 6, PE0001 Jun 22 11:52:54 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:52:54 beast kernel: NVRM: Xid (:02:00): 3, C 0002 SC 0003 M 0100 Data Jun 22 11:53:03 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:05 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:08 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context That was printed as soon as XFCE froze. Okay, now I googled those errors and it seems to be a fairly common problem. The workaround I saw is to add nolapic_timer to your kernel commandline. Try that, reboot and cross your fingers. ;) Yeah I see that too. Tried to add that to my grub.conf/menu.lst. It did not work for me. I rebuild my kernel for nouveau drivers. Rebuilt xorg-drivers and mesa, installed xf86-video-nouveau. So far it is not working, still might have to do some tweaking. if you use nvidia binary, turn off all nvidia graphics related stuff in the kernel and to be sure nothing screws you over - unmerge nouveau. If you use nouveau, try the binary driver. There are reasons, Linus does not like nvidia very much. -- #163933 It was working with this same kernel. I can't figure out for the life of me why it is not working now. I have a feeling after 6 months of upgrades something broke in that time. I am fine with the nouveau driver. I only really want a GUI to play movies. -- Willie Matthews matthews.wil...@gmail.com
Re: [gentoo-user] Need Help!
On Fri, Jun 22, 2012 at 5:55 PM, Willie matthews.wil...@gmail.com wrote: On Fri, Jun 22, 2012 at 2:59 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Freitag, 22. Juni 2012, 14:51:04 schrieb Willie: On Fri, Jun 22, 2012 at 12:49 PM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 2:04 PM, Willie matthews.wil...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:46 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:20 AM, Willie matthews.wil...@gmail.com wrote: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. Be sure to emerge --oneshot @x11-module-rebuild after upgrading xorg stuff. Drivers might be out of sync and maybe that's causing your pain. Try to delete/rename your /etc/X11/xorg.conf and see if that makes a difference. Modern Xorg can start a basic environment without it. Try to run startx as a user instead of using xdm and see if you get any better errors/logs. If you have another computer/device SSH into your problematic computer before starting X so you can see if it's still alive, just unresponsive at the local terminal. Maybe then you can see logs and stuff. revdep-rebuild just to ensure everything is consistent on your system. I rebuild all of my x11-drivers it rebuild the nvidia driver along with a couple of others. I used startx and got the errors below. I have a feeling it has something to do with my nVidia card (Geforce 8400GS) SSH is not active anymore. It is also the computer that shares the internet and no one can access the internet either. Okay now I think we are getting somewhere. Didn't think to leave XDM out but I did do it. It still froze but I got some useful information soon as it did freeze. This is from /var/log/messages Jun 22 11:52:52 beast kernel: NVRM: Xid (:02:00): 6, PE0001 Jun 22 11:52:54 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:52:54 beast kernel: NVRM: Xid (:02:00): 3, C 0002 SC 0003 M 0100 Data Jun 22 11:53:03 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:05 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:08 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context That was printed as soon as XFCE froze. Okay, now I googled those errors and it seems to be a fairly common problem. The workaround I saw is to add nolapic_timer to your kernel commandline. Try that, reboot and cross your fingers. ;) Yeah I see that too. Tried to add that to my grub.conf/menu.lst. It did not work for me. I rebuild my kernel for nouveau drivers. Rebuilt xorg-drivers and mesa, installed xf86-video-nouveau. So far it is not working, still might have to do some tweaking. if you use nvidia binary, turn off all nvidia graphics related stuff in the kernel and to be sure nothing screws you over - unmerge nouveau. If you use nouveau, try the binary driver. There are reasons, Linus does not like nvidia very much. -- #163933 It was working with this same kernel. I can't figure out for the life of me why it is not working now. I have a feeling after 6 months of upgrades something broke in that time. I am fine with the nouveau driver. I only really want a GUI to play movies. -- Willie Matthews matthews.wil...@gmail.com A bit off topic but you don't really need a full GUI for movies. Try just X + mplayer, or XBMC. Dunno if those alone would work for you (and you probably want to fix your problems anyway). Depending on your CPU and video card, the proprietary drivers may help you if you can use VDPAU for video acceleration.
Re: [gentoo-user] Need Help!
This is for my kid. He likes to watch movies. He knows how to use the shortcut on the desktop. I really don't need to reinvent the wheel on this one. It all works just like he learned it. On Fri, Jun 22, 2012 at 5:09 PM, Alecks Gates aleck...@gmail.com wrote: On Fri, Jun 22, 2012 at 5:55 PM, Willie matthews.wil...@gmail.com wrote: On Fri, Jun 22, 2012 at 2:59 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Freitag, 22. Juni 2012, 14:51:04 schrieb Willie: On Fri, Jun 22, 2012 at 12:49 PM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 2:04 PM, Willie matthews.wil...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:46 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Fri, Jun 22, 2012 at 11:20 AM, Willie matthews.wil...@gmail.com wrote: Hi All, I have been running a gentoo box for quite some time without a desktop manager. Did a lot of upgrading in between time also. The problem I am having is when I login I can't open any Windows. The only one that has open without crashing the entire computer that I know of is VLC. Any help is greatly appreciated. Be sure to emerge --oneshot @x11-module-rebuild after upgrading xorg stuff. Drivers might be out of sync and maybe that's causing your pain. Try to delete/rename your /etc/X11/xorg.conf and see if that makes a difference. Modern Xorg can start a basic environment without it. Try to run startx as a user instead of using xdm and see if you get any better errors/logs. If you have another computer/device SSH into your problematic computer before starting X so you can see if it's still alive, just unresponsive at the local terminal. Maybe then you can see logs and stuff. revdep-rebuild just to ensure everything is consistent on your system. I rebuild all of my x11-drivers it rebuild the nvidia driver along with a couple of others. I used startx and got the errors below. I have a feeling it has something to do with my nVidia card (Geforce 8400GS) SSH is not active anymore. It is also the computer that shares the internet and no one can access the internet either. Okay now I think we are getting somewhere. Didn't think to leave XDM out but I did do it. It still froze but I got some useful information soon as it did freeze. This is from /var/log/messages Jun 22 11:52:52 beast kernel: NVRM: Xid (:02:00): 6, PE0001 Jun 22 11:52:54 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:52:54 beast kernel: NVRM: Xid (:02:00): 3, C 0002 SC 0003 M 0100 Data Jun 22 11:53:03 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:05 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context Jun 22 11:53:08 beast kernel: NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context That was printed as soon as XFCE froze. Okay, now I googled those errors and it seems to be a fairly common problem. The workaround I saw is to add nolapic_timer to your kernel commandline. Try that, reboot and cross your fingers. ;) Yeah I see that too. Tried to add that to my grub.conf/menu.lst. It did not work for me. I rebuild my kernel for nouveau drivers. Rebuilt xorg-drivers and mesa, installed xf86-video-nouveau. So far it is not working, still might have to do some tweaking. if you use nvidia binary, turn off all nvidia graphics related stuff in the kernel and to be sure nothing screws you over - unmerge nouveau. If you use nouveau, try the binary driver. There are reasons, Linus does not like nvidia very much. -- #163933 It was working with this same kernel. I can't figure out for the life of me why it is not working now. I have a feeling after 6 months of upgrades something broke in that time. I am fine with the nouveau driver. I only really want a GUI to play movies. -- Willie Matthews matthews.wil...@gmail.com A bit off topic but you don't really need a full GUI for movies. Try just X + mplayer, or XBMC. Dunno if those alone would work for you (and you probably want to fix your problems anyway). Depending on your CPU and video card, the proprietary drivers may help you if you can use VDPAU for video acceleration. -- Willie Matthews matthews.wil...@gmail.com
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On Wed, Dec 14, 2011 at 04:40:01PM +0100, Tanstaafl wrote: Hope someone has an idea... You could try esmtp; Always seems to work for me when the others fail. Haven't tried what you're pursuing, but surely it can be made to work fairly easily... -- caveat utilitor ♫ ❤ ♫ ❤ ♫ ❤ ♫ ❤
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 5:09 PM, Neil Bothwick n...@digimed.co.uk wrote: Try PORTAGE_ELOG_MAILURI=you@home /usr/sbin/sendmail Bingo! I guess I didn't/don't fully understand what needs to go here... I received the message, but it comes 'from' 'portage@localhost'... how/where can I change this from address? Thanks Neil!
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-15 7:21 AM, Tanstaafl tansta...@libertytrek.org wrote: I received the message, but it comes 'from' 'portage@localhost'... how/where can I change this from address? Never mind, found it: PORTAGE_ELOG_MAILFROM=myaddress.example Thanks again Neil!
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-13 5:42 PM, Leho Kraav l...@kraav.com wrote: i would first of all suggest dropping ssmtp and going with nullmailer. if ssmtp fails for any reason it will lose your emails. nullmailer has queue capability. Sounds good, I'll give it a shot (emerging now)... Is there a decent HowTo on getting it up and running? The manpage was full of technical stuff but I didn't see anmy clearcut examples of getting it actually running and being used as the systems default mta for sending messages. Thanks!
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 6:43 AM, Tanstaafl tansta...@libertytrek.org wrote: On 2011-12-13 5:42 PM, Leho Kraav l...@kraav.com wrote: i would first of all suggest dropping ssmtp and going with nullmailer. if ssmtp fails for any reason it will lose your emails. nullmailer has queue capability. Sounds good, I'll give it a shot (emerging now)... Ok, emerged, did emerge --config nullmailer, added: # A nonstandard SMTP server setup: # someotherserver.domain.com smtp --port=2525 mail.myserver.com smtp --port=587 --user=user --pass=pass to /etc/nullmailer/remotes, and added it to default runlevel. When starting manually I get the following warning: li66-207 nullmailer # /etc/init.d/nullmailer start * Starting nullmailer ... [ ok ] * WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead li66-207 nullmailer # Checking the init script, I see: start() { checkconfig ebegin Starting nullmailer cd /var/nullmailer start-stop-daemon --start --quiet --chuid ${USER}:${GROUP} \ --exec ${DAEMON} -- ${ARGS} eend $? } Should I change this? Ianap, so don't really feel comfortable just changing it without confirming first... Thanks again...
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On Dec 14, 2011 7:08 PM, Tanstaafl tansta...@libertytrek.org wrote: On 2011-12-14 6:43 AM, Tanstaafl tansta...@libertytrek.org wrote: On 2011-12-13 5:42 PM, Leho Kraav l...@kraav.com wrote: i would first of all suggest dropping ssmtp and going with nullmailer. if ssmtp fails for any reason it will lose your emails. nullmailer has queue capability. Sounds good, I'll give it a shot (emerging now)... Ok, emerged, did emerge --config nullmailer, added: # A nonstandard SMTP server setup: # someotherserver.domain.com smtp --port=2525 mail.myserver.com smtp --port=587 --user=user --pass=pass to /etc/nullmailer/remotes, and added it to default runlevel. When starting manually I get the following warning: li66-207 nullmailer # /etc/init.d/nullmailer start * Starting nullmailer ... [ ok ] * WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead li66-207 nullmailer # Checking the init script, I see: start() { checkconfig ebegin Starting nullmailer cd /var/nullmailer start-stop-daemon --start --quiet --chuid ${USER}:${GROUP} \ --exec ${DAEMON} -- ${ARGS} eend $? } Should I change this? Ianap, so don't really feel comfortable just changing it without confirming first... Thanks again... Don't. Just file a bug, and let the maintainer take care of it. It's *still* supported currently. Rgds,
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On Wed, 14 Dec 2011 07:05:12 -0500, Tanstaafl wrote: When starting manually I get the following warning: li66-207 nullmailer # /etc/init.d/nullmailer start * Starting nullmailer ... [ ok ] * WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead Ignore it, it is only a deprecation warning. IMO these warnings shouldn't be displayed to normal users by default, they are intended for devs. -- Neil Bothwick Walk softly and carry a fully charged phazer. signature.asc Description: PGP signature
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 7:16 AM, Pandu Poluan pa...@poluan.info wrote: Should I change this? Ianap, so don't really feel comfortable just changing it without confirming first... Don't. Just file a bug, and let the maintainer take care of it. It's *still* supported currently. Will do... But, I noticed I was still getting the same error after unmerging ssmtp and emerging nullmailer, and /etc/ssmtp still exists... so apparently it is still trying to use ssmtp somehow? I moved the /etc/ssmtp dir (temporarily, until I figure this out) to my home directory, and set PORTAGE_ELOG_MAILURI= back to its default (commented it out), and now I'm getting this error: !!! A network error occurred while trying to send logmail: [Errno 111] Connection refused Sure you configured PORTAGE_ELOG_MAILURI correctly? How do I tell the system to use nullmailer?
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On Dec 14, 2011 7:22 PM, Neil Bothwick n...@digimed.co.uk wrote: On Wed, 14 Dec 2011 07:05:12 -0500, Tanstaafl wrote: When starting manually I get the following warning: li66-207 nullmailer # /etc/init.d/nullmailer start * Starting nullmailer ... [ ok ] * WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead Ignore it, it is only a deprecation warning. IMO these warnings shouldn't be displayed to normal users by default, they are intended for devs. ... or for normal users so that the normal users will file a bug. :-) Rgds,
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 7:25 AM, Tanstaafl tansta...@libertytrek.org wrote: !!! A network error occurred while trying to send logmail: [Errno 111] Connection refused Sure you configured PORTAGE_ELOG_MAILURI correctly? Ok, finally figured out why I wasn't seeing any errors in the main log... Here is the error in the main log: Dec 14 07:58:17 li66-207 nullmailer[27759]: Starting delivery: protocol: smtp host: mail.myserver.com file: 1323867377.8321 Dec 14 07:58:17 li66-207 nullmailer[13029]: smtp: Failed: 530 5.7.0 Must issue a STARTTLS command first Dec 14 07:58:17 li66-207 nullmailer[27759]: Sending failed: Permanent error in sending the message Dec 14 07:58:17 li66-207 nullmailer[27759]: Delivery complete, 1 message(s) remain. So... does nullmailer even support STARTTLS?
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 8:00 AM, Tanstaafl tansta...@libertytrek.org wrote: So... does nullmailer even support STARTTLS? Crap, apparently not... http://untroubled.org/nullmailer/TODO back to square one...
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On Wed, 14 Dec 2011 19:28:33 +0700, Pandu Poluan wrote: Ignore it, it is only a deprecation warning. IMO these warnings shouldn't be displayed to normal users by default, they are intended for devs. ... or for normal users so that the normal users will file a bug. :-) After they have asked about it on mailing lists and forums for the umpteenth time. The package devs and arch testers should see those messages, it's only a deprecation notice not an error. -- Neil Bothwick Windows - From the people who brought you EDLIN! signature.asc Description: PGP signature
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 8:05 AM, Tanstaafl tansta...@libertytrek.org wrote: On 2011-12-14 8:00 AM, Tanstaafl tansta...@libertytrek.org wrote: So... does nullmailer even support STARTTLS? Crap, apparently not... http://untroubled.org/nullmailer/TODO back to square one... Ok, found msmtp, which does support STARTTLS, and still can't get this working... I really hope I don't have to resort to installing postfix just to get simple outbound mail running... I've removed nullmailer (had to manually kill the still running process and delete the /etc/nullmailer dir for it too), and installed and configged msmtp, and it is still not working... I also did reset PORTAGE_ELOG_MAILURI= to default (commented it out). li66-207 ~ # msmtp --serverinfo SMTP server at smtp.myserver.com (smtp.myserver.com [70.43.81.99]), port 587: smtp.myserver.com ESMTP Postfix Capabilities: SIZE 3072: Maximum message size is 3072 bytes = 29.30 MiB PIPELINING: Support for command grouping for faster transmission ETRN: Support for RMQS (Remote Message Queue Starting) DSN: Support for Delivery Status Notifications STARTTLS: Support for TLS encryption via the STARTTLS command This server might advertise more or other capabilities when TLS is active. li66-207 ~ # So, it is talking successfully to my relayhost here in the office, but I'm still getting this ordinary error: !!! A network error occurred while trying to send logmail: [Errno 111] Connection refused Sure you configured PORTAGE_ELOG_MAILURI correctly? and NOTHING in/var/log/messages... Hope someone has an idea...
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 10:29 AM, Tanstaafl tansta...@libertytrek.org wrote: !!! A network error occurred while trying to send logmail: [Errno 111] Connection refused Sure you configured PORTAGE_ELOG_MAILURI correctly? and NOTHING in/var/log/messages... Ok, so, I now have more info so hopefully some kind soul will take pity on me and provide the clue-stick... I can confirm that sending email from the commandline now works: li66-207 ~ # echo This is a test e-mail... | mail -s Test e-mail ad...@myserver.com li66-207 ~ # I received the email. But, I'm still getting the same error as above when portage tries to email me the emerge logs. How do I tell portage to simply use the 'mail' command?
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On Wed, 14 Dec 2011 15:29:44 -0500 Tanstaafl tansta...@libertytrek.org wrote: On 2011-12-14 10:29 AM, Tanstaafl tansta...@libertytrek.org wrote: !!! A network error occurred while trying to send logmail: [Errno 111] Connection refused Sure you configured PORTAGE_ELOG_MAILURI correctly? and NOTHING in/var/log/messages... Ok, so, I now have more info so hopefully some kind soul will take pity on me and provide the clue-stick... I can confirm that sending email from the commandline now works: li66-207 ~ # echo This is a test e-mail... | mail -s Test e-mail ad...@myserver.com li66-207 ~ # Did you send this as user? What about sending this from the root account? Urs
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 3:59 PM, Urs Schutz u.sch...@bluewin.ch wrote: Did you send this as user? What about sending this from the root account? I sent it from root... maybe that's the problem?
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On Wed, 14 Dec 2011 15:29:44 -0500, Tanstaafl wrote: I can confirm that sending email from the commandline now works: How do I tell portage to simply use the 'mail' command? AFAIR there used to be an option for this, but it's not in the docs. Have you tried PORTAGE_ELOG_MAILURI=user@address localhost Or leave MAILURI unset in which case it will deliver to root@localhost. -- Neil Bothwick Top Oxymorons Number 4: Diet ice cream signature.asc Description: PGP signature
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On 2011-12-14 4:09 PM, Neil Bothwick n...@digimed.co.uk wrote: On Wed, 14 Dec 2011 15:29:44 -0500, Tanstaafl wrote: I can confirm that sending email from the commandline now works: How do I tell portage to simply use the 'mail' command? AFAIR there used to be an option for this, but it's not in the docs. Have you tried PORTAGE_ELOG_MAILURI=user@address localhost Or leave MAILURI unset in which case it will deliver to root@localhost. Yep, that's how it is set now... I'm stumped...
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
On Wed, 14 Dec 2011 15:29:44 -0500, Tanstaafl wrote: How do I tell portage to simply use the 'mail' command? You don't, you tell it to use sendmail From make.conf.example: mailserver: smtp server that should be used to deliver the mail (defaults to localhost) alternatively this can also be a the path to a sendmail binary if you don't want to use smtp Try PORTAGE_ELOG_MAILURI=you@home /usr/sbin/sendmail This will use ssmtp's sendmail, which you already have working. -- Neil Bothwick This is the day for firm decisions! Or is it? signature.asc Description: PGP signature
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
Neil Bothwick writes: On Wed, 14 Dec 2011 15:29:44 -0500, Tanstaafl wrote: I can confirm that sending email from the commandline now works: How do I tell portage to simply use the 'mail' command? AFAIR there used to be an option for this, but it's not in the docs. Have you tried PORTAGE_ELOG_MAILURI=user@address localhost Or leave MAILURI unset in which case it will deliver to root@localhost. What about PORTAGE_ELOG_COMMAND=cat '\${LOGFILE}' | mail -s 'ebuild log for \${PACKAGE}' user@address Doesn't seem to work here, though. Even if I set PORTAGE_ELOG_SYSTEM to custom and PORTAGE_ELOG_COMMAND to an existing script, it is not being called. Wonko
[gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
Hi all, Ok, this is also on this new hosted VM... I need help getting portage to email me emerge logs using SASL auth on a remote host using ssmtp... I found this thread that has me almost there (I think): http://www.gossamer-threads.com/lists/gentoo/user/217567?do=post_view_threaded#217567 But it doesn't seem to be using SASL auth, because the attempt is being blocked by my server client_access rule (which comes *after* permit_sasl_authenticated)... Here's what I have in make.conf (after reading the above thread): PORTAGE_ELOG_MAILURI=root@user:password mail.myserver.com:100587 and in ssmtpd.conf: root=postmaster mailhub=mail.myserver.com:587 AuthUser=username AuthPass=password UseSTARTTLS=YES And here is the error I'm currently getting: !!! An error occurred while trying to send logmail: {'root@username:password': (554, '5.7.1 li66-207.members.linode.com[74.207.224.207]: Client host rejected: Access denied')} Anyone have any ideas? Thanks, Charles
Re: [gentoo-user] Need help getting portage to email me emerge logs using ssmtp...
i would first of all suggest dropping ssmtp and going with nullmailer. if ssmtp fails for any reason it will lose your emails. nullmailer has queue capability.
Re: [gentoo-user] Need help with pvrusb2 [SOLVED]
Am 24.10.2011 03:15, schrieb Michael Sullivan: On 10/23/11 18:15, Neil Bothwick wrote: On Sun, 23 Oct 2011 18:00:52 -0500, Michael Sullivan wrote: pvrusb2: request_firmware unable to locate fx2 controller file v4l-pvrusb2-73xxx-01.fw Is this file present in /lib/firmware? Nope: It should be obvious that this needs to be addressed before anything else. [...] I downloaded that file and rebooted and dmesg griped about another file and I found it and downloaded it and rebooted and now my output looks like this, which I'm happy with: [...] Speaking of which, isn't there an easier way to reload modules than rebooting? When I started using Gentoo in 2004, there was an /etc/init.d/hotplug, which was replaced by /etc/init.d/coldplug, but neither one seems to be present anymore on the system. What service loads modules on bootup now? You mean like `modprobe -vr pvrusb2 modprobe -v pvrusb2`? I joined Gentoo in 2006 so I'm not sure if that is what you mean. It doesn't help much with pvrusb2, anyway ... (but you can still try) signature.asc Description: OpenPGP digital signature
[gentoo-user] Need help with pvrusb2
Hello. I recently purchased a Hauppauge WinTV-HVR external TV card. I'm trying to get it to work with Gentoo Linux. I think I've followed the steps found at http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-1900 correctly, but I'm still getting errors. When I plug the TV card into the USB slot in the back of the computer and search dmesg, it says: michael@carter /lib/firmware $ dmesg | grep pvrusb2 pvrusb2: Hardware description: WinTV HVR-1950 Model 751xx usbcore: registered new interface driver pvrusb2 pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner pvrusb2: Debug mask is 31 (0x1f) pvrusb2: ***WARNING*** Device fx2 controller firmware seems to be missing. pvrusb2: Did you install the pvrusb2 firmware files in their proper location? pvrusb2: request_firmware unable to locate fx2 controller file v4l-pvrusb2-73xxx-01.fw pvrusb2: Failure uploading firmware1 pvrusb2: Device initialization was not successful. pvrusb2: Giving up since device microcontroller firmware appears to be missing. pvrusb2: Device being rendered inoperable pvrusb2: Hardware description: WinTV HVR-1950 Model 751xx pvrusb2: ***WARNING*** Device fx2 controller firmware seems to be missing. pvrusb2: Did you install the pvrusb2 firmware files in their proper location? pvrusb2: request_firmware unable to locate fx2 controller file v4l-pvrusb2-73xxx-01.fw pvrusb2: Failure uploading firmware1 pvrusb2: Device initialization was not successful. pvrusb2: Giving up since device microcontroller firmware appears to be missing. I've emerged linuxtv-dvb-firmware and reissued the above command with no change. How do I get Gentoo to recognize this card? -Michael Sullivan-
Re: [gentoo-user] Need help with pvrusb2
Am 23.10.2011 23:36, schrieb Michael Sullivan: Hello. I recently purchased a Hauppauge WinTV-HVR external TV card. I'm trying to get it to work with Gentoo Linux. I think I've followed the steps found at http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-1900 correctly, but I'm still getting errors. When I plug the TV card into the USB slot in the back of the computer and search dmesg, it says: [...] I've emerged linuxtv-dvb-firmware and reissued the above command with no change. How do I get Gentoo to recognize this card? -Michael Sullivan- Try media-tv/ivtv-firmware. For some reason, that works better for me. And also media-tv/ivtv-utils. BTW: If your HVR behaves the same as my old PVR2, it can sometimes help to suspend and wake the system to get it working. signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Need help with pvrusb2
On 10/23/11 16:52, Florian Philipp wrote: Am 23.10.2011 23:36, schrieb Michael Sullivan: Hello. I recently purchased a Hauppauge WinTV-HVR external TV card. I'm trying to get it to work with Gentoo Linux. I think I've followed the steps found at http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-1900 correctly, but I'm still getting errors. When I plug the TV card into the USB slot in the back of the computer and search dmesg, it says: [...] I've emerged linuxtv-dvb-firmware and reissued the above command with no change. How do I get Gentoo to recognize this card? -Michael Sullivan- Try media-tv/ivtv-firmware. For some reason, that works better for me. And also media-tv/ivtv-utils. BTW: If your HVR behaves the same as my old PVR2, it can sometimes help to suspend and wake the system to get it working. I suspended the system, but now I can't wake it up again! I hit the power button, and I heard a sound through the speakers similar to an error sound. I would say a barb sound, but I doubt any of you would be able to make sense of it. The only visual output of that computer is a video output component going to the TV set. I work on that computer through ssh from another one in another room. Should I just restart it manually? If not, how do I wake it up?
Re: [gentoo-user] Need help with pvrusb2
On 10/23/11 16:52, Florian Philipp wrote: Am 23.10.2011 23:36, schrieb Michael Sullivan: Hello. I recently purchased a Hauppauge WinTV-HVR external TV card. I'm trying to get it to work with Gentoo Linux. I think I've followed the steps found at http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-1900 correctly, but I'm still getting errors. When I plug the TV card into the USB slot in the back of the computer and search dmesg, it says: [...] I've emerged linuxtv-dvb-firmware and reissued the above command with no change. How do I get Gentoo to recognize this card? -Michael Sullivan- Try media-tv/ivtv-firmware. For some reason, that works better for me. And also media-tv/ivtv-utils. BTW: If your HVR behaves the same as my old PVR2, it can sometimes help to suspend and wake the system to get it working. OK. I restarted the computer. (I have never suspended that computer before and was unsure of what would happen, but I did not realize at the time that my the game running on my wife's computer was using a samba share that would be disrupted.) I had no luck with ivtv-firmware, so I have reinstalled linuxtv-dvb-firmware-2009.09.19. Now the output of dmesg has changed somewhat: michael@carter ~ $ dmesg | grep -i pvr pvrusb2: Hardware description: WinTV HVR-1950 Model 751xx usbcore: registered new interface driver pvrusb2 pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner pvrusb2: Debug mask is 31 (0x1f) pvrusb2: ***WARNING*** Device fx2 controller firmware seems to be missing. pvrusb2: Did you install the pvrusb2 firmware files in their proper location? pvrusb2: request_firmware unable to locate fx2 controller file v4l-pvrusb2-73xxx-01.fw pvrusb2: Failure uploading firmware1 pvrusb2: Device initialization was not successful. pvrusb2: Giving up since device microcontroller firmware appears to be missing. Does this help?
Re: [gentoo-user] Need help with pvrusb2
On Sun, 23 Oct 2011 16:36:41 -0500, Michael Sullivan wrote: pvrusb2: request_firmware unable to locate fx2 controller file v4l-pvrusb2-73xxx-01.fw Is this file present in /lib/firmware? -- Neil Bothwick UNILINGUAL: American. signature.asc Description: PGP signature
Re: [gentoo-user] Need help with pvrusb2
On 10/23/11 17:48, Neil Bothwick wrote: On Sun, 23 Oct 2011 16:36:41 -0500, Michael Sullivan wrote: pvrusb2: request_firmware unable to locate fx2 controller file v4l-pvrusb2-73xxx-01.fw Is this file present in /lib/firmware? Nope: michael@carter ~ $ ls /lib/firmware 3com cpia2 ess mts_gsm.fw ti_3410.fwvicam acenic cxgb3 kaweth ositech ti_5052.fw whiteheat.fw adaptec dabusbkeyspan_pda qlogic tigon whiteheat_loader.fw advansys e100 korg r128tr_smctr.bin yamaha atmsar11.fw edgeport matrox radeon ttusb-budget bnx2 emi26 mts_cdma.fw sun v4l-cx25840.fw cis emi62 mts_edge.fw tehuti v4l-cx25840.fw.1 How do I get that file?
Re: [gentoo-user] Need help with pvrusb2
On Sun, 23 Oct 2011 18:00:52 -0500, Michael Sullivan wrote: pvrusb2: request_firmware unable to locate fx2 controller file v4l-pvrusb2-73xxx-01.fw Is this file present in /lib/firmware? Nope: It should be obvious that this needs to be addressed before anything else. How do I get that file? Putting the filename into Google gave me those instructions in the first link. -- Neil Bothwick Rainbows are just to look at, not to really understand. signature.asc Description: PGP signature
Re: [gentoo-user] Need help with pvrusb2
On 10/23/11 18:15, Neil Bothwick wrote: On Sun, 23 Oct 2011 18:00:52 -0500, Michael Sullivan wrote: pvrusb2: request_firmware unable to locate fx2 controller file v4l-pvrusb2-73xxx-01.fw Is this file present in /lib/firmware? Nope: It should be obvious that this needs to be addressed before anything else. How do I get that file? Putting the filename into Google gave me those instructions in the first link. OK I've got the file: michael@carter /lib/firmware $ ls v4l-pvrusb2-73xxx-01.fw v4l-pvrusb2-73xxx-01.fw It's still giving me the same errors though: michael@carter /lib/firmware $ dmesg | grep pvrusb pvrusb2: Hardware description: WinTV HVR-1950 Model 751xx usbcore: registered new interface driver pvrusb2 pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner pvrusb2: Debug mask is 31 (0x1f) pvrusb2: ***WARNING*** Device fx2 controller firmware seems to be missing. pvrusb2: Did you install the pvrusb2 firmware files in their proper location? pvrusb2: request_firmware unable to locate fx2 controller file v4l-pvrusb2-73xxx-01.fw pvrusb2: Failure uploading firmware1 pvrusb2: Device initialization was not successful. pvrusb2: Giving up since device microcontroller firmware appears to be missing.
Re: [gentoo-user] Need help with pvrusb2 [SOLVED]
On 10/23/11 18:15, Neil Bothwick wrote: On Sun, 23 Oct 2011 18:00:52 -0500, Michael Sullivan wrote: pvrusb2: request_firmware unable to locate fx2 controller file v4l-pvrusb2-73xxx-01.fw Is this file present in /lib/firmware? Nope: It should be obvious that this needs to be addressed before anything else. How do I get that file? Putting the filename into Google gave me those instructions in the first link. I downloaded that file and rebooted and dmesg griped about another file and I found it and downloaded it and rebooted and now my output looks like this, which I'm happy with: michael@carter ~ $ dmesg | grep -i pvrusb2 pvrusb2: Hardware description: WinTV HVR-1950 Model 751xx usbcore: registered new interface driver pvrusb2 pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner pvrusb2: Debug mask is 31 (0x1f) pvrusb2: Binding ir_rx_z8f0811_haup to i2c address 0x71. pvrusb2: Binding ir_tx_z8f0811_haup to i2c address 0x70. cx25840 2-0044: cx25843-24 found @ 0x88 (pvrusb2_a) pvrusb2: Attached sub-driver cx25840 pvrusb2: Attached sub-driver tuner pvrusb2: Supported video standard(s) reported available in hardware: PAL-M/N/Nc;NTSC-M/Mj/Mk;ATSC-8VSB/16VSB pvrusb2: Mapping standards mask=0x300b700 (PAL-M/N/Nc;NTSC-M/Mj/Mk;ATSC-8VSB/16VSB) pvrusb2: Setting up 6 unique standard(s) pvrusb2: Set up standard idx=0 name=PAL-M pvrusb2: Set up standard idx=1 name=PAL-N pvrusb2: Set up standard idx=2 name=PAL-Nc pvrusb2: Set up standard idx=3 name=NTSC-M pvrusb2: Set up standard idx=4 name=NTSC-Mj pvrusb2: Set up standard idx=5 name=NTSC-Mk pvrusb2: Initial video standard (determined by device type): NTSC-M pvrusb2: Device initialization completed successfully. pvrusb2: registered device video0 [mpeg] DVB: registering new adapter (pvrusb2-dvb) Speaking of which, isn't there an easier way to reload modules than rebooting? When I started using Gentoo in 2004, there was an /etc/init.d/hotplug, which was replaced by /etc/init.d/coldplug, but neither one seems to be present anymore on the system. What service loads modules on bootup now?
[gentoo-user] Need help : Compiling xe-guest-utilities (xenstore) from Source
Okay, I got the .rpm for Citrix's xe-guest-utilities from this thread: http://forums.citrix.com/message.jspa?messageID=1468339 Granted, it's slightly older than the latest version, but that's not my main problem. The problem is: How do I run a Config.mk file? Or am I looking at this from a wrong way? Any hints would be appreciated; my Google-fu has failed me. Rgds, -- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com Google Talk: pepoluan Y! messenger: pepoluan MSN / Live: pepol...@hotmail.com (do not send email here) Skype: pepoluan More on me: My LinkedIn Account My Facebook Account
Re: OT: CVS [WAS: Re: [gentoo-user] Need help discovering what's using a port (for cvsd)] SOLVED
On Fri, 2010-03-05 at 09:43 -0600, Paul Hartman wrote: On Thu, Mar 4, 2010 at 5:54 PM, Michael Sullivan msulli1...@gmail.com wrote: On Thu, 2010-03-04 at 17:30 -0600, Paul Hartman wrote: On Thu, Mar 4, 2010 at 5:02 PM, Michael Sullivan msulli1...@gmail.com wrote: netstat: no support for `AF IPX' on this system. netstat: no support for `AF AX25' on this system. netstat: no support for `AF X25' on this system. netstat: no support for `AF NETROM' on this system. I assume these are kernel options, but without knowing specific symbol names, I'm not sure how to compile them into the kernel. Can anyone give me any advice on this situation? I think if you don't have support for those protocols the chances of a program using them is probably zero. :) FWIW i get the exact same messages. I don't think it is meaningful. I use a similar command (omitting all the unix sockets stuff): netstat -lnp --inet With regard to your original problem, try to edit the cvsd.conf and specify an actual IP address to listen on (instead of 0.0.0.0 or * or however it is defined there) and see if that helps. Now I've got the server running, but I can't connect to it: mich...@camille ~ $ cvs login Logging in to :pserver:mich...@carter.espersunited.com:2401/root CVS password: cvs [login aborted]: connect to carter.espersunited.com(192.168.1.2):2401 failed: Connection refused Hmm, does cvsd use inetd? maybe it needs to be added to allowed port list or something like that. This line in the config file: Listen 127.0.0.1 2401 needed to be changed to this: Listen 192.168.1.2 2401 And now it works
Re: [gentoo-user] Need help with samba (Possibly OT)
On Mon, 2010-06-14 at 22:43 +0100, Stroller wrote: On 14 Jun 2010, at 21:41, Michael Sullivan wrote: ... When I try to connect to the samba share from my linux install, I get this: mich...@camille ~ $ smbclient //carter//home Enter michael's password: Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] tree connect failed: NT_STATUS_BAD_NETWORK_NAME mich...@camille ~ $ smbclient //carter//michael Enter michael's password: Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] tree connect failed: NT_STATUS_BAD_NETWORK_NAME (The host name is carter, and I didn't understand what the second part should be.) If you're referring to the //first/second syntax, then the first part is the computer name, the second part the share name. Also, I didn't know if michael's password meant my password on my local box, my password on the remote box, or some password I set up for Samba forever ago... The second / third option. Each user on the Samba server has a password, but it isn't the same as their system password. Log on to the Samba server (i.e. `ssh carter`) and run smbpasswd (possibly `sudo smbpasswd -U michael`). Here's my /etc/samba/smb.conf file: ... hosts allow = 192.168.1. 127. If it's been some time since this system was used, are you still using the 192.168.1.x subnet? If your ISP sent you a new router, you might now be on 192.168.0.x. IMO change this to: hosts allow = 192.168. 127. Also run `smbtree` (works without a password). I appreciate that Samba tends not to make any sense when you're inexperienced, but there ought to be lots of troubleshooting guides out there. Google troubleshooting samba, follow through the steps suggested by 2 or 3 and report back tell us what you've done. Stroller. I've got a couple of new errors in the logs: From /var/log/samba/log.___192.168.1.3: [2010/06/15 11:56:58, 0] lib/util_sock.c:1564(matchname) matchname: host name/address mismatch: :::192.168.1.3 != camille.espersunited.com [2010/06/15 11:56:58, 0] lib/util_sock.c:1685(get_peer_name) Matchname failed on camille.espersunited.com :::192.168.1.3 and from /var/log/samba/log.camille: [2010/06/15 11:56:58, 0] smbd/service.c:942(make_connection_snum) Can't become connected user! What's with the :192.168.1.3? Camille's address IS 192.168.1.3, and it seems to know that because it calls the host at the address 'camille'...
[gentoo-user] Need help with samba (Possibly OT)
My personal workstation is a dual-boot setup with Gentoo and Windows XP. A long time ago, I set up Samba on another computer on my network to provide extra hard drive space to our Windows installations. They used to work, but we haven't used them in some time. I tried to use it today and it didn't work. When I try to connect to the samba share from my linux install, I get this: mich...@camille ~ $ smbclient //carter//home Enter michael's password: Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] tree connect failed: NT_STATUS_BAD_NETWORK_NAME mich...@camille ~ $ smbclient //carter//michael Enter michael's password: Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] tree connect failed: NT_STATUS_BAD_NETWORK_NAME (The host name is carter, and I didn't understand what the second part should be.) Also, I didn't know if michael's password meant my password on my local box, my password on the remote box, or some password I set up for Samba forever ago... Here's my /etc/samba/smb.conf file: carter samba # cat smb.conf [global] workgroup = MYGROUP server string = Samba Server %v printcap name = cups load printers = yes printing = cups log file = /var/log/samba/log.%m max log size = 50 hosts allow = 192.168.1. 127. map to guest = bad user security = user encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = no [homes] comment = Home Directories browseable = no writable = yes valid users = michael amy path = /samba [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writable = no printable = yes [print$] path = /var/lib/samba/printers browseable = yes read only = yes write list = @adm root guest ok = yes [tmp] comment = Temporary file space path = /samba read only = no public = yes valid users = michael amy I'm sure I've screwed something up somewhere, I'm just not sure what it is.
Re: [gentoo-user] Need help with samba (Possibly OT)
On 14 Jun 2010, at 21:41, Michael Sullivan wrote: ... When I try to connect to the samba share from my linux install, I get this: mich...@camille ~ $ smbclient //carter//home Enter michael's password: Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] tree connect failed: NT_STATUS_BAD_NETWORK_NAME mich...@camille ~ $ smbclient //carter//michael Enter michael's password: Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] tree connect failed: NT_STATUS_BAD_NETWORK_NAME (The host name is carter, and I didn't understand what the second part should be.) If you're referring to the //first/second syntax, then the first part is the computer name, the second part the share name. Also, I didn't know if michael's password meant my password on my local box, my password on the remote box, or some password I set up for Samba forever ago... The second / third option. Each user on the Samba server has a password, but it isn't the same as their system password. Log on to the Samba server (i.e. `ssh carter`) and run smbpasswd (possibly `sudo smbpasswd -U michael`). Here's my /etc/samba/smb.conf file: ... hosts allow = 192.168.1. 127. If it's been some time since this system was used, are you still using the 192.168.1.x subnet? If your ISP sent you a new router, you might now be on 192.168.0.x. IMO change this to: hosts allow = 192.168. 127. Also run `smbtree` (works without a password). I appreciate that Samba tends not to make any sense when you're inexperienced, but there ought to be lots of troubleshooting guides out there. Google troubleshooting samba, follow through the steps suggested by 2 or 3 and report back tell us what you've done. Stroller.
Re: [gentoo-user] Need help with samba (Possibly OT)
On Mon, 2010-06-14 at 22:43 +0100, Stroller wrote: If it's been some time since this system was used, are you still using the 192.168.1.x subnet? If your ISP sent you a new router, you might now be on 192.168.0.x. IMO change this to: hosts allow = 192.168. 127. I bought a brand new Linksys Wireless-N router a few months ago. I configure it to start addresses after 192.168.1.1 because that's what we've always used, it's what all the computers on our LAN are set up for, and I see no reason to change it. Also run `smbtree` (works without a password). I appreciate that Samba tends not to make any sense when you're inexperienced, but there ought to be lots of troubleshooting guides out there. Google troubleshooting samba, follow through the steps suggested by 2 or 3 and report back tell us what you've done. Stroller. I actually started today at http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html carter ~ # testparm /etc/samba/smb.conf Load smb config files from /etc/samba/smb.conf rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) Processing section [homes] Processing section [printers] Processing section [print$] Processing section [tmp] Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = MYGROUP server string = Samba Server %v map to guest = Bad User log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = cups dns proxy = No hosts allow = 192.168.1., 127. [homes] comment = Home Directories path = /samba valid users = michael, amy read only = No browseable = No browsable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No browsable = No [print$] path = /var/lib/samba/printers write list = @adm, root guest ok = Yes [tmp] comment = Temporary file space path = /samba valid users = michael, amy read only = No guest ok = Yes mich...@camille ~ $ smbclient -L carter Enter michael's password: Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] Sharename Type Comment - --- print$ Disk tmp Disk Temporary file space IPC$IPC IPC Service (Samba Server 3.4.6) Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] Server Comment ---- CARTER Samba Server 3.4.6 WorkgroupMaster ---- MYGROUP CARTER mich...@camille ~ $ smbclient //carter/tmp Enter michael's password: Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] tree connect failed: NT_STATUS_LOGON_FAILURE Then I went to the Samba Checklist: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.html 1: Run testparm; already did that. 2: Ping test: mich...@camille ~ $ ping carter PING carter.espersunited.com (192.168.1.2) 56(84) bytes of data. 64 bytes from carter.espersunited.com (192.168.1.2): icmp_seq=1 ttl=64 time=0.157 ms 64 bytes from carter.espersunited.com (192.168.1.2): icmp_seq=2 ttl=64 time=0.145 ms ^C --- carter.espersunited.com ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.145/0.151/0.157/0.006 ms carter ~ # ping camille PING camille.espersunited.com (192.168.1.3) 56(84) bytes of data. 64 bytes from camille.espersunited.com (192.168.1.3): icmp_seq=1 ttl=64 time=0.158 ms 64 bytes from camille.espersunited.com (192.168.1.3): icmp_seq=2 ttl=64 time=0.155 ms ^C --- camille.espersunited.com ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.155/0.156/0.158/0.012 ms 3: carter ~ # smbclient -L carter Enter root's password: Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] Sharename Type Comment - --- print$ Disk tmp Disk Temporary file space IPC$IPC IPC Service (Samba Server 3.4.6) Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] Server Comment ---- CARTER Samba Server 3.4.6 WorkgroupMaster ---- MYGROUP CARTER 4: mich...@camille ~ $ nmblookup -B BIGSERVER __SAMBA__ querying __SAMBA__ on 192.168.1.255 192.168.1.2 __SAMBA__00 4: carter ~ # nmblookup -B camille * querying xorg.conf.new on 192.168.1.3 name_query failed to find name xorg.conf.new *I'm not sure what finding xorg.conf.new has
Re: [gentoo-user] Need help with samba (Possibly OT)
Michael Sullivan writes: 4: mich...@camille ~ $ nmblookup -B BIGSERVER __SAMBA__ querying __SAMBA__ on 192.168.1.255 192.168.1.2 __SAMBA__00 4: carter ~ # nmblookup -B camille * querying xorg.conf.new on 192.168.1.3 name_query failed to find name xorg.conf.new *I'm not sure what finding xorg.conf.new has to do with Samba, but it's on the checklist... The shell replaces the * by files in your current directory. I do not know about nmblookup, but I gues you have to escape the *. That is, use '*' or \* instead. Wonko
Re: [gentoo-user] Need help with samba (Possibly OT)
On Tue, 2010-06-15 at 02:12 +0200, Alex Schuster wrote: Michael Sullivan writes: 4: mich...@camille ~ $ nmblookup -B BIGSERVER __SAMBA__ querying __SAMBA__ on 192.168.1.255 192.168.1.2 __SAMBA__00 4: carter ~ # nmblookup -B camille * querying xorg.conf.new on 192.168.1.3 name_query failed to find name xorg.conf.new *I'm not sure what finding xorg.conf.new has to do with Samba, but it's on the checklist... The shell replaces the * by files in your current directory. I do not know about nmblookup, but I gues you have to escape the *. That is, use '*' or \* instead. Wonko carter ~ # nmblookup -B camille '*' querying * on 192.168.1.3 name_query failed to find name * What is this command looking for?
Re: OT: CVS [WAS: Re: [gentoo-user] Need help discovering what's using a port (for cvsd)]
On Thu, Mar 4, 2010 at 5:54 PM, Michael Sullivan msulli1...@gmail.com wrote: On Thu, 2010-03-04 at 17:30 -0600, Paul Hartman wrote: On Thu, Mar 4, 2010 at 5:02 PM, Michael Sullivan msulli1...@gmail.com wrote: netstat: no support for `AF IPX' on this system. netstat: no support for `AF AX25' on this system. netstat: no support for `AF X25' on this system. netstat: no support for `AF NETROM' on this system. I assume these are kernel options, but without knowing specific symbol names, I'm not sure how to compile them into the kernel. Can anyone give me any advice on this situation? I think if you don't have support for those protocols the chances of a program using them is probably zero. :) FWIW i get the exact same messages. I don't think it is meaningful. I use a similar command (omitting all the unix sockets stuff): netstat -lnp --inet With regard to your original problem, try to edit the cvsd.conf and specify an actual IP address to listen on (instead of 0.0.0.0 or * or however it is defined there) and see if that helps. Now I've got the server running, but I can't connect to it: mich...@camille ~ $ cvs login Logging in to :pserver:mich...@carter.espersunited.com:2401/root CVS password: cvs [login aborted]: connect to carter.espersunited.com(192.168.1.2):2401 failed: Connection refused Hmm, does cvsd use inetd? maybe it needs to be added to allowed port list or something like that.
[gentoo-user] Need help discovering what's using a port (for cvsd)
A few years ago I was working on a programming project. I installed a cvsd server on our server box and checked in/checked out the project whenever I felt like working on it (it would have gotten majorly screwed up if the only copy of the project lived on my personal workstation - hence using cvsd). Anyway, I got busy with other things and forgot about that particular programming project. At some point over the last few years, cvsd got unmerged. I remerged it today and have been trying to get it to work. I checked the repository directory and the files I need are still there. I can't get the server to start. I tried running /etc/init.d/cvsd start and it failed with the [!!] thing. I catted the script and saw that the executable for the cvsd server lives at /usr/sbin/cvsd, so I tried calling it directly: carter log # /usr/sbin/cvsd --debug cvsd: debug: reading config file (/etc/cvsd/cvsd.conf) cvsd: debug: done reading config file cvsd: debug: cvscmd: /bin/cvs cvsd: debug: cvsargs[0]: cvs cvsd: debug: cvsargs[1]: -f cvsd: debug: cvsargs[2]: --allow-root=/root cvsd: debug: cvsargs[3]: pserver cvsd: debug: cvsenv[0]: HOME=/ cvsd: debug: cvsenv[1]: PATH=/bin cvsd: debug: cvsenv[2]: SHELL=/bin/sh cvsd: debug: cvsenv[3]: TMPDIR=/tmp cvsd: debug: cvsenv[4]: CVSUMASK=027 cvsd: version 1.0.7 starting cvsd: debug: binding 0.0.0.0 2401 family=2 socktype=1 protocol=6 cvsd: listening on 0.0.0.0 2401 cvsd: debug: binding :: 2401 family=10 socktype=1 protocol=6 cvsd: bind() failed: Address already in use cvsd: version 1.0.7 bailing out carter log # netstat -anp | grep 2401 carter log # Nothing. I hope I'm using the netstat command correctly. I wrote in to a linux list years ago asking how to find out which process is using a port, and they said to grep `netstat -anp` for whatever port I was looking for. Anyway, when I ran netstat -anpv, I got some errors: netstat: no support for `AF IPX' on this system. netstat: no support for `AF AX25' on this system. netstat: no support for `AF X25' on this system. netstat: no support for `AF NETROM' on this system. I assume these are kernel options, but without knowing specific symbol names, I'm not sure how to compile them into the kernel. Can anyone give me any advice on this situation?
Re: [gentoo-user] Need help discovering what's using a port (for cvsd)
On Thu, Mar 4, 2010 at 5:02 PM, Michael Sullivan msulli1...@gmail.com wrote: netstat: no support for `AF IPX' on this system. netstat: no support for `AF AX25' on this system. netstat: no support for `AF X25' on this system. netstat: no support for `AF NETROM' on this system. I assume these are kernel options, but without knowing specific symbol names, I'm not sure how to compile them into the kernel. Can anyone give me any advice on this situation? I think if you don't have support for those protocols the chances of a program using them is probably zero. :) FWIW i get the exact same messages. I don't think it is meaningful. I use a similar command (omitting all the unix sockets stuff): netstat -lnp --inet With regard to your original problem, try to edit the cvsd.conf and specify an actual IP address to listen on (instead of 0.0.0.0 or * or however it is defined there) and see if that helps.
OT: CVS [WAS: Re: [gentoo-user] Need help discovering what's using a port (for cvsd)]
On Thu, 2010-03-04 at 17:30 -0600, Paul Hartman wrote: On Thu, Mar 4, 2010 at 5:02 PM, Michael Sullivan msulli1...@gmail.com wrote: netstat: no support for `AF IPX' on this system. netstat: no support for `AF AX25' on this system. netstat: no support for `AF X25' on this system. netstat: no support for `AF NETROM' on this system. I assume these are kernel options, but without knowing specific symbol names, I'm not sure how to compile them into the kernel. Can anyone give me any advice on this situation? I think if you don't have support for those protocols the chances of a program using them is probably zero. :) FWIW i get the exact same messages. I don't think it is meaningful. I use a similar command (omitting all the unix sockets stuff): netstat -lnp --inet With regard to your original problem, try to edit the cvsd.conf and specify an actual IP address to listen on (instead of 0.0.0.0 or * or however it is defined there) and see if that helps. Now I've got the server running, but I can't connect to it: mich...@camille ~ $ cvs login Logging in to :pserver:mich...@carter.espersunited.com:2401/root CVS password: cvs [login aborted]: connect to carter.espersunited.com(192.168.1.2):2401 failed: Connection refused My .cvspass looks kinda weird too: mich...@camille ~ $ cat .cvspass /1 :pserver:mich...@carter.espersunited.com:2401/root Ah0 %0]y? Is this right?
[gentoo-user] Need help to improve boot time using readahead-list
Hi, I'm trying to use readahead-list to improve my system's boot time. But I'm now stuck in customizing /etc/readahead-list to fit my system. So if anyone used it, could you give me some advices? Thanks. P/s: I read about thishttp://www.gentoo-wiki.info/HOWTO_prefetch_files_on_bootbut it doesn't seem to help improving boot time much. -- Nguyễn Bảo Ngọc http://www.facebook.com/pymaster
[gentoo-user] Need help with a regex
Regexs are not my strong point! I am trying to get a list of service scripts that provide virtual services. Each such script contains a line like: provide dns i.e. the line starts with one or more spaces, followed by the text provide, followed by one or more spaces and a single word. i have come up with: grep -e ^\s+provide\s+\w /etc/init.d but, as usual, nothing is matched. What am I doing wrong? TIA -Robin -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with a regex
On Sat, May 24, 2008 at 11:22 AM, Robin Atwood [EMAIL PROTECTED] wrote: Regexs are not my strong point! I am trying to get a list of service scripts that provide virtual services. Each such script contains a line like: provide dns i.e. the line starts with one or more spaces, followed by the text provide, followed by one or more spaces and a single word. i have come up with: grep -e ^\s+provide\s+\w /etc/init.d Right now you are saying: match one or more spaces in the begining followed by provide followed by one or more spaces followed by *one* word followed by one space and followed by /etc/init.d I think you mean: grep -e ^\s+provide\s+\w+ /etc/init.d but, as usual, nothing is matched. What am I doing wrong? TIA -Robin -- gentoo-user@lists.gentoo.org mailing list -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with a regex
On Sat, May 24, 2008 at 11:32 AM, Andrey Falko [EMAIL PROTECTED] wrote: On Sat, May 24, 2008 at 11:22 AM, Robin Atwood [EMAIL PROTECTED] wrote: Regexs are not my strong point! I am trying to get a list of service scripts that provide virtual services. Each such script contains a line like: provide dns i.e. the line starts with one or more spaces, followed by the text provide, followed by one or more spaces and a single word. i have come up with: grep -e ^\s+provide\s+\w /etc/init.d Right now you are saying: match one or more spaces in the begining followed by provide followed by one or more spaces followed by *one* word followed by one space and followed by /etc/init.d I think you mean: grep -e ^\s+provide\s+\w+ /etc/init.d but, as usual, nothing is matched. What am I doing wrong? I see your mistake\w means alphanumeric character, not word. TIA -Robin -- gentoo-user@lists.gentoo.org mailing list -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with a regex
On Saturday 24 May 2008, 17:22, Robin Atwood wrote: Regexs are not my strong point! I am trying to get a list of service scripts that provide virtual services. Each such script contains a line like: provide dns i.e. the line starts with one or more spaces, followed by the text provide, followed by one or more spaces and a single word. i have come up with: grep -e ^\s+provide\s+\w /etc/init.d but, as usual, nothing is matched. What am I doing wrong? On my system, no initscript has the line provide dns in it, so it might be possible that you don't have any file with that line. That said, you should use -r, and you don't need the -e switch: grep -r '^[[:space:]]\{1,\}provide[[:space:]]\{1,\}dns' /etc/init.d or, perhaps clearer grep -rE '^[[:space:]]+provide[[:space:]]+dns' /etc/init.d -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with a regex
On Saturday 24 May 2008, Andrey Falko wrote: On Sat, May 24, 2008 at 11:32 AM, Andrey Falko [EMAIL PROTECTED] wrote: On Sat, May 24, 2008 at 11:22 AM, Robin Atwood [EMAIL PROTECTED] wrote: Regexs are not my strong point! I am trying to get a list of service scripts that provide virtual services. Each such script contains a line like: provide dns i.e. the line starts with one or more spaces, followed by the text provide, followed by one or more spaces and a single word. i have come up with: grep -e ^\s+provide\s+\w /etc/init.d Right now you are saying: match one or more spaces in the begining followed by provide followed by one or more spaces followed by *one* word followed by one space and followed by /etc/init.d I think you mean: grep -e ^\s+provide\s+\w+ /etc/init.d but, as usual, nothing is matched. What am I doing wrong? I see your mistake\w means alphanumeric character, not word. I had just realised that myself. However, it still doesn't work. :( Thanks for trying, though. -Robin -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with a regex
On Saturday 24 May 2008, Robin Atwood wrote: Regexs are not my strong point! I am trying to get a list of service scripts that provide virtual services. Each such script contains a line like: provide dns i.e. the line starts with one or more spaces, followed by the text provide, followed by one or more spaces and a single word. i have come up with: grep -e ^\s+provide\s+\w /etc/init.d but, as usual, nothing is matched. What am I doing wrong? grep -e is not the same thing as egrep or grep -E, and I never managed to get \s to work as a synonym for [[:space:]] Plus you need a proper file glob i your file spec Try: egrep '^[[:space:]]+provide[[:space:]]+\w' /etc/init.d/* As in: [EMAIL PROTECTED] /etc/init.d $ egrep '^[[:space:]]+provide[[:space:]]+\w' /etc/init.d/* /etc/init.d/courier-authlib:provide authdaemond /etc/init.d/hwclock:provide clock /etc/init.d/net.eth0: provide net /etc/init.d/net.lo: provide net /etc/init.d/net.lo.openrc.bak: provide net /etc/init.d/net.wlan0: provide net /etc/init.d/postfix:provide mta /etc/init.d/shorewall: provide firewall /etc/init.d/syslog-ng: provide logger /etc/init.d/vixie-cron: provide cron [EMAIL PROTECTED] /etc/init.d $ grep -E '^[[:space:]]+provide[[:space:]]+\w' /etc/init.d/* /etc/init.d/courier-authlib:provide authdaemond /etc/init.d/hwclock:provide clock /etc/init.d/net.eth0: provide net /etc/init.d/net.lo: provide net /etc/init.d/net.lo.openrc.bak: provide net /etc/init.d/net.wlan0: provide net /etc/init.d/postfix:provide mta /etc/init.d/shorewall: provide firewall /etc/init.d/syslog-ng: provide logger /etc/init.d/vixie-cron: provide cron [EMAIL PROTECTED] /etc/init.d $ grep -e '^[[:space:]]+provide[[:space:]]+\w' /etc/init.d/* [EMAIL PROTECTED] /etc/init.d $ -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with a regex
On Saturday 24 May 2008, Etaoin Shrdlu wrote: On Saturday 24 May 2008, 17:22, Robin Atwood wrote: Regexs are not my strong point! I am trying to get a list of service scripts that provide virtual services. Each such script contains a line like: provide dns i.e. the line starts with one or more spaces, followed by the text provide, followed by one or more spaces and a single word. i have come up with: grep -e ^\s+provide\s+\w /etc/init.d but, as usual, nothing is matched. What am I doing wrong? On my system, no initscript has the line provide dns in it, so it might be possible that you don't have any file with that line. That said, you should use -r, and you don't need the -e switch: grep -r '^[[:space:]]\{1,\}provide[[:space:]]\{1,\}dns' /etc/init.d or, perhaps clearer grep -rE '^[[:space:]]+provide[[:space:]]+dns' /etc/init.d I am looking for all the scripts with lines like provide xxx, not just the dns service. That said, your solution did the trick! I amended the expression to: grep -rE '^[[:space:]]+provide[[:space:]]+\w+' /etc/init.d and got what I was after. But why does [[:space:]]+ work and \s+ fail? Cheers -Robin -- -- Robin Atwood, Bangkok, Thailand. tel/fax: +66 2252 1438 mobile: +66 851 322487 MSN:[EMAIL PROTECTED] Skype: abend922 Yahoo: abend922 -- -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with a regex
On Saturday 24 May 2008, Alan McKinnon wrote: grep -e is not the same thing as egrep or grep -E, and I never managed to get \s to work as a synonym for [[:space:]] I was wondering about that! Plus you need a proper file glob i your file spec That was a typo in my post. Try: egrep '^[[:space:]]+provide[[:space:]]+\w' /etc/init.d/* Thanks, I am in business now. Cheers -Robin -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with a regex
On Saturday 24 May 2008, Robin Atwood wrote: But why does [[:space:]]+ work and \s+ fail? Apparently because \s is not a synonym for [[:space:]] I've heard this one before but never got it to work and never seen it in writing. Do you have a reference for where you read it? -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with a regex
Robin Atwood wrote: grep -e ^\s+provide\s+\w /etc/init.d but, as usual, nothing is matched. What am I doing wrong? You have to use back slashed versions of metacharacters. Following how would do that: $ grep -e '^[[:space:]]\+provide[[:space:]]\+[a-z]\+' /etc/init.d/* /etc/init.d/syslog-ng: provide logger /etc/init.d/vixie-cron: provide cron W. Canis signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Need help with a regex
On Saturday 24 May 2008, Alan McKinnon wrote: On Saturday 24 May 2008, Robin Atwood wrote: But why does [[:space:]]+ work and \s+ fail? Apparently because \s is not a synonym for [[:space:]] Here for a start: http://www.regular-expressions.info/charclass.html#shorthand and also http://doc.trolltech.com/3.3/qregexp.html#characters-and-abbreviations-for-sets-of-characters Is it a Perl thing? Probably! http://www.troubleshooters.com/codecorn/littperl/perlreg.htm#DoingStringComparisons -Robin -- -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with a regex
On Saturday 24 May 2008, Robin Atwood wrote: On Saturday 24 May 2008, Alan McKinnon wrote: On Saturday 24 May 2008, Robin Atwood wrote: But why does [[:space:]]+ work and \s+ fail? Apparently because \s is not a synonym for [[:space:]] Here for a start: http://www.regular-expressions.info/charclass.html#shorthand and also http://doc.trolltech.com/3.3/qregexp.html#characters-and-abbreviation s-for-sets-of-characters Is it a Perl thing? Probably! http://www.troubleshooters.com/codecorn/littperl/perlreg.htm#DoingStr ingComparisons Ah yes, it's the old: grep/sed/awk/vi/perl-implement-regexes-identically-except-when-they-don't thing again! -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with a regex
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin Atwood wrote: grep -e ^\s+provide\s+\w /etc/init.d but, as usual, nothing is matched. What am I doing wrong? You have to use back slashed versions of meta characters. Following how would do that: $ grep -e '^[[:space:]]\+provide[[:space:]]\+[a-z]\+' /etc/init.d/* /etc/init.d/syslog-ng: provide logger /etc/init.d/vixie-cron: provide cron W. Canis -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkg4dvkACgkQKT9zBKF0twURhwCZAQ/vK1la7X0mTuA2yTyWavqc rEIAn1yr+ytPejcRXMr/d6f/Wkg4SgSc =NQmh -END PGP SIGNATURE- -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Need help with routing
Hans-Werner Hilse schrieb: Hi, On Tue, 11 Sep 2007 21:38:26 +0200 Florian Philipp [EMAIL PROTECTED] wrote: Now the kernel can handle connection state matching :) I can apply your rules with one exception: iptables -A POSTROUTING -o ppp0 -j MASQUERADE The same error message as before. But a different cause: My brain ;-) That should rather read $ iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE (I forgot the -t nat) There is, however, a kernel configuration needed for masquerading, too (CONFIG_IP_NF_TARGET_MASQUERADE on newer kernels, you can search for it -- or just MASQUERADE on older kernels -- using the / key in the kernel's menuconfig). So if iptables keeps complaining, check that too. BTW: I'm starting to really hate the HOWTO that much that I might even consider editing it. The HOWTO got this command wrong as well: It MASQUERADEs the connections going out to the LAN interface... For a proper durable setup, after performing all steps manually until you have iptables in the way, you should issue $ /etc/init.d/iptables save and have iptables fire up using rc-update, if not yet done. Also put the sysctl setting in /etc/sysctl.conf. Then routing/masquerading will be set up right on each boot. -hwh Thank you for your patience, it's finally working! If you don't edit the wiki, I'll do it (sooner or later). Just tell me if you don't want to see your name when I give you credit for the settings. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Need help with routing [OT: Issues with an article on the wiki]
Hi, On Wed, 12 Sep 2007 18:35:41 +0200 Florian Philipp [EMAIL PROTECTED] wrote: Thank you for your patience, it's finally working! OK, that's good news :-) If you don't edit the wiki, I'll do it (sooner or later). Just tell me if you don't want to see your name when I give you credit for the settings. Reading through it, it'll need a general rewrite. The more I look at it, the less it makes sense. Though on the discussion site, the last comment gives a valuable hint to what the main culprit is: The article doesn't clarify on its focus (and I guess that's why it hasn't got that much attention yet). Based on the title, there are many ways to conclude what task is described there. I guess it was really about routing an internet connection to some clients, but the general concept of Routing is broader. So I think the article should - clarify what it's about (introduction) - introduce routing and the route command (and/or ip route) - introduce masquerading (what you wanted and the original article intended to describe, I think) I'll take a try on rewriting it this evening (CEST). Feel free to further rewrite it or start doing it, but I really think the aspects noted above are worth following. -hwh -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Need help with routing
Hans-Werner Hilse schrieb: Hi, On Mon, 10 Sep 2007 20:59:03 +0200 Florian Philipp [EMAIL PROTECTED] wrote: I'll attach relevant ifconfig, route and iptables -L output. Hm, OK. This: snip Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- 10.8.0.1 anywhere ACCEPT all -- anywhere 10.8.0.1 DROP all -- !10.8.0.1 anywhere snip is on what computer? On the server (I guess it's the router) the last line would effectively prevent routing for the client (but I don't know why ICMP works...). I would suggest starting without it and then setting up proper rules -- and then setting the chain's policy to DROP (plus some REJECT rules for proper answers). Dan's hint is also worth investigating. BTW: use route/ifconfig/netstat/iptables' -n switch to make analysis easier! -hwh I followed the howto's nomenclature of server and client. I'm a bit puzzled right now. Is there anything essentially wrong with the howto ( http://gentoo-wiki.com/HOWTO_quick_routing )? I followed it word by word. The drop rule is explained as #prevent others ip from conecting to my eth0 -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Need help with routing
On Mon, 10 Sep 2007 22:48:20 +0200 Hans-Werner Hilse [EMAIL PROTECTED] wrote: is on what computer? On the server (I guess it's the router) the last line would effectively prevent routing for the client (but I don't know why ICMP works...). I would suggest starting without it and then setting up proper rules -- and then setting the chain's policy to DROP (plus some REJECT rules for proper answers). I agree, I thought your firewall rules were a little wacky too. These rules only route to one host. generally you'd want to route to a whole network, not just one host. (but I don't know why ICMP works...). -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Need help with routing
Hi, On Tue, 11 Sep 2007 17:30:51 +0200 Florian Philipp [EMAIL PROTECTED] wrote: Hm, OK. This: snip Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- 10.8.0.1 anywhere ACCEPT all -- anywhere 10.8.0.1 DROP all -- !10.8.0.1 anywhere snip is on what computer? On the server (I guess it's the router) the last line would effectively prevent routing for the client (but I don't know why ICMP works...). I would suggest starting without it and then setting up proper rules -- and then setting the chain's policy to DROP (plus some REJECT rules for proper answers). I followed the howto's nomenclature of server and client. I'm a bit puzzled right now. Is there anything essentially wrong with the howto ( http://gentoo-wiki.com/HOWTO_quick_routing )? I followed it word by word. The drop rule is explained as #prevent others ip from conecting to my eth0 Hm, judging from that the article on Routing uses a Client and Server nomenclature, I consider the article being at least partly crap ;-) And yes, that guide really seems to be a bunch of BS (sorry, but that's the way it seems to be). It is outright horrible. Personally I hate discussing on Wikis' Discussion Pages, so, no, I won't correct it (but looking at its discussion page, others considered it bad, too, and are planning to correct/delete it). That iptables setup is absolutely stupid. It accepts packets from and to the machine itself (note that 10.8.0.1 is the router's IP), but will drop any packet not originating from 10.8.0.1. The latter should be true for all packets originating from the client (since it has the address 10.8.0.2). So all the client's communication is dropped, and that's it, end of story. Better have a look at netfilter's set of HOWTOs, especially the NAT howto. Better learn what you're doing... Otherwise, just take the hints from my previous posting. My suggestion for a proper setup would be $ iptables -F FORWARD $ iptables -P FORWARD DROP $ iptables -A FORWARD -i eth0 -o ppp0 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT $ iptables -A FORWARD -i ppp0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT ...plus rules allowing for forwarding designated ports, if any You'll certainly want to keep this: $ iptables -A POSTROUTING -o ppp0 -j MASQUERADE in place, too. Note that this trusts any box connecting via eth0, not just a single client. -hwh -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Need help with routing
Dan Farrell schrieb: On Mon, 10 Sep 2007 22:48:20 +0200 Hans-Werner Hilse [EMAIL PROTECTED] wrote: is on what computer? On the server (I guess it's the router) the last line would effectively prevent routing for the client (but I don't know why ICMP works...). I would suggest starting without it and then setting up proper rules -- and then setting the chain's policy to DROP (plus some REJECT rules for proper answers). I agree, I thought your firewall rules were a little wacky too. These rules only route to one host. generally you'd want to route to a whole network, not just one host. (but I don't know why ICMP works...). Well, as I've written, they aren't my rules. I just copied and pasted them. I know just as much about iptables as I know about cars. I know the theory, I've seen the building process from like 10 meters distance and I use finished product. I'd really appreciate if you could post the correct settings or config file(s). -- [EMAIL PROTECTED] mailing list