Re: ssh-agent, keychain, xsession bash_profile scripting
On Fri, 15 Jan 2010, Adam Hardy wrote: I've been chasing my tail trying to work this one out following different examples off the web, but can't sort it out and keep getting the old Could not open a connection to your authentication agent. from ssh-add, and nothing but inaction from keychain. I know everything has to run as a child of ssh-agent to gain access to its envvars, but I don't how to achieve this. keychain id_rsa in my .bash_profile doesn't work, I still have to give ssh my password for the private key when I use ssh. I guess I should be setting up the envvars in my bash env somehow when getting them via 'ssh-agent -s' but I don't know the syntax to do this. I always boot into a command line and then run startx when I need it, and I think herein lies the problem - although I can't get it to work on the command line either with keychain or ssh-add. Thanks Adam Hi Adam, from the command line you can run : ssh-agent bash #that starts your agent for that shell, you will need to run that for each shell you want to have access to your keys ssh-add -i /path/to/your/key For X, in /etc/X11/Xsession.options, check and make sure you have use-ssh-agent in there. That should automatically start your ssh-agent for your X session. Then from a term you can run something like this: #!/bin/sh if ! ps -P $SSH_AGENT_PID ; then echo need to run ssh-agent exit 0 fi if ssh-add -l| egrep -i dsa|rsa ; then echo keys there else echo need to add .keys ssh-add /path/to/id_dsa fi -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: IPv4 localhost network problem
Sent from my coffee machine On Dec 29, 2009, at 7:36 AM, martin martin.juh...@home.se wrote: On Tuesday 29 December 2009 14.26.51 jeff dickison wrote: On Dec 29, 2009, at 7:07 AM, martin martin.juh...@home.se wrote: Hi, I have problem with IPv4 on my local network. Applications that is trying to connect to localhost with IPv4 gets “connection refused”. I have constructed a simple Java program that is triggering the problem. The program simple just N Starting by doing the following: $ java DummyServer 7000 When testing with telnet: $ telnet -4 localhost 7000 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused $ telnet -6 localhost 7000 Trying ::1... Connected to ip6-localhost. Any ideas what can be wrong? Martin DummyServer.java Hi Martin, What's the output of: sudo lsof -i:7000 The output is as following: $ sudo lsof -i:7000 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java6130 martin4u IPv6 66197 0t0 TCP *:afs3- fileserver(LISTEN) $ Martin So, this shows us its only listening on ipv6 and not on ipv4. Just a guess, but I would suspect that there might be an issue with the java app. Are you seeing this issue with other apps? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: keeping the two latest files on a folder
On Tue, 13 Oct 2009, Israel Garcia wrote: Hi List, It's a simple question but difficult to me :-). How can I delete all files on a folder / but keeping only the two latest (newest) files? how about something like this to start: for file in $(ls -tA | egrep -v $(ls -tA |head -n 2)) ; do if [ -f $file ] ; then echo do a rm of $file ;fi ; done -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: NIS woes.. Ubuntu nis client doesn't ping Debian nis Server
On Fri, 14 Aug 2009, raman narasimhan wrote: So what could be the problem?? We have no problems in logging into Debian Server from Debian clients. Have you looked at the firewall on the ubuntu servers? https://wiki.ubuntu.com/UbuntuFirewall -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Query on IP connections security
On Fri, 24 Jul 2009, AG wrote: I was going through the hardinfo application and when I got to IP connections I noticed the following connections have the Established status using TCP and both on port 443 (SSL and HTTPS). One of these connections is to 71.62.0.176 (which doesn't seem to have a listing in the whois database that means anything) and 88.169.124.190 which points to http://www.proxad.net according to whois What applications could I have on my machine that would establish tcp connections with either of these using ssl/https? Also, although I was under the impression that the portmap service was not enabled at boot up, it would appear that it is running in the background. I recall that portmap used to be a security risk, but is this still the case and should I be concerned? Thanks AG One handy tool to have is lsof. You can use that to see what applications are talking to what IP. For example: lsof -...@71.62.0.176 -n will show you what applications are communicating with the ip. You can also specify certain ports if you like, to trim down the results like so: lsof -...@71.62.0.176:443 or to just see ports: lsof -i:443 also, If you dint need portmap, the best solution is to just disable it. No sense in running unneeded apps. Hth, Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: specific network traffic
On Sun, 22 Mar 2009, Lorenzo Bettini wrote: sorry If I get back on this, but neither iftop nor iptraf show information about the specific process that produces that traffic... lately I've noticed some continuous traffic on port 1712, and I'd like to figure out who's generating this... thanks Lorenzo you might want to try something like: lsof -i:1712 -n hth, Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: any tool to produce a report of bad sectors of my harddisk?
On Fri, 20 Mar 2009, 明覺 wrote: As my machine crashed 2 times in the last 10 days, both caused by file system issues, so I want to get a report of my harddisk to know whether my harddisk is really in a very bad situation.(though currently my harddisk works fine, but I'm afraid it will crash in a few days.) What tool can tell me the situation of my harddisk? thanks. badblocks should help you out a little with this, but I'd start looking into making sure you have everything backed up and get a new disk as it sounds like the one you have is on the way out. Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.
Re: USB networking
On Fri, 20 Feb 2009, Mark Neidorff wrote: I just saw an ad for a IOGear GUN262WV. It is a USB network cable to connect 2 PCs directly. Its listed as working with Vista XP only. If anyone has this cable working with Debian (I'm using Etch) would someone please tell me how to make it happen? Thank you, Mark You might want to check out http://www.linux-usb.org/usbnet/#t-host -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: scp GUI?
On Fri, 20 Feb 2009, Nagy Daniel wrote: Is there a GUI for SCP? I mean like browsing through scp just like in a folder, in Midnight Commander. Thank you! filezilla will do sftp -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Apache2 confused by index.php after Lenny upgrade
On Thu, 19 Feb 2009, Kent West wrote: I'm ignorant when it comes to Apache/php, etc. I had a working etch server with Apache2 and PHP5, but after the upgrade to Lenny, whenever I point my web browser to a simple index.php file: the web browser opens a dialog window asking what I want to do with the index.php file. I'm unsure how to go about troubleshooting this. wes...@]goshen]:/etc/apache2: ls mods-enabled/ alias.conf authz_user.load include.load ssl.conf alias.load autoindex.conf mime.conf ssl.load auth_basic.load autoindex.load mime.load status.conf authn_file.load cgi.load negotiation.conf status.load authz_default.loaddir.conf negotiation.load authz_groupfile.load dir.load setenvif.conf authz_host.load env.load setenvif.load (I'm thinking maybe there's supposed to be a php5.conf or something in the above directory? If so, where do I get it?) Thanks for any help! to enable the php5 confs you can run: sudo a2enmod php5 then reload apache and it should start serving your php files. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: MySQL Clustering; Load balancing is not working.
On Thu, 19 Feb 2009, Stackpole, Chris wrote: I wanted to learn more about MySQL clustering so I looked around and found this guide [1]. It was the newest guide I found (8 months old), so I decided to give it a shot. I went through the guide with a little deviation and I end up with mostly the same results as the author. Data written to one node, shows up real quick on the other node. The management interface all gives the same results as the author too. However, the big problem (and reason for my post) is the virtual IP for the load balancing doesn't work right. When I try connect to the virtual IP: $ mysql -h 10.0.1.10 -u ldirector -p Enter password: It will sit here for a really long time before giving: ERROR 2003 (HY000): Can't connect to MySQL server on '10.0.1.10' (111) For most of this, you don't need to follow the instructions there to a tee, where ever possible I just use what ever is in apt, most of it version agnostic. The real important thing, it just the methods. Step 2) Author uses MySQL 5.1.24 compiled from source. I used apt (I am not afraid to compile but I didn't because apt is awesome :). $ apt-cache show mysql-server | grep -i version Version: 5.0.51a-24 Well, I guess I can see the versioning being a problem. Maybe I should update and compile a newer version. ?? Step 6.1) For whatever reason, I can't update the GPG key for ultramonkey, but I just hit y to install anyway on apt. Also, he installs libdbd-mysql-perl from a download he gives from CPAN. I had errors with his commands. Turns out you have to install libmysqlclient15-dev (not 14) and you have to install make too! Then his link to the DBD-mysql-3.0002.tar.gz didn't work for me. However, the link to the newest (I believe) DBD-mysql-3.0008.tar.gz, _did_ work. So I installed that one. So again, versioning issues? From what I remember, ultramonkey is kind of dead. All you really need to install is ldirectord for the load balancing and heartbeat for failover, both of which are in debians repositories. So, I would just uninstall everything you installed from ultramonkey, remove them from your sources list and just install heartbeat and ldirector debians rep. for the DBD-mysql, you can just install libdbd-mysql-perl, that will provide what you need. Step 6.2 - 7) Everything works exactly as the author suggests it should, /except/ for the last line of: `mysql -h 10.0.1.10 -u ldirector -p` As stated before, this fails. I can ping 10.0.1.10. I can even ssh into 10.0.1.10. They both redirect me to the (current) primary load balancer. If I turn off the primary, I go to the secondary. Also, if I run `ipvsadm -L -n` I can see the connections show up, even though they time out. So I don't think it is the virtual part. I think it is the redirection to the MySQL session. The only thing I have found in the log files that doesn't look right, is every once in a while this line is put into the /var/log/ldirectord.log: Exiting with exit_status 2: configu_error: Configuration Error The thing is, from everything I can find, it is correct. I posted at the end of the email. I would appreciate any feedback people may have. Thanks! ~Stack~ [1] http://www.howtoforge.com/setting-up-a-loadbalanced-mysql-cluster-with-m ysql5.1 $cat /etc/ha.d/ldirector.cf # Global Directives checktimeout=10 checkinterval=2 autoreload=no logfile=local0 quiescent=yes virtual=10.0.1.10:3306 service=mysql real=10.0.1.33:3306 gate real=10.0.1.34:3306 gate checktype=negotiate login=ldirector passwd=ldirectorpassword database=ldirectordb request=SELECT * FROM connectioncheck scheduler=wrr your config looks ok. The one other thing I would check is the entries in your /etc/sysctl.conf to turn off arp. That sounds like that may be the main issue here -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Browsing offline filesystems
On Tue, 10 Feb 2009, Dotan Cohen wrote: Is there a tool that I can use to browse an offline file system, ie, to cache it's directory structure and have it browsable? I have a small home network with a laptop, and often I need to know what's on any particular machine that is not present at the moment. One thing you could do is to copy the mlocate.db from your laptop to the other system and do 'locate -d laptop.db foo.txt' -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: No way to disable Google safebrowsing in IceWeasel?
On Sat, 7 Feb 2009, S D wrote: Is there a way to disable Google safebrowsing feature in IceWeasel? I want to have as little as possible with Google, even if it only means repeatedly downloading some black-list file from their servers. Thanks type in about:config in the address bar ,in filter put in browser.safebrowsing.enabled , then click on the line that shows up, should turn it to false -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: umask problem
On Thu, 5 Feb 2009, Ding Honghui wrote: Hello list, I encounter a problem and can't finger out why it is: For hostA 1. ssh u...@hosta umask shows 0022 2. ssh r...@hosta umask shows 0022 For hostB 3. ssh u...@hostb umask shows 0077 4. ssh r...@hostb umask shows 0022 md5sum for files /etc/login.defs /etc/pam.d/login /etc/pam.d/ssh /etc/ssh/sshd_config in both hosts are same What can be reason the umask are different in normal user when ssh in notty mode? Thanks. Regards, Ding Honghui Have you checked that users .bash_profile, that would be my first guess.. Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Re: Configuring wlan on Debian Base installation
On Tue, 3 Feb 2009, Jack wrote: As for /etc/network/interfaces, I have attempted inserting auto wlan0 iface wlan0 inet static address 192.168.2.138 netmask 255.255.255.0 gateway 192.168.2.1 However, this results in the same problems as I am having. So currently, I have /etc/network/interfaces set only to it's default content: auto lo iface lo inet loopback have you tried to add : wireless-essid youressid wireless-key yourkey to your wlan0 stanza in the /etc/network/interfaces file? Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: [medium OT]
On Fri, 23 Jan 2009, Adrian Chapela wrote: Hello again! I am looking for a good cvs, control version for web developing. Some of my web developments was in ASP and because that I need some cvs for use with it, on windows or in Debian. Do you know a good version to use with web development ? Thank you! I always use a mix of trac[1] and svn[2]; both are packaged in debian as well. I there are clients for svn for windows and OSX as well if you need them. [1] http://trac.edgewall.org/ [2] http://subversion.tigris.org/ -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: C compiler cannot create executables (Ubuntu 8.04)
On Thu, 22 Jan 2009, Bernard wrote: However, it failed to work here. In the appropriate directory, I first typed './configure'. Things seemed to start all-right, but after a short while it said : C compiler cannot create executables What do I miss so that I get such a reply ? I also get this : see config.log for more details. So, I made this logfile available on Thanks in advance for any help have you installed the build-essential package? That should install everything you need to compile -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: How to see the output of a custom init script on Lenny?
On Tue, 20 Jan 2009, Sander Marechal wrote: Hello, I have written a simplistic custom init script that makes a backup of my entire system using `rsync -vv`. I have symlinked this script as /etc/rc0.d/K00backup and /etc/rc6.d/K00backup so that the backup occurs whenever I reboot or shut down. When I was using Etch I would see the output of rsync when I shut down my system. Now with Lenny I don;t see the output anymore. From what Google tells me this is because under Lenny the init scripts should use the lsb functions to output and that all normal output is now hidden. Making a backup of my system takes some time, hence my use of -vv and --progress on rsync so I can see how far it is. I would like to see that output when I shut down my system. There does not appear to be an lsb init function that I can simply pipe the output of rsync to. How do I make the rsync output appear when I shut down my system? Thanks in advance, I just tested this out on my Lenny system and it appears to work: #!/bin/sh . /lib/lsb/init-functions DESC=Backup Script PATH=/bin:/usr/bin:/sbin:/usr/sbin stop () { log_daemon_msg Starting Backup sync log_progress_msg ; rsync -avr --progress /src/ /dest/ log_action_end_msg 0 } case $1 in stop) log_daemon_msg Running $DESC $NAME if stop ; then log_end_msg $? else log_end_msg $? fi ;; *) echo Usage: /etc/init.d/$NAME {stop} exit 3 ;; esac exit 0 Upon shutdown or reboot, I see the output of rsync .. for more info on the functions read through /lib/lsb/init-functions hth Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: mounting two disks on the same mount point (not at the same time)
On Sat, 17 Jan 2009, Reid Priedhorsky wrote: I have a couple of USB disks that I use for backups. I rotate them so only one is attached at the same time. I have a nightly cron that mirrors the directories of interest onto whichever one is attached using rsync. I'd like to mount whichever one is attached at the same mount point, without having to specify the device. For example, rather than: $ mount /dev/disk/by-id/usb-ST316002_1A_DEF107679C83-0:0-part1 /mnt/backup I'd like to say: $ mount /mnt/backup The latter works for whichever is specified first in /etc/fstab, but not the other one. They are both *usually* the only USB disk attached, so they both appear as /dev/sdc1, but I don't really want to depend on that. Is this possible? Thanks, Reid How about putting something like this in a shell script and just calling that? for DiskID in DISKID1 DISKID2 ; do if [ -b /dev/disk/by-id/${DiskID} ] ; then echo mounting disk $DiskID mount /dev/disk/by-id/${DiskID} /mnt/backup fi done Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Labeling backup DVD+RW's
On Fri, 16 Jan 2009, Chris Jones wrote: On Fri, Jan 16, 2009 at 12:41:42AM EST, Ron Johnson wrote: [..] Even they are now standardized. http://www.newegg.com/Store/SubCategory.aspx?SubCategory=380name=Laptop-Hard-Drives Thanks, but it looks like they're all SATA and that's probably not backward-compatible with the old IDE interface? They do have a few, listed as the ata-6, those are compatible with the ide interface in laptops. http://www.newegg.com/Product/ProductList.aspx?Submit=ENEN=2010150380%201035907889name=ATA-6 -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: [OT] iptables q
On Thu, 15 Jan 2009, Hugo Vanwoerkom wrote: Hi, I have Firehol for iptables front-end and WordPress on Apache. Access to WP is restricted to me only, like this: interface ppp0 internet policy drop protection strong ... server http accept src 200.57.201.163 So far so good. Now the question is: where do the messages in syslog come from, like these: Jan 15 10:09:12 debian kernel: [42743.308176] ''IN-internet':'IN=ppp0 OUT= MAC= SRC=202.97.238.233 DST=200.57.20 1.163 LEN=597 TOS=0x00 PREC=0x00 TTL=42 ID=0 DF PROTO=UDP SPT=56368 DPT=1026 LEN=577 because that source does not exist: h...@debian:~$ host 202.97.238.233 202.97.238.233 does not exist, try again Hugo Hi, Just because you can't resolve an IP address does not mean that it does not exist. There is no rule that says IP address *have* to have dns resolution. That IP is a valid address, so it is very possible that it does exist. Whois info for it says that its from China, I suspect you will be seeing lots of these, its fairly normal noise. Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Question about LVM and volume images on loop
On Tue, 13 Jan 2009, Paul E Condon wrote: I want to allocate several large blank files on HD, and make them into virtual hard disk which I mount using loop. I then want to treat them as 'physical volumes' under LVM, and collect them into a single volume group. Then, I intend to define a few larger logical volumes on this 'volume group'. I do this because I want to store large files on a HD whose hardware interface limits file sizes to 4Gb, and I want to store larger files than 4Gb. ( The HD has 500Gb total capacity.) Maybe I'm missing something here, but how is the hardware interface stopping you from writing files larger than 4G? That's just something I haven't ran into. How is the drive formatted now? Can't you just format the drive with ext3 or something else that supports large files? I don't think that LVM is going to solve your problem here though. Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: extract package name given a filename
On Wed, 7 Jan 2009, Harry Putnam wrote: Last time I ran debian was several yrs ago.. back then I learned a way using dpkg to extract the packagename of files found on the machine... Assuming they came in using apt and dpkg. I even kept a note about it which of course is no where to be found now that I need it again. Anyone know how to find which package installed a give file? something like this: $ dpkg -S /bin/bash bash: /bin/bash -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Restrict Access Virtual Host on Apache2
On Tue, 6 Jan 2009, Zaki Akhmad wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jan 6, 2009 at 8:06 AM, Jeff D wrote: you could add something like this to your vhost conf: Order Deny,Allow Deny from all Allow from 1.2.3.4 I am using Apache 2, so I add on sites-availabe directory ServerAdmin z...@design.paume.itb.ac.id ServerName blaba.zup-zup.xxx.ac.id DocumentRoot /var/lib/mediawiki Order Deny,Allow Deny from all Allow from x.x.x.x/16 LogLevel warn ErrorLog /var/log/apache2/error-wiki.log CustomLog /var/log/apache2/access-wiki.log common ServerSignature Off But then when I reload it # /etc/init.d/apache2 reload Syntax error on line 6 of /etc/apache2/sites-enabled/wiki: order not allowed here ...fail! :( - -- Zaki Akhmad try changing it to: Directory /var/lib/mediawik/ Order Deny,Allow Deny from all Allow from x.x.x.x/16 /Directory -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Restrict Access Virtual Host on Apache2
On Tue, 6 Jan 2009, Zaki Akhmad wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I am trying to restrict access on one of my virtual host which is running on Apache2 web server. What should I do so that only specific IP can access this virtual host? you could add something like this to your vhost conf: Directory /path/to/vhost/dir Order Deny,Allow Deny from all Allow from 1.2.3.4 /Directory then restart apache and only hosts coming from 1.2.3.4 will be able to access the site.. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Missing Ethernet Interface
On Tue, 6 Jan 2009, rjubio wrote: Thierry Chatelet wrote: On Tuesday 06 January 2009 04:08:36 rjubio wrote: Hello I would just like to ask how can i make my machine recognize the other eth interface. Here is the result of lspci 00:19.0 Ethernet controller: Intel Corporation Unknown device 10bd (rev 02) My other interface is working just fine. I would just like to have an extra one. Have you done update-pciids Yes. Now it change to 00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02) from being unrecognized. But still my ifconfig -a doesnt show other interface. try modprobe e1000 -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Missing Ethernet Interface
On Tue, 6 Jan 2009, rjubio wrote: Jeff D wrote: On Tue, 6 Jan 2009, rjubio wrote: Thierry Chatelet wrote: On Tuesday 06 January 2009 04:08:36 rjubio wrote: Hello I would just like to ask how can i make my machine recognize the other eth interface. Here is the result of lspci 00:19.0 Ethernet controller: Intel Corporation Unknown device 10bd (rev 02) My other interface is working just fine. I would just like to have an extra one. Have you done update-pciids Yes. Now it change to 00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02) from being unrecognized. But still my ifconfig -a doesnt show other interface. try modprobe e1000 Still nothing. Do I need to compile a custom kernel? check your dmesg output, it should say something about a new interface being found. then you can try a ifconfig eth1 up, change eth1 to what ever matches in the demsg, if there is anything in there. If that works you can edit your /etc/network/interfaces accordingly -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Missing Ethernet Interface
On Tue, 6 Jan 2009, rjubio wrote: Jeff D wrote: On Tue, 6 Jan 2009, rjubio wrote: Yes. Now it change to 00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02) from being unrecognized. But still my ifconfig -a doesnt show other interface. try modprobe e1000 Still nothing. Do I need to compile a custom kernel? check your dmesg output, it should say something about a new interface being found. then you can try a ifconfig eth1 up, change eth1 to what ever matches in the demsg, if there is anything in there. If that works you can edit your /etc/network/interfaces accordingly What I have here from the beginning is sit0? Is it possible that that is the my extra interface? did you get any out put from dmesg about an interface? If so, it would help to post that, but no, sit0 wouldn't be the new interface, it should be something like ethN also, there's no need to reply to me, please just send messages to the list. thx -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: apt-get cannot conect to server
On Sat, 3 Jan 2009, oxy wrote: Hi all, similar posts around refer to wrong proxy configuration, wrong /etc/apt/sources.list files etc. None seems to be my case. Look: # apt-get update Err http://security.debian.org etch/updates Release.gpg Could not connect to security.debian.org:80 (1.0.0.0), connection timed out Err http://download.virtualbox.org etch Release.gpg Could not connect to download.virtualbox.org:80 (1.0.0.0), connection timed out snip The only major change i've done lately is to conect to different networks using different host/domain names. (seems no real reason for problems) I have no /etc/apt/apt.conf or /etc/apt/preferences file in my system. Any help? Thanx in advance ... Kinda looks like dns issues, I would double check to see if your system is resolving dns properly. what do you get for: host security.debian.org host download.virtualbox.org host ftp.de.debian.org ?? Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Intel GM965 on Etch
On Sun, 28 Dec 2008, Nishita Desai wrote: On Sun, Dec 28, 2008 at 10:10 PM, Justin Piszcz jpis...@lucidpixels.com wrote: Try i810 Thank you for your reply Justin. But i810 does not work. It gives me an error saying No matching Device for instance (BusID :0:2:1) found I get the same error for intel driver along with: (EE) GARTInit: Unable to open /dev/agpgart (EE) intel(0): [dri] DRIScreenInit failed. Disabling DRI. (EE) intel(0): Failed to allocate framebuffer. Is your VideoRAM set too low? (EE) intel(0): Couldn't allocate video memory Nishita. I have the same chipset on my thinkpad, this is what I have in my xorg.conf: Section Device Identifier IntelCard Driver intel VendorName Intel Corporation BoardName Mobile Integrated Graphics Controller BusID PCI:0:2:0 Option DRI false Option monitor-TV TVOutput EndSection # lspci | grep GM965 00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c) 00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c) 00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 0c) -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: ssh time to see if remote server is up
On Fri, 26 Dec 2008, H.S. wrote: Hello, If I try to ssh to a remote server which is down, SSH takes some minutes to determine if it really up or not. Does SSH have an option to fix this time interval during which ssh client is trying to make a connection to the remote server? Thanks. In ~/.ssh/config you can set: ConnectTimeout 30 to set a 30 second timeout for example. For more info man ssh_config -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: iPod
On Tue, 23 Dec 2008, JoeHill wrote: lostson wrote: On Tue, Dec 23, 2008 at 11:24:28PM -0500, JoeHill wrote: Daryl Styrk wrote: and bookmarks them for transfer to the ipod on next connect, etc. etc. ...and will also pull down the _entire_ KDE desktop with it. thats not quite everything there is alot more That's not exactly comforting... ;) I'm just not sure why I would have to install kdesktop, kicker, kamera, and konqueror for an app that syncs with my iPod. On the other hand, I would like to see someone who had not a single Gnome dep installed try to pull down gtkpod and see what comes with it. this is off a etch 64bit xen image off of jailtime.org, so, not much is installed by default, no x or anything. Etch: apt-get install amarok: 0 upgraded, 124 newly installed, 0 to remove and 0 not upgraded. Need to get 80.4MB of archives. After unpacking 240MB of additional disk space will be used. apt-get install gtkpod: 0 upgraded, 40 newly installed, 0 to remove and 0 not upgraded. Need to get 21.9MB of archives. After unpacking 74.4MB of additional disk space will be used. Do you want to continue [Y/n]? n Then upgraded the image to Lenny apt-get install amarok: 0 upgraded, 272 newly installed, 0 to remove and 0 not upgraded. Need to get 151MB of archives. After this operation, 430MB of additional disk space will be used. apt-get install gtkpod: 0 upgraded, 194 newly installed, 0 to remove and 0 not upgraded. Need to get 75.7MB of archives. After this operation, 234MB of additional disk space will be used. jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: ip conflict detection
On Tue, 23 Dec 2008, linuksos wrote: Hi guys, is there and tool/daemon in a standard Debian repository which would be able to detect ip conflict on the local network? thanks arpwatch will do that for ya -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: iPod
On Sat, 20 Dec 2008, Raquel wrote: Okay, I've gotten rid of the Creative Zen and ordered the iPod Nano as a gift to Trish, my spouse. What do I need to manage the iPod Nano? I'd just as soon not use a command line to do it, largely because Trish is going to be managing her own iPod after I get it first loaded. So, a gui would be nice for her. you might want to check out gtkpod -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: tcpip stops working after some time
On Fri, 19 Dec 2008, Micha Feigin wrote: On Sat, 13 Dec 2008 01:07:12 +0200 subscriptions subscripti...@rdegraaf.nl wrote: On Fri, 2008-12-12 at 22:10 +0100, Micha Feigin wrote: For some reason after a few days of uptime , tcp stops working on my machine. Ping and dns lookups work, tcp doesn't. I tried both wired and wireless, removing the firewall and unloading all firewall related modules but nothing seems to change. Only restarting seems to help Any ideas what else could it be? Thanks Try 'netstat -atn' to see if you have filled all ports. Here's the output, doesn't seem to me that I filled the ports, but I may be wrong. Not sure what are all those open ports at the 4-6 range I also it seems that the connection is not all dead, it's just really slow (I sometime get a reply to telnet www.google.com 80 after a couple of minutes although it mostly times out. ping works fine. nada in /var/log/syslog and /var/log/messages vivalunalitshi:tmp# netstat -atn Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 0 192.168.1.11:55178 132.66.7.110:80 ESTABLISHED tcp0 1 192.168.1.100:51591 132.66.7.110:80 SYN_SENT tcp0 0 192.168.1.100:51593 132.66.7.110:80 ESTABLISHED tcp0 1 192.168.1.100:49378 74.125.79.109:995 SYN_SENT tcp0 1 192.168.1.100:51590 132.66.7.110:80 SYN_SENT tcp0 0 192.168.1.100:57531 130.83.165.8:3250 ESTABLISHED tcp0 0 192.168.1.100:42224 87.70.122.110:43754 ESTABLISHED tcp0 1 192.168.1.100:43329 132.66.7.110:80 SYN_SENT tcp0 0 192.168.1.100:39098 77.127.241.67:10184 ESTABLISHED Best, Rob are you seeing issues with all tcp or just web traffic? One other thing you might want to try out is to fire up tcpdump (tcpdump -i eth0 -n ) and run: traceroute -n google.com and traceroute -n -T google.com The -T there, tells traceroute to send out tcp packets. It could give you some insight on what may be causing this issue, or at least where the issue might be. Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: need help with net configuration
On Fri, 12 Dec 2008, raman narasimhan wrote: sir, me and a friend of mine had installed debian etch together. i configured my Internet while installing itself but my friend didn't. both of us have ADSL broadband connections. i'm now able to browse the net freely but his net settings haven't been set. how can we connect his system to the Internet?? does it need any specific packages?? First thing you want to do is check and see if your ethernet card is getting an IP address and that it is getting recognized. You can check it this way: /sbin/ifconfig you should probably see a couple different entries there, on for lo and hopefully one for eth0. If you see an eth0, check to see if it has an address, it should look something like this: eth0 Link encap:Ethernet HWaddr 00:15:58:84:4a:a4 inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:576699 errors:0 dropped:0 overruns:0 frame:0 TX packets:581783 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:90631322 (86.4 MiB) TX bytes:400396659 (381.8 MiB) If you don't see something like that, you can try and running: sudo dhclient eth0 you can also check the contents of /etc/network/interfaces , you should see a couple of lines that looks something like this: auto eth0 iface eth0 inet dhcp Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: POWER FAILURE
On Fri, 12 Dec 2008, rjubio wrote: I am experiencing some kind of error regarding a recent power failure in our campus. When I try sshing to on of our server I get an error message: POWER FAILURE then I get thrown back to the login prompt. Any suggestions how to go on this. Thanks! ROD I'm going to guess someone is working on it and has set up nologin .. If this is a machine you admin , I'd suggest trying to get physical console access .. Jeff -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: I need to see open connections this moment - With Iptables i can only see logs
On Tue, 9 Dec 2008, Carlos Carrero Gutierrez wrote: Hi, i use Iptables and i would like to find a tool or software in order to see my open connections. In doesn't care if it's a gui or not, and it can be not interactive (of course). Wireshark capture paquets but i can't be constantly searching if a paquet is correct or not. Somebody could help me? Thank you very much, and sorry (i am doing crossposting). lsof will do what you want, for example to see all open connections on port 80: lsof -i:80 -n hth, Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: where is postgresql-8.3's packager's instructions?
On Sat, 6 Dec 2008, 中和刘 wrote: I'm learnimg to use postgresql-8.3 database server on debian sid, and I have installed it successfully from debian package, then when i read the document from postgresql to learn to manage it, it says: (If you are installing a pre-packaged distribution, such as an RPM or Debian package, ignore this chapter and read the packager's instructions instead) so i'm wondering where is the packager's instructions? thanks install the postgresql-doc package, then you should be able to find the docs in /usr/share/doc/
Re: change loading order of modules in apache
On Wed, 12 Nov 2008, Freddy Freeloader wrote: I am experiencing something with Apache that hasn't been a problem on three previous Etch builds. We use Ajaxterm as a proxy to reach another server as part of our web application. On all previous builds Apache has loaded all related proxy modules in the correct order by default. In this latest install--a fresh server build--Apache will not load the load the proxy module first and I can find no documentation on how to change the load order in Debian. Can someone point me towards a link on how to do this? Apache loads everything in the order its presented. For modules listed in /etc/apache2/mods-enabled/ that would be in alphabetical order. Though, I have never ran into an issue with modules loading in the incorrect order, I'm wondering how you went about setting up the modules to be loaded. Did you use the a2enmod tool to load up the modules? Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: nmap package obsoleted?
On Fri, 31 Oct 2008, rex wrote: Hello, I'm trying to install nmap, and so I did apt-get install nmap, but I get this: Reading package lists... Done Building dependency tree... Done Package nmap is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package nmap has no installation candidate when I do apt-cache pkgnames | grep nmap, I get nmap. googling shows me that nmap is at http://packages.debian.org/stable/net/nmap.html, but I get No such package my sources.list file show: # # deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 DVD Binary-1 20080217-11:31]/ etch contrib main deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 DVD Binary-1 20080217-11:31]/ etch contrib main deb http://security.debian.org/ etch/updates main contrib deb-src http://security.debian.org/ etch/updates main contrib I did an apt-get update but that didn't work. Please help. Thanks! try adding the following to your sources list : deb http://ftp.debian.org/debian/ etch main contrib deb-src http://ftp.debian.org/debian/ etch main contrib then run apt-get update and try to install nmap. also see: http://packages.debian.org/etch/nmap Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to start chroot BIND automatically at boot
On Thu, 30 Oct 2008, Stephen Liu wrote: Hi folks, Debian Etch bind-9.5.0 compiled on source chrooted Which file I have to edit adding; /etc/init.d/bind9 start so bind9 will start automatically at boot. TIA B.R. Stephen L make sure you have the sysv-rc package installed and run update-rc.d bind9 defaults or man update-rc.d for other options Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: can't build um architecture linux image on lenny
On Thu, 30 Oct 2008, Brad Brock wrote: I've been using user-mode-linux (UML) since 3 years ago. I enjoyed its costumizable guest kernel until last week when I realize that building custom guest kernel on previous kernels version (I've tried 2.6.18 and 1.6.22) is no longer available due errors while compiling the kernel. The errors occured when I was building these kernels on lenny environment but there is no error when I used etch. Does anyone can explain to me why...?? thanks in advance Are you building it from source from kernel.org or trying to build it from debian supplied source? Any reason to not use the debian supplied uml kernel from user-mode-linux ? What error messages are you getting when you try to compile the kernel? jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: vsftpd problem 500 OOPS: cannot change directory
On Wed, 29 Oct 2008, lau wrote: Hi everyone, I've been trying to set up a ftp server using vsftpd. I would like to create two accounts, namely ftpmovies and ftpmusic pointing respectively to /home/lau/movies and /home/lau/music. According to my /etc/passwd file, those accounts are like this: ftpmusic:x:1001:1001:,,,:/home/lau/music/:/bin/bash ftpmovies:x:1002:1002:,,,:/home/lau/movies/:/bin/bash Here is my vsftpd.conf: anonymous_enable=YES local_enable=YES write_enable=NO local_umask=022 #anon_upload_enable=YES dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=NO xferlog_std_format=YES ftpd_banner=KIKO!! chroot_local_user=YES chroot_list_enable=NO chroot_list_file=/etc/vsftpd.chroot_list listen=YES tcp_wrappers=YES no_anon_password=YES listen=YES anon_root=/home/lau So to start with, i know that the chroot_local_user parameter is not relevant here, since changing it to NO doesn't solve the problem. However, usermod -d /home/ftpmovies ftpmovies So, I'm unclear here, above you show the home dir for ftpmovies being in /home/lau/movies/ and here you change it to /home/ftpmovies. Does /home/ftpmovies exist and have the proper permissions set for ftpmovies? Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to start postgresql server at machine startup?
On Tue, 28 Oct 2008, Star Liu wrote: On Tue, Oct 28, 2008 at 10:58 AM, Ron Johnson [EMAIL PROTECTED] wrote: On 10/27/08 21:07, Star Liu wrote: I installed postgresql server in my machine, but i does not start automatically at startup time, so i need to mannually type these commands to start it everytime when i restart system Desktop:~# su postgres Desktop:/root$ cd ~ Desktop:~$ postgres -D ~/data ~/log/logfile 21 i tried to add this command line into /etc/X11/Xsession.d/95StarHabit: Why the heck would you put it in an X script?? I do not know, I just put all the things I want to do at system startup into this file su -c postgres -D /var/lib/postgresql/data /var/lib/postgresql/log/logfile 21 postgres but it doesn't work how can i make these commands automatically executed at system startup? thanks How did you install PostgreSQL? If thru a Debian package, then Debian will handle all this for you. Yes, i installed it thru debian package, but it doesn't start up at system startup, so i need to start it by myself, is there anyway to automate it? thanks Are you sure its not starting and just listening on the localhost interface? This is how it comes configured by default. If you want it to listen on a different interface you have to edit /etc/postgresql/8.3/main/postgresql.conf to reflect that and restart it through /etc/init.d/postgresql-8.3 restart . jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to mirror a server installation?
On Tue, 21 Oct 2008, Arnau wrote: Hi all, I'd like to mirror all the packages installed in a production server with the same versions. The idea is to have a enviroment test the upgrades before apply those upgrades to the real production server. What is the best way to do this? Thank you very much You can do something like this: on the current machine: sudo dpkg --get-selections server.selections then copy the server.selections file to your test machine and run: sudo apt-get update sudo dpkg --set-selections server.selections sudo apt-get dselect-upgrde That will install all packages that are on your current server on your test server. hth, Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to mirror a server installation?
On Tue, 21 Oct 2008, Arnau wrote: Hi all, Jeff D wrote: On Tue, 21 Oct 2008, Arnau wrote: Hi all, I'd like to mirror all the packages installed in a production server with the same versions. The idea is to have a enviroment test the upgrades before apply those upgrades to the real production server. What is the best way to do this? Thank you very much You can do something like this: on the current machine: sudo dpkg --get-selections server.selections then copy the server.selections file to your test machine and run: sudo apt-get update sudo dpkg --set-selections server.selections sudo apt-get dselect-upgrde That will install all packages that are on your current server on your test server. I like this option more than the one proposed François. Will this install the same versions I in the production server? Thanks Assuming of course that you have the same sources listed in /etc/apt/sources.list , in regards to stable/testing/sid. So, if both machines are etch, then all packages will be the same version. But, this will only upgrade packages installed through apt/aptitude. Any packages that have been installed by hand wont be upgraded. Jeff
Re: iptables problems
On Sun, 19 Oct 2008, Jerry Stuckle wrote: Hi, all, I'm trying to get iptables to work on a new debian vps. This worked before my hosting company changed to virtuozzo for their vm. On the new system I'm getting the following error: iptables: No chain/target/match by that name This is a response to any iptables statement using the ipt_recent module, i.e. iptables -A FTP -p tcp --syn -m recent --name badFTP --rcheck --seconds 3600 -j REJECT I tried modprobe ipt_recent But get the error: FATAL: Module ipt_recent not found. Of course, this all worked in the previous version. perhaps they forgot to copy over the modules? Do you see any modules in: /lib/modules/`uname -r`/kernel/net/ipv4/netfilter/ If not, I'd contact your provider to see about getting those installed. Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Problem on MAC address
On Fri, 19 Sep 2008, Stephen Liu wrote: Hi folks, Debian Etch (both Host and Guest) Xen On cloning disk.img I suppose it also copies the MAC address of the original image to the new image resulting in ping hostname unable to find the new hostname. Following is my test; # dd if=/vserver/domains/xen5.satimis.com/disk.img of=/vserver/domains/xen6.satimis.com/disk.img bs=4k # dd if=/vserver/domains/xen5.satimis.com/swap.img of=/vserver/domains/xen6.satimis.com/swap.img bs=4k # xm list --long xen5.satimis.com (domain (domid 3) (on_crash restart) (uuid e1074e82-9bbc-8fcd-2e74-e6ab66a3017d) (uuid 18904eab-6d22-da74-79f0-c86198a01e4a) (script vif-bridge) (ip 192.168.0.115) (mac 00:16:3e:32:ab:e7) (type netfront) (backend 0) ) ) # xm list --long xen6.satimis.com (domain (domid 2) (on_crash restart) (uuid 07a8b42b-acfd-ec79-ce19-83f843564db1) (uuid bbc3e77d-e001-90f2-73f6-1d2a042c6e2b) (script vif-bridge) (ip 192.168.0.116) (mac 00:16:3e:0a:c0:fb) (type netfront) (backend 0) MAC Address xen5.satimis.com :- (mac 00:16:3e:32:ab:e7) xen6.satimis.com (mac 00:16:3e:0a:c0:fb) # nano /etc/network/interfaces making following change iface eth0 inet static address 192.168.0.116 = mac 00:16:3e:0a:c0:fb gateway 192.168.0.1 netmask 255.255.255.0 Remark:- Also tried; address 192.168.0.116 = MAC of mac 00:16:3e:0a:c0:fb address 192.168.0.116 = 00:16:3e:0a:c0:fb address 192.168.0.116 = MAC of 00:16:3e:0a:c0:fb None of them worked. # /etc/init.d/networking restart Reconfiguring network interfaces...=: Host name lookup failure ifconfig: `--help' gives usage information. Failed to bring up eth0. done. # ifconfig eth0 Link encap:Ethernet HWaddr 00:16:3E:0A:C0:FB inet addr:192.168.0.116 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::216:3eff:fe0a:c0fb/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:37 errors:0 dropped:0 overruns:0 frame:0 TX packets:31 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3154 (3.0 KiB) TX bytes:3138 (3.0 KiB) loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Please advise how to fix the problem. TIA B.R. Stephen L To change or set the mac address in /etc/network/interfaces the syntax is: hwaddress ether 00:16:3e:0a:c0:fb But, you really shouldn't have to do this in xen, xen should take care of that for you and present the mac address to your vm. Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Need to reboot Debian frequently
On Sat, 5 Apr 2008, Pete Kay wrote: Hi, Here is my w,free, top results when my linux server's network become too slow again ( it just happened). snip w output: 19:41:19 up 1 day, 20:07, 6 users, load average: 1.46, 1.85, 1.86 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT anne :0 -Thu23 ?xdm? 26:59 0.87s x-session-manag root pts/2:0.0 Thu23 19:28 56.31s 56.29s asterisk -v 6623 anne 15 0 337m 145m 26m S 24 14.5 169:28.67 firefox-bin 5574 anne 15 0 67260 17m 11m S0 1.8 0:08.40 nautilus snip For the tcpdump, I have to apt-get install it first and then wait under the server's network becomes too slow again the next time. By the way, when the network becomes slow, the linux server can still run fine without any slowness. This Linux box is behind a router which has two computers ( one linux and one vista ) under its network. How could I solve this problem? What worries me is that I am consistently having to reboot 2 - 3 days which means my server is still not ready for production. Please help me. Thanks, Pete While not having used asterisk myself, I would suggest not running firefox on a machine that is some what critical of uptime. Firefox itself will eat up huge amounts of memory. I would also suggest not running X on it at all if at all possible. Trimming out just X will cut all of that and should leave you with a server that will stay up for a good long while. hth, jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: localtime and UTC
On Fri, 4 Apr 2008, Rage Callao wrote: Hi, I just installed Lenny Beta 1 and everything installs nicely. However, my system time and hwclock are swapped. The output of date is: Fri Apr 4 20:40:29 PHT 2008 (should be 12:40:29) The output of date -u is: Fri Apr 4 12:41:28 UTC 2008 My /etc/default/rcS is set to: UTC=no /etc/timezone is set to: Asia/Manila My machine's BIOS clock is set to localtime. Thanks for any help. if you have the ntpdate package installed as run 'ntpdate pool.ntp.org' and it should set your clock to the proper time. hth, jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Xen in Etch, basic setup
On Thu, 3 Apr 2008, Steve Lamb wrote: Hello, Does anyone know of a web page that describes a basic setup of Xen in Etch? I've seen several at howtoforge and each of them, while fairly simple, do not match my experience at all. I follow the directions exactly and after a time what those directions say should appear and what actually does appear diverge wildly. On the other end of the spectrum are the pages that the author of Shorewall has put up detailing his experiences with Xen and Shorewall. A fascinating read and one that I'll have to dig into later. But it is no howto nor was it written with that intent. Right now I've got Etch booting into Dom0 just fine. Oddly enough my routing is working fine though I'm not quite sure why. I have one DomU which boots fine but is unable to use the network. When I attempt to bring up a bridge the networking to the outside world on Dom0 fails but local networking still works, DomU can see a network card but cannot connect to Dom0 or the rest of the local network. Furthermore no bridge device shows up in ifconfig. This is where my experience and those of the howtoforge authors seriously diverges. What I would be content with, for now, is having both Dom0/DomU being able to speak to the rest of the local network. With that I could at least work away from the console and flip configurations to where I could pull things off the internet with Dom0 acting as my router and then switch it to where DomU communicates so I can pull things across and continue my work. Ideally I want to have the DomU machine act as the router/FW for my network, hence the interest in the Shorewall/Xen documents. what options do you have in your xend-config.sxp? Do you have bridge-utils installed? some network options I use in my xend-config.sxp are: (network-script network-bridge) (network-script network-dummy) (vif-script vif-bridge) and in my domU configs i have something like this: vif = [ 'ip=10.1.2.94' ] and I also have that same ip in a static config for networking in the domU. hth, Jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Urgent: upgrading ipw3945 to 2.6.24
On Tue, 1 Apr 2008, Anthony Campbell wrote: On 01 Apr 2008, Thierry Chatelet wrote: On Tuesday 01 April 2008 05:26, Dr. Jennifer Nussbaum wrote: Hi, I am running Lenny. I usually accept all the upgrades im offered, so i upgraded my kernel recently. Now my Intel wireless card doesnt work, because i had been using the ipw3945-modules-2.6.22 package, and now im running kernel version 2.6.24. And i cant find the package for ipw2945 2.6.24 anywhere. I know im just being stupid, but where do i find this? Or is there some other way to get my wireless working again? Thanx! Jen Here: http://packages.debian.org/search?keywords=ipw3945searchon=namessuite=testingsection=all Do you have contrib and non-free in your sources.list? Thierry That's all very well, but I couldn't get ipw3945-modules-2.6.24 to build for me, although 2.6.23 did. And don't say I should switch to iwl3945 because I've never got that to work in spite of following all the instructions. As a result of this improvement I cannot use a kernel later than 2.6.23 in my laptop. Anthony As of kernel 2.6.24 the driver for the 3945 and 4965 intel wireless cards have been built into the kernel. While I do not have a 3945, I have the 4965. I was building the modules for each kernel. But with linux-image-2.6.24-1-686 on Lenny, I just had to install the debian kernel and it worked for me. Which is great, no more patch, build bhe kernel, build the module routine. But, with a kernel you are rolling yourself, you shouldnt need any other outside packages other than the firmware for the card. Might be something worth while to try out, that is unless there are some other gotchas for your laptop. Also, this is on a lenovo T61. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: SSH through wireless router
On Tue, 1 Apr 2008, Haines Brown wrote: I have a laptop (sidux on Thinkpad X61s) that connects via wi-fi to the wireless router connected to my desktop machine (etch) via CAT5, which has the name teufel. I can connect to the router, which I name router, by: $ ssh router but then I'm stuck with the password. I've tried the password I use to administer the router without luck. I actually don't want to connect to the router, but to the desktop using the router. The name and address of that machine on the LAN is listed in the SSH client's /etc/hosts file, and so I tried $ ssh teufel. However, I can't even connect: Connection is closed by remote host Can't I access all machines connected to the router and running a SSH server merely by using those machines' names for the ssh command? You might need to access the router from your desktop at first. I seem to remember a lot of routers only allow connections from LAN ports and not wireless. Though, yours could be different. Do you have any firewall rules running on the router itself? I would check to make sure that its not blocking ssh or any other service you might need. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Urgent: upgrading ipw3945 to 2.6.24
On Mon, 31 Mar 2008, Dr. Jennifer Nussbaum wrote: Hi, I am running Lenny. I usually accept all the upgrades im offered, so i upgraded my kernel recently. Now my Intel wireless card doesnt work, because i had been using the ipw3945-modules-2.6.22 package, and now im running kernel version 2.6.24. And i cant find the package for ipw2945 2.6.24 anywhere. I know im just being stupid, but where do i find this? Or is there some other way to get my wireless working again? Thanx! Jen have you tried to manually load the iwl3945 module? I beleive that the ipw driver has been replaced with the iwl. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: windows partition not usable
Hans-Gerhard Schrick wrote: Am Montag, den 24.03.2008, 22:45 + schrieb Hans-Gerhard Schrick: # /etc/fstab: static file system information. # # file system mount point type options dump pass proc/proc procdefaults0 0 /dev/hda4 / reiserfs notail 0 1 /dev/hda3 noneswapsw 0 0 /dev/hdc/media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/hda2 /mnt/winfat32 rw,noauto 0 0 Here is my /etc/fstab. I don't remember, whether I wrote the last line by myself. But with the program testdisk partition 2 is a FAT32 LBA. TestDisk 6.5, Data Recovery Utility, October 2006 Christophe GRENIER [EMAIL PROTECTED] http://www.cgsecurity.org Disk /dev/hda - 100 GB / 93 GiB - CHS 12161 255 63 Current partition structure: Partition StartEndSize in sectors 1 P Compaq Diagnostics 0 1 1 381 254 636136767 2 * FAT32 LBA 382 0 1 6239 254 63 94108770 [ACER] 3 P Linux Swap6240 0 1 6435 254 633148740 4 P Linux 6436 0 1 12160 254 63 91972125 Perhaps you know now, how I can bring my windows partition to work. I really only need it for dragon naturally speaking and cdex. I haven't tried grip yet. Hans I have changed my /etc/fstab to vfat and rmdir the directory win on mnt, so that it is only /mnt now, but I still can't find my windows partition under linux. # /etc/fstab: static file system information. # # file system mount point type options dump pass proc/proc procdefaults0 0 /dev/hda4 / reiserfs notail 0 1 /dev/hda3 noneswapsw 0 0 /dev/hdc/media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/hda2 /mnt/winvfat rw,noauto00 If you can help me further on, I would be very pleased. Thank you, Hans what errors are you getting when you run: sudo mount /mnt/win also, what is the output of fdisk -l -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: open-ssh keypair Auth
Rich Healey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, i've got a whole bunch of linux machines (mainly debian, with etch, testing, sid, and a frankenstein machine with mental pinning). Keypairs work fine except on the frankenstein machine, with the same keypair as works on my sid machine, my freeBSD machine, my gentoo box and etch desktop, it still asks for my password. Ideas? Thanks guys Rich Healey First things I would check would be file permissions on ~/.ssh (700) and ~/.ssh/authorized_keys (600) on the remote host and check /etc/ssh/sshd_config for PubkeyAuthentication yes -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: open-ssh keypair Auth
Rich Healey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff D wrote: Rich Healey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, i've got a whole bunch of linux machines (mainly debian, with etch, testing, sid, and a frankenstein machine with mental pinning). Keypairs work fine except on the frankenstein machine, with the same keypair as works on my sid machine, my freeBSD machine, my gentoo box and etch desktop, it still asks for my password. Ideas? Thanks guys Rich Healey First things I would check would be file permissions on ~/.ssh (700) and ~/.ssh/authorized_keys (600) on the remote host and check /etc/ssh/sshd_config for PubkeyAuthentication yes These are all ok. Default debian install normally alows this and i have not changed the config anything in /var/log/auth.log on the remote host? -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Merging all 30+ Debian CD's onto hard drive
Michael Paulsen wrote: Hi ya, Debian Etch now has over 30 CD's. I'm bored with CD swapping every time I want to install a new package. Is it possible to merge the CD's to my hard drive and direct APT or DPKG to use the hard drive instead of all the CD's when installing new packages? What would the be the easiest way to do this? Thank You, mtp5150 Is there a reason that you are not using net accessible repositories? -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: cron and command quote
T o n g wrote: On Tue, 18 Mar 2008 03:40:35 +0100, s. keeling wrote: I.e., somehow, the 'ps | grep' was able to find something in cron, whereas when executed directly under shell: $ ps -eaf | grep -E 'cdrecord.* -[dts]ao |cdrdao *write|growisofs.*speed=' $ /bin/sh -c ps -eaf | grep -E 'cdrecord.* -[dts]ao |cdrdao *write|growisofs.*speed=' I.e., if the same command are executed directly under shell the 'ps | grep' finds nothing. Anyone can give some explanation? Yes. you're stressing either the tool, or your knowledge of it. Put the relevant bits in a shell script and tell cron to execute that. Then you'll have full control. It won't be hampered by cron's (by design) limitations. Nope, that didn't work. Thanks for the suggestion though s. keeling. Here is what happened after I followed the above advice. Now the crontab reads: * * * * * rootis_burning || logger get executed. + set -x + ps -eaf + grep -E -[dts]ao |cdrdao *write|growisofs.*speed=' root 15306 15295 0 09:29 ?00:00:00 grep -E cdrecord.* -[dts]ao |cdrdao *write|growisofs.*speed= + exit 0 $ is_burning || echo not burning CD/DVD not burning CD/DVD I.e., having put the 'ps | grep' part into a shell script, the behavior is still the same. Does it has anything to do with busybox? Thanks || will not return true for you here, ever. you need to use or use an if statement. Also, if you are going to be using a shell script you have to make sure that it exits properly. I would recommend putting the whole thing into a shell script: if ps -eaf | grep -v grep | grep -E 'cdrecord.* -[dts]ao |cdrdao \ *write|growisofs.*speed=' /dev/null 21 ; then logger get executed fi -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: cron and command quote
Bob McGowan wrote: Jeff D wrote: || will not return true for you here, ever. you need to use or use an if statement. Also, if you are going to be using a shell script you have to make sure that it exits properly. I would recommend putting the whole thing into a shell script: if ps -eaf | grep -v grep | grep -E 'cdrecord.* -[dts]ao |cdrdao \ *write|growisofs.*speed=' /dev/null 21 ; then logger get executed fi Jeff, I'm confused, here. You say that using '||' will never work because it will not return true. I presume you mean the '||' used in the cron file? But, according to the the crontab man page, anything after the fifth time column, up to the end of the line, is run by a shell, either /bin/sh or whatever is in the SHELL variable of the crontab file. So, '||' is just as legal as '' and would do just as it does on the command line, assuming of course there is nothing found by the grep. I don't think the problem is the use of the OR or AND operators. Rather it's the presences or absence of the line for the grep itself being found in the ps output. But I may be missing something obvious? Both are legal, but is really what he is looking for: [EMAIL PROTECTED]:/tmp$ nocommand || echo ok bash: nocommand: command not found ok [EMAIL PROTECTED]:/tmp$ date|| echo ok Tue Mar 18 11:35:54 PDT 2008 [EMAIL PROTECTED]:/tmp$ date echo ok Tue Mar 18 11:35:59 PDT 2008 ok [EMAIL PROTECTED]:/tmp$ nocommand echo ok bash: nocommand: command not found so with || we get execute command1 OR command2, whic ever one executes first. I don't believe that this would be the desired result in this situation. with we have execute command1 if it returns true execute command2 -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Why Red Hat is the business distro
Kamaraju S Kusumanchi wrote: Paul Johnson wrote: On Monday 17 March 2008 07:29:17 am Ron Johnson wrote: http://www.washingtonpost.com/wp-dyn/content/article/2008/03/16/AR2008031602168.html Looks like the article is about Elliot Spitzer. Same here. I do not know how it is related to Red Hat. raju um, look at the graph at top ;) -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Difficulty setting up gcc packages.
Luca Renaud wrote: I set up gcc,gcc-4.1 using apt,which installed the necessary packages (I think) and now running the configure script of opensource software(not in Debian) I have this message: configure: error: C compiler cannot create executables,see config.log for more details. I cannot find any file with that name.Was gcc-4.1 automatically configured upon installation or do I need to do anything manually? If you have not already, install the build-essential package. that should get you set. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: What's the problem with this cron command
T o n g wrote: Hi, Please take a look at the following cron task: * * * * * rootps -eaf | grep -E 'cdrecord.* -[dts]ao |cdrdao *write|growisofs.*speed=' /dev/null || logger get executed. It bewilders me that it is not doing what I want. Here is the syslog when it is run: Mar 15 13:15:02 cxmr /USR/SBIN/CRON[22779]: (root) CMD (ps -eaf | grep -E 'cdrecord.* -[dts]ao |cdrdao *write|growisofs.*speed=' /dev/null || logger get executed.) Mar 15 13:15:02 cxmr /USR/SBIN/CRON[22780]: (root) CMD ... I.e., I want to execute a cron task if I'm not burning CD/DVD. But the actual command never get executed, even when I'm not burning CD/DVD. If I redo the command from the command line, it is fine: $ (ps -eaf | grep -E 'cdrecord.* -[dts]ao |cdrdao *write|growisofs.*speed=' /dev/null || logger get executed.) $ tail /var/log/syslog Mar 15 13:16:27 cxmr tong: get executed. So, what is the problem? PS. I'm sure the PATH is setup properly in my cron, so cron can find ps grep. Thanks I think you want to run something like this: ps -eaf | grep -v grep | grep -E 'cdrecord.* -[dts]ao |cdrdao *write|growisofs.*speed=' /dev/null 21 logger get executed you need to remove grep from the output or your grep will always return true and switch out the || for . -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Mistaken partition and format process
hce wrote: On 3/10/08, Douglas A. Tutty [EMAIL PROTECTED] wrote: On Sun, Mar 09, 2008 at 05:32:25PM +1100, hce wrote: I am partitioning and formating an external HDD. I made a stupid mistake, I called mkfs.ext3 /dev/md0 before calling fdisk /dev/md0. Now it seems that the process stopped at following last line Writing inode tables: 14/1864: /dev/md0 would be the first raid array. You have an external drive as part of a raid array? I'm not saying that its not useful, I'm just clarifying. Yes. Without running fdisk to create a partition, you've attempted to write a filesystem on the whole device. There shouldn't be a problem with this so I don't know what the problem is. The process was freezed at Writing inode tables: ..., I was afaid to cause an encosure and external HDD damange if I kill the process. I waited for 5 hours, the format process was still stuck at the last line, I have no choice but kill the process before going to sleep. I could not event kill the process, and could not event turn my PC off, the whole system was stuck. I had to physically switched the PC power off. It was a mess. Anyway, now I am restarting the fdisk and mkfs.ext3. I made only one partition for the whole 250 G, that the command mkfs.ext3 /dev/md0 once again stuck at last line of Writing inode tables: I can only thought of following problems: (a) The partition of 250 G is too big, the debian system or encolusre or HDD is not eable to do a format on 250 G. Is it correct? If so, what is the largest the parttion I can make in Debian 4.0 system? (b) The enclusure or HDD is not functional properly? (c) My command to partition and format is not correct? Thanks Doug. 250G partition should not be a problem at all with ext3, depending on architecture, ext3 can go as high as 32T. It seems as though you might have some hardware issues though. Have you tested each disk in your raid separately? -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Mistaken partition and format process
hce wrote: On 3/10/08, Jeff D [EMAIL PROTECTED] wrote: hce wrote: On 3/10/08, Douglas A. Tutty [EMAIL PROTECTED] wrote: On Sun, Mar 09, 2008 at 05:32:25PM +1100, hce wrote: I am partitioning and formating an external HDD. I made a stupid mistake, I called mkfs.ext3 /dev/md0 before calling fdisk /dev/md0. Now it seems that the process stopped at following last line Writing inode tables: 14/1864: /dev/md0 would be the first raid array. You have an external drive as part of a raid array? I'm not saying that its not useful, I'm just clarifying. Yes. Without running fdisk to create a partition, you've attempted to write a filesystem on the whole device. There shouldn't be a problem with this so I don't know what the problem is. The process was freezed at Writing inode tables: ..., I was afaid to cause an encosure and external HDD damange if I kill the process. I waited for 5 hours, the format process was still stuck at the last line, I have no choice but kill the process before going to sleep. I could not event kill the process, and could not event turn my PC off, the whole system was stuck. I had to physically switched the PC power off. It was a mess. Anyway, now I am restarting the fdisk and mkfs.ext3. I made only one partition for the whole 250 G, that the command mkfs.ext3 /dev/md0 once again stuck at last line of Writing inode tables: I can only thought of following problems: (a) The partition of 250 G is too big, the debian system or encolusre or HDD is not eable to do a format on 250 G. Is it correct? If so, what is the largest the parttion I can make in Debian 4.0 system? (b) The enclusure or HDD is not functional properly? (c) My command to partition and format is not correct? Thanks Doug. 250G partition should not be a problem at all with ext3, depending on architecture, ext3 can go as high as 32T. It seems as though you might have some hardware issues though. Have you tested each disk in your raid separately? No. Did you mean I should take the HDD from an enclusure and install it to a linux box for testing? So, is this just 1 disk? Or is this a raid device that you have multiple disks in? For some clarity, what kind of device are you trying to format? -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Brower cannot open some web pages in Debian
hce wrote: Hi, I have installed Debian 2.6.18-4-686 in my two computers, both have difficultis to run web brower to connect to some web pages. I thought it is a brower problem so I have tried different browsers, firefox, icewealsel and opera, etc. All encountered difficultis to run some web pages (could not download the web pages then timeout error). The worse thing is it cannot start my bank web page which I have no problem to open it in my work place. I guess the brower is a very basic tools in computer, how can I resolve this problem? Thank you. Kind Regards, Jim Check your dns settings in /etc/resolv.conf and verify that they are correct and that you can resolve dns names properly. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: rotating a rectangular image in Gimp
PETER EASTHOPE wrote: Folk, To rotate a rectangular image by 90 degrees in Gimp, I followed these steps. * Expand the canvas to a square containing the image, centered. * Rotate 90 degrees. * Contract the canvas to the boundary of the image. If I just rotate without changing the canvas, the image is cropped. Does anyone have a way to achieve the rotation in one step? As trivial a problem as this is, I didn't see it mentioned in the Web based manual. Thanks for any ideas, ... Peter E. http://carnot.yi.org/ Image - transform - rotate ? -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Tweaking /boot/grub/menu.lst to use 2GB RAM
andy wrote: Hi all I'm seeking some advice on the best option to enable my 2.6.22-3-686 kernel to utilise the 2Gb RAM properly. What is the best tweak to the /boot/grub/menu.lst file in order to enable my kernel to recognise and utilise the additional RAM? Looking through this file, the relevant section appears to be this commented part: ## should update-grub create memtest86 boot option ## e.g. memtest86=true ## memtest86=false # memtest86=true The instructions are to not uncomment the section, but just to edit. So would my edit be to add memtest86=true or memtest86=false or would I simply add the line to menu.lst between the two markers that reads: mem=2097152M #2GB RAM The latter is what I understand from the bootparam(7) man-pages, but I'd like to confirm that my understanding is accurate before I commit. Thanks You really shouldn't have to add anything to see 2G of ram. If you aren't I suspect that there is something else going on with your system. What does grep MemTotal /proc/meminfo tell you? At boot, is the BIOS seeing 2G? -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: IceWeasel and IceDove or other OS?
Sunnz wrote: I never tried, but I suppose there should be no difficulty in grabbing the Debian source packages and compiling them in Ubuntu. Actually there already exist a package for Ubuntu, just click and install. Yes I am aware that it is just a rebrand of the Mozilla Firefox, I got my reasons for it... party because I like to learn about porting software and since Mozilla Firefox is already ported on a lot of OS I can probably can just look up how others did it and stuff... and of course there are number of other things that I wanted to play with that makes IceWeasel a bit more suited for what I wanted to do. So I am wondering where can I download the source for IceWeasel? Thanks. have you tried apt-get source iceweasel ? That should get the sources for you. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: SSH (what's this!!!)
Márcio Luciano Donada wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Today in the morning when I give a verified in the processes of a given server noticed the following procedures for ssh, I found a little strange as: root 21274 1.0 0.0 9856 3384 ?Ss 09:14 0:00 sshd: unknown [priv] root 21275 1.0 0.0 9860 3412 ?Ss 09:14 0:00 sshd: unknown [priv] root 21276 1.0 0.0 9860 3412 ?Ss 09:14 0:00 sshd: unknown [priv] sshd 21277 0.0 0.0 7124 1360 ?S09:14 0:00 sshd: unknown [net] sshd 21278 0.0 0.0 7128 1364 ?S09:14 0:00 sshd: unknown [net] sshd 21281 0.0 0.0 7128 1364 ?S09:14 0:00 sshd: unknown [net] Some idea? what does lsof -i:22 give you? could be a ssh scanner, or something leaving open ssh connections. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: curious entries in apache2 log
Vikki Roemer wrote: On Wed, Feb 27, 2008 at 5:20 PM, Richard Lyons [EMAIL PROTECTED] wrote: Can anyone enlighten me what is going on here? ::1 - - [27/Feb/2008:14:05:21 +] GET / 400 1063 - - ::1 - - [27/Feb/2008:14:05:25 +] GET / 400 1063 - - ::1 - - [27/Feb/2008:14:06:02 +] GET / 400 1063 - - I see blocks of these in the apache2 access.log. IIRC, it's either a worm/virus or something else automated. I used to see them all the time when I had my server. These are probably just apache keeping track of itself. Nothing really to worry about. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Unable to su as a user, I get: Cannot execute /bin/bash: Permission denied
Nuno Magalhães wrote: Cannot execute /bin/bash: Permission denied Er... have you by any chance tried checking out the permissions for that file? It'll be executed by the user, not root. Try 766. That should probably be 755 , not 766, you really dont want /bin/bash writeable by anyone but root. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to sort files in a directory?
Rodolfo Medina wrote: Hi. I want to sort all files with, say, .txt extension that are in the directory `/path/to/dir' and all its subdirectories, and I want to perform this search starting from the directory itself: how can I do that? I didn't manage with `find'. Thanks for any suggestion Rodolfo e.g.: suppose that in my home directory there are dir1 and dir2 and the following files: ~/file ~/dir1/file1 ~/dir/file2 I want the result of my search to be: file file1 file2 how about something like this: find /path/to/dir* -maxdepth 2 -type f -name *.txt -print | rev | awk -F/ '{print $1}' | rev -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: switching to DHCP in a clean manner ...
Glenn Becker wrote: Hi all - I just moved from the NY metro area to the Boston metro area, and in the process changed ISPs. My service is now significantly faster and cheaper, but my account now assigns IPs dynamically -- previously, I'd had a static IP. I have the /option/ with the new provider to get a static IP but I decided to try the DHCP thing since the static is an extra charge ... all I have done is add the line exec dhclient to /etc/rc.local. Now, this _works_, but I don't know that it is the best solution and I suspect I may have config files in there with the old IP/gate/and so forth numbers in them. It has been so long since I set that networking up that I've kind of forgotten the Best Way to Do It ... and the best way to clean it up and switch over to something else. Can someone point me toward a good doc to read on this, or let me know if I am going about this in an absurdly inelegant way. Like I say, it works but I don't know that it is as good as it could be. Maybe I'm worrying it too much. Thanks, GB Probably the best thing to do is edit /etc/network/interfaces to reflect your new network settings. You will probably want to have something like this: auto eth0 iface eth0 inet dhcp where eth0 is your network device, if you have one that has static in the line, comment that out and any other lines, such as address, network or gateway. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Cannot remove thttpd
Peter Robinson wrote: Hi, I would like to remove the package thttpd but get the following error message. I do not see the process running (with ps aux for instance). How can I get rid of it. Here is the message I get from aptitude: Preconfiguring packages ... (Reading database ... 276185 files and directories currently installed.) Removing thttpd ... Stopping web server: invoke-rc.d: initscript thttpd, action stop failed. dpkg: error processing thttpd (--remove): subprocess pre-removal script returned error exit status 1 Starting web server: thttpd. Errors were encountered while processing: thttpd thanks, Peter Do you have apache or some other web server install? If so, you might want to try and stop those, then start thttpd, then remove it and see if that fixes the issue. hth, jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Why can't I scp inside my own router??
Beartooth Sciurivore wrote: I have a new install of 4.0 on my laptop and want to scp the configuration for Alpine from my main machine to it. I tried an scp -r from the laptop; failed on a refusal by the laptop. Tried it from the main machine. Same result. Finally tried going into the laptop with ssh from the main (which succeeded), and doing scp back. Even that failed, for the same reason. Here's the latest error message, using a gnome terminal on the main pc, after doing ssh into the laptop : [EMAIL PROTECTED]:~$ scp -r 192.168.x.y:home/btth/.pinerc 192.168.x.z:/ home/btth [EMAIL PROTECTED]'s password: Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password). lost connection [EMAIL PROTECTED]:~$ The prompt is that of the laptop, whose name reflects the fact I am just starting with Debian. As you see, the ssh session is still intact. from your laptop: scp 192.168.x.y:/home/btth/.pinrc ~/ you dont need to put both IP addresses in there, just the remote one. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: php and apache?
Zach wrote: 2008/2/19, Sergio [EMAIL PROTECTED]: Hello, do you have a line like this in your config files: AddType application/x-httpd-php .php .phtml .php3 I think it is in the file: /etc/apache2/mods-enabled/php5.conf That should do the trick. Hello Sergio, Yes everything seems fine yet it still doesn't work - very perplexing. Here is what I know so far: When I try to load one locally such as /var/www/phpsysinfo/index.php it opens a dialog box asking me whether I'd like to download it or open with an editor, it never renders the PHP script. I also tried remotely by loading http://www.club.cc.cmu.edu/~chaos/foo.php in my browser and it just prints out the file contents. I verified that apache2 has the php module loaded: netrek:~# a2enmod php5 This module is already enabled! I also confirmed that in /etc/apache2/mods-available/dir.conf DirectoryIndex has an entry for index.php: IfModule mod_dir.c DirectoryIndex index.html index.cgi index.pl index.php index.xhtml ind ex.htm /IfModule And I also confirmed that in /etc/apache2/mods-available/php5.conf it has as apropriate AddType entry: IfModule mod_php5.c AddType application/x-httpd-php .php .phtml .php3 AddType application/x-httpd-php-source .phps /IfModule Also I confirmed /etc/apache2/mods-enabled/php5.conf has: IfModule mod_php5.c AddType application/x-httpd-php .php .phtml .php3 AddType application/x-httpd-php-source .phps /IfModule And /etc/apache2/mods-enabled/dir.conf has: IfModule mod_dir.c DirectoryIndex index.html index.cgi index.pl index.php index.xhtml ind ex.htm /IfModule Here are the packages I have installed: ii libapache2-mod-php5 5.2.4-2+b1 server-side, HTML-embedded scripting languag ii php55.2.4-2 server-side, HTML-embedded scripting languag ii php5-cgi5.2.4-2+b1 server-side, HTML-embedded scripting languag ii php5-cli5.2.4-2+b1 command-line interpreter for the php5 script ii php5-common 5.2.4-2+b1 Common files for packages built from the php ii apache2 2.2.6-3 Next generation, scalable, extendable web se ii apache2-common 2.0.55-4 next generation, scalable, extendable web se ii apache2-mpm-prefork 2.2.6-3 Traditional model for Apache HTTPD ii apache2-utils 2.2.6-3 utility programs for webservers ii apache2.2-common2.2.6-3 Next generation, scalable, extendable web se ii iceweasel 2.0.0.11-1 lightweight web browser based on Mozilla Must I change /etc/apache2/apache2.conf somehow to get this working? Running Debian lenny. So apache is passing the php files as if they were just normal text files or something. They are never passed off to the php module and executed for some reason. Any help would be greatly appreciated. As far as I can tell it *should* work but doesn't obviously. Regards, Zach What does 'apache2ctl -M' tell you? That should tell you what modules apache is loading. Have you restarted apache? Thx jeff -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: New User-Network Problem Still
Mitch Crawford wrote: OK I've reinstalled Debian 4.0r2, removed network-manager, dhcdbd, and the libnm-glib0 and libnm-util0 stuff. I have a static IP 10.0.0.6 255.255.255.0 There are NO proxies running anywhere that i'm aware of. I have 3 other machines connected to this 4 port router all which can connect ok have no issues I'm aware of. I can ping local machines by name no. I still can't connect to www.google.co.uk in the epiphany web browser unless i ping the address first then it can connectm but seems to forget it shortly afterwards ? /etc/resolv.conf nameserver 10,.0.0.254 // router nameserver 195.92.195.94 // dns server listed in router nameserver 195.92.195.95 // nameserver 194.152.64.68 // other dns server of ISP nameserver 194.152.64.35 // domain local.net search freeserve.co.uk search freeserve.net /etc/network/interfaces auto lo iface lo inet loopback iface eth0 inet static address 10.0.0.6 netmask 255.255.255.0 gateway 10.0.0.254 auto eth0 #ip address show dev eth0 2: eth0; BROADCAST, MULTICATS,UP1000mtu1500 qdisc pfifo_fast qlen 1000 link/ether 00:e0:ac:69:13:15 brd ff:ff:ff:ff:ff:ff inet 10.0.0.7/24 brd 10.0.0.255 scope global eth0 inet6 fe80::2e00:4cff:fe69:1315/64 scope link valid_lft forever preferred_lft forever #ip rourte show 10.0.0.6/24 dev eth0 proto kernel scope link src 10.0.0.6 default via 10.0.0.254 dev eth0 #aptitude update still wants to connect to ftp.debian.org (1.0.0.0)] Any other help or suggestions please. This to me suggests that you have a dns related issue. I'd check to make sure you have no entries in /etc/hosts for 1.0.0.0 , then you check your nameservers each by: host ftp.debian.org 10.0.0.254 , then replace the 10.0.0.254 with each dns server you have listed in /etc/resolv.conf That will at least tell you if your dns servers are working properly. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: New User- Network Problem
Mitch Crawford wrote: On 15 Feb, John Hasler [EMAIL PROTECTED] wrote: sudo apt-get remove --purge zeroconf package zeroconf is not installed, so not removed. On 15 Feb, Kent West [EMAIL PROTECTED] wrote: Just try aptitude purge zeroconf. the following packages have been kept back: linux-image-2.6.-486 0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded. ? what do I try know now ? If you aren't using ipv6 you can disable it by adding : alias ipv6 off to /etc/modprobe.d/aliases or add blacklist ipv6 to /etc/modprobe.d/blacklist then your system won't load the ipv6 module at next boot. whats the out put of: ip address show dev eth0 ip route show or if you dont have the iproute2 package installed ifconfig eth0 and netstat -nr -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: New User- Network Problem
Mitch Crawford wrote: OK I've tried setting up the dhcp server and am still having similar results so I've gone back to fixed IP nos. I can ping local machines by name number I can ping www.debian.org using the web browser epiphany i can't connect using the IP no for debian.org or by name. the browser iceweasel has just connected to the same ip no as debian.org (194.109.137.218) but connected to apache on this machine (comes up with the It Works! page. so, you can ping www.debian.org by IP and name? But you can't browse to it via web browser? But you can browse your local apache server? Correct? Do you have some firewall rules set either on your debian box or on your router that might be interfering? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: New User- Network Problem
Mitch Crawford wrote: ok i've rebooted and now have: ip route show 10.0.0.0/24 dev eth0 protp kernel scope link src 10.0.0.6 default via 10.0.0.254 dev eth0 or if you dont have the iproute2 package installed ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:E0:4C:69:13:15 inet addr:10.0.0.6 Bcast 10.0.0.255 Mask 255.255.255.0 inet6 addr fe80::2e0:4cff:fe69:1315/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric 1 Rx packets 5481 errors:0 dropped 0 overruns:0 frame:0 Tx packets 3779 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txquelen:1000 Rx bytes 448775 (4.2 Mib) Tx bytes 371258 (362.5 Kib) interrupt:50 Base addsress :0x8c00 and netstat -nr Kernel ip routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.0.0.0 0.0.0.0 255.255.255.0U0 0 0 eth0 0.0.0.010.0.0.254 0.0.0.0UG0 0 0 eth0 So, that all looks good, is everything working now? ping? browsing web? aptitude update aptitude upgrade ? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: New User- Network Problem
Mitch Crawford wrote: On 15 Feb, Jeff D [EMAIL PROTECTED] wrote: So, that all looks good, is everything working now? No ping? seems to be fine names IP nos. browsing web? I canconnect to www.debian.org and www.google.co.uk serching google for debian comes up with a list, i can select connect to a link www.debian.org but NOT to any others such as en.wikipedia.org planet.debian.org aptitude update connecting to ftp.uk.debian.org ( 1.0.0.0) ( connecting to security.debian.org ( 1.0.0.0 ) and then hangs aptitude upgrade ? the following packages have been kept back linux-image-2.6-486 0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded. Well, it looks like you might have a dns issue now. I would suggest you verify your dns settings in /etc/resolv.conf. It should look something like this: search your.domain nameserver 1.3.5.7 nameserver 2.4.6.8 of course, these will be dependent on your network/isp settings. You could check these against one of your other systems that are up and running. -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Apache2 config errors on previously good setup
gary turner wrote: Mike Bird wrote: On Thu February 14 2008 10:31:10 gary turner wrote: koko:/home/gt# dpkg -s libapache2-mod-php5 Package: libapache2-mod-php5 Status: install ok installed Please post that to the list again but this time with all the headers. You can skip the description if you like. We still don't know which version you're running. Earlier today, I tired a reinstall koko:/home/gt# apt-get install --reinstall libapache2-mod-php5 Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0B/2552kB of archives. After this operation, 0B of additional disk space will be used. Do you want to continue [Y/n]? (Reading database ... 123522 files and directories currently installed.) Preparing to replace libapache2-mod-php5 5.2.5-2 (using .../libapache2-mod-php5_5.2.5-2_i386.deb) ... Unpacking replacement libapache2-mod-php5 ... Setting up libapache2-mod-php5 (5.2.5-2) ... Your apache2 configuration is broken, so we're not restarting it for you. koko:/home/gt# exit What else shall I do? gary run apache2ctl -t it should tell you what it thinks is wrong with your apache config -- 8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: New User- Network Problem
Paul Cartwright wrote: On Thu February 14 2008, Douglas A. Tutty wrote: My guess is that in your particular installation, there is a conflict of boot dependancies, e.g. networking can't start until a module is loaded but that happens in a later init script. This manual booting procedure will track this down. Then you can make a temporary fix (even if its adding a symlink to start networking again at a later point in the boot), and report the bug. this is what I think also.. once I figure out when networking should start, I need to rename the networking script in /etc/rcS.d to a... larger number? right now there are these 3 scripts: S38resolvconf S39ifupdown S40networking wouldn't you think ifupdown would come after networking? No, you would need to bring up your interfaces, or at least check to see if they are there before you set up your networking. But, I would leave the numbering of the init scripts as is, having missing or mis-numbered files could have adverse effects to future upgrades. Could you paste in your /etc/networking/interfaces file? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Most recent linux-image-2.6.18-6-686 fails to install debian-user@lists.debian.org,
Steve Mazurek wrote: I have been trying to install on etch the most recent linux-image-2.6.18-6-686 on an IBM Thinkpad T23 with a Pentium 3 and on a Gateway desktop also running a Pentium 3 using aptitude update aptitude upgrade. Every time I do this, I get the error message: dpkg: error processing /var/cache/apt/archives/linux-image-2.6.8-6-686_2.6.18.dfsg.1-1-18etch1_i386.deb (--unpack): failed in buffer_write (fd) (9, ret=-1): backend dpkg-deb during './lib/modules/2.6.18-6-686/kernel/drivers/media/dvb/dvb-core.ko' : No space left on device I am not sure what this means (my hlinux books are not available) nor do I know what to do about this. I've found nothing googling the problem. I switched to etch after it became stable and have had no trouble upgrading or installing using aptitude. I'd appreciate any information you could give me. Thanks. Steve Mazurek Looks like your disk is out of space.. maybe try a 'aptitude autoclean' to remove old deb files and free up some space . -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: modsecurity
Freddy Freeloader wrote: Schiz0 wrote: On Feb 13, 2008 2:13 PM, Freddy Freeloader [EMAIL PROTECTED] wrote: Hi All, Can anyone tell me why the modsecurity2_module is not in the Debian repositories? I understand that parts of it might not be GPL'ed, but why can't it be carried in the non-free repositories if that's the problem? Debian carries things such as fully proprietary drivers in non-free, so why the problem with modsecurity? IMHO this is a very useful package. If you're using etch, you can put this line in your /etc/apt/sources.list deb http://etc.inittab.org/~agi/debian/libapache-mod-security2/ etch/ It actually has a link to that site on the official mod_security website. Thanks. I was unaware of that link. I will make use of it. Do you know why modsecurity isn't hosted directly? here's a bug report on it: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=352344 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Serious local root exploit in linux kernel
Raj Kiran Grandhi wrote: Please see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464945 https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/190587 https://bugzilla.redhat.com/show_bug.cgi?id=432229 A local root exploit has been discovered in the linux kernel yesterday. Virtually all the stock kernels provided by several distributions in the past year appear to be vulnerable. I am still hinting for a temporary fix, but till that I guess I'll have to disable login access to all but a handful of absolutely trusted users. I have attached a proof-of-concept source code that can be found in the bug reports. Too scary! On kernels I compile myself, I just applied the patch from here: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=712a30e63c8066ed84385b12edbfb804f49cbc44 recompiled my kernel, and exploit no longer works. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Shell script function problems
phillinux wrote: At 11:33 PM 2/8/2008, you wrote: phillinux [EMAIL PROTECTED]: I'm trying to write a bash shell script to create user accounts that calls 2 functions. I can't call these functions from the script or Why? the command line. Why? The set command seems to show the loaded script in the shell (loaded with . FunctionName at command line) with other environmental variables. ALSO: The type command does not recognize the function. [Eyes roll up in head.] What!?! The script and functions work on my laptop running Fedora (with one small glitch). Is there something I can do to my Debian server to get functions recognized?? This is not rocket science. Once they're sourced [but you can't source them?!?], they're callable. They're in the environment ready to be used. How is it you're having a problem with this? What is it, really, you're trying to do? Why am creati ng a script to create users??? Answer: I'm a teacher managing the school server. Teachers give edited MS excel files of students to be added to the system. The script reads the class lists and loops through account creation Why a function??? Answer: I was told only a function could be called recursively. The function is called recursively to append a number to the user name when duplicate user names are found on the system. What do you mean by sourced?? Is that loading them into the environment?? That's what I'm talking about. on my laptop it works. on the server it doesn't I don't understand why. how do you source a function?? You can source files either by: . /file/to/be/sourced or source /file/to/be/sourced either method should work just fine. If this script is the only one that will be using these functions, why not just include them into the script itself? But whats failing in your script? There are some differences in how debian and fedora add users. Have you ran your script with the -x to debug it? That may help finding out where your script is failing. Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Cannot authenticate with DSA-pubkey in Etch
Christopher Bianchi wrote: Emh, sorry, but i didn't past the config and the errors because I thought that attach to the mail was better. Anyway, the default sshd_config is NOT right for the authentication with pubkey, because the Password Authentication is set to 'yes' in default config. I changed only: PubkeyAuthentication yes ChallengeResponseAuthentication no PasswordAuthentication no The permissions are ok. And i've copied the id_dsa.pub in this way: # scp ~/.ssh/id_dsa.pub \ [EMAIL PROTECTED]:~/.ssh/authorized_keys Jonathan Wilson, you're to nervous. Calm. Life is good. Open a txt file ? == 2 seconds. To read 10-11 lines ? 20 seconds. Kisses. Any help would be appreciate. You can still have password athentication and key authentication at the same time. In the future, an easier way to copy keys is to use ssh-copy-id, that will copy over your key file to the remote server and make sure that proper permissions are set. Permissions on your ~/.ssh/authorized_keys file should be 600. If you look at the error log on the *server* you will see what error is, not the client. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Shell script function problems
phillinux wrote: I'm trying to write a bash shell script to create user accounts that calls 2 functions. I can't call these functions from the script or the command line. The set command seems to show the loaded script in the shell (loaded with . FunctionName at command line) with other environmental variables. ALSO: The type command does not recognize the function. The script and functions work on my laptop running Fedora (with one small glitch). Is there something I can do to my Debian server to get functions recognized?? Are these functions by chance fedora specific? Or are they built into your shell script? How are you loading them into your script? Thx, Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to install sun java plugin for iceweasel in Debian?
Amogh Hooshdar wrote: How can I install the Sun Java plugin for Icewesel in Debian Lenny? I tried copying the libjavaplugin_oji.so as shown below. cp /opt/jdk1.6.0_01/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so ~/.mozilla/plugins/ cp /opt/jdk1.6.0_01/jre/plugin/i386/ns7/libjavaplugin_oji.so ~/.mozilla/plugins/ But both attempts did not work. Please help. java 6 is available via non-free, make sure you have non-free in your sources list then , apt-get update ; apt-get install sun-java6-plugin and that should get you all set. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: PAM failure?
Craig Hurley wrote: Hello, When looking at /var/log/auth.log PAM seems to be logging a large amount. For example, every 30 minutes cron runs a script as root. It appears to me that each time the script is run, PAM adds 4 entries to auth.log, recording a the session open and close along with 2 other failures. Here's a snip from auth.log: Jan 3 13:30:01 hostname CRON[31753]: (pam_unix) session opened for user root by (uid=0) Jan 3 13:30:01 hostname pam_limits[31753]: setrlimit limit #11 to soft=-1, hard=-1 failed: Operation not permitted; uid=0 euid=0 Jan 3 13:30:01 hostname pam_limits[31753]: setrlimit limit #12 to soft=-1, hard=-1 failed: Operation not permitted; uid=0 euid=0 Jan 3 13:30:01 hostname CRON[31753]: (pam_unix) session closed for user root Does anyone know why PAM fails twice every time a script is run from cron? I'm running Debian 4.0. Many thanks, Craig. do you have anything specific listed in: /etc/security/limits.conf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: debian 3.1 - how make it to support 2G memory
ann kok wrote: Hi all I want to increase the memory from 1G to 2G debian 3.1 - how make it to support 2G memory thank you Do you have 2G of ram installed? What kernel do you have installed? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: how to run scripts uniquely
cs wrote: I thought I'd worked out how to ensure only 1 instance of a shell script was running (using grep and wc) but I now see that sometimes the script name appears twice in the list of processes - any ideas? eg (apols for wrapping) when running /home/michael/bin/backup-rsync-VERI we get the below where it appears twice in the list of processes... ++ mktemp /tmp/chk_procs_XXX + TEMPFILE=/tmp/chk_procs_220 + trap 'date|mail -s $0 error [EMAIL PROTECTED];echo Error - aborting; exit' ERR + ps -elf + grep /home/michael/bin/backup-rsync-VERI + grep -v grep + tee /tmp/chk_procs_220 4 R michael 20219 20218 0 83 0 - 1020 - 18:18 ? 00:00:00 /bin/bash -x /home/michael/bin/backup-rsync-VERI 1 R michael 20223 20219 0 83 0 - 1020 - 18:18 ? 00:00:00 /bin/bash -x /home/michael/bin/backup-rsync-VERI ++ cat /tmp/chk_procs_220 ++ wc -l + [[ 2 -gt 1 ]] + date ++ hostname -s + mail -s 'ratty /home/michael/bin/backup-rsync-VERI - already running' [EMAIL PROTECTED] + rm /tmp/chk_procs_220 + exit -1 This is what I do in situations like this: #!/bin/sh #get pid PID=$$ #check to see if a previous process is running if [ -e /var/run/sync.check ] ; then if ps -p `cat /var/run/sync.check` /dev/null 21 ; then echo Sync process already running, exiting exit 1 fi fi #write out pid echo $PID /var/run/sync.check #do stuff #end of script, remove pid file rm -f /var/run/sync.check -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Filesize limit exceeded on ext3
André Wendt wrote: Hi, I'm running a benchmark program on Lenny that writes into a file and repeatedly exits once the filesize reaches 2,099,204 bytes. This is on ext3. $ ulimit -f unlimited $ uname -a Linux think 2.6.22-2-686 #1 SMP Fri Aug 31 00:24:01 UTC 2007 i686 GNU/Linux This doesn't seem to be a problem for other programs. I have a VirtualBox snapshot as large as 2,587,808 bytes. Any hints as to what's going on? Please CC me, I'm not on the list. Thanks, André What testing suite are you using for this? Have you tried to use dd to create a file larger than this? I'm going to guess what you are seeing here is file size limit of the application you are using rather than ext3. Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Apache2 Still Dying
Raquel wrote: On Wed, 07 Nov 2007 23:03:59 -0800 Jeff D [EMAIL PROTECTED] wrote: Raquel wrote: On Wed, 07 Nov 2007 21:31:28 -0800 Jeff D [EMAIL PROTECTED] wrote: Raquel wrote: I ran mtest86+ and the memory checked out ... no errors. I ran strace /usr/sbin/apache2 and can see no errors. I have googled until my eyes are red and sore. Apache2 is still dying (stops delivering pages) after anywhere from 15 minutes to 5 hours. I cannot find a reason in any of the server logs, messages or syslog. Any ideas? So, does apache keep listening and not serving pages, or does it completely die? As far as I can tell, Apache keeps listening but stops serving pages. Also, are all the modules you have loaded completely nesesarry? If so, I'd go ahead and disable those. Have you done any configuration tweaking to anything that might be causing this? Are you logging php? php errors are being logged. anything telling in the php log? When it stops, whats the output of lsof -i:80 ? Any firewalls that might be causing interference? Jeff missy:/etc/init.d# lsof -i:80 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME apache2 6571 root4u IPv6 17945 TCP *:www (LISTEN) apache2 8281 www-data4u IPv6 17945 TCP *:www (LISTEN) apache2 8312 www-data4u IPv6 17945 TCP *:www (LISTEN) apache2 8361 www-data4u IPv6 17945 TCP *:www (LISTEN) apache2 8362 www-data4u IPv6 17945 TCP *:www (LISTEN) apache2 8385 www-data4u IPv6 17945 TCP *:www (LISTEN) apache2 8387 www-data4u IPv6 17945 TCP *:www (LISTEN) apache2 8389 www-data4u IPv6 17945 TCP *:www (LISTEN) Ok, so apache is still alive, just not serving up pages? Is this happening with just the wordpress site? do you have any static html files you can test with? or perhaps put up static test html file? Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Apache2 Still Dying
Raquel wrote: I ran mtest86+ and the memory checked out ... no errors. I ran strace /usr/sbin/apache2 and can see no errors. I have googled until my eyes are red and sore. Apache2 is still dying (stops delivering pages) after anywhere from 15 minutes to 5 hours. I cannot find a reason in any of the server logs, messages or syslog. Any ideas? So, does apache keep listening and not serving pages, or does it completely die? Also, are all the modules you have loaded completely nesesarry? If so, I'd go ahead and disable those. Have you done any configuration tweaking to anything that might be causing this? Are you logging php? Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Apache2 Still Dying
Raquel wrote: On Wed, 07 Nov 2007 21:31:28 -0800 Jeff D [EMAIL PROTECTED] wrote: Raquel wrote: I ran mtest86+ and the memory checked out ... no errors. I ran strace /usr/sbin/apache2 and can see no errors. I have googled until my eyes are red and sore. Apache2 is still dying (stops delivering pages) after anywhere from 15 minutes to 5 hours. I cannot find a reason in any of the server logs, messages or syslog. Any ideas? So, does apache keep listening and not serving pages, or does it completely die? As far as I can tell, Apache keeps listening but stops serving pages. Also, are all the modules you have loaded completely nesesarry? If so, I'd go ahead and disable those. Have you done any configuration tweaking to anything that might be causing this? Are you logging php? alias.load authz_groupfile cgi include php5.conf auth_basic authz_host dir info php5 authn_file authz_user dir mime rewrite auth_pam autoindex env negotiation setenvif authz_default cache expires perl status php errors are being logged. anything telling in the php log? When it stops, whats the output of lsof -i:80 ? Any firewalls that might be causing interference? Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: mySQL and 'testing'
ieb wrote: Sorry if this repeats a previous query I did scan the list of topics but couldn't spot this. I am running the 'testing' version. I came back from 3 weeks offline and simply let synaptic gather all the updates and apply them (OK.. yes , that was probably a bit dumb... but too late now)... Everything seemed to go ok until I went to log in to mySQL. and it cant find the socket. I tried to update the files using the mysql-client and mysql-server, and although the client ran OK the server complains about an unspecified dependency error and a corrupt server file. Has anyone else come across this, or should I start panicking now? Thanks Ian Are the errors with the server reported through synaptic or when you try to start the server? Have you tried to resolve the dependancies with synaptic? And could you also post the error messages you get? Thx, Jeff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]