Search Results: "oku"

9 October 2006

Wouter Verhelst: On Firefo^WIceWeasel

Recently there's been some awe in the Free Software and general Linux world from several people over the fact that Debian is dropping Firefox from its distribution, and planning to replace it with GNU IceWeasel. Personally, I don't see what else the Firefox maintainers should do. While I can understand the Mozilla people's concern over modified (read: possibly trojaned) versions of Firefox and that they need to protect their trademark against abuse, I can't believe that there can't be a better way to handle this than to require review of every patch in the Debian package. After all, packaging a browser requires more than just writing a script that gets it compiled and that gets the compiled stuff in the .deb archive. There is also branding to be done—the Debian firefox package contains a search engine for Debian packages. I doubt this is part of the original firefox source, and there are more things. Additionally, sometimes you may have to change stuff so that it works with the specific quirks of the Debian distribution, or other things. Finally, in accordance with its published policy on the matter, the Debian distribution also wants to be able to distribute security-patched versions of Firefox after Debian Stable releases; and we want to do that not just by throwing in the new version of Firefox, but by using the older version, patching it so that the security bug (and only the security bug) gets fixed, and releasing that. We can't use the official mozilla.org/mozilla.com source for that, since they cease security support after half a year or so (which is, by far, not enough for Debian); and the discussion in the bug report on the matter does not inspire confidence that we would be allowed to release a security-fixed version of firefox and still call it firefox. The alternative would be to forget about our own security releases and ceding to the braindead mozilla.org/mozilla.com security policy, but I have a pretty public opinion on that one. So that leaves us with not adhering to their braindead trademark policy, which requires us to choose another name. And as it happens, there already appears to be a piece of software that not only is a forked Firefox, it also drops non-free software from the release, something which Debian has to do anyway. So why not use that instead? BTW, yes, I did call their trademark policy braindead. No, IANAL. But you don't have to be a lawyer to see that doing something like the way Debian manages its trademark—you're not allowed to call it "official" unless your product is bit-by-bit the same thing as what Debian produces—is sane enough without being a nuisance like the firefox trademark policy.

5 October 2006

NOKUBI Takatsugu: i18n discussion with Warren Togami

Now Warren Togami, the founder of the Fedora Project, is in Japan. And today I and some Japanese FLOSS developers (includes Kenshi Muto) are going to discuss with him. The last year, he has come to Japan and already discussed about i18n with many people, so today's addendants are a few people. Anyway, I hope the discussion will improve i18n environment in the FLOSS world.

27 September 2006

Wouter Verhelst: Infodrom quotes

Nothing like reading quotes by yourself out of contet. I think I prefer this one:
And "88" is based on 2 eights, which is 2 more than 6. This means that there are 3 numbers 2 in the number 88; with 8 being 2 more than 6, the number is actually 666, which is the number of the devil. Therefore, they *must* be associated with the Devil.
I can't fully remember what the context for this one was (nor can I for most of the other quotes on that page), and google doesn't help. I do have a faint idea that it involved some case where I thought someone else was basing an argument on something ridiculous, and that I wanted to show them that; but I'm not sure what it exactly was. Anyone else have an idea here?

24 September 2006

Brett Parker: In other news...

It's been an odd week at work, and I've started doing rather more Sudoku puzzles than most sane people - I've found that currently the guardian Sudoku puzzle takes me the longest to get through, though I'm slowly getting better at it... I might actually start being able to see the patterns more quickly soon! Anyways - in other news JD resigned on Tuesday, so we've only got him at work for another few weeks before he disappears in to the ether (well, not so much in to the ether, but I won't be working with him anymore, eeeeep - this means more work for me!), which also prompted a pay rise (hooray!). Now just to keep up with the good work! Oh, and on Monday we won the Hop Poles pub quiz! Yay! Where in this case "we" is me, a guy that I'd met in the pub a couple of Mondays before and some of his friends. Was much fun! Tomorrow being Monday again I'll be back in the pub for the quiz and see who turns up this time :)

Junichi Uekawa: Summarizing this month's Tokyo Debian meeting.

Last weekend was another of Tokyo Debian meeting. It is a monthly meeting held in Tokyo, Japan.12 people attended.Kobayashi, akedo, Sawada, Komuro, Kitahara, Eto, Nokubi, Takasugi, Maeda, Mitsuka, Iwamatsu, and I.Report follows:

23 September 2006

Steve McIntyre: Tenerife conference (continued)

I already started describing my time at JSLULL, the Free Software conference at La Laguna in Tenerife. It's been a few days since, and I'm now back at home and ready to summarise the rest. I should apologise up front that my memory of people's names is awful... :-( The slides from the talk are on my website now, in case anybody is interested, and my photos are up too. The original plan for Tuesday afternoon was to run a small Bug Squashing Party in one of the computer labs at ULL, but unfortunately this week the main internet link from ULL to Madrid had failed. It's a little difficult to work on bugs when you can't even get to the list, so we changed tack. Instead, I led a small workshop for interested people, demonstrating how to create Debian packages. About 8 people got involved, taking turns to drive the keyboard, ask and answer questions. People were keen to learn; there is a very active group in the University running the labs and other machines, and they were hoping to create packages of some of their own software to make maintenance and installation easier. I'm glad to help! ULL We went out to one of the beaches near Santa Cruz that evening, then headed back into the city later on for drinks and dinner. We had a very animated conversation about the use of Free Software in schools and local government, with the Spanish people and Knut Yrvin from Skolelinux trading interesting stories about their experiences. On Wednesday morning, a group of us rented a car and headed inland to visit El Teide, the huge volcano that dominates the Tenerife skyline. It's the first time I've ever looked down on clouds from the passenger seat of a car! We headed almost to the top, and visited the desolate plain just down from the last summit. It looked almost like a lunar landscape, untouched by water... Clouds! Later on that day, I headed back to the hotel in Santa Cruz and then on to the airport to catch my return flight to England. Carlos (again) had given up his time to chauffeur me around, and we chatting about all sorts of things while he drove south. Unfortunately, the flight was delayed by several hours because of mechanical problems. I would have been happy enough to have simply waited at the airport, but Carlos was having none of it. :-) He insisted we should go and have dinner together; we went for drinks at a beach bar, then up to his home village for a lovely meal. Eventually I caught my plane at 2:30am, and got back to England just in time to catch the rush hour traffic on the M25. Me and Carlos I spent a lovely couple of days in Tenerife, spending time and making friends with the very enthusiastic local Free Software hackers. I'd love to go back again soon and see more of the place. Thanks to all the of the people involved, you were very welcoming!

11 September 2006

NOKUBI Takatsugu: Development Environment Conference in Akihabara

Development Environment Conference(Japanese) was held in Akihabara, 8 Sep. The event was focused for that the famous geeks use what kind of tools, software configuration, or environment. Many people were using zsh, GNU screen, and vim or Emacs. In the event, I really surprised a man who use GNU screen with default prefix key!

8 September 2006

Dirk Eddelbuettel: More Comcast fun

One of the many recurring themes on this blog is the amount of trouble we're having with Comcast. So Ladies and Gentlemen, here is a new one: Having been forced to use the ISP as a smarthost for delivery (as reverse lookup is not provided for residential service), I depend on Comcast to deliver my mail. But look what we just got for attempting help a user on the quantlib-users list:
Reporting-MTA: dns; comcast.net
Arrival-Date: 8 Sep 2006 1:46:30 +0000

Final-Recipient: rfc822;
Action: failed
Status: 5.1.0 MAIL FROM: 550 REPLY:
550-"rejected_because_your_SMTP_server,_204.127.225.94,_is_in_the_Spamcop_RBL.
Diagnostic-Code: smtp; Permanent Failure: Other address status
Last-Attempt-Date: Fri, 8 Sep 2006 01:46:36 -0000
So a benefit of handing over around $500 per annum is that I do not get my mail delivered because the goods folks at sourceforge.net now think ATT Broadband aka Comcast [ to whom the address mail server 204.127.225.94 resolves ] is a spammer. Someone please remind me why I haven't switched to Speakeasy?

7 September 2006

MJ Ray: Installation Difficulties

Yesterday, I helped a friend install an Edimax wifi USB stick. I've been using wireless networking lots for a year or two without much trouble, even testing experimental drivers sometimes, so I thought this would be straightforward. How wrong was I? First complication: the target machine is running the latest Windows, but still needed a driver CD-ROM loading. The instructions were quite clear that this must be done before plugging in the stick. What it doesn't tell you is that the stick has to be plugged in at a specific point during installation - cue mad unpacking. Second complication: the autorun program on the driver CD tries to do DNS lookups. Why on Earth? This is part of installing a network device. There is no working connection to the network, else we would probably not be installing this... Third complication: the questions in the install wizard are nonsense. For example: "Do you want to optimize for performance or for wifi operation?" Erm, I'd like it to operate as a wifi device with good performance please. The installation manual didn't explain what the questions meant, but did at least give recommended answers. Final complication: the driver utility has at least two ways of setting which wireless network to use (as well as the target AP, there's a BT Home Hub and some other BT kit somewhere nearby, according to their ESSIDs, although the USB stick only saw the Home Hub). One of them works. One doesn't, with the same settings. The only obvious way to find that out is trial-and-error. There's no useful error message when it fails - just no working network connection. Yes, lots of Linux stuff is harder to install than it needs to be, but at least its questions mostly make sense and most things give proper error output that helps to debug it. Windows is still in the dark ages on these two. I guess it's the lack of peer review: I didn't see any way to send a bug report to the dodgy driver designers. By the way, the Edimax stick works pretty well (although their web site is terrible). I think I'd recommend it, particularly if you're not using the Windows drivers... It says on the box it works on Debian and it looks good on linux-wless, but I've not tested that.

5 September 2006

John Goerzen: Another Haskell Solution to Lars' Problem

Yesterday, I posted an 18-line solution to Lars' language problem. One problem with it was that it was not very memory-efficient (or time-efficient, for that matter). In other words, it was optimized for elegance.

Here is a 22-line solution that is much more memory-efficient and works well with his "huge" test case. Note to Planet readers: Planet seems to corrupt code examples at times; click on the original story to see the correct code.

import System.Environment
import Data.List
import Data.Char
import qualified Data.Map as Map
custwords = filter (/= "") . lines . map (conv . toLower)
    where iswordchar x = isAlphaNum x && isAscii x
          conv x = if iswordchar x then x else '\n'
wordfreq inp = Map.toList $ foldl' updmap (Map.empty::Map.Map String Int) inp
    where updmap nm word = case Map.lookup word nm of
                             Nothing -> Map.insert word 1 nm
                             Just x -> (Map.insert word $! x + 1) nm
freqsort (w1, c1) (w2, c2) = if c1 == c2
                                 then compare w1 w2
                                 else compare c2 c1
showit (word, count) = show count ++ " " ++ word
main = do args - getArgs
          interact $ unlines . map showit . take (read . head $ args) .
                     sortBy freqsort . wordfreq . custwords

The main change from the previous example to this one is using a Map to keep track of the frequency of each word.

21 August 2006

Joachim Breitner: Smart URLs

Since Lucas has published his list of search engine shortcuts, I'll do that too. Maybe someone finds a useful addition for himself. I'm leaving out those that are predefined by Galeon and not used by me.

15 August 2006

Mario Iseli: OpenLDAP, LUG-Seeland, School

Today was a strange christian day here in Kanton Solothurn and I didn’t have to work, so I had a lot of time to prepare my presentation for next Friday about OpenLDAP. First of all I prepared the stuff for the school which begins tomorrow, so my holidays are now definitely past :-( . I was excited that I didn’t receive my timetable by snailmail so I had to google and found it finally. Poorwise i have now to stand up very early in the morning, my train goes at 07.07 in the morning. Now to OpenLDAP, fortunately Mathias Weyland, the president from the LUGS, gave me a book about OpenLDAP from O’reilly, I really like it: It’s quite informative and sometimes the author is making some jokes. Priska Rubischon already bothered that i have to tell something about netgroups and autofs, this was completely new because I newer worked with NIS (and netgroups etc.) and neither with autofs (in most cases I use samba and libpam-mount). It’s not so difficult as i thaught. OpenLDAP in Debian comes with nice schemas which help to migrate from NIS to LDAP, so I had a look at those schemes and the chapter about netgroups in the book. Also autofs is not complicated, for example, if you want to share /home to the clients you have to prepare a NFS-Server which shares this directory and configure /etc/auto.master and /etc/auto.home on the clients. These two files can lookup where and how it can mount /home. On my testing-infrastructure I just used netgroups for the NFS-exports, so I have now an example what they’re for. After all I realized that my speech will also be about “How do I plan a network in a company”, so I realized that the security of LDAP is also very important. Fortunately OpenLDAP can be secured quite hard, it supports SASL and KERBEROS_V4 authentication mechanisms! When I would realize now a network i would do the following: I still ask me how i can protect my netgroups so that nobody can plug computer “x” out and plug in his computer, take the IP of “x” and mount the NFS-shares. Kerberos as user authentication would be a solution, but I don’t really like it. As I already told I prefer libpam-mount, with it’s help it would be possible that every user gets his share mounted maybe over smb. Now I will search for a solution how i can properly secure NFS, so it does only allow connections from users@boxes authenticated with LDAP and not user@host-which-can-be-faked. If you have an idea feel free to write it down here in my blog! In the evening I went to “Biel” by train to join the LUG-Seeland meeting. Beat Fasel explained me a lot about genetical biology, his work and the evolution, this was very interesting. Later we talked about the future of our community, I will prepare bylaws for the next meeting which we will sign. Other ideas were about preparing an install event and a mailinglist because we don’t have communication over the internet and this is quite complicated if we want to organise something in teamwork.

14 August 2006

Norbert Tretkowski: Productive weekend

Last weekend was quite productive. First, Joerg Jaspert updated the dak installation on backports.org, which means we can also use ~ in version numbers. What does it mean? We no longer need to lower the Debian revision of the version number, 1.2.3-4 becomes 1.2.3-4~foo instead 1.2.3-3foo. Martin F. Krafft suggested to use 1.2.3-4~bpo.1 instead 1.2.3-4~bpo1, and I like the idea, it looks indeed better. Daniel Baumann already modified the contribute page on our website. Speaking about the website... it's now based on a wiki, thanks to Sebastian Harl, who implemented the old website design into the new Dokuwiki installation. If you want an account to edit something, just drop me a mail.

12 August 2006

Evan Prodromou: 25 Thermidor CCXIV

Maj went out for her birthday party with a passel of ladies, so I stayed home and ate pizza and watched Twelve Monkeys with the baby. We had a good time, but as the baby is approaching 1 years old, my going-to-sleep tricks are becoming somewhat outdated. My main way to put the baby to sleep is to walk her from the front door of our apartment all the way back to the laundry room, and then turn around and walk out to the front door again. I sing during the entire process, mostly Neil Young and Johnny Cash tunes, but also a mix of 80s pop, reggae, songs, and goofy children's songs. Really, it's anything I can remember the words to, or that I can bridge over with some ad-libbing. This worked pretty well when she was teensy-tiny, and it's still the best way for me to get her to sleep. But as she's approaching 15kg, it's getting to be a serious workout for me to slog up and down the hallway 50 times belting out Take the Skinheads Bowling at high volume. We have a few baby books on how to get a child to sleep easier, but I've been taking the path of least resistance. I'll probably have to take the plunge and get her to fall asleep in bed soon -- which will probably mean some angry baby moments. Still, putting the baby to sleep is one of the most satisfying things in my life right now -- I highly recommend it. tags:

Programmer hierarchy Luke Welling's programmer hierarchy, based on The Brunching Shuttlecocks' classic Geek Hierarchy, is humorous and accurate. tags:

Tag improvements So, I've made some improvements to the tagging system on this blog. Instead of doing a full-text search at runtime to lookup which pages contain which tag, I instead keep a map of tags to page names in a separate db, and then look up in that index at runtime. The bummer is that I'm not figuring out a way to keep that db up-to-date easily. The best action, of course, would be to have the tags db updated at write time, but I can't figure out how to make that work. I tried it with a write macro, but you can't get the title of the current page with a write macro, unfortunately. I might just add a hook to the commit action -- that's about all I'm coming up with right now. It's annoying that Wiliki doesn't have hooks enabled anywhere. Gar. tags:

9 August 2006

NOKUBI Takatsugu: I'm trying to use xenoprof.

In Xen Dom0/U environment, some optimized binaries for the prossessor type i686 work slower than standard Debian binaries. To discover the reason, now I am trying to use xenoprof, some patchsets for Xen 3.0.0. The latest unstable Xen have already merged the patch, but Debian sid's package is still not supported, so I need to use Xen 3.0.0... I hope xenoprof will be merged the Debian Xen related packages.

30 July 2006

Andreas Metzler: switched to postgrey

As greylistd does not seem to be developed anymore and I wanted to have --auto-whitelist-clients I have switched to postgrey. I am using postgrey-integration into exim4 written by Guy Antony Halse with some minor changes to minimize the differences to my greylistd setup. - I greylist on /27 instead of /24 networks and will immediately reject invalid recipients instead of greylisting them. postgrey runs with --unix=/var/run/postgrey/socket --retry-window=4 --lookup-by-host --auto-whitelist-clients=10 --exim.
  defer
    log_message = greylisted host $sender_host_address
    !senders = : postmaster@*
    domains = +local_domains : +relay_to_domains
    !hosts = /etc/exim4/no-greylist-hosts
    !authenticated = *
    verify = recipient/callout=20s,use_sender,defer_ok
    set acl_m3 = request=smtpd_access_policy\nprotocol_state=RCPT\n\
                 protocol_name=$ uc:$received_protocol \n\
                 helo_name=$sender_helo_name\n\
                 client_address=$ substr_-3:$ mask:$sender_host_address/27 \n\
                 client_name=$sender_host_name\n\
                 sender=$sender_address\n\
                 recipient=$local_part@$domain\n\n
    set acl_m3 = $ sg \
                     $ readsocket /var/run/postgrey/socket $acl_m3 \
                            5s action=DUNNO \
                      action= 
    message = $ sg $acl_m3 ^\\w+\\s* 
    condition = $ if eq $ uc:$ substr 0 5 $acl_m3 DEFER true false 
  # add "greylisted by ..seconds" header to mail which has successfully
  # passed the greylisting.
  warn
    !senders = : postmaster@*
    domains = +local_domains : +relay_to_domains
    !hosts = /etc/exim4/no-greylist-hosts
    !authenticated = *
    message = $ sg $acl_m3 ^\\w+\\s* 
    condition = $ if eq $ uc:$ substr_0_7:$acl_m3 PREPEND true false 

Andreas Metzler: switched to postgrey

As greylistd does not seem to be developed anymore and I wanted to have --auto-whitelist-clients I have switched to postgrey. I am using postgrey-integration into exim4 written by Guy Antony Halse with some minor changes to minimize the differences to my greylistd setup. - I greylist on /27 instead of /24 networks and will immediately reject invalid recipients instead of greylisting them. postgrey runs with --unix=/var/run/postgrey/socket --retry-window=4 --lookup-by-host --auto-whitelist-clients=10 --exim.
  defer
    log_message = greylisted host $sender_host_address
    !senders = : postmaster@*
    domains = +local_domains : +relay_to_domains
    !hosts = /etc/exim4/no-greylist-hosts
    !authenticated = *
    verify = recipient/callout=20s,use_sender,defer_ok
    set acl_m3 = request=smtpd_access_policy\nprotocol_state=RCPT\n\
                 protocol_name=$ uc:$received_protocol \n\
                 helo_name=$sender_helo_name\n\
                 client_address=$ substr_-3:$ mask:$sender_host_address/27 \n\
                 client_name=$sender_host_name\n\
                 sender=$sender_address\n\
                 recipient=$local_part@$domain\n\n
    set acl_m3 = $ sg \
                     $ readsocket /var/run/postgrey/socket $acl_m3 \
                            5s action=DUNNO \
                      action= 
    message = $ sg $acl_m3 ^\\w+\\s* 
    condition = $ if eq $ uc:$ substr 0 5 $acl_m3 DEFER true false 
  # add "greylisted by ..seconds" header to mail which has successfully
  # passed the greylisting.
  warn
    !senders = : postmaster@*
    domains = +local_domains : +relay_to_domains
    !hosts = /etc/exim4/no-greylist-hosts
    !authenticated = *
    message = $ sg $acl_m3 ^\\w+\\s* 
    condition = $ if eq $ uc:$ substr_0_7:$acl_m3 PREPEND true false 

27 July 2006

NOKUBI Takatsugu: Trying to use gentoo with icc, on Xen domU

Recent my work is researching about virtualization technologies. So Xen is also my target. I can use it, but I need to evaluate their performance. So I am trying to compare with difference between gcc and icc on DomU. So I need to try to install gentoo. It requires really many time to compile, so I tired...

23 July 2006

Steve Kemp: I swear I don t know how

Collection Management I like to collect things, books, audio cds (which I buy exclusively second-hand/used then rip), and films. I’ve had a lot of fun putting my film collection online (Warning image-heavy). Although I admit the reason I did it in the first place was because I found myself buying DVDs I already owned more than once. I do the same thing with books. I can recognised covers easily, so if I see a book which is by an author I like I will look at the cover and think “Hmmm got this”, or “Hmmm thats new”. This leads me to buy duplicates too often. This leads me to wanting to organise the hundreds of books I have, so I can lookup what I have/dont have easily. My recent query the other day about scanning ISBN numbers with a barcode reader seemed to suggest that using the hardware is trivial. However the next step is hard. I can’t find a decent tool for using storing the data in. So far I’ve looked at:
alexandria
I loved this when I started it up and imported a few books by ISBN. It found the title, the publisher, a cover image, and more. However the backend seems to be a bit hit and miss. Picking books at random I soon found major gaps. e.g. Adding Terry Pratchett’s Mort gave me all the details. Adding Witches Abroad gave a blank image and just the title, all the other details were wrong/missing.
tellico
Tellico I’ve just ruled out. It allows you to create collections of things, but you must enter all the details yourself. I’ve neither the time nor the patience to do that.
So I’ll postpone this project for a while. Probably just as well since I’ve discovered that a suprisingly large number of my books do not actually contain ISBN numbers! Mostly the older paperback fiction books I have such as “H.G.Wells the valley of the spiders & other stories”, but even modern books like some of Steven Brust’s Vlad Taltos series are free of ISBN numbers.

18 July 2006

Enrico Zini: Third day in Addis

Believe it or not, a network that fails often is the best thing to have when you are teaching network troubleshooting. Various tools useful for networking:
  • ifconfig - configure a network interface

  • dnsmasq - Simple DNS and DHCP server

  • host - DNS lookup utility

  • route - show / manipulate the IP routing table

  • arping - send ARP REQUEST to a neighbour host

  • mii-tool - view, manipulate media-independent interface status (IOW, see if the cable works)

  • nmap - Network exploration tool and security / port scanner Examples:

    # Look at what machines are active in the local network:
    nmap -sP 10.5.15.0/24
    # Look at what ports are open in a machine:
    nmap 10.5.15.26
    
  • tcpdump - dump traffic on a network It can be used to see if there is traffic, and to detect traffic that shouldn't be there.

Useful tip:
# Convert a unix timestamp to a readable date
date -d @1152841341
What happens when you browse a web page:
  1. type the address www.google.com in the browser
  2. the browser needs the IP address of the web server:
  1. look for the DNS address in /etc/resolv.conf (/etc/resolv.conf is created automatically by the DHCP client)
  2. try all the DNS servers in /etc/resolv.conf until one gives you the IP address of www.google.com
  3. take the first address that comes from the DNS (in our case was 64.233.167.104)
  1. figure out how to connect to 64.233.167.104:
  1. consult the routing table to see if it's in the local network:
  1. if it's in the local network, then look for the MAC address (using ARP - Address Resolution Protocol)
  2. if it'd not in the local network, then send through the gateway (again using ARP to find the MAC address of the gateway)
  1. Send out the HTTP request to the local web server or through the gateway, using the Ethernet physical protocol, and the MAC address to refer to the other machine.
Troubleshooting network problems:
  1. See if the network driver works:
  1. With ifconfig, see if you see the HWaddr:. If you do not see it, then the linux driver for the network card is not working. Unfortunately there's no exact way to say that it works perfectly
  1. See if you have an IP address with ifconfig. If you find out that you need to rerun DHCP (for example, if the network cable was disconnected when the system started), then you can do it either by deactivating/reactivating the Ethernet interface using System/Administration/Networking or, on a terminal, running:

    # ifdown eth0
    # ifup eth0
    
    If you don't get an IP, try to see if the DHCP server is reachable by running:
    $ arping -D [address of DHCP server]
    
  2. See if the local physical network works:

  1. With sudo mii-tool, see if the cable link is ok. If it's not, then it's a problem in the cable or the plugs, or simply the device at the other end of the cable is turned off.
  2. Try arping or ping -n on a machine in the local network (like the gateway) to see if the local network works.
  1. See if the DNS works:
  1. Find out the DNS address:

    cat /etc/resolv.conf
    
  2. If it's local, arping it

  3. If it's not local, ping -n it

  4. Try to resolve a famous name using that DNS:

    $ host [name] [IP address of the DNS]
    
  5. Try to resolve the name of the machine you're trying to connect. If you can resolve a famous name but not the name you need, then it's likely a problem with their DNS.

  1. If you use a proxy, see if the proxy is reachable: check if the proxy name resolves to an IP, if you can ping it, if you can telnet to the proxy address and port:

    $ telnet [proxy address] [proxy port]
    
    you quit telnet with ^]quit.
  2. If you can connect directly to the web server, try to see if it answers:

    $ telnet [address] 80
    
    If you are connected, you can confirm that it's a web server:
    GET / HTTP/1.0 (then Enter twice)
    
    If it's a web server, it should give you something like a webpage or an HTTP redirect.
When you try to setup a service and it doesn't work:
  1. check that it's running:

    $ ps aux   grep dnsmasq
    
  2. check that it's listening on the right port:

    $ sudo netstat -lp
    
  3. check that it's listening from the outside:

    $ nmap [hostname]
    
  4. check for messages in /var/log/daemon.log or /var/log/syslog

  5. check that the configuration is correct and reload or restart the server to make sure it's running with the right configuration:

    # /etc/init.d/dnsmasq restart
    
dnsmasq:
By default: works as a DNS server that serves the data in /etc/hosts. By default: uses /etc/resolv.conf to find addresses of other DNS to use when a name is not found in /etc/hosts. To enable the DHCP server, uncomment:
dhcp-range=192.168.0.50,192.168.0.150,12h
in /etc/dnsmasq.conf and set it to the range of addresses you want to serve. Pay attention to never put two DHCP servers on the same local network, or they will interfere with each others. To test if the DHCP server is working, use dhcping (not installed by default on Ubuntu). To communicate other information like DNS, gateway and netmask to the clients, use this piece of dnsmasq.conf:
# For reference, the common options are:
# subnet mask - 1
# default router - 3
# DNS server - 6
# broadcast address - 28
dhcp-option=1,255.255.255.0
dhcp-option=3,192.168.0.1
dhcp-option=6,192.168.0.1
dhcp-option=28,192.168.0.255
Problems found today:
  • changing the name of the local machine in /etc/hosts breaks sudo, and without sudo it's impossible to edit the file. The only way to fix this is a reboot in recovery mode.
  • dhclient -n -w is different than dhclient -nw
Quick start examples with tar:
# Create an archive
tar zcvf nmap.tar.gz *.deb
# Extract an archive
tar zxvf nmap.tar.gz
# Look at the contents of an archive
tar ztvf nmap.tar.gz
Quick & dirty way to send a file between two computers without web server, e-mail, shared disk space or any other infrastructure:
# To send
nc -l -p 12345 -q 1 < nmap.tar.gz
# To receive
nc 10.5.15.123 12345 > nmap.tar.gz
# To repeat the send command 20 times
for i in  seq 1 20 ; do nc -l -p 12345 -q 1 < nmap.tar.gz ; done

Next.

Previous.