Re: [gentoo-user] Good code editor (with colors) for X (no GTK or QT)
On July 21, 2003 10:31 pm, Carlos wrote: I use emacs. (I know, I know, I can hear all of you vi people out there snickering) I'm that loud? Hey, I vim too. it's, in my opinion, the fastest editor for coding. MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
[gentoo-user] mudding?
Anyone here mud? If so, do you have a favourite client for Linux? Is it in portage? I'm kinda leaning toward papaya, but I don't think it's in Portage - I suppose I could always write an ebuild. I also really like mudtelnet, except for its lack of aliases. MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] mudding?
I really like TinyFugue, listed in portage as tf (also the executable), more info at http://tf.tcp.com/~hawkeye/tf/ I just tried out gMUDix ... it's got everything I want except for ANSI background support (anyone know how easy this is to do?) Anyway, tried it out and its for command doesn't work! tf I tried out and couldn't figure out -Gary MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Re: odd problem
On July 18, 2003 08:42 am, Kevin Bucknum wrote: $ cat -e /etc/hostname wolverine$ there is this dollar sign, is it normal? M.B Yes. The -e option tells cat to print a $ for end of line, and also show unprintable characters. That looks like a correct hostname file to me. I'll repeat someone else's suggestion: get rid of the blank line before the hostname MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] HOTOW: Windows Keys in Consoles
To modify the windowskeys functions, on Gentoo the file is /usr/share/keymaps/i386/include/windowskeys.inc MIKE Me again, MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Re: Windows keys in vterms?
On July 16, 2003 10:07 pm, Bryce wrote: On Thursday 17 July 2003 07:31 am, Nick Rout wrote: windowskeys is a nice feature huh? I just noticed it a week or so ago. Have you noticed the other windowskey, the one that emulates the right click menu in windows switches between the last two vterms?? which key combo is that?? menu button. On my laptop, it's where the right windows key would be. it's normally beside the right one. bryce MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Re: Windows keys in vterms?
EXTENDED_KEYMAP=windowskeys grepping /etc for where this takes effect shows that /etc/init.d/keymaps includes a line that effectively seems to run windowskeys as a parameter to loadkeys. I guess you will have to get that into the knopix/debian init scripts somewhere, assuming it loads keymaps in a similar way. Ok, I've tried to run the command normally... I get cannot open file windowskeys on my Gentoo box and on a RedHat 8.0 box (I'm not at home right now - my Gentoo's a laptop) Any more insight given by grep and find? MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Re: Windows keys in vterms?
Any more insight given by grep and find? Found it with a quick google. On an extended Microsoft keyboard, we have the additional keys as follows (models vary, this is from the Keyboard-and-Console HOWTO, page 14, as mirrored on ibiblio.org): Left Windows: e05b Right Windows: e05c Menu: e05d Internet Keyboard also uses Back: e06a Forward:e069 Stop: e068 Mail: e06c Search: e065 Favourites: e066 Web/Home: e032 My Computer:e06b Calculator: e021 Sleep: e05f dumpkeys can show you what keycodes are still not used by your current keyboard setting. In the case of the box I tested on, I was able to use the 125-127 noted by the HOWTO. The following commands set these codes: setkeycodes e05b 125 setkeycodes e05c 126 setkeycodes e05d 127 This can now tell the computer something interesting about pressing these keys. Unfortunately, they still don't do anything. Fortunately, there's a program called loadkeys. Run it and type the following: keycode 125 = Decr_Console keycode 126 = Incr_Console ^D I don't know what the special name for flipping consoles is, but this is very basic. I assume one could also run `loadkeys keymapping` where keymapping has the map that you want. I have not tested that out yet - it's one I want to try due to the ease of adding that into load scripts. All this just for getting one of the better features of Gentoo elsewhere ;) MIKE Me again, MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
[gentoo-user] HOTOW: Windows Keys in Consoles
Standard sysvinit setup. That is, there's an rc.local file that you want to add to. -=-=-=-=-=-|/etc/rc.d/rc.local|-=-=-=-=-=-=-= #... setkeycodes e05b 125 setkeycodes e05c 126 setkeycodes e05d 127 loadkeys /etc/windowskeys #... -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Set up a /etc/windows keys file to look like the following: 2 cases: case 1) standard keyboard. keycode 125 = Decr_Console keycode 126 = Incr_Console keycode 127 = Last_Console Case 2) Laptop with no right windows key keycode 125 = Decr_Console keycode 127 = Incr_Console This way, you can put the nice Gentoo feature of useful windows keys into other distros. The next thing I want to do is put Gentoo's boot scripts on my Knoppix box ;) MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
[gentoo-user] Postfix?
I installed postfix, and it's sending client returns the following error: fatal: gethostbyname: no such file or directory ... what's the fix for that? I've also had the problem where I can't start the receiving client (due to the initscript not being able to calculate dependencies) MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Postfix?
I installed postfix, and it's sending client returns the following error: fatal: gethostbyname: no such file or directory check your logs *or* sudo /usr/sbin/postfix start. Hopefully, postfix will tell you which file (or directory) is missing. Still nothing: the only thing in main.cf I've done is put inet_interface = localhost ... or whatever that variable is. Is there some guide that explains exactly what's needed? And, actually, I think along the same lines is how do I get DHCP to update the DNS cache of the LAN? Norberto MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
[gentoo-user] Windows keys in vterms?
I'll ask this again, as I didn't get any response before. I have a Knoppix HD-install machine that I'd like to use the windows keys on the keyboard to go left and right one vterm (which I'm using to mean Ctrl-Alt-F# terminal). This is the default way they work on both Gentoos I've installed. Anyone know how or where to look? MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Local mail
Definitely. One popular choice (my own favorite) is postfix. The default configuration requires just a few small edits to one configuration file - very easy to setup and use. emerge postfix edit /etc/postfix/main.cf /etc/init.d/postfix start Error: could not get dependency info for postfix why not? Nathan Meyers [EMAIL PROTECTED] MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Local mail
On July 15, 2003 05:22 pm, Bryan D. Stine wrote: I have the same error starting up through new init scripts started by packages, but they start up anyway for me. Are you sure postfix isn't running? It won't let me stop it. I just checked and it is not started MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Silly question: Skipping stuff that emerge suggests
On July 13, 2003 06:00 am, Tom Wesley wrote: Problem with that is that when 2.0.47-r1 etc come along they also get suggested for emerge... How about modifying /var/cache/edb/world to include the line apache-2.0 or something like that MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
[gentoo-user] lm-sensors
Question: how does one get this working? What do I need in kernel? It's complaining about my i2c being too old - but I don't even remember compiling it into the kernel. MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] lm-sensors
On July 12, 2003 07:45 pm, Norberto BENSA wrote: MIKE MacMartin wrote: Question: how does one get this working? What do I need in kernel? It's complaining about my i2c being too old - but I don't even remember compiling it into the kernel. MIKE # emerge i2c ? :-) perhaps it should be a dependency? Norberto MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] snapshots
I am not sure what I was using when I found this out, maybe red hat or mandrake. But it was an app for taking screenshots, what was special about it was that, it had a feature to click drag on a window and it would take that part of the windows and save it. Anyone know which app this is? (It's not ksnapshot coz, it only takes snapshots of the whole desktop or a whole windows, if not let me know ) import [-window root] /path/to/save.fmt ... that the one? Thanks, ZiM MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
[gentoo-user] vim-6.2?
I get an error merging vim-6.2 No rule to make target auto/configure Any fixes? MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] c++ template question
b.h === template class t class b { public: b(); ~b(); }; b.cpp = #include b.h template class t bt::b() {} template class t bt::~b() {} Try b.cpp looking like this: b.cpp == #include b.h templatetypename t b::b() {} templatetypename t b::~b() {} I used typename instead of class, but they should be interchangeable (if you want to use typename, you'd better alter it in the class definition too). I believe that the extra type specifier in your function name is what is messing the compiler up - you're already telling it you are using a template of name T, so why bother duplicating it? I could look at my code to see if this is right - but I don't remember ever doing it your way. regards, Akos MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] c++ template question
To instantiate a template, the compiler has to have the source available. You hid the definitions of the constructor and destructor from it by putting it in b.cpp, so while it got the class definition when you included the .h, it did not have the function definitions. You got the error at the link stage for the same reason you would with a normal function; when the compiler sees a function declaration without a definition, it assumes the function will be linked later. The problem is not that it's not being defined (it should be linked in by ld if he's got his makefile set up). You should never need to put function bodies in your .h files (in fact, it's usually not recommended because it's harder to get deps correct in your Makefile, more things need to be recompiled etc.) *thinks for a bit* ... wait, no, in this specific case, you're right. I found that g++ could not compile templates properly if the source was not inlined in the .h file ... that is, it goes into an infinite compile loop. They may have fixed that by now, but I don't know. To fix this remove the #include from b.cpp and either move its contents into b.h or #include b.cpp in b.h. Obviously those are the same as far as the compiler is concerned. I would suggest you consult your favorite C++ text if you need more information; you should have a starting point now. What he really wants to do is ensure that they're linked together. The way that's done is g++ -c b.cpp; g++ -o main main.cpp b.o; It could likely be done in one line, but this way shows you the basis for the Makefile (which you should write for any C++ project). Also, the (I believe) syntax error in the b.cpp file, which I pointed out in another message. -Heschi MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] openoffice emerge problem's version 1.0.3-r1
Is this a problem with my config or should I bug this problem? * This ebuild has only been tested with the blackdown port of * java. If you use another java implementation, it could fail * horribly, so please merge the blackdown-jdk and set it as * system VM before proceeding: Read the message and follow its instructions. This is done with java-config --set-system-vm=blackdown-jdk-1.4.1 for setting it to blackdown jdk 1.4.1 MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] File Sharing between Linuxes
#shfs mount [EMAIL PROTECTED] /mnt/sidshfsdefaults 0 0 To mount this, I issue a: mount /mnt/sid What if I want to mount [EMAIL PROTECTED]:~ as other ssh programs know it? MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] bittorrent?
You said you only tried it a couple times--maybe the problem is with the particular torrent(s) you tried? Might be. I managed to get one downloaded fine. But the 2 Animatrix ones I tried seem to hang at connecting to peers. I am behind a MASQ router - it looks like there's an option to disallow that in the torrent? I have allowed 6887 through - though I don't know how to route it to a particular server. Which also begs the question: how can I get DHCP to talk to DNS (on the same machine) and register hostnames that register with the DHCP? MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Windows to linux... What was that app?
and when you're 65 like me you think twice before wanting to slap the crap out of anyone ;-) Hey, I'm still 15 inside my head. And then you realize that you missed out when you were 19: that you're still young enough to think you know all there is while realizing there's more to learn still ;) Peter MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] how to change the monitor resolution?
now I can understand... I've a notebook without numberpad :-( I solved that issue by buying a numberpad that acts as a 2 port USB hub as well. A further issue may be that you have an LCD screen and, to my knowledge, X doesn't like changing resolutions on an LCD - Unreal Tournament, q3 etc all have to be run in 1400x1050 (my LCD screen's resolution) or weird things happen (usually letterboxing of some sort) Alberto MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] how to change the monitor resolution?
So, how did you do it? What video driver do you use, and did you need to make any special changes to XF86Config? X just decided that that was the resolution it was going to display at. Like I said, it's LCD - it's also on a laptop. I guess it told X it only wanted 1400x1050? MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] how to change the monitor resolution?
Would you be so kind as to post your XF86Config file so that I could see if a similar setup would work for me? Here it is: /usr/X11/XF86Config-4 --- Section Module # This loads the DBE extension module. Loaddbe # Double buffer extension # This loads the miscellaneous extensions module, and disables # initialisation of the XFree86-DGA extension within that module. SubSection extmod # Optionomit xfree86-dga # don't initialise the DGA extension EndSubSection # This loads the Type1 and FreeType font modules Loadtype1 Loadfreetype # For openGL LoadGLcore Loaddri # This loads the GLX module Load glx EndSection Section DRI Group 0 Mode 0666 EndSection Section Files RgbPath /usr/X11R6/lib/X11/rgb FontPath /usr/X11R6/lib/X11/fonts/local/ FontPath /usr/X11R6/lib/X11/fonts/misc/ FontPath /usr/X11R6/lib/X11/fonts/75dpi/:unscaled FontPath /usr/X11R6/lib/X11/fonts/100dpi/:unscaled FontPath /usr/X11R6/lib/X11/fonts/Type1/ FontPath /usr/X11R6/lib/X11/fonts/Speedo/ FontPath /usr/X11R6/lib/X11/fonts/75dpi/ FontPath /usr/X11R6/lib/X11/fonts/100dpi/ EndSection Section ServerFlags # nothing useful here EndSection Section InputDevice Identifier Keyboard0 Driver Keyboard Option AutoRepeat 500 30 Option XkbRules xfree86 Option XkbModel pc105 Option XkbLayout us EndSection # ** # Core Pointer's InputDevice section # ** Section InputDevice # USB trackball Identifier Mouse0 Driver mouse Option Device/dev/input/mice Option Protocol IMPS/2 Option Emulate3Buttons no Option ZAxisMapping 4 5 EndSection Section InputDevice # Identifier and driver Identifier Mouse1 Driver mouse Option Protocolauto Option Device /dev/mouse # When using XQUEUE, comment out the above two lines, and uncomment # the following line. #Option Protocol Xqueue # Baudrate and SampleRate are only for some Logitech mice. In # almost every case these lines should be omitted. #Option BaudRate 9600 #Option SampleRate150 # Emulate3Buttons is an option for 2-button Microsoft mice # Emulate3Timeout is the timeout in milliseconds (default is 50ms) Option Emulate3Buttons #Option Emulate3Timeout50 # ChordMiddle is an option for some 3-button Logitech mice #Option ChordMiddle EndSection # ** # Monitor section # ** # Any number of monitor sections may be present Section Monitor Identifier My Monitor # HorizSync is in kHz unless units are specified. # HorizSync may be a comma separated list of discrete values, or a # comma separated list of ranges of values. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S # USER MANUAL FOR THE CORRECT NUMBERS. HorizSync 31.5 - 48.5 #HorizSync 30-64 # multisync #HorizSync 31.5, 35.2# multiple fixed sync frequencies #HorizSync 15-25, 30-50 # multiple ranges of sync frequencies # VertRefresh is in Hz unless units are specified. # VertRefresh may be a comma separated list of discrete values, or a # comma separated list of ranges of values. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S # USER MANUAL FOR THE CORRECT NUMBERS. VertRefresh 50-70 Option dpms Modeline1400x1050 129 1400 1464 1656 1960 1050 1051 1054 1100 +HSync +VSync EndSection Section Monitor Identifier monitor2 Option dpms Modeline 1024x768 129 1400 1464 1656 1960 1050 1051 1054 1100 EndSection # ** # Graphics device section # ** # Any number of graphics device sections may be present # Device configured by xf86config: Section Device Identifier ATI Radeon Mobility M6 Driver radeon VendorName ATI Radeon Mobility M6 BoardName ATI Radeon Mobility M6 #Option hw_cursor on Option AGPMode 4 # unsupported card #VideoRam1024 # Insert Clocks lines here if appropriate Screen 0 BusID PCI:1:0:0 EndSection Section Device Identifier radeon1 Driver radeon VendorName ATI BoardName ATI Radeon Mobility M6 Option CrtScreen Option AGPMode 4 Option nodri #Option
Re: [gentoo-user] New user trying to get SSH running
Any help would be greatly appreciated. /etc/init.d/sshd start should take care of that ... 'least it did on my box Sean Bossinger MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] New user trying to get SSH running
On June 30, 2003 10:33 pm, Sean Bossinger wrote: Worked like a charm! Thanks Don't forget to etc-update add sshd default MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] New user trying to get SSH running
On June 30, 2003 10:44 pm, Sean Bossinger wrote: etc-update or env-update? oops... damn. Um... that's the wrong command ... rc-update add sshd default Sorry for any confusion MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] x doesn't work!
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! (EE) NVIDIA(0): *** Aborting *** (EE) Screen(s) found, but none have a usable configuration. Fatal server error: no screens found Generally, I've found this error to be when you've told the Screen section to use a mode that the Monitor doesn't support - I'd look at that. Any idea? Alberto MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
[gentoo-user] bittorrent?
I emerged the (masked) bittorrent... and I've tried it twice. It seems to hang on connecting to peers. This may be because it's slow on dialup or because at the other place I tried, the firewall didn't allow port 6667? or is it a buggy client? MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] bittorrent?
On June 29, 2003 11:43 pm, MIKE MacMartin wrote: I emerged the (masked) bittorrent... and I've tried it twice. It seems to hang on connecting to peers. This may be because it's slow on dialup or because at the other place I tried, the firewall didn't allow port 6667? or is it a buggy client? More info... in a bttest.py run, here's the list of fails: the following tests failed: BitTorrent.Downloader.test_choke_clears_active BitTorrent.Downloader.test_got_have_single BitTorrent.Downloader.test_stops_at_backlog BitTorrent.EndgameDownloader.test_piece_came_in_no_interest_lost BitTorrent.EndgameDownloader.test_hash_fail BitTorrent.EndgameDownloader.test_piece_came_in_lost_interest MIKE Yup, me again -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Re: Setting up a DHCP Server
doesn't seem to want to run. Installed DHCP via. emerge dhcp followed by an emerge dhcpd. Perhaps a stupid question, but you did do '/etc/init.d/dhcp start'? The advice I'd give (look, see, I'm giving it!) is to go to http://www.tldp.org and find their DHCPD howto. The Linux Documentation Project is a great resource that is for all distros. You just need to find some files on your machine first ;) Einar MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
[gentoo-user] Windows Keys?
In Gentoo Linux, in the vterms (the F# terminals), you are able to press the left windows key to go left one console, the right one to go right and the menu to flip the last two. My question is: how did they do that? I've got a Knoppix install on a server (right, so it's really Debian), and I want to mimic that for ease of navigating. Thanks. MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Simple stupid question
I know this is probably mentioned somewhere, but I don't know where. Whenever I boot I need to enter: dhcpcd eth0 before my ethernet will come up and recognize the network. Simply starting the dhcp daemon? But where would I put this to automate it? Look at /etc/conf.d/net ... somewhere, there's an iface_eth0 that you can make iface_eth0=dhcp ... follow the comments MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Curiosity - DirectFB
so i did an `emerge -s directfb' and got the obvious results: `dev-libs/DirectFB', `dev-libs/DirectFB-extra' and 'x11-base/xdirectfb' but neither of these will work if i go for the `emerge -puD directfb' all i get is the following message: I wrestle with this a log ... emerge -s is essentially doing a grep -i on all of them... note the case insensitive flag. Unfortunately, emerge doesn't do this as well. So, the command you'd want is emerge DirectFB, emerge DirectFB-extra or emerge xdirectfb. cheers, -bri MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
[gentoo-user] Cursor :(
I just upgraded to xfree-4.3.0-r2, and my redglass cursors are gone! I can't even install another theme, such as tuxcursors (http://www.kde-look.org/content/show.php?content=5359 ). I've got a /usr/X11R6/lib/X11/icons/defaults/index.theme that has an inherits=tuxcursor there, but no go. I've tried the tuxcursors in tuxcursor/cursors and tuxcursor, neither of which work. Also, redglass and whiteglass seem to have disappeared on me. MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Cursor :(
You've tried editing your ~/.Xdefaults and added these lines?: # Begin .Xdefaults Xcursor.size: 24 # Edit to your preference. Xcursor.theme: whiteglass # Or redglass if that's what you want. # End .Xdefaults I've got Xcursor.theme: tuxcursor here ... like I said, the whiteglass/redglass cursorthemes don't exist anymore on this system. These work for me, and without editing any global config-files. I want to subject _everyone_ to animated Tux cursors ;) ... actually, I just want to make it go. Patrick Börjesson MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Cursor :(
On June 5, 2003 04:01 pm, Patrick Börjesson wrote: I've got Xcursor.theme: tuxcursor here ... like I said, the whiteglass/redglass cursorthemes don't exist anymore on this system. You know that the cursors changed location at some version-change in xfree? Currently they reside in /usr/share/cursors/xfree/ Thanks! Patrick Börjesson MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] X 4.3 DRM new issue
KDM and GDM both display the system freeze issue, but using startx from the prompt does not. Upgrading to xfree-4.3.0-r2 fixed this ... either that, or the kernel for 2.4.20-r5 is more stable than r2. Either way, problem's gone. I think I'll keep my multiheading for now... MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] iptables error
One last question for today: How can I make the comands: echo 1 /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE permanent, meaning executed at boot time? Copy one of the /etc/init.d scripts and make it your own. For example (here's a quick example): = #!/sbin/runscript INTERNAL = eth0 EXTERNAL = ppp0 start() { ebegin Starting simple firewall # This line I think only needs to be done once # in the entire life of the system, well, until a 0 # has been echoed (which we'll do to stop) echo 1 /proc/sys/net/ipv4/ip_forward # Firewall code # Clear all previous rules $IPTABLES -P INPUT ACCEPT $IPTABLES -F INPUT $IPTABLES -P OUTPUT ACCEPT $IPTABLES -F OUTPUT $IPTABLES -P FORWARD DROP $IPTABLES -F FORWARD $IPTABLES -t nat -F # Allow only masq'ing on the IN and RELATED and # ESTABLISHED from the OUT iptables -A FORWARD -i $EXTERNAL -o $INTERNAL -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A FORWARD -i $INTERNAL -o $EXTERNAL -j ACCEPT iptables -A FORWARD -j LOG # Enable MASQ'ing $IPTABLES -t nat -A POSTROUTING -o $EXTERNAL -j MASQUERADE # Done firewall code eend $? Failed to start simple firewall } stop() { ebegin Stopping simple firewall # Just a 0 to forwarding should do it, but we'll go a step further and go # just to default rules echo 0 /proc/sys/net/ipv4/ip_forward # Clear all previous rules $IPTABLES -P INPUT ACCEPT $IPTABLES -F INPUT $IPTABLES -P OUTPUT ACCEPT $IPTABLES -F OUTPUT $IPTABLES -P FORWARD DROP $IPTABLES -F FORWARD $IPTABLES -t nat -F eend $? Failed to stop simple firewall } = a couple things about this script: 1) Save it in /etc/init.d/ and chmod +x it. Then use rc-update to add it to the default runlevel (or whichever runlevel you want to run it in) 2) I'm unsure about variables in Gentoo script, so I don't know if this will work without some hacking of INTERNAL and EXTERNAL. 3) This is the firewall I'm currently using. It looks alright, though I may want to change the default of the internet to DROP ... how do I do that? MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Radeon Mobility and X 4.3
dri-4.3.0 (or whichever one goes with that version of X). Sorry, that's xfree-drm-4.3.0. MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Radeon Mobility and X 4.3 **SOLVED**
On June 4, 2003 03:35 pm, MIKE MacMartin wrote: dri-4.3.0 (or whichever one goes with that version of X). Sorry, that's xfree-drm-4.3.0. I just had to get rid of the radeon driver compiled into the kernel and now it works. MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Which laptop vendors officially supports linux?
I was wondering if there was any laptop vendors that officially supports linux? Eurocom. I know linux can work, with more or less tweakings, on most laptops, but which brand actually have enough guts to officially say that linux works well on some or all of their laptops? Eurocom. They have a list of all their laptops, and which versions of RedHat they have tested on them - and what works, what doesn't. Gentoo will be about the same - that is, those laptops they say don't work likely won't work with G or RH. Thanks, Cedric MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] USB permissions
I've put my normal user into the USB group and I was wondering what else I need to do to access my camera and USB port(s). Anyone run across this problem before? I'm running gentoo 1.4rc4 fully updated. Somewhere on the 'net, I found an app called usb_perms. I can't remember where I found it - it was likely off of the USB digital camera howto on tldp.org (great site for learning things!). Here is the init.d script that I wrote to control it at bootup: /etc/init.d/usb_perms-- #!/sbin/runscript start() { ebegin Starting usb-perms /usr/local/sbin/usb_perms -d eend $? Failed to start usb-perms } stop() { ebegin Stopping usb-perms kill $(cat /var/run/usb_perm.pid) eend $? Failed to stop usb-perms } --- Stick this in /etc/init.d/, chmod +x it, then do an rc-update add usb_perms default then start it up. Unfortunately, I can't tell you _where_ I found usb_perms. I've got a copy of the tarball lying around - give me a private email if you can't find it and want it. Thanks, Robert MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] NetHack?
On March 5, 2003 09:46 pm, MIKE MacMartin wrote: I've attempted multiple times to get nethack-3.4.1 to build - it always fails. According to emerge -vp nethack, the only USE flags it uses are +X +qt +gtk. err +gnome... sorry. Anyone have a fix? MIKE MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list
[gentoo-user] World file?
I have a question about the world file. How do I specify the versions? I emerged X 4.3 yesterday, and now it wants to get rid of it, even though I put =x11-base/xfree-4.3 in my world file. Another possible extention, that I've mentioned before, but not seen any discussion about the possibility of, is having variables set there, so I could do ACCEPT_KEYWORDS=~x86 x11-base/xfree MIKE -- Beware the JabberOrk -- [EMAIL PROTECTED] mailing list