[gentoo-user] Automatic network configuration for USB connected device
I have bought me a new toy - an Openmoko Freerunner. Each time I connect it to my Gentoo-box I must configure the usb0 device on the Gentoo-box as follows: ifconfig usb0 192.168.0.200 netmask 255.255.255.248 After that I can without problem ssh to the Freerunner. Now I want the above to be automatically done when I connect the Freerunner. I have found the the following description for Ubunto: Add the following lines to your /etc/network/interfaces : allow-hotplug usb0 auto usb0 iface usb0 inet static address 192.168.0.200 netmask 255.255.255.0 network 192.168.0.0 up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 up echo 1 /proc/sys/net/ipv4/ip_forward up iptables -P FORWARD ACCEPT down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 What would be the corresponding file(s) on Gentoo? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME cryptographic signature
Re: [gentoo-user] Automatic network configuration for USB connected device
Dan Johansson wrote: I have bought me a new toy - an Openmoko Freerunner. Each time I connect it to my Gentoo-box I must configure the usb0 device on the Gentoo-box as follows: ifconfig usb0 192.168.0.200 netmask 255.255.255.248 After that I can without problem ssh to the Freerunner. Now I want the above to be automatically done when I connect the Freerunner. I have found the the following description for Ubunto: Add the following lines to your /etc/network/interfaces : allow-hotplug usb0 auto usb0 iface usb0 inet static address 192.168.0.200 netmask 255.255.255.0 network 192.168.0.0 up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 up echo 1 /proc/sys/net/ipv4/ip_forward up iptables -P FORWARD ACCEPT down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 What would be the corresponding file(s) on Gentoo? Regards, /etc/conf.d/network
Re: [gentoo-user] Automatic network configuration for USB connected device
Hong Hao schrieb am 06.09.2008 15:29: Dan Johansson wrote: I have bought me a new toy - an Openmoko Freerunner. Each time I connect it to my Gentoo-box I must configure the usb0 device on the Gentoo-box as follows: ifconfig usb0 192.168.0.200 netmask 255.255.255.248 After that I can without problem ssh to the Freerunner. Now I want the above to be automatically done when I connect the Freerunner. I have found the the following description for Ubunto: Add the following lines to your /etc/network/interfaces : allow-hotplug usb0 auto usb0 iface usb0 inet static address 192.168.0.200 netmask 255.255.255.0 network 192.168.0.0 up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 up echo 1 /proc/sys/net/ipv4/ip_forward up iptables -P FORWARD ACCEPT down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 What would be the corresponding file(s) on Gentoo? Regards, /etc/conf.d/network I would try this: /etc/conf.d/net :-)
Re: [gentoo-user] Automatic network configuration for USB connected device
On Saturday 06 September 2008, Daniel Pielmeier wrote: Hong Hao schrieb am 06.09.2008 15:29: Dan Johansson wrote: I have bought me a new toy - an Openmoko Freerunner. Each time I connect it to my Gentoo-box I must configure the usb0 device on the Gentoo-box as follows: ifconfig usb0 192.168.0.200 netmask 255.255.255.248 After that I can without problem ssh to the Freerunner. Now I want the above to be automatically done when I connect the Freerunner. I have found the the following description for Ubunto: Add the following lines to your /etc/network/interfaces : allow-hotplug usb0 auto usb0 iface usb0 inet static address 192.168.0.200 netmask 255.255.255.0 network 192.168.0.0 up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 up echo 1 /proc/sys/net/ipv4/ip_forward up iptables -P FORWARD ACCEPT down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 What would be the corresponding file(s) on Gentoo? Regards, /etc/conf.d/network I would try this: /etc/conf.d/net :-) Thanks, I should have done some googling before I ask I added the following to /etc/conf.d/net: config_usb0=( 192.168.0.200 netmask 255.255.255.248 ) routes_usb0=( 192.168.0.202/32 via 192.168.0.200 ) preup() { if [ ${IFACE} = usb0 ] then echo 1 /proc/sys/net/ipv4/ip_forward iptables -I INPUT 1 -s 192.168.0.202 -j ACCEPT iptables -I OUTPUT 1 -s 192.168.0.200 -j ACCEPT iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 fi return 0 } postdown() { if [ ${IFACE} = usb0 ] then echo 0 /proc/sys/net/ipv4/ip_forward iptables -D INPUT -s 192.168.0.202 -j ACCEPT iptables -D OUTPUT -s 192.168.0.200 -j ACCEPT iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 fi return 0 } and linked /etc/init.d/net.lo to /etc/init.d/net.usb0 -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME cryptographic signature
[gentoo-user] landmark development !
ed-1.0 has become stable ! That will make everyone's weekend (grin) ! -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] Automatic network configuration for USB connected device
Le Saturday 06 September 2008 15:52:57 Dan Johansson, vous avez écrit : On Saturday 06 September 2008, Daniel Pielmeier wrote: Hong Hao schrieb am 06.09.2008 15:29: Dan Johansson wrote: I have bought me a new toy - an Openmoko Freerunner. Each time I connect it to my Gentoo-box I must configure the usb0 device on the Gentoo-box as follows: ifconfig usb0 192.168.0.200 netmask 255.255.255.248 After that I can without problem ssh to the Freerunner. Now I want the above to be automatically done when I connect the Freerunner. I have found the the following description for Ubunto: Add the following lines to your /etc/network/interfaces : allow-hotplug usb0 auto usb0 iface usb0 inet static address 192.168.0.200 netmask 255.255.255.0 network 192.168.0.0 up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 up echo 1 /proc/sys/net/ipv4/ip_forward up iptables -P FORWARD ACCEPT down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 What would be the corresponding file(s) on Gentoo? Regards, /etc/conf.d/network I would try this: /etc/conf.d/net :-) Thanks, I should have done some googling before I ask I added the following to /etc/conf.d/net: config_usb0=( 192.168.0.200 netmask 255.255.255.248 ) routes_usb0=( 192.168.0.202/32 via 192.168.0.200 ) preup() { if [ ${IFACE} = usb0 ] then echo 1 /proc/sys/net/ipv4/ip_forward iptables -I INPUT 1 -s 192.168.0.202 -j ACCEPT iptables -I OUTPUT 1 -s 192.168.0.200 -j ACCEPT iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 fi return 0 } postdown() { if [ ${IFACE} = usb0 ] then echo 0 /proc/sys/net/ipv4/ip_forward iptables -D INPUT -s 192.168.0.202 -j ACCEPT iptables -D OUTPUT -s 192.168.0.200 -j ACCEPT iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 fi return 0 } and linked /etc/init.d/net.lo to /etc/init.d/net.usb0 You can also use /etc/init.d/iptables script for saving iptables rules and restoring it at startup, and /etc/sysctl.conf for net.ipv4.ip_forward ;) Regards. Xavier Parizet signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] landmark development !
080906 b.n. wrote: Philip Webb ha scritto: ed-1.0 has become stable ! That will make everyone's weekend (grin) ! ed... THAT ed? the editor? Yes, after all these years ! -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] Gentoo on Centrino 2 -- Have to wait?
Paul Hartman schrieb: Is the network card in this laptop (an Intel 82567LM Gigabit network controller) supported in the newest linux kernel or will I have to wait? If it is supported, how would I go about booting with a newer kernel? snip Alternatively, there should be a linux driver for your ethernet controller on Intel's site. If you can download it on another machine and copy it to your new one, maybe you can compile load the module during the installation I have downloaded the intel network driver and saved it on my usb thumbdrive. The problem is that I need a LiveCD with the kernel sources and gcc to compile the network driver for the kernel. I do have another linux machine here, but it's currently only accessible via ssh (no graphics). Would that help me somehow? Regards, Jan Seeger
Re: [gentoo-user] Gentoo on Centrino 2 -- Have to wait?
Jan Seeger wrote: Paul Hartman schrieb: Is the network card in this laptop (an Intel 82567LM Gigabit network controller) supported in the newest linux kernel or will I have to wait? If it is supported, how would I go about booting with a newer kernel? snip Alternatively, there should be a linux driver for your ethernet controller on Intel's site. If you can download it on another machine and copy it to your new one, maybe you can compile load the module during the installation I have downloaded the intel network driver and saved it on my usb thumbdrive. The problem is that I need a LiveCD with the kernel sources and gcc to compile the network driver for the kernel. I do have another linux machine here, but it's currently only accessible via ssh (no graphics). Would that help me somehow? Regards, Jan Seeger Will a Knoppix CD see your network? You don't have to have a Gentoo CD to install Gentoo. I did mine from a Mandrake OS. I have done it from Knoppix and some other CD before. As long as your network works and you can chroot, it should work fine. As long as memory isn't a issue. Dale :-) :-)
Re: [gentoo-user] Automatic network configuration for USB connected device
On Sat, 6 Sep 2008 18:15:04 +0200, Xav' wrote: You can also use /etc/init.d/iptables script for saving iptables rules and restoring it at startup, and /etc/sysctl.conf for net.ipv4.ip_forward ;) Yes, but by putting them in the preup/down functions, the rules are only active when the devices is attached. -- Neil Bothwick In a classified ad: Tired of cleaning yourself? Let me do it. signature.asc Description: PGP signature
[gentoo-user] can't boot, block device is not a valid root device
Hi people, I have installed the latest gentoo linux distribution and I don't know what I am missing in my installation, specially the last gentoo installation worked for me fine. At booting I recive the error message: Block device /dev/sda5 is not a valid root device. Hard disk is a SATA one, with a Core2Duo machine. What am I doing wrong? for any help solving my problem, I would thank you kindly. Tamer content of my fstab and grub.conf: http://rafb.net/p/Z9WNgO61.html content of lspci: http://rafb.net/p/VOtr9x33.html
Re: [gentoo-user] can't boot, block device is not a valid root device
Tamer Higazi wrote: Hi people, I have installed the latest gentoo linux distribution and I don't know what I am missing in my installation, specially the last gentoo installation worked for me fine. At booting I recive the error message: Block device /dev/sda5 is not a valid root device. Hard disk is a SATA one, with a Core2Duo machine. What am I doing wrong? for any help solving my problem, I would thank you kindly. Tamer content of my fstab and grub.conf: http://rafb.net/p/Z9WNgO61.html content of lspci: http://rafb.net/p/VOtr9x33.html Did you compile in the kernel the drivers for your chipset? Not as modules but in the kernel, a Y not a M. Dale :-) :-)
[gentoo-user] Recall info request on grub problem
Awhile back there was a thread about grub working but the menu not showing up, and in that thread there was a setting suggested, something like vga= or something like that. Can anyone refresh my memory as to the name of that thread or the setting to make the menu show up?
Re: [gentoo-user] Recall info request on grub problem
Michael Sullivan wrote: Awhile back there was a thread about grub working but the menu not showing up, and in that thread there was a setting suggested, something like vga= or something like that. Can anyone refresh my memory as to the name of that thread or the setting to make the menu show up? Was it this exchange? Fri, 18 Jul 2008 12:47:52 + dhk [EMAIL PROTECTED] wrote: Sebastian Günther wrote: * Andrew Tchernoivanov ([EMAIL PROTECTED]) [15.07.08 01:41]: Are the characters on the screen readable? I had this problem too, along with the black grub screen. If they aren't - try adding vga=0x31B to your grub.conf Why should that help with grub? Did not found any hint, that ther is a grub option called like that. There is a *kernel* option, called like that, but that won't help with the grub issue. Please correct me if I'm wrong. Sebastian So what is the solution to making grub visible again? I remember when it changed, I didn't understand the message displayed and I still don't know the fix. Running emerge --config grub doesn't work. Is it as simple as changing the path of the splash image to /usr/share/grub/ and running grub-install? Thanks, Dave Just cp /usr/share/grub/splash.xpm.gz /boot/grub/ Or you could point to it in /usr, unless if you have /usr in lvm or something else that grub wont be able to see Dale :-) :-) Miika
Re: [gentoo-user] Recall info request on grub problem
On Sat, 2008-09-06 at 20:28 -0500, Dale wrote: Michael Sullivan wrote: Awhile back there was a thread about grub working but the menu not showing up, and in that thread there was a setting suggested, something like vga= or something like that. Can anyone refresh my memory as to the name of that thread or the setting to make the menu show up? Was it this exchange? Fri, 18 Jul 2008 12:47:52 + dhk [EMAIL PROTECTED] wrote: Sebastian Günther wrote: * Andrew Tchernoivanov ([EMAIL PROTECTED]) [15.07.08 01:41]: Are the characters on the screen readable? I had this problem too, along with the black grub screen. If they aren't - try adding vga=0x31B to your grub.conf Why should that help with grub? Did not found any hint, that ther is a grub option called like that. There is a *kernel* option, called like that, but that won't help with the grub issue. Please correct me if I'm wrong. Sebastian So what is the solution to making grub visible again? I remember when it changed, I didn't understand the message displayed and I still don't know the fix. Running emerge --config grub doesn't work. Is it as simple as changing the path of the splash image to /usr/share/grub/ and running grub-install? Thanks, Dave Just cp /usr/share/grub/splash.xpm.gz /boot/grub/ Or you could point to it in /usr, unless if you have /usr in lvm or something else that grub wont be able to see Dale :-) :-) Miika Yeah that's it. Does the vga line go in the general section (with variables like splashimage), or does it go on the /kernel line?
Re: [gentoo-user] Recall info request on grub problem
On Sat, Sep 6, 2008 at 10:28 PM, Michael Sullivan [EMAIL PROTECTED] wrote: On Sat, 2008-09-06 at 20:28 -0500, Dale wrote: Michael Sullivan wrote: Awhile back there was a thread about grub working but the menu not showing up, and in that thread there was a setting suggested, something like vga= or something like that. Can anyone refresh my memory as to the name of that thread or the setting to make the menu show up? Was it this exchange? Fri, 18 Jul 2008 12:47:52 + dhk [EMAIL PROTECTED] wrote: Sebastian Günther wrote: * Andrew Tchernoivanov ([EMAIL PROTECTED]) [15.07.08 01:41]: Are the characters on the screen readable? I had this problem too, along with the black grub screen. If they aren't - try adding vga=0x31B to your grub.conf Why should that help with grub? Did not found any hint, that ther is a grub option called like that. There is a *kernel* option, called like that, but that won't help with the grub issue. Please correct me if I'm wrong. Sebastian So what is the solution to making grub visible again? I remember when it changed, I didn't understand the message displayed and I still don't know the fix. Running emerge --config grub doesn't work. Is it as simple as changing the path of the splash image to /usr/share/grub/ and running grub-install? Thanks, Dave Just cp /usr/share/grub/splash.xpm.gz /boot/grub/ Or you could point to it in /usr, unless if you have /usr in lvm or something else that grub wont be able to see Dale :-) :-) Miika Yeah that's it. Does the vga line go in the general section (with variables like splashimage), or does it go on the /kernel line?
[gentoo-user] ftp server software which supports a control connection?
Hello. I am looking for an FTP server software that let me monitor the ftp activities on my notebook. Both server and the notebook runs Gentoo Linux except the server doesn't have any X11 related stuff. The reason I want to do this is because I offer my users file to download and I often need to monitor what they are doing to make sure they gets connected. This is especially useful when doing support on the phone, I can call my user and instruct him to download file, at the meantime see he logged in and doing the right thing. I used pure-ftpd and pureadmin (a GUI for monitoring pure-ftpd). Pureadmin has every feature I need (see who is logged in, see activities) but it has to be run AFAIK on the same computer that runs ftp server. I used filezilla server which let me control it through a control connection and see activities, but the server software doesn't have a Linux version. I used pro-ftpd and didn't see the option for it's GUI manager to connect to a remote server. What software in Linux world can do this? As I am monitoring ftp through a wireless LAN which max at 300KB/s, running X11-forwarding is not comfortable. running a desktop session on the server and run vnc seems overkill. Thanks for hints in advance! Best regards
Re: [gentoo-user] Recall info request on grub problem
At Sat, 06 Sep 2008 21:28:39 -0500 Michael Sullivan [EMAIL PROTECTED] wrote: On Sat, 2008-09-06 at 20:28 -0500, Dale wrote: Michael Sullivan wrote: Awhile back there was a thread about grub working but the menu not showing up, and in that thread there was a setting suggested, something like vga= or something like that. Can anyone refresh my memory as to the name of that thread or the setting to make the menu show up? Was it this exchange? Fri, 18 Jul 2008 12:47:52 + dhk [EMAIL PROTECTED] wrote: Sebastian Günther wrote: * Andrew Tchernoivanov ([EMAIL PROTECTED]) [15.07.08 01:41]: Are the characters on the screen readable? I had this problem too, along with the black grub screen. If they aren't - try adding vga=0x31B to your grub.conf Why should that help with grub? Did not found any hint, that ther is a grub option called like that. There is a *kernel* option, called like that, but that won't help with the grub issue. Please correct me if I'm wrong. Sebastian So what is the solution to making grub visible again? I remember when it changed, I didn't understand the message displayed and I still don't know the fix. Running emerge --config grub doesn't work. Is it as simple as changing the path of the splash image to /usr/share/grub/ and running grub-install? Thanks, Dave Just cp /usr/share/grub/splash.xpm.gz /boot/grub/ Or you could point to it in /usr, unless if you have /usr in lvm or something else that grub wont be able to see Yeah that's it. Does the vga line go in the general section (with variables like splashimage), or does it go on the /kernel line? You don't need a vga line to fix the problem. Just make sure that the splash.xpm.gz file is where /boot/grub/grub.conf says it is. Either change grub.conf, or cp the file, or make a symlink, ... hth, allan
Re: [gentoo-user] ftp server software which supports a control connection?
[EMAIL PROTECTED] wrote: Hello. I am looking for an FTP server software that let me monitor the ftp activities of the FTP server on my notebook (ftp server and notebook are different hosts) After homework on google it seems this feature is called remote administration. In Linux world only one ftp server I found support this: CrashFTP Server. Unfortunately the server is not opensource, and doesn't have a powerpc binary release (which my server is). -- Real Softservice Huateng Tower, Unit 1788 Jia 302 3rd area of Jinsong, Chao Yang Tel: +86 (10) 8773 0650 ext 603 Mobile: 159 7382 http://www.realss.com
Re: [gentoo-user] can't boot, block device is not a valid root device
you need in .config kernel file CONFIG_ATA_PIIX=y CONFIG_EXT3_FS=y Il giorno sab, 06/09/2008 alle 22.27 +0200, Tamer Higazi ha scritto: Hi people, I have installed the latest gentoo linux distribution and I don't know what I am missing in my installation, specially the last gentoo installation worked for me fine. At booting I recive the error message: Block device /dev/sda5 is not a valid root device. Hard disk is a SATA one, with a Core2Duo machine. What am I doing wrong? for any help solving my problem, I would thank you kindly. Tamer content of my fstab and grub.conf: http://rafb.net/p/Z9WNgO61.html content of lspci: http://rafb.net/p/VOtr9x33.html signature.asc Description: Questa è una parte del messaggio firmata digitalmente
Re: DIJUAL MOBIL BARU CUMA 600 RIBU
Pada tanggal 30/08/08, join sukses [EMAIL PROTECTED] menulis: MAU MOBIL INNOVA BARU? HANYA 600 RIBU. TANPA UANG MUKA KESEMPATAN TERBATAS CEPAT BUKA: http://www.bebasfinansial.com/?id=gagah -- Jangan lupa, isi pulsa dari HP sendiri. Bisa Gratis http://klikvnet.org/?id=aan -- Jadikan Kami Mitra Sukses Anda --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups iklanminii group. To post to this group, send email to iklanminiplus@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iklanminiplus?hl=en -~--~~~~--~~--~--~---