Re: [gentoo-user] [OT] Google's public DNS service

2009-12-08 Thread Adam
 I know that anyone can use any DNS server that's exposed to the internet,
 also for free, so what's the big deal about google?

IMO a DNS server configured that way is poorly configured (unless you're
actually trying to run a public service, as google is). Instead the use
of BINDs allow-recursion statement (or equivalent) should limit
recursion to only the ISPs customers. So, anyone can use the DNS to look
up any hosted zones, but only the ISPs customers can lookup other zones.
The network will need anti-spoofing controls as well. FWIW bigger ISPs
will split their DNSes, with some dedicated to hosting zones and others
dedicated to recursive lookups.

Limiting recursion helps with amplifications attacks.



Re: [gentoo-user] {OT} Preparing a laptop for sale

2009-12-17 Thread Adam
 dd is pretty thorough... afterall, it writes to every single block on the
  disk.

 
 And the resulting effect from doing that once is:
 
 Trivially easy to recover the data that was there just before you did the dd
 
 Why? Data on-disk is not a binary cell like ram. It is a magnetic pattern and 
 the pattern from the previous write is still there IIF you know how to find it

Agreed, using all zeros will just change the magnitude of the field,
which will make it more difficult to read, but the underlying data will
largely remain. You should use random data so with dd you could use
if=/dev/random but that would be horribly slow so maybe if=/dev/urandom.
But why bother when there's a tool like shred. I boot a Knoppix cd then
use it on the raw device as i cant see any point in doing each partition
separately.




Re: [gentoo-user] OT: Rebuilding an NTFS directory structure

2010-01-10 Thread Adam
 The MP3 files probably have ID3 tags containing artist, album and title
 information, so it should be possible to use a script to rename them
 (Goggle will most likely turn up a few options).

Looks like audiotag can do that, here's a snip of the help;

  --rename-filesrename files based on meta-data
  --rename-pattern  pattern to use when renaming files.  when no
  rename pattern is specified, the rename
  pattern defaults to: %T. %a - %t
  string replacement directives:
%T: track number
%a: artist name
%t: song title
%A: album name
  You can specify subdirectories in the rename
  pattern. %a - %A/%T. %t will rename and move
  the files. %a -%A/ moves the files to new
  subdirectories without renaming.





Re: [gentoo-user] How to allow wheel users to open ports?

2010-01-11 Thread Adam
 I want to run webmail  add-on on thunderbird with a wheel user. The system 
 doesn't allow the webmail to open at port below 1024. Any open port above 
 1024 is not accessible. How can I solve this problem?

Plenty of info via google, like
http://stackoverflow.com/questions/413807/is-there-a-way-for-non-root-processes-to-bind-to-privileged-ports-1024-on-linux/413868



[gentoo-user] Gnome camera and pdf associations

2010-01-11 Thread Adam
Two issues:

1. Firefox and thunderbird both have GIMP as the default PDF viewer,
which i can manually set to something else that's not in the drop down
list, but i'd like to know if FF/TB get the list and defaults from
Gnome, and if so, where is that configured?

2. When i use a connect a digital camera there no options in the drop
down list. I'm using digikam so i'd like to add it to the list - where
is that configured?

cheers



Re: [gentoo-user] squid - allowing only one domain

2010-01-20 Thread Adam
On 01/20/10 16:53, Joseph wrote:
 I'm testing squid and want to allow only one domain but it is not
 working (using iptable + squid)
 iptable:
 ACCEPT tcp  --  anywhere anywheretcp
 dpt:http owner UID match squid
 ACCEPT tcp  --  anywhere anywheretcp
 dpt:3128 owner UID match squid
 REDIRECT   tcp  --  anywhere anywheretcp
 dpt:http redir ports 3128
 
 squid:
 # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
 
 acl GOOD dstdomain .google.ca
 http_access allow GOOD
 http_access deny all
 
 Why it doesn't work?

You havent said how its failing; ie
1. Its not intercepting the traffic
2. It is intercepting but doesnt allow acces to google.ca
3. It is intercepting but allows access to everything




Re: [gentoo-user] squid - allowing only one domain

2010-01-20 Thread Adam
On 01/20/10 16:53, Joseph wrote:
 I'm testing squid and want to allow only one domain but it is not
 working (using iptable + squid)
 iptable:
 ACCEPT tcp  --  anywhere anywheretcp
 dpt:http owner UID match squid
 ACCEPT tcp  --  anywhere anywheretcp
 dpt:3128 owner UID match squid
 REDIRECT   tcp  --  anywhere anywheretcp
 dpt:http redir ports 3128

Using owner is incorrect, as the packets are not locally generated so
the OS has no user context for them.




Re: [gentoo-user] squid - allowing only one domain

2010-01-21 Thread Adam
On 01/21/10 00:49, Joseph wrote:
 On 01/20/10 21:24, Adam wrote:
 On 01/20/10 16:53, Joseph wrote:
 I'm testing squid and want to allow only one domain but it is not
 working (using iptable + squid)
 iptable:
 ACCEPT tcp  --  anywhere anywheretcp
 dpt:http owner UID match squid
 ACCEPT tcp  --  anywhere anywheretcp
 dpt:3128 owner UID match squid
 REDIRECT   tcp  --  anywhere anywheretcp
 dpt:http redir ports 3128

 Using owner is incorrect, as the packets are not locally generated so
 the OS has no user context for them.
 
 In a squid log I get:
 
 1263964263.464  0 192.168.1.5 NONE/400 1828 GET / - NONE/- text/html
 
 All I have access is to localhost:361 anything else local is denied
 including www
 What should I use instead of owner?
 I was following this guide:
 http://www.linux.com/archive/articles/113733

Sorry my mistake, for the OUTPUT chain it makes sense as all those
packets are from squid.

The log should have a URL after the GET command, ie;

1264070023.044103 192.168.1.12 TCP_MISS/200 33140 GET
http://safebrowsing-cache.google.com/safebrowsing/rd/goog-phish-shavar_a_82561-82720.82561-82614.82615-82720:
- DIRECT/150.101.98.208 application/vnd.google.safebrowsing-chunk

Have you tried configuring the proxy in your browser to check that
squid's working? Once you've established that you then know if you have
to fix the squid config or the iptables config



Re: [gentoo-user] [X11] radeonhd not working

2010-02-20 Thread Adam
 I get the following error lines in the console:
 FATAL: Module radeon not found.
 (EE) RADEONHD(0): RHDDRIVersionCheck: drmOpen(radeon,
 pci::05:05.0) failed.
 
 [ 1256.744546] uvesafb: mode switch failed (eax=0x34f, err=0). Trying
 again with default timings.
 
 Radeon DRI is compiled into the kernel.
 What do I do now?

Probably emerge xf86-video-radeonhd?



[gentoo-user] no libdri.so with ati-drivers-10.1

2010-02-20 Thread Adam
I tried 10.1 but just got a blank screen. The log file shows that xorg
couldnt load libdri.so, and the file is missing under /usr/lib64/xorg.
(its at /usr/lib64/xorg/modules/extensions/libdri.so in 9.9-r2)

So, any ideas or should i issue a bug report?



[gentoo-user] Disk or filesystem issue?

2010-04-03 Thread Adam
For the last few weeks i have been getting the single user prompt on
shutdown, and reiserfs3 is performing a check(fix?) during boot. Seems
to happen about 4 times out of 5. smartctl report looks ok. I have been
using 2.6.31-gentoo-r6 for ages without issue. Any ideas?



Re: [gentoo-user] Disk or filesystem issue?

2010-04-03 Thread Adam
 Probably neither.  Can you Ctrl+F12 to see what the logs are 
 saying?  I've been getting kernel Oops! on shutdown on one 
 machine of mine with the 2.6.31-gentoo-r10 kernel.  Might be 
 similar

Ok, i found this, which is mentioning fglrx, and the problem may have
started when i changed driver versions.

So is it possible for an X driver to cause filesystem issues? I would
have assumed not.



Apr  4 10:38:08 sphinx shutdown[5768]: shutting down for system reboot
Apr  4 10:38:09 sphinx init: Switching to runlevel: 6
Apr  4 10:38:09 sphinx gnome-session[5585]: WARNING: Detected that
screensaver has left the bus
Apr  4 10:38:09 sphinx gnome-keyring-daemon[5614]: dbus failure
unregistering from session: Connection is closed
Apr  4 10:38:09 sphinx su[5753]: pam_unix(su:session): session closed
for user root
Apr  4 10:38:09 sphinx kernel: uhci_hcd :00:1d.1: release dev 2
ep81-INT, period 8, phase 4, 93 us
Apr  4 10:38:09 sphinx kernel: uhci_hcd :00:1a.0: release dev 4
ep81-INT, period 8, phase 4, 14 us
Apr  4 10:38:09 sphinx kernel: __ratelimit: 20 callbacks suppressed
Apr  4 10:38:09 sphinx kernel: BUG: using smp_processor_id() in
preemptible [] code: X/5275
Apr  4 10:38:09 sphinx kernel: caller is KAS_GetExecutionLevel+0xd/0x120
[fglrx]
Apr  4 10:38:09 sphinx kernel: Pid: 5275, comm: X Tainted: P
2.6.31-gentoo-r6 #4
Apr  4 10:38:09 sphinx kernel: Call Trace:
Apr  4 10:38:09 sphinx kernel: [811bc329] ?
debug_smp_processor_id+0xd9/0xe0
Apr  4 10:38:09 sphinx kernel: [a022514d] ?
KAS_GetExecutionLevel+0xd/0x120 [fglrx]
Apr  4 10:38:09 sphinx kernel: [a02403e9] ?
MCIL_GetExecutionLevel+0x39/0x80 [fglrx]
Apr  4 10:38:09 sphinx kernel: [a02ecacb] ?
CallbackQueueAccess+0x2b/0x2a0 [fglrx]
Apr  4 10:38:09 sphinx kernel: [a02e49a0] ?
UnRegisterIRQClient_Worker+0x0/0xe0 [fglrx]
Apr  4 10:38:09 sphinx kernel: [a023ff42] ?
MCIL_bMiniportCapEnabled+0x82/0xa0 [fglrx]
Apr  4 10:38:09 sphinx kernel: [a02e4323] ?
UnRegisterIRQClient+0x83/0xe0 [fglrx]
Apr  4 10:38:09 sphinx kernel: [a02e163e] ?
IRQMGR_IRQSourceSupported+0x7e/0xa0 [fglrx]
Apr  4 10:38:09 sphinx kernel: [a02e1791] ?
IRQMGR_Access+0x131/0x190 [fglrx]
Apr  4 10:38:09 sphinx kernel: [a0256e83] ?
fireglAsyncioUnregisterIntMsgHandlers+0x2c3/0x3c0 [fglrx]
Apr  4 10:38:09 sphinx kernel: [a0283794] ?
asyncIONotifyMsg+0x234/0x3e0 [fglrx]
Apr  4 10:38:09 sphinx kernel: [a02560b9] ?
firegl_asyncio_write+0x189/0x250 [fglrx]
Apr  4 10:38:09 sphinx kernel: [a0229048] ?
ip_firegl_write+0x58/0xa0 [fglrx]
Apr  4 10:38:09 sphinx kernel: [810abecb] ? vfs_write+0xcb/0x180
Apr  4 10:38:09 sphinx kernel: [810ac083] ? sys_write+0x53/0xa0
Apr  4 10:38:09 sphinx kernel: [8100b4c2] ?
system_call_fastpath+0x16/0x1b
Apr  4 10:38:09 sphinx kernel: BUG: using smp_processor_id() in
preemptible [] code: X/5275
Apr  4 10:38:09 sphinx kernel: caller is
KCL_SPINLOCK_STATIC_Grab+0x25/0x110 [fglrx]
Apr  4 10:38:09 sphinx kernel: Pid: 5275, comm: X Tainted: P
2.6.31-gentoo-r6 #4
Apr  4 10:38:09 sphinx kernel: Call Trace:
Apr  4 10:38:09 sphinx kernel: [811bc329] ?
debug_smp_processor_id+0xd9/0xe0





[gentoo-user] Are runlevels 3 4 5 the same?

2010-04-17 Thread Adam
I want to choose console or X from grub, so i'm thinking i'll do
something like 'rc-update delete xdm 4' and then pass softlevel=4 to my
grub boot line, to make runlevel 4 a console runlevel. Is that the right
way to do it?



Re: [gentoo-user] Are runlevels 3 4 5 the same?

2010-04-17 Thread Adam
On 04/18/10 15:21, Dale wrote:
 Adam wrote:
 I want to choose console or X from grub, so i'm thinking i'll do
 something like 'rc-update delete xdm 4' and then pass softlevel=4 to my
 grub boot line, to make runlevel 4 a console runlevel. Is that the right
 way to do it?


 
 Gentoo doesn't use those runlevels.  You need to read this:
 
 man rc-update
 
 Gentoo comes with the following runlevels:
 
 r...@smoker ~ # ls /etc/runlevels/
 total 5
 drwxr-xr-x  6 root root  152 Jun 11  2008 .
 drwxr-xr-x 81 root root 4832 Apr 18 00:16 ..
 drwxr-xr-x  2 root root  368 Jun 11  2008 boot
 drwxr-xr-x  2 root root  512 Apr  9 20:05 default
 drwxr-xr-x  2 root root   72 Jun 11  2008 nonetwork
 r...@smoker ~ #
 
 It generally boots to default.  You can change that on the kernel boot
 line but with one of the above instead of a 4 as you posted.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2chap=4

So gentoo does use the numerical runlevels (because that's what init
uses) as well as the gentoo runlevels you've shown. It looks like it
just maps the numbers to the names in inittab;

l0:0:wait:/sbin/rc shutdown
l0s:0:wait:/sbin/halt -dhp
l1:1:wait:/sbin/rc single
l2:2:wait:/sbin/rc nonetwork
l3:3:wait:/sbin/rc default
l4:4:wait:/sbin/rc default
l5:5:wait:/sbin/rc default
l6:6:wait:/sbin/rc reboot
l6r:6:wait:/sbin/reboot -dk

so, i guess this means i should point l4 to a custom runlevel in
/etc/runlevels that is the same as default with the exception that xdm
is removed... I'm assuming the linux kernel wont understand the gentoo
named runlevels, and therefore using those names in grub wouldnt work.










Re: [gentoo-user] Updates = slow firefox

2010-04-21 Thread Adam
 ummm .. ok ? so your using the default xorg.conf .. could be why youve got 
 bad performance.

 http://www.gentoo.org/doc/en/xorg-config.xml

 -
 deface
 But the new version of xorg (from circa 1.7) dont really need xorg.conf,
 moreover its discouraged to use one. (or just i think so)

You only dont need xorg.conf IF it works without itand even if it
does work without it, its unlikely to be the best config.

grep ^\(EE /var/log/Xorg.0.log and post the result.



[gentoo-user] WLAN speed either 800KB or 3MB

2010-04-25 Thread Adam
Downloads over my 802.1g WLAN seem to always be at either of these two
speeds. Billon ADSL+WLAN router one end, Intel 5100 on the laptop. Any
ideas on how i stop it falling back to the slower speed?



Re: [gentoo-user] WLAN speed either 800KB or 3MB

2010-04-25 Thread Adam
 Downloads over my 802.1g WLAN seem to always be at either of these two
 speeds. Billon ADSL+WLAN router one end, Intel 5100 on the laptop. Any
 ideas on how i stop it falling back to the slower speed?
 
 look for a not contested channel?

I had assumed that congestion would reveal itself as varying speeds, as
expected with multiple users on a shared medium, not step jumps between
the two speeds that i'm seeing... Am I wrong?




Re: [gentoo-user] WLAN speed either 800KB or 3MB

2010-04-25 Thread Adam
 Check that you have disabled 802.11b on your router, or you may find that an 
 adjacent client who's running 802.11b will drag your router down to 11Mb/s 
 max 
 (the actual throughput will be lower).

Router is already fixed to g only.

 While you're experiencing the lower downloads you can run iwlist iface scan 
 to see the speed at which your NIC is connecting at.  If it is 802.11g it'll 
 say so:

Thanks, i can see my own router (Cell 01) and three others, looks like I
should try channel 13. I can't see the speed shown in the output tho.

wlan0 Scan completed :
  Cell 01 - Address:
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=69/70  Signal level=-41 dBm

  Cell 02 - Address:
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=32/70  Signal level=-78 dBm

  Cell 03 - Address:
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=60/70  Signal level=-50 dBm

  Cell 04 - Address:
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=48/70  Signal level=-62 dBm



Re: [gentoo-user] arping network profile issue

2010-05-07 Thread Adam
On 05/06/10 03:35, Zhou Rui wrote:
 Hi folks,
 I setup a network interface to switch in two different network with
 different gateways using config_eth0=( arping ), and I can get gateway mac
 when use arping2 command directly.
 But the /etc/init.d/net.eth0 start always fails, can you help me to find the
 issue out?

I cant understand what you're trying to achieve. IP will always do the
arp for you so just set up the IP level stuff and whatever you're trying
to do should work.

 dns_domain=vm
 config_eth0=( arping )

AFAICT This means you want to try to find a free address in the
169.254.x.x auto self configuration range - is that what you want?

 gateways_eth0=( 192.168.1.254,,192.168.1.114 192.168.1.1,,192.168.1.114 )

As none of those addresses are local, they cant be used as a gateway for
a 169.254 address.



Re: [gentoo-user] arping network profile issue

2010-05-08 Thread Adam
On 05/08/10 15:25, Zhou Rui wrote:
 What I want is finding a gateway out with ARP, and then assign the correct
 gateway/route table, 

You cant discover a router with ARP. ARP finds the MAC address of a host
that's associated with a given IP address.

Ways of getting a ipv4 gateway are;
- manual configuration
- DHCP
- http://en.wikipedia.org/wiki/ICMP_Router_Discovery_Protocol




Re: [gentoo-user] I've been hacked.

2010-05-12 Thread Adam
 looks like, your ISP has a Transparent Proxy Setup running.
 
 Should I be worried about that?

No.

 Ports being shown as open does not mean that your machine is
 listening, more like the firewall has some holes in it.  If the
 
 Really?  I thought a service had to be listening for the port to be
 open.  So from nmap, there is no way to tell the difference between a
 port that isn't blocked by a firewall and one that is listening?

You're right - a TCP service does need to be listening for the port to
be shown as open. However, a device in the path like a proxy may answer
on behalf of the actual destination. ISPs can do this so that you will
use their proxy without having to configure a proxy in your browser.

Firewalls can block ports in two ways;
1.Reject the packet, that is, respond to the SYN with an RST packet
(which is also what the operating system does if the port is closed) and
not forward the packet to the destination
2. Drop the packet, that is, dont respond to the packet or forward it on
to the destination.



Re: [gentoo-user] Preventing a shared interrupt

2010-05-22 Thread Adam
 Does anyone know how to prevent my nouveau video card and ath wifi
 card from sharing interrupt 19?  I can't move the video card slot and
 I'd rather not move the wifi card slot if possible.
 
 BTW, does anyone see any other opportunity for interrupt optimization
 here?  I'm trying to optimize for video and especially audio, and I'm
 using a USB 1.0 sound card.
 
 # cat /proc/interrupts
CPU0
   0: 473139   IO-APIC-edge  timer
   1:  2   IO-APIC-edge  i8042
   7:  1   IO-APIC-edge
   8:127   IO-APIC-edge  rtc0
   9:  0   IO-APIC-fasteoi   acpi
  12:  3   IO-APIC-edge  i8042
  14:  0   IO-APIC-edge  ide0
  19: 135597   IO-APIC-fasteoi   nouveau, ath
  20:  2   IO-APIC-fasteoi   ehci_hcd:usb2
  21:  13860   IO-APIC-fasteoi   ehci_hcd:usb1
  22: 971970   IO-APIC-fasteoi   ohci_hcd:usb4
  23:   3446   IO-APIC-fasteoi   ohci_hcd:usb3
  28:  21524   PCI-MSI-edge  ahci

FWIW a grep of the nouveau source doesnt bring up any hits on MSI, so it
looks like the driver doesnt support it yet. Likewise no hits for ath5k,
however ath9k does support it.




Re: [gentoo-user] Something happened on the way to X

2010-05-23 Thread Adam
 I don't use ATI but I think I read here a while back that ATI drivers
 have to be compatible with certain versions of xorg.  You may want to
 see if you can use a newer version of the ATI drivers.
 
 You can look at the ebuild to see what exact versions.  From what i
 read, it looks like you may need the 10 series instead of the 9 series. 
 Then again, it is sometimes backwards from what I am thinking.  May be
 worth testing anyway.

You need to emerge ati-drivers-8.721. Despite the numbering, its
actually the latest





Re: [gentoo-user] {OT} Basic device for a Gentoo router/firewall?

2010-05-24 Thread Adam
 Does anyone know of a basic device that would function well as a
 Gentoo router/firewall?  Using typical hardware seems like overkill.
 I should be able to offload package compilation duties to another
 local machine on the network.  It would also be nice if it were small,
 cheap, and power-efficient.
 
 I believe stuff like this
 http://www.routerboard.com/pricelist.php?started_from_home=1 is really
 common on the Athens network, but it all appears to be MIPS. 

If you want x86, maybe a VIA;
http://www.via.com.tw/en/products/embedded/boards/index.jsp



[gentoo-user] openrc conf.d/modules

2010-06-12 Thread Adam
My modules file contains;
modules=vmmon vmnet vmblock vmci vsock

modules_2_6=${modules_2_6} acpi-cpufreq
module_acpi_cpufreq_args_2_6=

modules_2_6=${modules_2_6} fuse
module_fuse_args_2_6=

modules_2_6=${modules_2_6} usbhid
module_usbhid_args_2_6=quirks=0x05ac:0x1294:0x04


But the vm modules arent loaded. dmesg has nothing. What am i missing?



Re: [gentoo-user] Re: openrc conf.d/modules

2010-06-12 Thread Adam
 My modules file contains;
 
 Which 'modules' file do you mean?

/etc/conf.d/modules

 modules=vmmon vmnet vmblock vmci vsock

 modules_2_6=${modules_2_6} acpi-cpufreq
 module_acpi_cpufreq_args_2_6=

 modules_2_6=${modules_2_6} fuse
 module_fuse_args_2_6=

 modules_2_6=${modules_2_6} usbhid
 module_usbhid_args_2_6=quirks=0x05ac:0x1294:0x04


 But the vm modules arent loaded. dmesg has nothing. What am i missing?
 
 Are there any references to those modules in /etc/modprobe.d/*conf or
 /etc/modules.d/*conf ? If not, there should be.  If yes, did you run
 update-modules?

There's no reference to the modules in either of those locations before
or after running update-modules (so no i hadnt run it because the openrc
update guide doesnt mention that its required, so I had assumed that its
no longer required).




Re: [gentoo-user] Re: openrc conf.d/modules

2010-06-13 Thread Adam
 I missed your reference to openrc last time.  Do you see any interesting
 messages when you run /etc/init.d/modules restart?

sphinx adam # /etc/init.d/modules restart
 * WARNING: you are stopping a boot service
 * Loading module acpi-cpufreq ...
  [ ok ]
 * Loading module fuse ...
  [ ok ]
 * Loading module usbhid ...
  [ ok ]
 * Autoloaded 3 module(s)

So they're just being missed. I've changed it to
modules_2_6=${modules_2_6} vmmon vmnet vmblock vmci vsock

And it now works ok.

 Where do those vm* modules come from?

VMware 7.1 (used the vmware installer... messy i know)




Re: [gentoo-user] Re: User password scanning on pop3

2010-06-17 Thread Adam
  Does anyone know how to block, or auto programs in Gentoo to
  limit 
 or stop people scanning for a user/password hacking on your
 firewall? 

fail2ban



Re: [gentoo-user] Routing with gentoo...

2010-06-19 Thread Adam
 My situation is vaguely similar... I've one high-speed link at home
 with only dynamic IP - and I've got rack-mounted server with multiple
 static IPs, one of which I want to use from home in order to run a
 mail-server, revision control service and various web-services...
 keeping all the data on hardware I physically control... access is
 always encrypted - so I retain my privacy, no matter what happens to
 my remotely hosted service (including packet-sniffing etc.) and the
 worst case scenario is denial of service - which is an acceptable
 risk.
 
 While I've established the tunnel, I'm tearing my hair out trying to 
 configure routing so that only remote access to services on my home
 box (and not my home box's web-browsing etc.) are routed over the
 VPN.  I'm sure it has to be more straightforward than it appears.
 :-S

If i understand what you've written, you need a static route on your
home box for the server pointing to the VPN, and on the server you need
a static route to your home box pointing to the VPN. So no need for
anything funky, like iptables/iproute2.




Re: [gentoo-web-user] Java Script Libraries

2006-02-23 Thread Adam Sroka

Stuart Herbert wrote:

Thanks for making me aware of the issue. So let's hope for PHP5...



No problem.  I wish it was an idea we could implement.  Alas, it's
something that none of the scripting languages handle well.  Even Ruby
hasn't learned from the past mistakes in this area.
  

Ruby apps that are Gems aware handle this flawlessly.
--
gentoo-web-user@gentoo.org mailing list



Re: [gentoo-web-user] Java Script Libraries

2006-02-23 Thread Adam Sroka

Stuart Herbert wrote:

Hrm ... all the code I've seen uses:

require_gem package-name

with no sign of version requirements passed around.  How does Gems
handle the versioning in the background?

Best regards,
Stu
  
That code is implicitly saying use the latest version of 
package-name. However, Gems also lets you say:


require_gem 'package-name', '= 1.1.5'

One of the most useful things you can do is say: '~ 1.1'

This means, use the version closest to 1.1, but I don't care which minor 
revision you use. This will allow you to pick up new minor revisions 
that contain, for instance, a security patch, but not major revisions 
that might change the API.


For more info see here: http://docs.rubygems.org/read/chapter/16

Another thing that is great about Gems is that you can stand up a gem 
server and serve your own versions of any required libraries. All a user 
would have to do is point at your gem server, and they could use your 
version. This is analogous to having your own rsync server.

--
gentoo-web-user@gentoo.org mailing list



RE: [gentoo-user] slightly OT, laptop for gentoo

2008-02-14 Thread Adam Carter
 Obviously we can easily get a USB to serial adapter

You can still get laptops with real serial ports (HP sell them). You
might want to investigate whether you can manipulate the USB serial
adapter to your requirements. I tried once with setserial and it didn't
work - I havent had time to look into it further (potentially driver
dependent??). Minicom works fine for configuring routers/unix boxes
however.

absydos adam # file /dev/ttyUSB0
/dev/ttyUSB0: character special (188/0)
absydos adam # setserial /dev/ttyUSB0
Cannot get serial info: Invalid argument
--
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Squid configuration include

2008-03-18 Thread Adam Carter
Hi! i need to include  a file in squid.conf because i need to divide the 
squid.conf file in two parts and export one of this to other servers...how can 
i do this? This included file will contain all the cal and rules for squid.

You can refer to external files in some of the directives, so that might be 
good enough.

From squid.conf;
#  TAG: acl
#   Defining an Access List
#
#   acl aclname acltype string1 ...
#   acl aclname acltype file ...
#
#   when using file, the file should contain one item per line
--
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Gentoo router: Conntrack table full

2008-03-25 Thread Adam Carter
The contents of the connection table is in
/proc/net/ip_conntrack

Example:
tcp  6 65 TIME_WAIT src=192.168.1.4 dst=20.x.y.40 sport=4986 dport=80 
src=207.46.109.40 dst=192.168.1.4 sport=80 dport=4986 [ASSURED] mark=0 use=1

So go nuts with grep/awk/sed/sort/uniq etc to find what is consuming all the 
connections.

+1 for what Mike said about dropping the timeouts to something more sensible. 
FWIW Checkpoint uses a default TCP timer of 1 hour. Use 4 hours to be 
conservative.
--
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] compiling a module after the fact

2008-05-01 Thread Adam Carter
 I thought I remembered someway to compile a single module after the
 fact that didn't involve recompiling everthing... but just now I
 entered the usr/src/linux directory and edited .config adding the
 sshfs FUSE module.

 when I ran `make'  I see it grinding thru the whole thing again.  Is
 that normal?

Yeah, its normal - I think you just need to run 'make modules', then 'make 
modules_install' if you're just adding another module.
--
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] New eth.0/openrc setup - I'm confused

2008-05-01 Thread Adam Carter

  # /etc/init.d/net.eth0 restart
  * ERROR: net.eth0 has been stopped by something else

  # /etc/init.d/net.eth0 start
  * WARNING: net.eth0 has already been started

 meantime netstat indicates no changes at all.. eth0 is up throughout.

Do this;
/etc/init.d/net.eth0 stop
- verify the interface is down, if its not maybe just 'ifconfig eth0 down' it
/etc/init.d/net.eth0 zap
/etc/init.d/net.eth0 start

FWIW, zap forces the status to down even if the service mgmt thingy thinks its 
up.
--
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Apache status

2008-05-04 Thread Adam Carter
I'm running Apache 2.2.8 and want the status info, so i need to add

Location /server-status
SetHandler server-status

Order Deny,Allow
Deny from all
Allow from .foo.com
/Location

But, in httpd.conf
IfDefine INFO
LoadModule status_module modules/mod_status.so
/IfDefine

So what's the syntax to define INFO?

Cheers,
Adam
--
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Disk upgrade sanity check pls

2008-05-08 Thread Adam Carter
I'm running out of disk space on my laptop and the new disk arrived today.

Old setup; 60 gig drive;
/dev/hda1 = /home (used to be windows, hence the partition number)
/dev/hda2 = swap
/dev/hda3 = /

New setup; 250 gig drive
/dev/hda1 = / (including /home)
/dev/hda2 = swap

Here's my plan;
- make a new lilo.conf entry to boot off /dev/hda1, then run 'lilo -v'
- boot knoppix
- dump /dev/hda3 (/) to USB external drive with 'mount /dev/hda3 /mnt/root ; 
rsync -a /mnt/root /usbdrive/'
- dump /dev/hda1 (/home) to USB drive with 'mount /dev/hda1 /mnt/home ; rsync 
-a /mnt/home /usbdrive/'
- dump MBR to USB drive with 'dd if=/dev/hda of=/usbdrive/mbr_backup bs=512 
count=1'

- power down, swap hda to new drive, boot knoppix again
- add boot record without partition table, 'dd if=/whatever/mbr_backup 
of=/dev/hda bs=446 count=1'
- 'fdisk /dev/hda', create one linux partition using most of the disk and one 
linux swap partition
- put filesystem on /dev/hda1 with 'mkreiserfs /dev/hda1'
- dump old / to /dev/hda1 with 'mount /dev/hda1 /mnt/root ; rsync -a 
/usbdrive/root/* /mnt/root'
- dump old /home onto /dev/hda1 with 'rsync -a /usbdrive/home /mnt/root'
- create swap 'mkswap /dev/hda2'

then reboot and use the new lilo entry that points to /dev/hda1.

Will it work?

tnx



[gentoo-user] Gnome wallpaper

2008-05-14 Thread Adam Carter
My wallpaper doesnt come up when Gnome starts, but if i open the System - 
Preferences - Appearance dialogue it appears (i dont even need to make a 
change). So it looks like something is not running until i open the dialogue. 
Any ideas on how to fix it? Or will i have to resort to 'mv .gnome .gnome.orig' 
(or .gnome2) or something like that?


RE: [gentoo-user] Gnome wallpaper

2008-05-14 Thread Adam Carter

  My wallpaper doesnt come up when Gnome starts,
snip
 Does 'nautilus' start? Try using 'nautilus --no-desktop'...


Not sure if it tries to or not, but when I try to run it as you suggest, it 
dies;

[EMAIL PROTECTED] ~ $ nautilus --no-desktop 
[1] 7059
[EMAIL PROTECTED] ~ $ Initializing gnome-mount extension

** (nautilus:7059): WARNING **: Failed to initialize libhal context: (null) : 
(null)

** (nautilus:7059): WARNING **: Could not initialize hal context

Shutting down gnome-mount extension

[1]+  Donenautilus --no-desktop
[EMAIL PROTECTED] ~ $

So I found hald wasn't running, so I've started it (and rc-update added it) and 
now I get a ton of these;
** Message: drive = 0
** Message: volume = 0

Then it dies again;.
[1]+  Donenautilus --no-desktop
[EMAIL PROTECTED] ~ $


--
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Regex question

2008-06-03 Thread Adam Carter
I want to filter the strings; ? something http:// or ? something? https:// 
or ? something ftp:// from URLs in apache. I know i need to escape ? but i'm 
not sure about / and i've used '(something|otherthing|whatever)' to make the 
'or's work.

LocationMatch '(\?.*http:\/\/|\?.*https:\/\/|\?.*ftp\/\/)'
Order allow,deny
Deny from all
/LocationMatch

is that regex correct? Will egrep use the exact same regex syntax (so i can use 
it to check?)

tnx


RE: [gentoo-user] Regex question

2008-06-04 Thread Adam Carter
  I just wanted to comment something about Iain's suggestion:
 
  '^\?.*(http|https|ftp)://'
 
  If you add that '^' you're assuming that's the beginning of
 the string (as
  you may already know); the thing is I cannot see the cases
 where your URL
  starts with '?', the characters, and finally protocol and
 rest of URL. I
  mean, I can understand you found that string somewhere in
 the URL, but I
  don't see it being like that from the very beginning.

Thanks guys. I know ^ and will omit it as the ? Is not at the beginning of the 
string.

I'll try '\?.*(http|https|ftp)://'
--
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Firefox 3 stability

2008-07-01 Thread Adam Carter
I'm finding it unusable as it crashes often. How are you guys finding it?





[gentoo-user] RE: Firefox 3 stability

2008-07-03 Thread Adam Carter
Thanks everyone for your feedback. I'm trying firefox-bin now, and it seems 
stable. I guess this means that my .mozilla stuff isnt the problem.


[gentoo-user] proftpd anonymous ftp broken

2008-07-08 Thread Adam Carter
Logging in anonymously fails, so check syslog and find;
Jul  8 17:40:22 absydos proftpd[17200]: absydos - ProFTPD 1.3.1rc2 (devel) 
(built Sun Aug 5 06:10:17 EST 2007) standalone mode STARTUP
Jul  8 17:40:28 absydos proftpd[17213]: absydos (10.28.209.110[10.28.209.110]) 
- FTP session opened.
Jul  8 17:40:28 absydos proftpd[17213]: absydos (10.28.209.110[10.28.209.110]) 
- ftp: Directory /home/ftp/ is not accessible.
Jul  8 17:40:28 absydos proftpd[17213]: absydos (10.28.209.110[10.28.209.110]) 
- FTP session closed.
But then;
absydos proftpd # ls -ld /home/ftp/
drwxrwxr-x 7 ftp ftp 1088 Jun 16 11:22 /home/ftp/
absydos proftpd # ps -ef | grep ftp
ftp  17200 1  0 17:40 ?00:00:00 proftpd: (accepting connections)
absydos proftpd #
What am i missing? Auth ftp works fine.

proftpd.conf

Anonymous /home/ftp
  User  ftp
  Group ftp

  # We want clients to be able to login with anonymous as well as ftp
  UserAlias anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin  welcome.msg
  #DisplayFirstChdir.message

  # Limit WRITE everywhere in the anonymous chroot
  #Limit WRITE
  #  DenyAll
  #/Limit

/Anonymous

tnx.



RE: [gentoo-user] libusb upgraded failed with USE doc

2007-10-06 Thread Adam Carter
  This sort of error is often fixed by re-emerging openjade.
 I've re emerged jadetex openjade, but still have the same 
 problem. I can 
 masked it temporaly in /etc/portage/package.use, Thanks!

I also tried re-emerging openjade with no result. I re-emerged an sgml
package and that fixed it. I think it was sgml-common from memory. I
found the answer via google easily...

-Ad
--
[EMAIL PROTECTED] mailing list



[gentoo-user] Alsa kernel driver problem

2007-10-24 Thread Adam Carter
Alsaconf doesnt find any sound devices, however modules (in particular
snd_via82xx) are loaded;
 
localhost linux # lsmod | grep snd
snd_pcm_oss29664  0 
snd_mixer_oss  12160  1 snd_pcm_oss
snd_seq_dummy   1988  0 
snd_seq_oss21824  0 
snd_seq_midi_event  3584  1 snd_seq_oss
snd_seq30864  5
snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_via82xx_modem   9736  0 
snd_via82xx18324  0 
snd_ac97_codec 71268  2 snd_via82xx_modem,snd_via82xx
snd_pcm44424  4
snd_pcm_oss,snd_via82xx_modem,snd_via82xx,snd_ac97_codec
snd_timer  14596  2 snd_seq,snd_pcm
snd_page_alloc  6280  3 snd_via82xx_modem,snd_via82xx,snd_pcm
snd_mpu401_uart 4864  1 snd_via82xx
snd_rawmidi14560  1 snd_mpu401_uart
snd_seq_device  4364  4
snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd29860  12
snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_via82xx_modem,snd_via8
2xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq
_device
ac97_bus1152  1 snd_ac97_codec

If i try to run /etc/init.d/alsasound
 
localhost linux # /etc/init.d/alsasound start
 * Loading ALSA modules ...
 *   Could not detect custom ALSA settings.  Loading all detected alsa
drivers.
 *   Loading: snd_via82xx ...
[ ok ]
 *   Loading: snd_via82xx_modem ...
[ ok ]
 *   Loading: snd-seq-oss ...
[ ok ]
 *   Loading: snd-pcm-oss ...
[ ok ]
 *   ERROR: Failed to load necessary drivers
[ ok ]
 * Restoring Mixer Levels ...
 * No mixer config in /var/lib/alsa/asound.state, you have to unmute you
[ ok ]

alsa-driver is not recommended so i'm avoiding it. Is that my only
option to try to fix this?
 
tnx
Adam


RE: [gentoo-user] Alsa kernel driver problem - fixed

2007-10-25 Thread Adam Carter
 Sounds like the wrong driver is being loaded. What is the 
 output of lspci? 
 From a console, what does modprobe snd_via82xx show and 
 what's being sent to /var/log/messages??

I found that the Intel HD Audio module is also required, not just the
via driver.

--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] Networking Issue

2007-10-25 Thread Adam Carter
   Any ideas?  The /etc/conf.d/net file is very basic.  All is has is
   config_eth1=(dhcp) then the wireless stuff.  I could 
 get eth1 to work
   if I manually assigned an address, but now that doesn't 
 work either.
   Any help is appreciated.
  You're sure that the Ethernet card is eth1 and not eth0?
 
 
 You can test which card is plugged in by typing 'mii-tool' from the
 command line (or install it if it's not there already).

I think mii-tool will only work with some older drivers, and ethtool is
probably a better bet.

Lets start at the beginning - what is displayed when you run ifconfig
-a?
--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] smartctl strangeness

2007-10-25 Thread Adam Carter
 Anyway, this is where things get even stranger. I've
 quadruple-checked and I still don't believe it. The
 Maxtor drive now PASSES smartctl -H and the new one
 FAILS. The Maxtor still gets the dma_intr errors in
 dmesg and the Samsung is said to have it's DMA
 disabled which contradicts the BIOS, but no other
 errors. 
 
 Can somebody make sense of this? 

Bad cable?

Re: the 131 size - can the motherboard BIOS cope with drives larger that
128Gig?
--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] smartctl strangeness

2007-10-25 Thread Adam Carter
 The BIOS has 131G for the Samsung in a sub-menu for
 that drive: Maximum Capacity  [131071MB], fdisk sees
 the whole 160G.

In that case I'd look for a BIOS update. (FWIW 128 x 1024 = 131072).
--
[EMAIL PROTECTED] mailing list



[gentoo-user] What should i use instead of /dev/usb?

2007-10-27 Thread Adam Carter
I am using some hardware that requries external drivers (no ebuild
either) and it says i should;
mknod /dev/usb/panel0 c 180 180
 
Since /dev/usb doesnt exist, what is the correct alternative?
(2.6.22-gentoo-r8)
 
thanks.


Re: [gentoo-user] OT: Is EVMS dead?

2007-11-11 Thread Adam Hamsik


On Nov,Tuesday 6 2007, at 3:07 AM, Albert Hopkins wrote:



On Mon, 2007-11-05 at 18:01 -0500, Eric S. Johansson wrote:



given that I frequently play the role of the heretic (complete with  
burn scars
all over my body and various bits of damage from the weapons of  
true believers)
I think it's a good thing that EVMS is slated for the trash heap.   
It's a
classic example of second system syndrome as defined by the  
mythical Man
month.  It's overly complicated, poorly documented, and has a  
terrible user

interface that only a geek would even consider using.

Having said that, I also think LVMS suffers from many if not all of  
the same
problems that plagued EVMS.  it is been around for years and still  
the
documentation on how to perform common operations is lacking.  It's  
a chicken
and egg problem.  You need to understand LVMS in order to  
understand the
documentation and then you can't explain it to anyone else.  Every  
time I've
used LVMS, it takes me the same number of hours to relearn the same  
old pieces
of obscure command syntax and become comfortable that I'm not going  
to trash my

disk.  As a result, I don't use LVMS either.


I've never used EVMS so I can't comment at all on it.  However I have
been using LVM for years and one of the few good things I can say  
about

it is that its pretty small, easy, and predictable. In fact one of the
negative things I'd have to say about it is that it's *too* simple  
(a LV

defrag tool would be nice).  I really don't understand the complexity
you speak of.  It's pretty well documented, and has a fairly high
user-base.

I do agree though that, based on this ML and IRC discussions, many  
times
I'll see a person who wants to use LVM and perhaps maybe they don't  
need
it, and they get frustrated because they're using the wrong tool for  
the
job.  Myself: I have a 8 2-disk RAID volumes with LVM on top.  If I  
need
to expand my VG, I just pop in a couple of new drives, to an  
lvextend on

a volume and then mount -o remount,resize and voila!

On another machine I have xen and I have 2 VGs: a set of disks for the
Host and a set for the VMs.  I have some VMs in a DMZ, and I can't  
reach
them from the host, but I use LVM to create snapshots of their disks  
and
make backup of them.  LVM makes it damn easy. In some ways LVM is  
like a
poor-man's SAN for Xen VMs.  You can carve out a LV, assign it to a  
VM,

and resize, hot-add or hot-remove them as you please.

But again, the average person with a single disk running on a laptop
computer probably has no use for LVM.

Pretty much every major server OS has volume management (including
Windows) because a lot of users at that level need it.  Linu LVM, I
think, is very similar to HP-UX LVM at the command level.

AFAIK an who has written linux LVM worked for HP.

Regards

Adam.

--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] ERROR: net-misc/iputils-20070202 failed

2007-11-11 Thread Adam Carter
 This is happening when emerging iputils with +doc USE. If I remove doc
 from the USE flags list, then it does emerge completely.
 
 Any thoughts?
 
 Thanks,
 
 --
 Valmor de Almeida
 
 
 
 jade:/usr/share/sgml/docbook/dsssl-stylesheets-1.79/html/../co
 mmon/../co
 mmon/dbl1sr.dsl:2:66:W: cannot generate system identifier for public
snip

IIRC you need to re-emerge one/some of the sgml packages; maybe try
sgml-common first, and if that doesnt work, run 'equery list | grep -i
sgml' to see what else may need to be re-emerged. Google will help with
a more definative answer.
--
[EMAIL PROTECTED] mailing list



[gentoo-user] Gnome fonts problem

2007-11-29 Thread Adam Johnson

Hello all,

After updating to Gnome 2.20.1 my fonts became very small and 
unreadabale. When i try to rebuild any fonts i receive error like this 
below during emerge.


Any suggestion how to fix this ?





 Emerging (1 of 1) media-fonts/dejavu-2.21 to /
* dejavu-ttf-2.21.tar.bz2 RMD160 SHA1 SHA256 size ;-) 
...[ ok ]
* checking ebuild checksums ;-) 
...  [ ok ]
* checking auxfile checksums ;-) 
... [ ok ]
* checking miscfile checksums ;-) 
...[ ok ]
* checking dejavu-ttf-2.21.tar.bz2 ;-) 
...   [ ok ]

 Unpacking source...
 Unpacking dejavu-ttf-2.21.tar.bz2 to 
/var/tmp/portage/media-fonts/dejavu-2.21/work

 Source unpacked.
 Compiling source in 
/var/tmp/portage/media-fonts/dejavu-2.21/work/dejavu-ttf-2.21 ...

 Source compiled.
 Test phase [not enabled]: media-fonts/dejavu-2.21

 Install dejavu-2.21 into 
/var/tmp/portage/media-fonts/dejavu-2.21/image/ category media-fonts

* Creating fonts.scale  fonts.dir ...
FT_Stream_Open: could not `mmap' file 
`/var/tmp/portage/media-fonts/dejavu-2.21/image//usr/share/fonts/dejavu/.'
FT_Stream_Open: error while `read'ing file 
`/var/tmp/portage/media-fonts/dejavu-2.21/image//usr/share/fonts/dejavu/.'
FT_Stream_Open: could not `mmap' file 
`/var/tmp/portage/media-fonts/dejavu-2.21/image//usr/share/fonts/dejavu/..'
FT_Stream_Open: error while `read'ing file 
`/var/tmp/portage/media-fonts/dejavu-2.21/image//usr/share/fonts/dejavu/..'



* Updating global fontcache ...
FT_Stream_Open: could not open `/usr/share/fonts/._pubfont.a.gz'
FT_Stream_Open: could not open `/usr/share/fonts/%pubfont.a.gz'
FT_Stream_Open: could not open `/usr/share/fonts/.AppleDouble/pubfont.a.gz'
FT_Stream_Open: could not open `/usr/share/fonts/pubfont.a.gz/rsrc'
...
--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] mount cdrom: No buffer space available

2008-01-01 Thread Adam Carter
 data
 
  However, if it's a data cd, then iso9660 MUST either be build into  
  the kernel
  or available as a module for the auto part of your cdrom fstab  
  line to work
  correctly... hmmm... maybe need also autoload in the module  
  loading section
  of the kernel configurator.
 
 
 
 ok. thanks! i'll check that out.

Try;
$ grep ISO9660 /usr/src/linux/.config

If it says
CONFIG_ISO9660_FS=y - its built into the kernel, and should be working
CONFIG_ISO9660_FS=m - its built as a module, so try 'modprobe iso9660'
and attempt the mount again (but it should load the module automatically
# CONFIG_ISO9660_FS is not set - you need to build it. You might as
well just build it as a module, so you don't have to change your kernel
and reboot etc. Just update your .config file, then run make modules 
make modules_install  modprobe iso9660 and try to mount it again. 

-Ad


--
[EMAIL PROTECTED] mailing list



[gentoo-user] Grep question

2009-03-01 Thread Adam Carter
I need to select all the lines between string1 and string2 in a file. String1 
exists on an entire line by itself and string2 will be at the start of a line. 
What's the syntax? I cant use -A as there is a variable number of lines.

Thanks.



RE: [gentoo-user] Re: Grep question

2009-03-05 Thread Adam Carter
  awk '/^foo/,/^bar/' a
 
  does the same :)

 Nice...

Thanks for all these answers. Interesingly when I moved the sed script (sed 
s/;/\\n/g) from Linux to Solaris it failed as Solaris sed doesn't like 
putting the newline character as the translated to bit. Installing GNU sed on 
the Solaris box sorted that out.



RE: [gentoo-user] Usernames in ssh attacks

2009-03-19 Thread Adam Carter
 In my ssh logs this morning I noticed a couple login attempts with
 usenames on them... I've never seen that before. It is usually just an
 IP address.

 Mar 18 20:19:48 [sshd] refused connect from
 postmas...@dns.cablecentro.net.co
 Mar 18 23:42:44 [sshd] refused connect from 211.116.136.107
 Mar 18 23:44:44 [sshd] refused connect from
 [u2fsdgvkx19g32yzvkmsqkl+mouwitiloicy4iq9oq...@211.116.136.107
 Mar 19 02:41:09 [sshd] refused connect from 221.194.128.66

 weird... maybe the bad guys are up to something new.

I'd say they've just made a mistake in their DNS config (or maybe used a 
wildcard record), and set the PTR record to be 
postmas...@dns.cablecentro.net.co instead of a hostname. I'm assuming the 
reason you usually see IP addresses is that there is no PTR record set for that 
IP

Are you running Fail2ban or similar?

Rgs,
Adam



[gentoo-user] vmware overlay, server v2 no console

2009-04-03 Thread Adam Carter
I've upgraded to vmware server v2 and it seems to be working, ie i cant start 
my suspended guest OSes, but from the web GUI i cant get the console to popup 
after loading the firefox plugin. When i click the area that says click 
anywhere to open the console nothing happens.

I've not used v2 before - am i doing something stupid?


RE: [gentoo-user] vmware overlay, server v2 no console

2009-04-03 Thread Adam Carter

I've upgraded to vmware server v2 and it seems to be working, ie i cant start 
my suspended guest OSes, but from the web GUI i cant get the console to popup 
after loading the firefox plugin. When i click the area that says click 
anywhere to open the console nothing happens.

I've not used v2 before - am i doing something stupid?

Try clean browser profile.

Do you mean rm -fr .mozilla or Clean private data (including cache)?


[gentoo-user] Dell laptop install fail

2009-04-16 Thread Adam Carter
Much like http://bugs.gentoo.org/26150 the ia64 boot cd is not recognised and 
the bios falls through to boot the hard disk. Knoppix boots fine, but if i were 
to try to install from 32 bit knoppix it will fail as soon as I chroot as i 
would then be attempting to run 64 bit binaries from the stage3 tarball using 
the 32 bit knoppix kernel. Do i understand that correctly? And if so, what are 
my options for installing 64 bit gentoo?

tnx


RE: [gentoo-user] Kernel fails to boot on Via Epia

2009-04-16 Thread Adam Carter
  VFS: Cannot open root device 303 or unknown-block (3,3)
  Please append a correct boot option; here are the available:
  Kernel panic - not syncing: VFS: Unable to mount root fs on
  unknown-block(3,3)

 The kernel is unable to find your root device. Try with the
 sda notation, if that fails post your kernel config.

Neil, could this alternatively be due to the filesystem driver being absent 
from the kernel? Ie not built at all or built as a module, so it wont be 
available early enough in the boot process?

Thomas, I also have an EPIA (disk booted) so I can dig that up if there's no 
progress.



RE: [gentoo-user] Dell laptop install fail

2009-04-16 Thread Adam Carter



From: Francisco Rivas [mailto:taken...@gmail.com]
Sent: Friday, April 17, 2009 7:11 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Dell laptop install fail

Hi, What Dell Laptop do you have?. because I tried to install Gentoo amd64 in a 
E4300 and it fails, did not recognize the ethernet and some problems install 
packages.

Its a Studio 1737. I found the old 2.6.19 kerneled Knoppix didnt pick up the 
hardware properly (eg didnt autoload tg3 for the ethernet, many unknown devices 
in dmesg), but 2.6.27 i'm using now seems fine so far. So make sure you use the 
latest kernel you can, and enable the Dell specific kernel options.


[gentoo-user] jre memory heap size issue

2009-04-21 Thread Adam Carter
I have set -Xmx256m using the Java control panel GUI, and;
sphinx jre # pgrep -lf java
8949 /opt/sun-jdk-1.6.0.13/jre/bin/java -Xmx256m 
-Xbootclasspath/a:/opt/sun-jdk-1.6.0.13/jre/lib/javaws.jar:/opt/sun-jdk-1.6.0.13/jre/lib/deploy.jar:/opt/sun-jdk-1.6.0.13/jre/lib/plugin.jar
 -classpath /opt/sun-jdk-1.6.0.13/jre/lib/deploy.jar -Djnlpx.vmargs=-Xmx256m 
-Djnlpx.jvm=/opt/sun-jdk-1.6.0.13/jre/bin/java -Djnlpx.splashport=42982 
-Djnlpx.home=/opt/sun-jdk-1.6.0.13/jre/bin -Djnlpx.remove=false 
-Djnlpx.offline=false -Djnlpx.relaunch=true -Djnlpx.heapsize=67108864,268435456 
-Djava.security.policy=file:/opt/sun-jdk-1.6.0.13/jre/lib/security/javaws.policy
 -DtrustProxy=true -Xverify:remote com.sun.javaws.Main file:///tmp/idm.jnlp
sphinx jre #
And i have restarted firefox, but when i try to run the app it still complains 
about the memory size. the -Xmx256m tweak recommended by the app vendor works 
in windows, and IIRC it also worked on my old x86 machine. The current machine 
is a newly built amd64. Any ideas on what's wrong?




[gentoo-user] FW: jre memory heap size issue

2009-04-21 Thread Adam Carter
Sorry - here it is in plain text for the luddites, j/k :-)

I have set -Xmx256m using the Java control panel GUI, and;
sphinx jre # pgrep -lf java
8949 /opt/sun-jdk-1.6.0.13/jre/bin/java -Xmx256m 
-Xbootclasspath/a:/opt/sun-jdk-1.6.0.13/jre/lib/javaws.jar:/opt/sun-jdk-1.6.0.13/jre/lib/deploy.jar:/opt/sun-jdk-1.6.0.13/jre/lib/plugin.jar
 -classpath /opt/sun-jdk-1.6.0.13/jre/lib/deploy.jar -Djnlpx.vmargs=-Xmx256m 
-Djnlpx.jvm=/opt/sun-jdk-1.6.0.13/jre/bin/java -Djnlpx.splashport=42982 
-Djnlpx.home=/opt/sun-jdk-1.6.0.13/jre/bin -Djnlpx.remove=false 
-Djnlpx.offline=false -Djnlpx.relaunch=true -Djnlpx.heapsize=67108864,268435456 
-Djava.security.policy=file:/opt/sun-jdk-1.6.0.13/jre/lib/security/javaws.policy
 -DtrustProxy=true -Xverify:remote com.sun.javaws.Main file:///tmp/idm.jnlp
sphinx jre #

And i have restarted firefox, but when i try to run the app it still complains 
about the memory size. the -Xmx256m tweak recommended by the app vendor works 
in windows, and IIRC it also worked on my old x86 machine. The current machine 
is a newly built amd64. Any ideas on what's wrong?




RE: [gentoo-user] Confusing persistent sync problem

2009-04-23 Thread Adam Carter

Welcome to crane.gentoo.org

Server Address : 134.68.220.74
Contact Name   : mirror-ad...@gentoo.org
Hardware   : 2 x Intel(R) Xeon(TM) CPU 1700MHz, 2024MB RAM

Please note: common gentoo-netiquette says you should not sync more
than once a day.  Users who abuse the rsync.gentoo.org rotation
may be added to a temporary ban list.

MOTD autogenerated by update-rsync-motd on Mon Mar  9 08:43:32 UTC 2009

receiving incremental file list
timed out
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at 
rsync.c(544) [receiver=3.0.5]
 Retrying...

Have you verified that the connection has been made? If not try;
a...@voodoo ~ $ telnet crane.gentoo.org 873
Trying 134.68.220.74...
Connected to crane.gentoo.org.
Escape character is '^]'.
^]quit

telnet quit
Connection closed.

If you don't get the Trying line, your DNS is broken.

If you don't get the Escape character line, then the session hasn't been 
setup - check your firewall/routing.

If you dot get Escape character its an application issues. Maybe try 
rebuilding rsync.




[gentoo-user] GUI for touchscreen PC?

2009-04-25 Thread Adam Carter
I have 800x480 resolution, but with the touchscreen the pointer is clumsy to 
use. I need something that has large buttons, and will re-size dialogue windows 
so that the buttons at the bottom still fit on the window. Any suggestions?


RE: [gentoo-user] really old box for a firewall

2009-04-27 Thread Adam Carter
 have here (pentium-mmx) into a firewall/router.
 I tried a live cd, with the intent of building up a 32bit chroot in my
 big box, and syncing it into the old one. (All 64bit native in the
 studio boxes)

 when i inserted the live cd to begin the process, i got an error
 message at boot which said (along the lines of ):

 There is a feature missing in your CPU (0:15). and the live
 cd cannot boot.

Pentium-mmx is i586, so the usual i686 livecds wont work. The install cds are 
called x86, so I assume that means they're i386 and should be ok, otherwise;
http://www.gentoo.org/doc/en/altinstall.xml

 Do i need to install an older version of Gentoo in order for
 this to work?

Gentoo doesn't really have versions...

 Do i need to flag the boot in some way with options in order to get
 this to install?

 I'm on PPTP cable with a vpn address from the provider. Will an older
 version of Gentoo be capable of handling this protocol?

Since gentoo doesn't have versions, you will be able to run any software that 
you run on any other Gentoo box.



RE: [gentoo-user] Cursor keys stopped working in VMware workstation

2009-05-07 Thread Adam Carter
 I have been using VMware workstation V. 5.5.9 and a Logitech
 wireless keyboard for some time.  Today I somehow mistyped a Ctrl-something
 sequence while in the VM window, meaning to enter it elsewhere instead of the
 VM.  Now, the cursor keys between the main keys and the keypad have stopped 
 working
 correctly.  Most do nothing, but the down arrow key causes
 Windows to raise the Start menu, as if I had pressed the windows key near 
 left-alt.

 The cursor movement keys on the keypad still work, with
 numlock off.  I have tried restarting windows, restarting VMware workstation,
 restarting the X (KDE) session, and rebooting the computer.  The only thing I
 haven't done is a complete power off/on.

 All cursor keys work fine in non-VMware applications, so I
 suspect VMware and/or Windows, but I've been wrong blaming MS or VM before, 
 so..

Interesting - the same thing happened to me a couple of days ago. I tried a 
second Windows guest and it had the same problem, so it appears to affect all 
guest OSes. FWIW I'm running 2.6.28-r5, xorg 1.5.3 with latest stable vmware 
server (1.0.8?).



RE: [gentoo-user] automated install || stage4? rapid deployment?

2009-05-11 Thread Adam Carter
 I'm curious how other sysadmins rapidly deploy a slew of new Gentoo
 systems? In this case I'm setting up many dozens of Gentoo servers
 inside of VMware ESX and having to destroy and redeploy said systems
 regularly.

 The hardware (virtual, of course) varies ever so slightly, so
 cloning (via ESX or dd) is not an option.

Different hardware shouldn't preclude this approach. Just make sure all the 
relevant modules are built and the OS should load what it needs.



RE: [gentoo-user] Capture dmesg output on boot?

2009-05-11 Thread Adam Carter
 I've been trying to get to the bottom of my recent troubles
 with my IDE
 controller working with the 2.6.28 kernel.  Now, linux never boots
 without a kernel panic, so dmesg never gets logged...  Is
 there any way
 to have the kernel dump the boot log somewhere?  I'd settle for
 scrolling up, really.

Have you tried shift+PgUp ? I have no idea if it will work in that 
circumtance...

Remember that depending how you setup the kernel the IDE devices could be hdX 
or sdX.



RE: [gentoo-user] upgrading from kernel 2.6.24-rc6 to latest kernel

2009-05-12 Thread Adam Carter
 My Gentoo laptop is a Macbook Pro SantaRosa (late 2007, probably
 MA896LL/A , following wikipedia). Since I use it for work I've always
 been quite conservative with it... it is an x86 machine and I upgrade
 things only after having read things here and there on the ML and
 possibly elsewhere (Still have to upgrade xorg, for example,
 will do it
 soon).

 The oldest piece I haven't touched is the kernel. It is 2.6.24-rc6
 vanilla-sources, which were the first mostly working with the
 laptop... and never touched since.

 Now I want to ask the list:
 1) Does anyone have a recent kernel config for this kind of machine?

Just copy your .config file to the new kernel source directory and run make 
oldconfig. This runs through the old config file and prompts you to select 
what you want for the new options.

 2) What are the caveats and pitfalls I should be aware of
 when upgrading to latest kernel? I confess that reading CHANGELOGs didn't 
 help me too
 much, quite confusing.

You can keep both kernels and just use the bootloader to select which one to 
boot into. So if your new kernel doesn't work just reboot and use your old 
kernel again until you can work out whats wrong with the new one.

The biggest risk is that there are two ATA options one names disks sdX the 
other hdX. If you're already using sdX in your /etc/fstab then you have no 
problems. If not, and you change options you'll need to change your bootloader 
and fstab, and if you have a problem you'll have to boot from cdrom to fix that.

 Also, I wonder if portage's madwifi now supports the Macbook Pro
 chipset... I had to use SVN one at the time.

The drivers might be in the kernel now. I was using madwifi-ng and changed to 
the ath5k driver at around 2.6.26 or 27.



was [gentoo-user] Re: New xorg.conf with x11-base/xorg-server-1.5.3-r5 now old nvidia drivers

2009-05-17 Thread Adam Carter
For you guys with older hardware/drivers, have you tried turning on 
CONFIG_UNUSED_SYMBOLS and recompiling the kernel to see if its helps? (Kernel 
hacking - Enable unused/obsolete exported symbols).

I use it to support vmware server 1.x and ati flgrx drivers (with 2.6.26 or 
later kernels). IIRC my home machine is an IGP 440 MX running 2.6.28 (not sure 
of driver version off the top of my head, maybe masked to ?97?) but its working 
fine.



RE: was [gentoo-user] Re: New xorg.conf with x11-base/xorg-server-1.5.3-r5 now old nvidia drivers

2009-05-17 Thread Adam Carter

  For you guys with older hardware/drivers, have you tried
 turning on CONFIG_UNUSED_SYMBOLS and recompiling the kernel
 to see if its helps? (Kernel hacking - Enable
 unused/obsolete exported symbols).
snip
 That is a good find.  I can't say that it is the problem but
 it was not
 enabled on my kernel but it is now.  I'll try to test this later on as
 well.  This sounds like what the error was reporting it
 couldn't find. This could work.

If it does work it would be worth a bug report to get the nvidia ebuild(s) 
updated similar to the ati ones;

# grep -i symbol ati-drivers-8.593.ebuild
if kernel_is ge 2 6 26  ! linux_chkconfig_present UNUSED_SYMBOLS; then
ewarn You have to Enable unused/obsolete exported symbols in 
Kernel hacking section of kernel config for fglrx to load





RE: [gentoo-user] nagging USE flag question

2009-05-18 Thread Adam Carter
 The time has come to edit make.conf on my new gentoo-netbook.
 But one thing has always bothered me: What's the point of
 specifying a *negative* flag with a hyphen? Why not just
 leave the flags you don't use out of the file entirely?

Some flags are on by default, so this stops their use.



RE: [gentoo-user] Re: x11-base/xorg-server-1.5.3-r5 with x11-drivers/ati-drivers-8.552-r2 -- file conflict

2009-05-25 Thread Adam Carter
 RESULTS: fglrx loads, but does not see the adapter.  There's also a
 problem with the mouse driver -- some undefined symbol.

Have you rebuilt your kernel after emergeing xf86-input-mouse? If so you 
probably need to re-emerge xf86-input-mouse.



RE: [gentoo-user] Re: x11-base/xorg-server-1.5.3-r5 with x11-drivers/ati-drivers-8.552-r2 -- file conflict

2009-05-25 Thread Adam Carter
 This seems a step backwards.  No screens found, and still 3 things
 that would not load.  Results follow:

 === startx run begins
 xauth:  creating new authority file /root/.serverauth.21944


 X.Org X Server 1.5.3
 Release Date: 5 November 2008
 X Protocol Version 11, Revision 0
 Build Operating System: Linux 2.6.28-gentoo-r5-kosmanor i686
 Current Operating System: Linux treat 2.6.28-gentoo-r5-kosmanor #6 SMP
 PREEMPT Sat May 23 19:17:22 PDT 2009 i686
 Build Date: 25 May 2009  08:41:29AM

   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: /var/log/Xorg.0.log, Time: Mon May 25 17:38:53 2009
 (==) Using config file: /etc/X11/xorg.conf
 dlopen: /usr/lib/xorg/modules/extensions//libglx.so: cannot open
 shared object file: No such file or directory
 (EE) Failed to load /usr/lib/xorg/modules/extensions//libglx.so
 (EE) Failed to load module glx (loader failed, 7)
 dlopen: /usr/lib/xorg/modules/extensions//libdri.so: cannot open
 shared object file: No such file or directory
 (EE) Failed to load /usr/lib/xorg/modules/extensions//libdri.so
 (EE) Failed to load module dri (loader failed, 7)
 (EE) No devices detected.

 Fatal server error:
 no screens found

I didn't think glx or dri were essential... But since its EE and not WW maybe 
they are.

DRI requires kernel support - Device Drivers - Graphics - Direct Rendering 
Manager, and you'll want to select the correct ATI support under that.

Re: glx, what happens if you run 'eselect opengl list'?



RE: [gentoo-user] Re: x11-base/xorg-server-1.5.3-r5 with x11-drivers/ati-drivers-8.552-r2 -- file conflict

2009-05-25 Thread Adam Carter
  DRI requires kernel support - Device Drivers - Graphics -
 Direct Rendering Manager, and you'll want to select the
 correct ATI support under that.

 That's always been there, as modules.  If I modprobe for r128, it gets
 loaded along with module drm.  It makes no difference to the startx
 behavior.

Do the /usr/lib/xorg/modules/extensions//libglx.so and libdri.so files exist?

For me,
libdri.so is a symlink to /usr/lib64/opengl/ati/extensions/libdri.so
libglx.so is a symlink to /usr/lib64/opengl/ati/extensions/libglx.so (since you 
havent run the eselect to repoint it yet, it will be set to 
/usr/lib64/opengl/xorg-x11/extensions/libglx.so).

  Re: glx, what happens if you run 'eselect opengl list'?
 
 there are two listed, ati and xorg-x11.  xorg-x11 is selected.

If you're using flgrx you want 'eselect opengl set ati', but again I thought 2D 
would work fine without this.



RE: [gentoo-user] USE=mmx mmxext sse sse2 ssse3 3dnow 3dnowext

2009-05-25 Thread Adam Carter

'grep flags /proc/cpuinfo' to see what features the CPU supports, and add those 
to USE. You'll recognise most but apparently pni = sse3 (but then my core2 
also shows ssse3 as wellodd)




RE: [gentoo-user] USE=mmx mmxext sse sse2 ssse3 3dnow 3dnowext

2009-05-27 Thread Adam Carter

actually care about moving binary packages around.  Thoughts?
 
  thoughts: there are distros that hold your hand already.

 There's also Windows. For just in case Ubuntu doesn't hold
 enough of your hand.

I'm with Wyatt on this one. Can we appreciate there may be a difference between 
convenience and hand holding? If we consider the case where the user is not 
interested in moving binary packages between machines, there is nothing to be 
gained from customsing these CPU feature flags as you always want all of them.

Personally I wouldn't bother putting a feature request in for this, as I know 
which flags to use and as I only build about one gentoo box a year so the 
overhead is low.



RE: [gentoo-user] Re: x11-base/xorg-server-1.5.3-r5 with x11-drivers/ati-drivers-8.552-r2 -- file conflict

2009-05-27 Thread Adam Carter
  For me,
  libdri.so is a symlink to
 /usr/lib64/opengl/ati/extensions/libdri.so
  libglx.so is a symlink to
 /usr/lib64/opengl/ati/extensions/libglx.so (since you havent
 run the eselect to repoint it yet, it will be set to
 /usr/lib64/opengl/xorg-x11/extensions/libglx.so).
 

 Can you tell me what package owns those files?  I'm not having any
 luck looking them up on my system.

Sorry Kevin, I wasn't paying attention and thought you were using 
ati-drivers/flgrx package, which is where /usr/lib64/opengl/ati comes from. 
Since you're not using flgrx I would expect you would use 
/usr/lib/xorg/modules/extensions/libdri.so and 
/usr/lib/xorg/modules/extensions/libdri.so.

Do those files exist?



RE: [gentoo-user] Re: x11-base/xorg-server-1.5.3-r5 with x11-drivers/ati-drivers-8.552-r2 -- file conflict

2009-05-27 Thread Adam Carter

 Sorry Kevin, I wasn't paying attention and thought you were
 using ati-drivers/flgrx package, which is where
 /usr/lib64/opengl/ati comes from. Since you're not using
 flgrx I would expect you would use
 /usr/lib/xorg/modules/extensions/libdri.so and

That was supposed to be  /usr/lib/opengl/xorg-x11/extensions/libglx.so




[gentoo-user] Touchpad wont click with xorg-server-1.5.3-r6

2009-06-02 Thread Adam Carter
I can no longer tap the touchpad to cause a mouse click. It worked in 1.5.3-r5, 
but i think r5 was -hal, whereas i have built -r6 +hal.

I cant see any touchpad related patches in r6. Should i try -hal, reverting to 
-r5 or something else?

I have no input devices defined in my xorg.conf. Dell laptop running amd64 
2.6.28-gentoo-r5.

Tnx


RE: [gentoo-user] Touchpad wont click with xorg-server-1.5.3-r6

2009-06-04 Thread Adam Carter
  I can no longer tap the touchpad to cause a mouse click. It
 worked in 1.5.3-r5, but i think r5 was -hal, whereas i have built -r6 +hal.
 
  I cant see any touchpad related patches in r6. Should i try
 -hal, reverting to -r5 or something else?
 
  I have no input devices defined in my xorg.conf. Dell
 laptop running amd64 2.6.28-gentoo-r5.

 This is probably related to the latest xorg update.  Have you
 had a look at this:

 http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.5-up
grade-guide.xml

A rebuild with -hal sorted it out.



RE: [gentoo-user] Best way to determine what video card I have?

2009-06-10 Thread Adam Carter
lspci | grep VGA

Or if that doesn't work

lshw -class display




RE: [gentoo-user] DNS poisoning fix

2008-07-10 Thread Adam Carter
 Is it merely a matter of using the right version of bind (for
 those who run a
 bind daemon locally), or does it go further than that?

This issue is addressed in ISC BIND 9.2.8-P1, BIND 9.3.4-P1, BIND 9.4.1-P1 or 
BIND 9.5.0a6

rix adam # emerge -pv bind

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-dns/bind-9.4.1_p1  USE=berkdb ldap mysql* ssl threads -dlz 
-doc -idn -ipv6 -odbc -postgres -resolvconf (-selinux) -urandom 0 kB

rix adam # ls -l /usr/sbin/named
-rwxr-xr-x 2 root root 347636 Aug 15  2007 /usr/sbin/named

So AFAICT it was fixed in stable/x86 around 11 months ago.
--
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] DNS poisoning fix

2008-07-10 Thread Adam Carter

 So AFAICT it was fixed in stable/x86 around 11 months ago.

Ignore my earlier idoicy - from ISC's site;

YOU ARE ADVISED TO INSTALL EITHER THE PATCHES (9.5.0-P1, 9.4.2-P1, 9.3.5-P1) 
OR THE NEW BETA RELEASES (9.5.1b1, 9.4.3b2) IMMEDIATELY.

The patches will have a noticeable impact on the performance of BIND caching 
resolvers with query rates at or above 10,000 queries per second. The beta 
releases include optimized code that will reduce the impact in performance to 
non-significant levels. 

http://www.isc.org/index.pl?/sw/bind/bind-security.php
--
gentoo-user@lists.gentoo.org mailing list



RE: [gentoo-user] Re: dev-lang/python-2.3.6-r2 (is blocking app-admin/python-updater-0.5

2008-07-27 Thread Adam Carter
 The root of the problem is really quite simple, you have a system with
 a python version python-updater doesn't like. The solution is actually
 quite simple:

 step 1. update python to 2.5, rebuild cracklib (afaik cracklib is the
 only system package that requires python), portage, gentookit.
 step 2. at this point, you can unmerge the old python, some packages
 *will* break, but you will still have a console that works fine, and
 your portage is built against the 2.5.
 step 3. emerge python-updater, since no python-2.3 is present, it'll
 emerge happily.
 step 4. run python-updater
 step 5. voila

A more conservative approach (which shouldn't break anything AFAIK, but will 
take longer) is;
1. Run python-updater to move everything from 2.3 to 2.4
2. Uninstall python 2.3
3. Do your full emerge -uvD to update to python-updater 0.5 and python 2.5
4. (optional, you could to it later) run python-updater to move everything from 
2.4 to 2.5
5. (optional) run prelink again to catch everything that emerge world 
installed/updated




RE: [gentoo-user] Re: dev-lang/python-2.3.6-r2 (is blocking app-admin/python-updater-0.5

2008-07-27 Thread Adam Carter
  A more conservative approach (which shouldn't break
 anything AFAIK, but will take longer) is;
  1. Run python-updater to move everything from 2.3 to 2.4
  2. Uninstall python 2.3
  3. Do your full emerge -uvD to update to python-updater 0.5
 and python 2.5
  4. (optional, you could to it later) run python-updater to
 move everything from 2.4 to 2.5
  5. (optional) run prelink again to catch everything that
 emerge world installed/updated
 

 At this point do you suggest that python-2.4 could be removed?

Perhaps after some double checks with re-runs of revdep-rebuild and 
python-updater. However I've left it installed, just in case the update program 
missed something, and because python is critical. Personally I'd only remove it 
now if I was really short on disk space. Maybe leave it a few months before 
removal just in case.



RE: [gentoo-user] netstat command

2008-07-30 Thread Adam Carter

is there a way to find out the time when the port was connected in netstat 
command

For example

netstat -anp | grep 12001

Dont think so. If its a server opening the port, look for syslog messages from 
the daemon.




RE: [gentoo-user] move instalation from one system to another one.

2008-07-30 Thread Adam Carter
  My old laptop  is dying. I'm going to move my gentoo
 installation to a new
  one.  The old one was an old Pentium-M and the new one is
 core due. I want to
  to tar the root and boot and ..  files from the old one to
 untar it to the
  new one. I want to know,  What packages needs to rebuild
 (with What flags?)
  in the old one so that I would have a basic runable system
 in the new that I
  can rebuild all the packages on the new system with the new FLAGS?
 
  Did anyone do this in the past? Have anyone any experiences
 regarding this
  issue? Any comments? suggestions?
 
  This is my old laptop make.conf
 
  CHOST=i686-pc-linux-gnu
  CFLAGS=-march=pentium-m -O2 -pipe
  CXXFLAGS=${CFLAGS}
  MAKEOPTS=-j2
 

 Don't do it.

 I think your kernel will only support the pentium-m and most of the
 software also. So a emerge -e world would bee necessary.

 Normal Gentoo Installations are highly optemized for the specific
 hardware. That is the whole point about using gentoo.

Do you need to get the new laptop working asap? Eg. for work?

Is the new laptop 32 or 64 bit?

If you need the new laptop running asap, the sub-optimal but fast way is to 
build all the modules you'll require for your new laptop on the old laptop then 
copy the disk. Since they tend to only add CPU features and not take them away 
as time goes on, its worth a try as it will be a lot faster. You can then worry 
about changing CFLAGs and rebuilding if you like, or just change the CFLAGs and 
let anything new get built with them. No big deal.

If your system is 64 bit and you want to later run 64 bit OS you'll have to 
reinstall.

For CFLAGs http://gentoo-wiki.com/Safe_Cflags, and you'll need to change CHOST 
if you're going 64 bit.






[gentoo-user] python-updater keeps catching same packages

2008-08-10 Thread Adam Carter
voodoo adam # python-updater
 * Starting Python Updater from 2.4 to 2.5 :
 *   Adding to list: =x11-libs/vte-0.16.13
 *   Adding to list: =app-office/dia-0.96.1-r1
 *   Adding to list: =dev-libs/boost-1.34.1-r2
And if i run python-updater again after letting it rebuild these packages it 
picks them up again. emerge --depclean -pv says;

 dev-lang/python
selected: 2.4.4-r13
   protected: none
 omitted: 2.5.2-r6
And revdep-rebuild is clean. So - is it safe to remove python 2.4.4?


[gentoo-user] RE: python-updater keeps catching same packages

2008-08-10 Thread Adam Carter
Sorry, should have googled first;
http://bugs.gentoo.org/show_bug.cgi?id=232467


[gentoo-user] X screen resolution

2008-08-19 Thread Adam Carter
X is starting in 1280x1024, however i want it to start in 1600x1200. At the 
moment im using xrandr to set it manually after i start X.

Here's my config; the Modeline is required.

voodoo adam # egrep '(1600|1280)' /etc/X11/xorg.conf
Modeline 1600x1200  162.00  1600 1664 1856 2160  1200 1201 1204 1250
  Modes   1600x1200
voodoo adam # egrep '(1600|1280)' /var/log/Xorg.0.log
(--) NV(0): Virtual size is 1600x1200 (pitch 1600)
(**) NV(0): *Mode 1600x1200: 162.0 MHz, 75.0 kHz, 60.0 Hz
(II) NV(0): Modeline 1600x1200  162.00  1600 1664 1856 2160  1200 1201 1204 
1250
(**) NV(0):  Default mode 1280x1024: 157.5 MHz, 91.1 kHz, 85.0 Hz
(II) NV(0): Modeline 1280x1024  157.50  1280 1344 1504 1728  1024 1025 1028 
1072 +hsync +vsync
(**) NV(0):  Default mode 1280x1024: 135.0 MHz, 80.0 kHz, 75.0 Hz
(II) NV(0): Modeline 1280x1024  135.00  1280 1296 1440 1688  1024 1025 1028 
1066 +hsync +vsync
(**) NV(0):  Default mode 1280x1024: 108.0 MHz, 64.0 kHz, 60.0 Hz
(II) NV(0): Modeline 1280x1024  108.00  1280 1328 1440 1688  1024 1025 1028 
1066 +hsync +vsync
(**) NV(0):  Default mode 1280x960: 148.5 MHz, 85.9 kHz, 85.0 Hz
(II) NV(0): Modeline 1280x960  148.50  1280 1344 1504 1728  960 961 964 1011 
+hsync +vsync
(**) NV(0):  Default mode 1280x960: 108.0 MHz, 60.0 kHz, 60.0 Hz
(II) NV(0): Modeline 1280x960  108.00  1280 1376 1488 1800  960 961 964 1000 
+hsync +vsync
(II) NV(0): Modeline 1152x864  108.00  1152 1216 1344 1600  864 865 868 900 
+hsync +vsync
voodoo adam #




RE: [gentoo-user] X screen resolution

2008-08-21 Thread Adam Carter
  X is starting in 1280x1024, however i want it to start in
 1600x1200. At the
  moment im using xrandr to set it manually after i start X.
 
  Here's my config; the Modeline is required.

 Can you show us your complete xorg.conf?

Its in the middle of getting hacked around, so there's a few inconsistancies as 
I'm also trying to get 1920x1200 working. Its still always starts at 1280x1024 
however.

voodoo adam # grep ^[^#] /etc/X11/xorg.conf
Section Module
Loaddbe   # Double buffer extension
SubSection  extmod
  Optionomit xfree86-dga   # don't initialise the DGA extension
EndSubSection
Loadtype1
Load   glx
EndSection
Section Files
#FontPath   /usr/share/fonts/local
FontPath   /usr/share/fonts/misc
FontPath   /usr/share/fonts/Type1
FontPath   /usr/share/fonts/TTF
#FontPath   /usr/share/fonts/75dpi/:unscaled
FontPath   /usr/share/fonts/75dpi
#FontPath   /usr/share/fonts/100dpi/:unscaled
FontPath   /usr/share/fonts/100dpi
FontPath   /usr/share/fonts/corefonts
EndSection
Section ServerFlags
#Option  blank time10# 10 minutes
 #Option  standby time  20
 #Option  suspend time  30
 #Option  off time  60
EndSection
Section InputDevice
Identifier  Keyboard1
#Driver kbd
Driver  keyboard
Option AutoRepeat 500 30
Option XkbModel   pc104
Option XkbLayout  us
EndSection
Section InputDevice
Identifier  Mouse1
Driver  mouse
Option ProtocolImPS/2
Option Device  /dev/psaux
Option ZAxisMapping 4 5
EndSection
Section Monitor
#Identifier  hp1702byadam
Identifier  benqg2400wd
#HorizSync   31.5 - 82.0
HorizSync   31.0 - 94.0
#VertRefresh 40-150
VertRefresh 40-85
Modeline 1600x1200  162.00  1600 1664 1856 2160  1200 1201 1204 1250
# this one says out of range
#Modeline [EMAIL PROTECTED] 292.90 1920 1952 3064 3096 1200 1223 1238 1261
# this one says no signal detected
Modeline [EMAIL PROTECTED] 210.68 1920 1952 2752 2784 1200 1224 1236 1261
# this one just extends the virtual not the real
#Modeline 1920x1200 114.37 1920 1952 2384 2416 1200 1226 1234 1261 
interlace
#Modeline [EMAIL PROTECTED] 114.37 1920 1952 2384 2416 1200 1226 1234 
1261 interlace
EndSection
Section Device
Identifier  Standard VGA
VendorName  Unknown
BoardName   Unknown
Driver vga
EndSection
Section Device
Identifier  nvbyadam
Driver  nv
#Driver  nvidia
Option  IgnoreEDID true
Option  UseEdidFreqs false
#VideoRam65535
Option  NoLogo 1
Option  RenderAccel true
Option  backingstore true
#Option  NvAGP 1
# Insert Clocks lines here if appropriate
EndSection
Section Screen
Identifier  Screen 1
Device  nvbyadam
#Monitor hp1702byadam
Monitor benqg2400wd
DefaultDepth 24
#Subsection Display
 #   Depth   8
  #  Modes   1600x1200 1280x1024 1024x768 800x600 640x480
   # ViewPort0 0
#EndSubsection
Subsection Display
Depth   16
#Virtual 1920 1200
#Modes   1600x1200 1280x1024 1024x768 800x600 640x480
Modes   1920x1200 1600x1200
ViewPort0 0
EndSubsection
Subsection Display
Depth   24
#Virtual 1920 1200
#Modes   1600x1200 1280x1024 1024x768 800x600 640x480
Modes   [EMAIL PROTECTED] 1600x1200
ViewPort0 0
EndSubsection
EndSection
Section ServerLayout
Identifier  Simple Layout
Screen Screen 1
InputDevice Mouse1 CorePointer
InputDevice Keyboard1 CoreKeyboard
EndSection
Section Extensions
Option Composite Enable
EndSection
voodoo adam #



RE: [gentoo-user] X screen resolution

2008-08-22 Thread Adam Carter

 Hm, I don't see anything strange. Maybe in the rest of your
 Xorg.0.log?

Its sorted - Gnome must have been resetting the resolution as it started.



RE: [gentoo-user] Debugging X

2008-08-23 Thread Adam Carter
  It dies after the cursor shows up, spitting this backtrace
 and output.
  Sorry if the formatting sucks. The last line is probably
 refering to the
  fact I tried to run it from within screen, so if that could cause a
  problem say so, and tell me how the heck to get a log of
 this output
  (since startx  log.txt doesn't work)

Dude - check the entry below that says: Log file: /var/log/Xorg.0.log. It 
re-written (no appeneded to) each time you startx.

  #--- startx output ---#
 
  X Window System Version 1.3.0
  Release Date: 19 April 2007
  X Protocol Version 11, Revision 0, Release 1.3
  Build Operating System: UNKNOWN
  Current Operating System: Linux localhost 2.6.25-gentoo-r7 #1 SMP
  PREEMPT Fri Aug 1 21:56:38 CDT 2008 x86_64
  Build Date: 22 July 2008
  Before reporting problems, check http://wiki.x.org
  to make sure that you have the latest version.
  Module Loader present
  Markers: (--) probed, (**) from config file, (==)
  default setting,
  (++) from command line, (!!) notice, (II)
  informational,
  (WW) warning, (EE) error, (NI) not
  implemented, (??) unknown.
  (==) Log file: /var/log/Xorg.0.log,
  Time: Wed Aug 20 00:11:37 2008
  (==) Using config file:
  /etc/X11/xorg.conf
  (WW) NVIDIA: No matching Device section

Can you post up your Device sections? In my x log this is where it starts 
reporting on my screen.

  for instance (BusID PCI:0:1:3) foundle
  (II) Module already built-in
  The XKEYBOARD keymap compiler (xkbcomp)
  reports:
   Warning:  Multiple names for
   keycode 211
 Using I211,
 ignoring AB11
  Errors from xkbcomp are not fatal to the
  X server
  Backtrace:
  0: X(xf86SigHandler+0x6d) [0x49690d]
  1: /lib/libc.so.6 [0x7fae2c0a4430]
  2: X(NumMotionEvents+0x12) [0x447822]
  3: X(CreateConnectionBlock+0x53) [0x439623]
  4: X(main+0x658) [0x43a168]
  5: /lib/libc.so.6(__libc_start_main+0xf4) [0x7fae2c091b74]
  6: X(FontFileCompleteXLFD+0x229) [0x439259]
 
  Fatal server error:
  Caught signal 11.  Server aborting
 
  waiting for X server to begin accepting connections
  giving up.
  xinit:  Connection reset by peer (errno 104):  unable to
 connect to X
  server
  xinit:  No such process (errno 3): Server error.
  Couldnt get a file descriptor referring to the console

Have you tried the nv module instead? If not,  emerge xf86-video-nv then change 
Driver from nvidia to nv then restart X and check the log again.



[gentoo-user] Linux vs Alteon

2008-08-28 Thread Adam Carter
My gentoo laptop is receiving an appropriate arp-reply from an alteon 2208 
(according to tcpdump), but doesnt put it in its arp table. A windows box on 
the same port works fine. Has anyone come across this? Can i debug arp on linux?



[gentoo-user] /etc/init.d/apache2 fails, but apache will run

2008-09-28 Thread Adam Carter
rix adam # /etc/init.d/apache2 start
 * Starting apache2 ...
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs   [ ok ]
rix adam #

The socket is not in use and log dir perms are ok, and;

rix adam # apache2 -f /etc/apache2/httpd.conf
rix adam # pgrep -lf apach
17740 apache2 -f /etc/apache2/httpd.conf
17741 apache2 -f /etc/apache2/httpd.conf
17744 apache2 -f /etc/apache2/httpd.conf
17772 apache2 -f /etc/apache2/httpd.conf
rix adam #

So, how do I troubleshoot this?





  1   2   3   4   5   6   7   8   9   10   >