*** tryagain has quit IRC | 00:00 | |
*** auenf has quit IRC | 00:55 | |
*** auenf has joined #maemo | 00:56 | |
*** wookey has left #maemo | 01:00 | |
*** xy2_ has quit IRC | 01:59 | |
*** cyphase has joined #maemo | 02:00 | |
*** florian has quit IRC | 02:07 | |
*** cyphase has quit IRC | 02:32 | |
*** cyphase has joined #maemo | 02:37 | |
*** drrz has quit IRC | 02:44 | |
*** eMHa has quit IRC | 02:44 | |
*** cyphase has quit IRC | 02:47 | |
*** eMHa has joined #maemo | 02:52 | |
*** cyphase has joined #maemo | 02:52 | |
*** cyphase has quit IRC | 02:59 | |
*** cyphase has joined #maemo | 03:05 | |
*** cyphase has quit IRC | 03:13 | |
*** cyphase has joined #maemo | 03:18 | |
*** infobot has quit IRC | 03:18 | |
*** infobot has joined #maemo | 03:22 | |
*** cyphase has quit IRC | 03:24 | |
*** cyphase has joined #maemo | 03:28 | |
*** cyphase has quit IRC | 03:37 | |
*** cyphase has joined #maemo | 03:41 | |
*** cyphase has quit IRC | 03:49 | |
*** cyphase has joined #maemo | 03:54 | |
*** cyphase has quit IRC | 04:02 | |
*** cyphase has joined #maemo | 04:07 | |
*** cyphase has quit IRC | 04:11 | |
*** Pali has quit IRC | 04:28 | |
*** heroux has quit IRC | 04:32 | |
*** heroux has joined #maemo | 04:33 | |
*** MetalGearSolid has quit IRC | 05:06 | |
*** MetalGearSolid has joined #maemo | 05:07 | |
*** povbot has joined #maemo | 06:32 | |
*** MetalGearSolid has left #maemo | 06:47 | |
*** vahe has joined #maemo | 07:01 | |
*** DocScrutinizer05 has quit IRC | 07:03 | |
*** DocScrutinizer05 has joined #maemo | 07:03 | |
*** chainsawbike has quit IRC | 08:09 | |
*** chainsawbike has joined #maemo | 08:11 | |
*** Ariadeno has quit IRC | 09:11 | |
*** vahe has quit IRC | 09:22 | |
*** jonwil has joined #maemo | 09:56 | |
*** jonwil has quit IRC | 10:16 | |
*** xy2_ has joined #maemo | 10:17 | |
*** xy2_ has quit IRC | 11:14 | |
*** xy2_ has joined #maemo | 11:15 | |
*** jonwil has joined #maemo | 11:26 | |
*** Pali has joined #maemo | 11:41 | |
Enrico_Menotti | Hello. I am trying to install packages from repository.maemo.org/extras/, via command line. If I browse there, the page is responding and I can download packages, but if I use apt-get it stops at connecting to the website. On the application manager the repository seems to be configured correctly. | 12:01 |
---|---|---|
KotCzarny | use apt-cache policy yourpkg | 12:01 |
Enrico_Menotti | What's that? | 12:02 |
KotCzarny | will give you info about pkg | 12:02 |
Enrico_Menotti | Ok. | 12:02 |
Enrico_Menotti | Ok, I got the info. It is available, and in fact I have been able to download it on my computer. I could install it manually. But why it is not possible via apt-get? | 12:03 |
Enrico_Menotti | Ah, well, maybe I understand. Let me try. | 12:04 |
Enrico_Menotti | No, I didn't get it. I am trying to install rsync. It should be apt-get install rsync, right? | 12:05 |
KotCzarny | yes, assuming its in repos and dependencies are available | 12:05 |
Enrico_Menotti | From the web it seems it is there, in fact I downloaded it on my computer. I'll try installing the dependencies separately. | 12:06 |
KotCzarny | no, pastebin the error if you want some answer | 12:07 |
KotCzarny | and result of that policy command | 12:07 |
Enrico_Menotti | Ok. But no true error - just sticking there. | 12:08 |
Enrico_Menotti | https://pastebin.com/X0YHQ61A | 12:17 |
KotCzarny | do you have anything weird in /etc/apt/conf.d ? | 12:19 |
KotCzarny | what happens if you just wait? | 12:19 |
*** hurrian has quit IRC | 12:19 | |
Enrico_Menotti | Ok, meanwhile I got the error: https://pastebin.com/MKY6yd82 | 12:20 |
Enrico_Menotti | There is no /etc/apt/conf.d. There is a /etc/apt/apt.conf.d. Inside, three files: 00maemo, 01autoremove, 99-docpurge. | 12:25 |
*** kraft has quit IRC | 12:25 | |
KotCzarny | maybe your connection went down | 12:25 |
KotCzarny | is it wifi or gsm? | 12:25 |
Enrico_Menotti | Wifi. | 12:25 |
*** xy2_ has quit IRC | 12:36 | |
*** hurrian has joined #maemo | 12:41 | |
Enrico_Menotti | Ok, I solved the thing by a workaround. But I don't understand what happens. Let me explain. | 12:54 |
Enrico_Menotti | If I try to apt-get from the terminal, by typing on the N900 keyboard, I am not able to tell apt-get to go on. When it asks if I want to continue, I have the Y option, but after entering an Y it aborts. Don't understand. | 12:55 |
Enrico_Menotti | I tried to ssh via usb. This works, but kills the access to the Internet (the wifi is still working, it seems: my router still sees the device via wifi). Also the browser is not working. Maybe a conflict, but I don't understand. | 12:56 |
Enrico_Menotti | I had to ssh through the wifi. This way I have been able to install rsync. | 12:56 |
Enrico_Menotti | Anybody with an explanation? | 12:57 |
KotCzarny | you didnt say you were using usb for connecting | 12:57 |
Enrico_Menotti | Yes, that's true. Sorry. I didn't expect that to be a problem. | 12:57 |
KotCzarny | if you have conflicting network setting it usually fails. anyway, connect through wifi and ignore usb (use it for emergency and dont worry) | 12:58 |
KotCzarny | this will keep things simple | 12:59 |
Enrico_Menotti | Ok, I was using usb to transfer files from the computer. | 12:59 |
Enrico_Menotti | And why the N900 keyboard didn't work? Why it doesn't accept the Y? | 13:00 |
KotCzarny | where is your Y ? | 13:00 |
KotCzarny | what shows on terminal when you enter it? | 13:01 |
Enrico_Menotti | It shows correctly an Y. | 13:01 |
KotCzarny | lowercase vs uppercase maybe then? | 13:01 |
Enrico_Menotti | I tried both lowercase and uppercase. | 13:01 |
Sicelo | i genuinely doubt the problem is being explained to us correctly ... does the Y/y type correctly in other applications? | 13:12 |
Sicelo | and you are using apt-get in Maemo's XTerminal? | 13:13 |
DocScrutinizer05 | popup notifier? | 13:16 |
*** florian has joined #maemo | 13:16 | |
Sicelo | i've not looked at the pastebins .. pastebin.com brought my Core2Duo pc to a grinding halt earlier this week .. won't try it on N900 :p | 13:18 |
DocScrutinizer05 | seen this so many times :-P "why the damn thing stalls on apt-get install??... <hours pass by> OH DAMN! It was showing a requester on device display! and I connected via ssh from my PC" | 13:18 |
DocScrutinizer05 | pastebin.com is rogue | 13:18 |
DocScrutinizer05 | well >>Failed to fetch http://repository.maemo.org/extras/pool/fremantle-1.3/free/a/attr/libattr1_2.4.43-1_armel.deb Could not connect to repository.maemo.org:80 (213.128.137.22), connection timed out<< | 13:20 |
DocScrutinizer05 | first generic advice: try again later | 13:21 |
Enrico_Menotti | Sicelo Yes I tried with apt-get in Maemo's XTerminal. | 13:21 |
Enrico_Menotti | Got the problem in telling it the Y. | 13:22 |
Enrico_Menotti | I tried via ssh on wifi and it worked. | 13:22 |
DocScrutinizer05 | http://monitor.maemo.org/ganglia/?c=maemo&h=blade-a&m=load_one&r=2hr&s=by%20name&hc=4&mc=2 | 13:22 |
Enrico_Menotti | If I ssh via usb, after that I am unable to connect to the Internet. I solved by rebooting the N900. | 13:23 |
KotCzarny | sicelo: try adding /raw/ after the domain, makes it lighter | 13:23 |
KotCzarny | (for pastebin.com) | 13:24 |
*** geaaru has joined #maemo | 13:24 | |
DocScrutinizer05 | Enrico_Menotti: well, ssh via USB might mean you manually forced a quite 'unusual' network config | 13:25 |
KotCzarny | also, if you use firefox, install noscript extension, much recommended, also from security point of view | 13:25 |
DocScrutinizer05 | Enrico_Menotti: generally when plugging in USB you should be careful about state of device not 'normal' (unless it's a USB charger, not PC) | 13:27 |
DocScrutinizer05 | e.g. USB mASS stoRAGE mode umounts your MyDocs to export it to USB, so any apps that might use MyDocs (see ~optification) may stop to work, and trying to *install* such apps will cause massive havoc | 13:30 |
DocScrutinizer05 | not quite sure, but even HAM might use a temporary dir on MyDoc, so running HAM while mass storage mode would also be a pretty bad idea then | 13:31 |
DocScrutinizer05 | Enrico_Menotti: as a general advice, when you have a WLAN access point, never use USB for anything other than charging and maybe an occasional access to mass storage for copying media files etc, during which you don't use the device for any activities | 13:32 |
DocScrutinizer05 | Enrico_Menotti: I almost never connect IroN900 to my PC via USB, yet I'm logged in to the device via ssh and WLAN almiost 50% of the time, which is so much more convenient than typing on maemo xterm. And every night a backup cronjob rsyncs stuff to my PC automatically | 13:36 |
DocScrutinizer05 | IroN900 connects to WLAN as soon as I come home and I don't need to worry a single second about it. Often even the ssh session stays established when I wasn't out too long :-) | 13:38 |
DocScrutinizer05 | IroN900:~# uptime | 13:39 |
DocScrutinizer05 | 12:39 52 Tage 13:45 an, 0 Benutzer, Durchschnittslast: 0,00, 0,00, 0,00 | 13:39 |
freemangordon | DocScrutinizer05: if there are files opened in MyDocs, it is not exported via mass storage | 13:44 |
DocScrutinizer05 | yep | 13:44 |
freemangordon | "device storage in use" or somesuch | 13:45 |
DocScrutinizer05 | BUT, if there are none opened, then when it gets exported then stupid apps my create and open files in the mountpoint dir X-P | 13:45 |
freemangordon | sure | 13:45 |
freemangordon | camera-ui2 does it :D | 13:45 |
Enrico_Menotti | DocScrutinizer05 I just issued ifup usb0 on the N900 (XTerminal), in PC suite mode. On the PC, set the host side of the connection to be 192.168.2.14. Then ssh 192.168.2.15. | 13:45 |
DocScrutinizer05 | the old linux pun, use up all disk space in a file hidden under a mountpoint ;-P | 13:45 |
Enrico_Menotti | After this, the N900 does not connect to the Internet anymore. | 13:46 |
Enrico_Menotti | Even if unplugged. I had to reboot it. | 13:46 |
freemangordon | Enrico_Menotti: and what is your GW/DNS? | 13:46 |
DocScrutinizer05 | freemangordon: irrelevant, for sure not 192.168.2.14. | 13:47 |
freemangordon | you can;t access internet if you don;t have gateway setup, and your device cannot resolve names without DNS | 13:47 |
DocScrutinizer05 | Enrico_Menotti: you established a local network with just 2 participants and no way out of it into the internet | 13:47 |
KotCzarny | but he said he also had wifi running | 13:48 |
DocScrutinizer05 | ~usbnetworking | 13:48 |
infobot | extra, extra, read all about it, usbnetworking is http://wiki.maemo.org/USB_networking, or http://wiki.maemo.org/N900_USB_networking | 13:48 |
*** florian has quit IRC | 13:48 | |
KotCzarny | unless it was before/after, not during | 13:48 |
DocScrutinizer05 | Enrico_Menotti: and unplugging doesn't revert an ifup | 13:48 |
freemangordon | DocScrutinizer05: it is relevant, because if 192.168.2.14 is set up as a GW, but PC is not set up to transfer packets between interfaces and to do NAT, no internet will be availabe on device | 13:48 |
freemangordon | KotCzarny: doesn't matter wifi | 13:49 |
KotCzarny | fmg, usb networking mangles default gw? | 13:49 |
freemangordon | depends on what he did | 13:49 |
KotCzarny | i mean default route | 13:49 |
freemangordon | ^^^ | 13:49 |
*** fuz_ has joined #maemo | 13:49 | |
DocScrutinizer05 | freemangordon: with ifup usb no internet will be available unless further 'tricks' with routing and dnsmasq are done, I guess | 13:49 |
DocScrutinizer05 | see ^^^ ~usbnetworking | 13:50 |
freemangordon | Enrico_Menotti: may we have the output of "route -n" after you have usb interface up? | 13:50 |
Enrico_Menotti | freemangordon Ok, a minute. | 13:50 |
DocScrutinizer05 | freemangordon: please don't make Enrico_Menotti do ifup usb again ;-) | 13:51 |
DocScrutinizer05 | oh well, I guess he already did, so he's up for yet another reboot | 13:51 |
freemangordon | comeon | 13:51 |
Enrico_Menotti | DocScrutinizer05 I already did it. I had to transfer files from the computer to the N900. I think it finished now, so I can get the routes. | 13:51 |
DocScrutinizer05 | aaah | 13:51 |
DocScrutinizer05 | yep | 13:52 |
Enrico_Menotti | DocScrutinizer05 What's the problem with the reboot? | 13:52 |
freemangordon | last time I checked it was easy to delete a route in linux | 13:52 |
DocScrutinizer05 | Enrico_Menotti: it sucks? :-D | 13:52 |
KotCzarny | it's a not wise thing in linux world | 13:52 |
DocScrutinizer05 | see my uptime above ;-) | 13:52 |
KotCzarny | you fix things so reboot is not required | 13:52 |
freemangordon | well, it is not politically correct :p | 13:52 |
KotCzarny | also sucks a lot of battery | 13:52 |
freemangordon | about 1.5% | 13:53 |
KotCzarny | and time | 13:53 |
Enrico_Menotti | Ah ok. Yes, I would fix things, I also have that idea. But I need to understand how! :) | 13:53 |
DocScrutinizer05 | anyway | 13:53 |
DocScrutinizer05 | ~usbnetworking | 13:53 |
infobot | [usbnetworking] http://wiki.maemo.org/USB_networking, or http://wiki.maemo.org/N900_USB_networking | 13:53 |
DocScrutinizer05 | *strongly* recommended read | 13:53 |
KotCzarny | first: do you lose wifi when you connect via usb? | 13:53 |
freemangordon | guys, lets wait for the route table, everything will become clear | 13:54 |
DocScrutinizer05 | and generally, try to steer clear of usb networking, use WLAN instead whenever possible | 13:54 |
DocScrutinizer05 | Enrico_Menotti: for a start, did you try ifdown usb ? | 13:55 |
KotCzarny | btw. if you only move relatively small files (<1gigabite), just install tinysmb, and copy via wifi | 13:55 |
freemangordon | KotCzarny: is that GB or Gb? | 13:57 |
KotCzarny | fmg: that's up for the reader and his patience with wifi speeds | 13:57 |
freemangordon | :) | 13:58 |
Sicelo | i've used USB networking with no ill effect lots of imes :-) | 13:58 |
DocScrutinizer05 | I use USB for data access rarely (I use my sftp://root@iron900/root bookmark instead http://susepaste.org/28993785) and I never ever do USBnetworking | 13:58 |
freemangordon | Sicelo: :nod: | 13:58 |
KotCzarny | i've found tinysmb to perfectly suit me, so i won't have to find cable, abuse usb port etc | 13:59 |
Enrico_Menotti | https://pastebin.com/xbC2wZKL | 13:59 |
Enrico_Menotti | This is the rounting table right now. | 13:59 |
KotCzarny | just click on the desktop icon, enable smb, and be done | 13:59 |
KotCzarny | now, there's your problem | 13:59 |
freemangordon | see | 13:59 |
freemangordon | 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0 | 14:00 |
KotCzarny | your computer advertisestises usb route, and not forwarding packets | 14:00 |
freemangordon | oops | 14:00 |
KotCzarny | it should just work after you do ifconfig usb0 down | 14:00 |
freemangordon | that one 0.0.0.0 192.168.2.14 0.0.0.0 UG 0 0 0 usb0 | 14:00 |
KotCzarny | to restore connectivity | 14:00 |
freemangordon | no, he can just delete usb0 default GW | 14:00 |
KotCzarny | or: route del -net default dev usb0 | 14:00 |
KotCzarny | yup | 14:00 |
KotCzarny | slow typing here :P | 14:01 |
KotCzarny | both ways, no need for a reboot | 14:01 |
freemangordon | :nod: | 14:01 |
freemangordon | BUT! | 14:01 |
DocScrutinizer05 | ifdown | 14:01 |
freemangordon | the question is who sets USB0 ad default GW | 14:01 |
freemangordon | *as | 14:01 |
KotCzarny | maybe it gets from windoze? | 14:01 |
freemangordon | no way | 14:01 |
freemangordon | this is local setting | 14:01 |
KotCzarny | let's wait for enrico | 14:02 |
KotCzarny | how exactly do you connect/enable usb network? | 14:02 |
freemangordon | Enrico_Menotti: what is the content of /etc/network/interfaces? | 14:02 |
DocScrutinizer05 | http://paste.opensuse.org/32586921 | 14:02 |
freemangordon | I suspect: | 14:03 |
freemangordon | iface usb0 inet static | 14:03 |
freemangordon | gateway 192.168.2.14 | 14:03 |
freemangordon | because this is what I have here | 14:03 |
KotCzarny | but who would do such dastardly thing?! | 14:03 |
freemangordon | Nokia | 14:03 |
DocScrutinizer05 | good luck with setting up network sharing on your PC | 14:03 |
DocScrutinizer05 | THIS **SUCKS** big time | 14:03 |
KotCzarny | network sharing on linux is 2-3 lines max | 14:03 |
freemangordon | KotCzarny: this is the default setting for QtCreator/scratchbox devel connection | 14:04 |
DocScrutinizer05 | since your network manager will interfere anything you try | 14:04 |
freemangordon | KotCzarny: on ubuntu it is 2 clicks away :) | 14:04 |
KotCzarny | network manager is evil abomination of systemd devels | 14:04 |
DocScrutinizer05 | on windows it might be actually simpler | 14:04 |
freemangordon | DocScrutinizer05: actually it is very complicated | 14:05 |
freemangordon | you need to play with netsh | 14:05 |
Enrico_Menotti | Ok. Thank you for all the feedback. But please let me understand. | 14:05 |
Enrico_Menotti | So first, I have a Debian distro running on the PC. | 14:05 |
Enrico_Menotti | I connect the N900 via USB. | 14:05 |
DocScrutinizer05 | GOOD! | 14:05 |
freemangordon | great | 14:05 |
KotCzarny | first: do you require internet working via usb? | 14:06 |
KotCzarny | or just files? | 14:06 |
freemangordon | ^^^ that one | 14:06 |
DocScrutinizer05 | http://wiki.maemo.org/USB_networking#Linux | 14:06 |
*** florian has joined #maemo | 14:07 | |
Enrico_Menotti | DocScrutinizer05 Thanks for the links. I will read them. | 14:07 |
Enrico_Menotti | For now, let me just explain what I did. | 14:07 |
KotCzarny | if you prefer internet via vifi to stay alive, just comment out gateway line in /etc/network/interfaces (the one in usb0 contect) | 14:07 |
KotCzarny | *context | 14:08 |
Sicelo | not needed. | 14:08 |
DocScrutinizer05 | usb networking not needed ;-) | 14:08 |
DocScrutinizer05 | as long as you own a WLAN access point | 14:08 |
Sicelo | i meant .. no need to comment out anything. | 14:09 |
DocScrutinizer05 | it's really a PITA | 14:09 |
DocScrutinizer05 | Sicelo: err, sorry, I missed some context | 14:09 |
Sicelo | usb networking does not interfere with wifi at all. if it seems to, that's user error, not N900 issue | 14:09 |
freemangordon | Sicelo: sure, but he will have to delete usb0 route every time he brings usb0 up | 14:09 |
freemangordon | in order not to have default GW setup through usb0, he has to comment the "gateway" line in /etc/network/interfaces | 14:10 |
freemangordon | as KotCzarny said | 14:10 |
Sicelo | ah yes .. guess i'm also getting confused here lol | 14:10 |
DocScrutinizer05 | usb networking ois really deprecated | 14:10 |
DocScrutinizer05 | it's a PITA and so much more intricate than WiFi | 14:11 |
freemangordon | DocScrutinizer05: it is absolutely ok, and the rules are exactly the same as for the other network interfaces | 14:11 |
Sicelo | +1 | 14:11 |
freemangordon | it is not some kind of a special net device | 14:11 |
DocScrutinizer05 | you forget to count in the mess on PC | 14:11 |
freemangordon | there is no mess, esp on linux | 14:11 |
Sicelo | actually the same thing happens when you want to use wifi & gprs simultaneously (yes some of us need that sometimes) | 14:12 |
freemangordon | on windows it is tricky, but not THAT hard | 14:12 |
DocScrutinizer05 | well, when you're happy with turning your PC fronm a client into a router, then yes | 14:12 |
Enrico_Menotti | Ok, guys, sorry, please wait a minute... I will try to explain what I did... I'd like to understand... | 14:12 |
freemangordon | there is no ohter way, if we assume "router" is a device transferring packets from one interface to another | 14:12 |
freemangordon | Enrico_Menotti: ok | 14:13 |
DocScrutinizer05 | I'm out, I for sure don't want to deal with USB in any way, unless I have to | 14:13 |
Enrico_Menotti | I issued, on the PC, ifconfig usb0 192.168.2.14. This seems necessary in order to establish ssh. I admit I don't understand why the host side of the usb connection has to be that particular address. Maybe it's due to /etc/network/interfaces. | 14:13 |
Enrico_Menotti | Then I issued, on the N900, ifup usb0. | 14:14 |
Enrico_Menotti | At this point I'm able to ssh from the computer to the N900 by ssh 192.168.2.15. | 14:14 |
Enrico_Menotti | Also here, I don't understand why that particular address. | 14:14 |
freemangordon | Enrico_Menotti: there is no need for there address to be 192.168.2.14 | 14:14 |
DocScrutinizer05 | at that point you established a LAN cosisting of two nodes: 192.168.2.15 and 192.168.2.14 | 14:14 |
Enrico_Menotti | DocScrutinizer05 Yes, ok, I understand this. | 14:15 |
DocScrutinizer05 | with no links of any kind to any other network | 14:15 |
freemangordon | it will work with any address on 192.168.2.0 network, besides 192.168.2.15, because it is the address of the device | 14:15 |
freemangordon | Enrico_Menotti: where did you get 192.168.2.14 address from? | 14:16 |
DocScrutinizer05 | freemangordon: seems 192.168.2.15 is hardcoded | 14:16 |
freemangordon | not, it is not | 14:16 |
freemangordon | int is in /etc/network/interfaces | 14:16 |
freemangordon | *it is | 14:16 |
DocScrutinizer05 | that's what I'm talking about :-P | 14:16 |
freemangordon | this is not hardcoded | 14:16 |
Enrico_Menotti | freemangordon Don't remember any more, sorry, it was a few weeks ago, it's one of the first thing I did with the N900. | 14:16 |
freemangordon | Enrico_Menotti: so, in short - you may assign whatever address you want to both the device and the PC | 14:17 |
DocScrutinizer05 | then softcoded X-P | 14:17 |
freemangordon | they MUST be in one and the same network, otherwise they won;t "see" each other | 14:17 |
DocScrutinizer05 | anyway if you want to change those addresses, you need to edit stuff | 14:17 |
freemangordon | Enrico_Menotti: TCP addresses starting with 192.168.x.x are in the so-called "C" class networks (just a detail) :) | 14:18 |
DocScrutinizer05 | and get a 100g Vodka if your PC LAN is 192.168.2.0/24 | 14:18 |
freemangordon | routers ususlly use 192.168.1.x | 14:19 |
freemangordon | or 192.168.0.x | 14:19 |
Enrico_Menotti | Right, it's subnet mask 255.255.255.0, right? | 14:19 |
freemangordon | yes | 14:19 |
DocScrutinizer05 | HAHA do you think anything in my network is _usual_ | 14:19 |
freemangordon | DocScrutinizer05: please, let me explain to Enrico_Menotti what is going on :) | 14:19 |
Enrico_Menotti | freemangordon Please. I'm listening. | 14:20 |
freemangordon | Enrico_Menotti: so, by setting both interfaces in one and the same network, you will have network connectivity, BUT only for addresses on that network | 14:20 |
freemangordon | look route -n output you apstebin ^^^ | 14:20 |
freemangordon | 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0 | 14:21 |
freemangordon | ^^^ means that for addresses starting with 192.168.2.X, the packets will be send through usb0 interface | 14:21 |
DocScrutinizer05 | http://paste.opensuse.org/7622474 | 14:21 |
freemangordon | Enrico_Menotti: anything unclear so far? | 14:21 |
Enrico_Menotti | All clear, ok. | 14:22 |
freemangordon | ok... | 14:22 |
freemangordon | now, what is "default gateway"... | 14:22 |
Enrico_Menotti | Sorry? | 14:23 |
freemangordon | "default gateway" is a network interface the packets are send to, when there is no match with the adresses of the interfaces | 14:23 |
freemangordon | Enrico_Menotti: I am continuing with the explanantion :) | 14:23 |
freemangordon | *explanation | 14:23 |
Enrico_Menotti | Sorry! :) | 14:24 |
DocScrutinizer05 | lesson | 14:24 |
freemangordon | in your case you have 2 of them: | 14:24 |
freemangordon | 0.0.0.0 192.168.2.14 0.0.0.0 UG 0 0 0 usb0 | 14:24 |
freemangordon | 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0 | 14:24 |
DocScrutinizer05 | UGH | 14:24 |
DocScrutinizer05 | Kernel IP routing table | 14:26 |
DocScrutinizer05 | Destination Gateway Genmask Flags Metric Ref Use Iface | 14:26 |
freemangordon | those four zeroes (0.0.0.0) along with netmask of 0.0.0.0, mean that ANY address you try to connect (or rather send packet to) not belonging to networks 192.168.2.x or 192.168.0.x will be send through usb0 | 14:26 |
*** dafox has joined #maemo | 14:26 | |
DocScrutinizer05 | 192.168.4.0 * 255.255.255.0 U 0 0 0 wlan0 | 14:26 |
DocScrutinizer05 | default 192.168.4.1 0.0.0.0 UG 0 0 0 wlan0 | 14:26 |
freemangordon | DocScrutinizer05: please, hold on a secod | 14:26 |
freemangordon | *second | 14:26 |
freemangordon | Enrico_Menotti: usb0 is chosen because it comes in the list BEFORE wlan0 | 14:26 |
freemangordon | thus, all the packets (connections) you try to do are send via usb0. | 14:27 |
KotCzarny | 'sent' | 14:27 |
freemangordon | right | 14:27 |
freemangordon | BUT your PC is not setup to act as a router, so they are effectively dropped | 14:27 |
KotCzarny | long story short, self inflicted network breakage on enrico's part | 14:28 |
freemangordon | Enrico_Menotti: is it getting clearer now? | 14:28 |
KotCzarny | fixable by removing gateway from usb | 14:28 |
freemangordon | mhm | 14:28 |
Enrico_Menotti | freemangordon Yes, it is indeed. | 14:28 |
KotCzarny | or configuring pc to act as a router | 14:28 |
freemangordon | Enrico_Menotti: ok then, explain what you're trying to achieve | 14:28 |
Enrico_Menotti | Well, first of all understanding. :) | 14:29 |
DocScrutinizer05 | that's always a noble goal | 14:29 |
freemangordon | you want to understand what? | 14:29 |
freemangordon | ask your question | 14:29 |
Enrico_Menotti | Ok, ok, you already explained lots of things I did not understand by myself. | 14:30 |
KotCzarny | buying linux for the beginners is recommended | 14:30 |
freemangordon | KotCzarny: this is not linux, this is networking :) | 14:30 |
NotKit | when trying to run Maemo UI on HiDPI screen like 1920x1080, would the best way would be to set lower resolution in X server and upscale it? | 14:30 |
KotCzarny | fmg, essential part of linux is networking ;) | 14:30 |
freemangordon | NotKit: why not native? performance? | 14:30 |
Enrico_Menotti | freemangordon I'd like to ask a couple of things. | 14:31 |
freemangordon | go ahead | 14:31 |
freemangordon | don;t ask to ask :) | 14:31 |
NotKit | interface don't seem to be adapted for this | 14:31 |
freemangordon | ah, I see | 14:31 |
freemangordon | NotKit: hmm, wait, it should be (tm) | 14:31 |
freemangordon | iirc the code calculates lots of thing based on the resolution | 14:32 |
Enrico_Menotti | First, in the first two lines of the routing table, the gateway for the two local networks (wlan and usb) is set as 0.0.0.0. What is this? | 14:32 |
KotCzarny | it should try to calculate in millimeters | 14:32 |
freemangordon | maybe only the icon sizes could be problematic | 14:32 |
KotCzarny | it's essentially what human would want | 14:32 |
DocScrutinizer05 | http://aplawrence.com/Unixart/route.html | 14:32 |
KotCzarny | ie. relative to his finger size | 14:33 |
DocScrutinizer05 | ~ask | 14:33 |
infobot | Questions in the channel should be specific, informative, complete, concise, and on-topic. Don't ask if you can ask a question first. Don't ask if a person is there; just ask what you intended to ask them. Better questions more frequently yield better answers. We are all here voluntarily or against our will. | 14:33 |
KotCzarny | 0.0.0.0 is ana alias for 'default network, catch all' | 14:33 |
KotCzarny | *an | 14:33 |
KotCzarny | because there are specific routes ie. 192.168.2.0/24 will be designation of your usb setup | 14:34 |
DocScrutinizer05 | Enrico_Menotti: 0.0.0.0 is wildcard | 14:34 |
freemangordon | KotCzarny: I am not sure those 0.0.0.0 for GW on an interface actually means anything | 14:35 |
KotCzarny | and when particular packet dont get routed by any specific rule, 0.0.0.0 is used | 14:35 |
freemangordon | KotCzarny: see what he asked ^^^ | 14:35 |
Enrico_Menotti | KotCzarny This is for the third and fourth line, right? | 14:35 |
freemangordon | 0.0.0.0 on the first and the second line | 14:35 |
Enrico_Menotti | I'm concerned with the gateway in the first two. | 14:35 |
KotCzarny | fmg: https://en.wikipedia.org/wiki/Default_route | 14:35 |
freemangordon | KotCzarny: this is NOT default route | 14:36 |
freemangordon | default route has address 0.0.0.0, not gateway 0.0.0.0 | 14:36 |
Enrico_Menotti | freemangordon Right, I think so. | 14:36 |
KotCzarny | btb (house call) | 14:36 |
DocScrutinizer05 | see my spam post above | 14:36 |
*** dafox has quit IRC | 14:36 | |
Enrico_Menotti | DocScrutinizer05 The wildcard? | 14:37 |
DocScrutinizer05 | http://paste.opensuse.org/6131360 | 14:37 |
freemangordon | DocScrutinizer05: you mean '*' for interface GW? | 14:37 |
DocScrutinizer05 | yes | 14:38 |
DocScrutinizer05 | and "default" for destination | 14:38 |
DocScrutinizer05 | route is more human readable in that | 14:38 |
freemangordon | I don;t think that * means anything | 14:38 |
DocScrutinizer05 | it means "applies to all gateways" no? | 14:39 |
Enrico_Menotti | Ok, I understand the "default" in the destination, but not the "*" in the gateway. | 14:39 |
freemangordon | Enrico_Menotti: just ignore it for now :) | 14:39 |
DocScrutinizer05 | you could have multiple gateways with differnet metrics afaik | 14:39 |
freemangordon | "The gateway address or '*' if none set." | 14:39 |
freemangordon | DocScrutinizer05: ^^^ this is from man route | 14:40 |
DocScrutinizer05 | yes, sure | 14:40 |
DocScrutinizer05 | "none set" == 0.0.0.0 | 14:40 |
freemangordon | Enrico_Menotti: so, this means "no gateway set" | 14:40 |
DocScrutinizer05 | aka 'wildcard' | 14:40 |
DocScrutinizer05 | or colloquial "never mind, it's an advanced feature" | 14:41 |
freemangordon | mhm | 14:41 |
freemangordon | I am not even sure it is possible to setup anything there | 14:43 |
Enrico_Menotti | Ah ok. So the 0.0.0.0 means that packets to those first two IP's go directly there, without a gateway, through the specified interface, or that they pass through whatever gateway is available (but there are no other gateways here at play, right?). | 14:43 |
Enrico_Menotti | ? | 14:43 |
Enrico_Menotti | (Sorry it was a question. Not dot, question mark.) | 14:44 |
DocScrutinizer05 | http://paste.opensuse.org/6131360 the lyrical way: there's a network 192.168.4.x (all adresses 192.168.4.0 to 192.168.4.255 are available on this) and your interface is one of them. (end of line one) All destinations ('default') that are NOT on 192.168.4.x are available via router 192.168.4.1 (end of line 2) | 14:45 |
freemangordon | Enrico_Menotti: what happens is - tcp stack gets destination address, applies bitwise AND with all netmasks(third column), and compares the resulting value with the first column | 14:46 |
freemangordon | the first line that matches is the chosen interface | 14:47 |
Enrico_Menotti | freemangordon Ok, I understand, but if the chosen interface is in the first two lines, since the gw is set as 0.0.0.0, does the packet go directly to its destination, or through a gw? | 14:47 |
DocScrutinizer05 | see my lyric explanation above | 14:48 |
DocScrutinizer05 | any address directly available on a defined network does _not_ get redirected to a gateway | 14:49 |
freemangordon | sorry, had a phone call | 14:49 |
freemangordon | Enrico_Menotti: directly | 14:50 |
DocScrutinizer05 | use route without ".n", it's waaay more human readable | 14:50 |
DocScrutinizer05 | -n, even | 14:50 |
Enrico_Menotti | DocScrutinizer05 Ah ok this is clearer. So the gw is not set, but also not needed for my purposes, right? | 14:51 |
freemangordon | I dislike it, as it tries to do reverse dns resolution | 14:51 |
DocScrutinizer05 | right | 14:51 |
freemangordon | Enrico_Menotti: now, do you understand why you don't have internet when usb0 is up? | 14:53 |
DocScrutinizer05 | the 'trick' is your network stack _knows_ about all the addresses directly available in that netwrork, from own address and netmask, both in ifconfig | 14:53 |
KotCzarny | gateway set to 0.0.0.0 for particular interface means to use default route | 14:53 |
freemangordon | hmm, right | 14:54 |
freemangordon | or rather "to not use gateway" :) | 14:54 |
KotCzarny | or 'see default gw' ;) | 14:54 |
freemangordon | but send directly through that interface | 14:54 |
freemangordon | KotCzarny: I tend to disagree | 14:55 |
freemangordon | if you have address match, no gateway lookup is performed afaik | 14:55 |
DocScrutinizer05 | for the curious geeks: I guess you could have two NIC with addr on same network. In this case gateway for LAN ("U") makes sense | 14:55 |
freemangordon | anyway, this is very advanced routing, not usually found in home PCs | 14:56 |
DocScrutinizer05 | hmm, nope, that would be 'iface' then | 14:56 |
freemangordon | mhm | 14:56 |
DocScrutinizer05 | nfc what for you need "gateway" in U | 14:57 |
DocScrutinizer05 | "no meaning" in U, needs a value nevertheless for filling the column in table ;-P | 14:57 |
freemangordon | Enrico_Menotti: BTW, do you know what 192.168.0/24 is supposed to mean? | 14:57 |
KotCzarny | yes, there are more rules than just ip | 14:57 |
KotCzarny | it means match any address from 192.168.1.X range | 14:58 |
KotCzarny | 192.168.1.0/16 would mean: match any ip from 192.168.Y.X | 14:58 |
DocScrutinizer05 | freemangordon: why do you ask this? | 14:58 |
freemangordon | KotCzarny: I would read it as addr 192.168.1.0 netmask 255.255.255.0, the point is that the number after / means how many consecutive nonzero bit we have in the 32 bit netmask, counting from right to left :) | 14:59 |
KotCzarny | yes, now you would need to explain what netmask is ;) | 14:59 |
DocScrutinizer05 | freemangordon: why not ask "are you aware what netmask (255.255.255.0 aka /24) means?" | 14:59 |
freemangordon | DocScrutinizer05: because we have types in linux | 15:00 |
freemangordon | and it is one and the same thing | 15:00 |
KotCzarny | all in all, thanks to n900 he gets linux/networking crash course | 15:00 |
freemangordon | KotCzarny: I already explained ^^^ | 15:00 |
DocScrutinizer05 | you lost me | 15:00 |
KotCzarny | fmg: yeah, i'm sick and slow wyping/reading | 15:00 |
KotCzarny | so bear with my mental lags ;) | 15:00 |
KotCzarny | *typing | 15:00 |
Enrico_Menotti | Ok, right, one of the few things I still remember from my network courses at the University is that IP addresses are composed by two parts, right? | 15:01 |
freemangordon | "what happens is - tcp stack gets destination address, applies bitwise AND with all netmasks(third column), and compares the resulting value with the first column" | 15:01 |
Enrico_Menotti | The network address, and the host address inside the (sub) network. If I remember right. | 15:02 |
freemangordon | Enrico_Menotti: I guess it could be said like that - "network" and "host", so yeah | 15:02 |
DocScrutinizer05 | Enrico_Menotti: simply means: only look at the leftmost /N bits of addr | 15:02 |
KotCzarny | btw. did you guys heard that powervr sgx5XX source was dumped on the internet? | 15:02 |
freemangordon | KotCzarny: yeah, some 3 years ago iirc | 15:02 |
freemangordon | :) | 15:02 |
DocScrutinizer05 | Enrico_Menotti: or "only look at the bits where netmask bit is 1" | 15:02 |
KotCzarny | Enrico_Menotti: nope, that's connection | 15:02 |
KotCzarny | tcp address is just ip | 15:02 |
KotCzarny | hah | 15:03 |
Enrico_Menotti | KotCzarny ? | 15:03 |
freemangordon | KotCzarny: lets not merge tcp and ip, ok? :) | 15:03 |
KotCzarny | my aprils fools joke failed | 15:03 |
DocScrutinizer05 | Enrico_Menotti: so yes, you got an IP addr and a netmask that says which parts of the IP are relevant | 15:03 |
freemangordon | hmm, lets make it clear: | 15:03 |
KotCzarny | fmg: it's tcp/ip for a reason ;) | 15:03 |
freemangordon | IP == Internet Protocol | 15:03 |
freemangordon | TCP == Transmission Control Protocol | 15:03 |
Enrico_Menotti | Yes, the netmask says how long is the part that states the addresses of hosts in the subnet, right? | 15:04 |
freemangordon | no | 15:04 |
DocScrutinizer05 | the /N form does, yes | 15:04 |
freemangordon | it is the value to apply bitwise AND with the destination address, in short | 15:04 |
Enrico_Menotti | freemangordon I mean, it's binary form states this. | 15:04 |
KotCzarny | http://31.135.195.151:20280/_tools/calc.php | 15:05 |
KotCzarny | have fun with it | 15:05 |
Enrico_Menotti | freemangordon Yes, we are saying the same thing, I did not explain my thought in a clear way. | 15:05 |
DocScrutinizer05 | >>there's a network 192.168.4.x (all adresses 192.168.4.0 to 192.168.4.255 are available on this)<< Netmask 255.255.255.0 aka /24 | 15:05 |
KotCzarny | see how different /N affect the network and bits | 15:05 |
freemangordon | Enrico_Menotti: iirc it is not disallowed to have non-consecutive ones in the netmask, so "long" is not applicable here | 15:06 |
DocScrutinizer05 | the /24 means: watch only the leftmost 24 bits in the 32 bit addr | 15:06 |
freemangordon | right, but you can;t use /N form for netmask of 255.255.255.1 | 15:06 |
Enrico_Menotti | freemangordon This I really did not know. Never seen anything of this kind. | 15:06 |
KotCzarny | fmg: is such mask even legal? | 15:07 |
freemangordon | on my home network? | 15:07 |
DocScrutinizer05 | freemangordon: I think that's an ODD or even invalifd netmask | 15:07 |
KotCzarny | lol | 15:07 |
freemangordon | sure, it is odd | 15:07 |
freemangordon | but invalid? why? | 15:07 |
KotCzarny | because its ineffective/useless | 15:07 |
DocScrutinizer05 | because NICs don't support it I guess | 15:07 |
DocScrutinizer05 | on a hardware level | 15:08 |
freemangordon | DocScrutinizer05: NICs have no idea of TCP | 15:08 |
DocScrutinizer05 | ooh for netmasks they might | 15:08 |
freemangordon | I doubt | 15:08 |
KotCzarny | routers/switches might barf | 15:08 |
DocScrutinizer05 | checkout WLAN | 15:08 |
Enrico_Menotti | As they told me many years ago, the subnet addresses are composed by either 1, 2 or 3 bytes. The first case implies 3 bytes for the network address, the second implies 2 bytes, the third 1. These are the three classes of networks. Am I right? | 15:08 |
freemangordon | sure, but for ethernet it is perfectly fine netmask, albeit odd and ineffective | 15:09 |
DocScrutinizer05 | hardMAC will filter for IP addr and not even wake CPU when not addressed | 15:09 |
KotCzarny | Enrico_Menotti: you are talking about traditional (old) subnet classes | 15:09 |
DocScrutinizer05 | that's the whhole point of promiscuous mode | 15:09 |
KotCzarny | in fact there might be other masks/networks configured | 15:10 |
Enrico_Menotti | KotCzarny Ah it's something I learned in 2000/2001. | 15:10 |
freemangordon | 2 days ago I setup a netmask of 255.255.255.28 iirc | 15:10 |
DocScrutinizer05 | *cough* | 15:10 |
DocScrutinizer05 | many tools reject that | 15:11 |
freemangordon | anyway, the rule is addr AND mask | 15:11 |
DocScrutinizer05 | and for good reason | 15:11 |
KotCzarny | fmg, 'it works' vs 'it's proper' are two different things | 15:11 |
freemangordon | sure | 15:11 |
KotCzarny | you can have your lan set to 8.8.8.0/24 | 15:11 |
KotCzarny | and it WILL work | 15:12 |
freemangordon | but you can do whatever suits you in your intranet | 15:12 |
KotCzarny | but there will be gotchas | 15:12 |
KotCzarny | and better not to let bad habits stick | 15:12 |
Enrico_Menotti | Ok, let's try to close this question (gateway 0.0.0.0), ok? If a packet goes to an address belonging to those specified in the first two lines, and the address is found on the local network, the packet goes straight there, right? But what if the address is not found? Is the packet immediately rejected, or the routing protocol looks for a gw with address 0.0.0.0? | 15:12 |
freemangordon | ok, ok | 15:12 |
freemangordon | Enrico_Menotti: again, stack does AND to find the interface | 15:13 |
KotCzarny | enrico: 'straight there' results from defined route for your lan | 15:13 |
freemangordon | the result of 1.2.3.4 AND 0.0.0.0 is 0.0.0.0 :) | 15:13 |
DocScrutinizer05 | freemangordon: maybe boolean AND is not a nice easy way to explain it | 15:13 |
KotCzarny | it's not magical, it's setup automatically when bringing up the interface | 15:13 |
freemangordon | it is not boolean, but bitwise :) | 15:14 |
freemangordon | DocScrutinizer05: maybe not nice and easy, but correct | 15:14 |
freemangordon | Enrico_Menotti: https://en.wikipedia.org/wiki/Bitwise_operation | 15:14 |
DocScrutinizer05 | Enrico_Menotti: the check only looks at the first /N bits of your addr, and compares those to the leftmost col in `route` | 15:15 |
DocScrutinizer05 | it follows the first line rule that matches | 15:15 |
Enrico_Menotti | Yes, ok, I understand all this. Let's say the address belongs to those specified in the first two lines, ok? | 15:15 |
DocScrutinizer05 | so for 192.18.4.33 it matches "192.168.4.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0" | 15:16 |
freemangordon | Enrico_Menotti: the first match is taken | 15:16 |
DocScrutinizer05 | for 8.8.8.8 it matches "0.0.0.0 192.168.4.1 0.0.0.0 UG 0 0 0 wlan0" | 15:16 |
KotCzarny | unless there are round robin routing algos running | 15:16 |
KotCzarny | which would then make things more 'interesting' ;) | 15:16 |
freemangordon | yeah, but this is advanced routing | 15:16 |
Enrico_Menotti | Ok, now. If 192.18.4.33 is actually on the wlan, the packet goes straight there, right? | 15:17 |
DocScrutinizer05 | yes | 15:17 |
KotCzarny | if it matches the route for wlan, yes | 15:17 |
Enrico_Menotti | (Since the gw is stated as 0.0.0.0). | 15:17 |
freemangordon | if your wlan is on 192.168.4.0/24 network, then yes | 15:17 |
DocScrutinizer05 | no | 15:17 |
DocScrutinizer05 | since the stack knows it's on LAN, from your ifconfig of the betwork | 15:18 |
DocScrutinizer05 | wlan0 Link encap:Ethernet HWaddr EC:9B:5B:FD:85:51 | 15:18 |
DocScrutinizer05 | inet addr:192.168.4.41 Bcast:192.168.4.255 Mask:255.255.255.0 | 15:18 |
Enrico_Menotti | DocScrutinizer05 Ok. | 15:18 |
DocScrutinizer05 | see, you got a IP addr ANd A NETMASK there too | 15:18 |
KotCzarny | if (ip&&mask == route dest) packet goes this way; else check next rule; | 15:19 |
DocScrutinizer05 | so it's evident you can reach 192.18.4.33 on that interface | 15:19 |
DocScrutinizer05 | no routing needed | 15:19 |
freemangordon | KotCzarny: if (ip & mask == route dest) ;) | 15:19 |
KotCzarny | right. | 15:20 |
KotCzarny | bitwise. | 15:20 |
KotCzarny | maybe i should work on code today ;) | 15:20 |
freemangordon | Enrico_Menotti: exactly what I was saying, but expressed in pseudocode | 15:20 |
DocScrutinizer05 | maybe ask if Enrico_Menotti is a coder, first? | 15:21 |
KotCzarny | s/should/shouldn't/ | 15:21 |
infobot | KotCzarny meant: maybe i shouldn't work on code today ;) | 15:21 |
KotCzarny | doh. | 15:21 |
freemangordon | and this is the way it works, unless there are some advanced routing rules setup, we won;t elaborate on here and now :) | 15:21 |
KotCzarny | fmg, and firewall! dont forget about firewall rules ;) | 15:22 |
freemangordon | well, but routing has been already done | 15:22 |
KotCzarny | not if firewall reroutes the packet or does nat ;) | 15:22 |
freemangordon | yeah, right | 15:22 |
freemangordon | I guess you mean snat :p | 15:23 |
KotCzarny | both | 15:23 |
Enrico_Menotti | Ok, I was just wondering what happens if the address matches that first line in the routing table, but that address is not actually on the wlan. Is the packet rejected, or a gateway at 0.0.0.0 is looked for? But I don't want now to continue on this elaboration. What you explained is really useful, thank you everybody. | 15:23 |
DocScrutinizer05 | Enrico_Menotti: your problem is you got TWO gateways, which is almost *always* a very odd thing to have | 15:23 |
KotCzarny | packet with new ip slappen on it is still having same payload (usually) | 15:23 |
DocScrutinizer05 | well, unless you have a router you want to config | 15:23 |
freemangordon | KotCzarny: DNAT and MASQUERADE are don in POSTROUTING tables IIRC | 15:23 |
KotCzarny | might be | 15:24 |
DocScrutinizer05 | OHNOES, please let's not start with iptables now! | 15:24 |
freemangordon | ok :) | 15:24 |
KotCzarny | :) | 15:24 |
DocScrutinizer05 | we had to, when we wanted to explain how to set up PC as router | 15:25 |
DocScrutinizer05 | but as said before, rather USE A DAMN WLAN ACCESS POINT!!! | 15:25 |
KotCzarny | one could have fun with circle routes | 15:25 |
freemangordon | DocScrutinizer05: at least on my ubuntu it is not needed to play with iptables in order to share your inet connection to another interface. there is a nice and easy GUI | 15:25 |
KotCzarny | and a little firewall rule to answer twice | 15:25 |
freemangordon | DocScrutinizer05: http://askubuntu.com/questions/359856/share-wireless-internet-connection-through-ethernet | 15:26 |
freemangordon | I guess it is same/similar on debian | 15:26 |
DocScrutinizer05 | well, then that tool does the iptables MASQUERADE et al magic for you. Doesn't save you from lengthy intricate explanations when it fails to work as supposed | 15:27 |
DocScrutinizer05 | which is the case more often than not, in my experience | 15:27 |
freemangordon | I think the only thing that has to be done is to set usb0 on N900 to auto | 15:27 |
KotCzarny | or disable usb0 gw | 15:28 |
KotCzarny | or make pc route/forward packets | 15:28 |
DocScrutinizer05 | or don't use friggin deprecated USB networking | 15:28 |
freemangordon | KotCzarny: no, as you need usb0 ip assigned via DHCP | 15:28 |
KotCzarny | fmg, but then he would need to setup dhcp on pc | 15:28 |
freemangordon | the same goes for GW/DNS | 15:28 |
DocScrutinizer05 | or read the relatively fine explanations in ~usbnetworking | 15:29 |
freemangordon | my ubuntu does it for me | 15:29 |
freemangordon | it is really that simple as explained on askubuntu | 15:29 |
freemangordon | sure, you can tweak it as much as you want | 15:29 |
DocScrutinizer05 | meh! have fun folks, i'm definitely out | 15:29 |
Enrico_Menotti | Ok, I think I understand what I need about my situation, enough to realise what is happening to my packets. Now, when has the second gw been set up? I mean: I have a wireless router, which has address 192.168.0.1, and it's set as gw for all IP's which are not on my (two) lan's, in the last line. But before that line, another line is setting 192.168.2.14 (my computer) as gw for those IP's. I need to avoid this third | 15:30 |
Enrico_Menotti | line. When has this been set up? How to avoid it? | 15:30 |
KotCzarny | when it was setup in /etc/network/interfaces | 15:30 |
KotCzarny | and usb0 went up | 15:30 |
DocScrutinizer05 | ((when has the second gw been set up?)) with ifup, so try ifdown! | 15:30 |
DocScrutinizer05 | may work, or fail | 15:31 |
Enrico_Menotti | So should I look into /etc/network/interfaces and try to edit it? | 15:31 |
Enrico_Menotti | Ok, let me try to do ifdown. | 15:31 |
KotCzarny | sure. disable gw there (only) | 15:31 |
DocScrutinizer05 | no, you should try ifdown and then don't use usb networking | 15:31 |
DocScrutinizer05 | ifup is not made to cope with your device having concurrent (WLAN) interface up and running, and you should not use it like that | 15:34 |
DocScrutinizer05 | ifup usb is made to provide full internet access via a PC that is set up to forward your traffic to the wider interbet | 15:35 |
DocScrutinizer05 | internet even | 15:35 |
DocScrutinizer05 | nobody considered you want to run it despite you have absolutely fine WLAN working | 15:36 |
DocScrutinizer05 | if you want to really explore that shite, disbale WLAN on N900 first | 15:36 |
Enrico_Menotti | DocScrutinizer05 Ok, I understand. | 15:36 |
Enrico_Menotti | The ifdown worked. | 15:36 |
DocScrutinizer05 | :-) | 15:36 |
Enrico_Menotti | I think the best thing to do is using the usb just for massive data transfer, and the wlan for the rest. | 15:37 |
DocScrutinizer05 | that's what I suggested, yes | 15:37 |
DocScrutinizer05 | only use ass rage mode | 15:37 |
DocScrutinizer05 | and don't use the device during that | 15:38 |
freemangordon | DocScrutinizer05: wrong, you can have perfectly running wlan internet access AND working ssh through usb simultaneously. He only needs to comment that "gateway" line in /etc/network/interfaces | 15:38 |
DocScrutinizer05 | WHAT FOR FFS!!! | 15:38 |
Enrico_Menotti | The last point: the "Y" on XTerminal. Any idea? (But I don't want to annoy you with this!) | 15:38 |
freemangordon | if he wants to | 15:38 |
DocScrutinizer05 | if he wants to he could install RTOS on the device, but **WHAT FOR**? | 15:39 |
KotCzarny | enrico, most likely similar 'self inflicted trouble story', we just dont know what you did yet ;) | 15:39 |
freemangordon | just because :) | 15:39 |
KotCzarny | enrico: you have said it works via ssh, right? | 15:39 |
KotCzarny | what exactly happens in terminal? | 15:39 |
Enrico_Menotti | Yes, it works via ssh. | 15:39 |
DocScrutinizer05 | Enrico_Menotti: use lower case y | 15:40 |
KotCzarny | pastebin | 15:40 |
freemangordon | :nod: | 15:40 |
Enrico_Menotti | In terminal, when I run apt-get, it ends in asking whether I want to continue, and proposes Y or n. No Y or y works. | 15:40 |
freemangordon | and what happens? | 15:40 |
Enrico_Menotti | Abort. | 15:40 |
KotCzarny | pastebin | 15:40 |
freemangordon | error message? | 15:40 |
Enrico_Menotti | As if I state n. | 15:40 |
Enrico_Menotti | No error message. | 15:40 |
freemangordon | yep. pastebin | 15:41 |
Enrico_Menotti | Seems just not to recognise the Y. | 15:41 |
DocScrutinizer05 | there _was_ some bug in apt with that | 15:41 |
KotCzarny | maybe you press enter and some other letter sneaks in | 15:41 |
DocScrutinizer05 | keymapping sneaks in | 15:41 |
freemangordon | mhm | 15:41 |
Enrico_Menotti | Is it possible that it detects me pressing shift? | 15:41 |
KotCzarny | sure | 15:41 |
KotCzarny | big fingers? | 15:42 |
DocScrutinizer05 | try the key right of "T" and the key your locale "yes" word starts with | 15:42 |
Sicelo | earlier i asked - does the Y/y get recognized properly in other applications? | 15:42 |
KotCzarny | and again, pastebin pls | 15:42 |
DocScrutinizer05 | or what Sicelo said | 15:42 |
Enrico_Menotti | Sicelo Sorry I don't know. I will work with it and see. | 15:43 |
DocScrutinizer05 | but as I said, there *was* a bug in that | 15:43 |
DocScrutinizer05 | something in the wider topic "locale" | 15:44 |
KotCzarny | ehehe | 15:44 |
Enrico_Menotti | Ok, so I will just use ssh or, if that's not possible, copy and paste from a text editor, right? | 15:44 |
KotCzarny | copypaste from terminal | 15:44 |
Enrico_Menotti | Ok, also. | 15:44 |
*** dafox has joined #maemo | 15:45 | |
KotCzarny | also output of: locale | 15:45 |
DocScrutinizer05 | Enrico_Menotti: try the following: LANG=gb_US apt-get installl .... blabla your cmdline | 15:46 |
freemangordon | LANG=en_US.UTF-8 | 15:46 |
DocScrutinizer05 | see if the prefix "LANG=gb_US " changes stuff for you | 15:46 |
DocScrutinizer05 | or what freemangordon said | 15:46 |
freemangordon | this is what is set on my N900 | 15:47 |
DocScrutinizer05 | sorry, I'm getting dizzy with this | 15:47 |
*** buZz has quit IRC | 15:47 | |
DocScrutinizer05 | IroN900:~# echo $LANG | 15:48 |
DocScrutinizer05 | de_DE | 15:48 |
DocScrutinizer05 | for whatever friggin reason :-/ | 15:48 |
Enrico_Menotti | https://pastebin.com/CpQjJQq4 | 15:48 |
DocScrutinizer05 | usually I don't care | 15:48 |
Enrico_Menotti | My locale. | 15:48 |
Enrico_Menotti | It's Italian. | 15:48 |
Enrico_Menotti | There something strange, though. A couple of errors. | 15:48 |
KotCzarny | does apt asks you for yes oe si? | 15:48 |
KotCzarny | try s | 15:49 |
KotCzarny | or S | 15:49 |
DocScrutinizer05 | try "LANG=en_US.UTF-8 apt-get ..." | 15:49 |
DocScrutinizer05 | what's the italian word for "yes"? try first letter as suggested above | 15:49 |
freemangordon | Enrico_Menotti: how is "yes" in Italian? "si"? try to enter S when asked | 15:50 |
KotCzarny | and for future, its best to keep root accoubt with kocale set to C | 15:50 |
freemangordon | right | 15:50 |
KotCzarny | ie. add to your /root/.profile: export LC_ALL=C | 15:50 |
Enrico_Menotti | Ok, I will consider all these options. Now I cannot test them, since I already installed my package by ssh. | 15:51 |
Enrico_Menotti | What's C? | 15:51 |
KotCzarny | theb relog | 15:51 |
KotCzarny | uninstall package | 15:51 |
KotCzarny | insstall again :P | 15:51 |
Enrico_Menotti | KotCzarny Ok, but I'd prefer not. :) | 15:51 |
KotCzarny | then choose some small package | 15:51 |
KotCzarny | what is small enough and non essential? | 15:52 |
DocScrutinizer05 | now thinking about it I guess the BUG was: apt asks for "yes/no" but expects reply in locale set | 15:52 |
DocScrutinizer05 | on a more technical level: apt localization broken for some locales, when asking for yes/no reply | 15:52 |
Enrico_Menotti | I will tell "sì". So a capital S. | 15:53 |
Enrico_Menotti | :) | 15:53 |
KotCzarny | enrico: use 3g2g-mode-selection-applet for a testing | 15:53 |
KotCzarny | its 8kb small | 15:53 |
*** buZz has joined #maemo | 15:54 | |
DocScrutinizer05 | Enrico_Menotti: it's a good approach to "rather not2 on may stuff kotzarny suggests. I got him on my ignore for his offensive way to force his own thoughts on others | 15:54 |
KotCzarny | its a good approach to ignore docs often too, as he sees only one way to setup everything. his | 15:54 |
Enrico_Menotti | :) | 15:55 |
Enrico_Menotti | Don't fight please! | 15:55 |
DocScrutinizer05 | thoughts that often are plain wrong or unneededly complex | 15:55 |
KotCzarny | enrico: what was the result of S ? | 15:55 |
Enrico_Menotti | Ok, now it's late. I have to set up myself. I have to go out now. I will test the "S" another time. Now I really can't. Thank you everybody for the useful and pleasant discussion. | 15:56 |
KotCzarny | :) | 15:56 |
DocScrutinizer05 | test the "S"? aah Si, eh? | 15:57 |
DocScrutinizer05 | oh, you said that above | 15:58 |
* DocScrutinizer05 also heads out, for good | 15:58 | |
DocScrutinizer05 | FWIW: http://paste.opensuse.org/62693600 | 16:03 |
DocScrutinizer05 | so either in "apt 0.7.20.2maemo13.2 for armel compiled on Dec 23 2014 22:50:05" or in my system's locale settings (incl the locale translation files) it's fixed. Or I messed up and forgot about some detail during test | 16:06 |
*** tryagain has joined #maemo | 16:09 | |
DocScrutinizer05 | related: https://lists.debian.org/deity/2012/10/msg00043.html | 16:17 |
DocScrutinizer05 | I.E. "broken .po file" | 16:18 |
*** florian has quit IRC | 16:20 | |
*** florian has joined #maemo | 16:20 | |
DocScrutinizer05 | http://paste.opensuse.org/51490349 | 16:29 |
*** auenf has quit IRC | 16:31 | |
*** auenf has joined #maemo | 16:31 | |
*** jonwil has quit IRC | 16:35 | |
Sicelo | KotCzarny: thanks for the pastebin /raw/ trick | 16:39 |
KotCzarny | sicelo: i've converted to noscript extension some time ago, it really helps | 16:39 |
KotCzarny | and if a site fails to work without js, tough luck, i go elsewhere | 16:41 |
KotCzarny | it has clickable enable too, for sites you want/need to access | 16:41 |
Sicelo | i have it .. maybe i should check my config again | 16:42 |
KotCzarny | or click 'allow temporarily' instead 'permament' | 16:43 |
Sicelo | on another note: i think this simple code is elegant (not mine of course) | 16:47 |
Sicelo | http://pastebin.com/raw/SQm1Dupa | 16:51 |
KotCzarny | exploitable | 16:52 |
KotCzarny | :> | 16:52 |
Sicelo | meaning? | 16:53 |
KotCzarny | opening links without knowing where they will land? | 16:53 |
KotCzarny | ahm, its msg reader? | 16:53 |
Sicelo | lol .. it just takes messages and sends them to MicroB | 16:54 |
Sicelo | seems he made it for people who need large text, as font size is not adjustable | 16:55 |
KotCzarny | keep in mindg your /tmp is only 1MB | 16:55 |
Sicelo | unlikely that you'd have messages that much .. anyway .. i just like the concept. i don't personally need large text | 16:56 |
KotCzarny | yup, nice bit of code | 16:56 |
Sicelo | oscp/gtk ..you use hildon styling or plain gtk? | 16:58 |
KotCzarny | depends on mode | 16:58 |
KotCzarny | its configurable in options | 16:58 |
KotCzarny | same as for oscp-remote.py | 16:58 |
KotCzarny | with plain getk it gets hildon styling | 16:58 |
KotCzarny | because hildon uses system's gtk theme | 16:59 |
KotCzarny | but you can overrule gtk style in app too | 16:59 |
KotCzarny | though usually its a bad idea | 16:59 |
Sicelo | ok. | 16:59 |
*** vahe has joined #maemo | 17:47 | |
*** Kabouik has joined #maemo | 17:56 | |
*** florian has quit IRC | 17:58 | |
*** vahe has quit IRC | 18:33 | |
*** vahe has joined #maemo | 18:36 | |
*** buZz has quit IRC | 18:43 | |
*** florian has joined #maemo | 18:59 | |
*** esaym153 has quit IRC | 19:04 | |
*** esaym153 has joined #maemo | 19:06 | |
*** vahe has quit IRC | 19:59 | |
*** shentey has joined #maemo | 20:00 | |
*** dafox has quit IRC | 20:03 | |
Sicelo | i want to run CM13 on my Samsung Galaxy S4 - looks like flasher intricacies are nothing compared to the confusion in the Android world :-/ | 20:07 |
KotCzarny | :) | 20:08 |
*** shentey has quit IRC | 20:14 | |
NotKit | does Fennec require non-composited mode? | 20:33 |
*** kraft has joined #maemo | 20:34 | |
*** kraft has quit IRC | 20:38 | |
*** kraft has joined #maemo | 20:39 | |
*** drathir has quit IRC | 20:54 | |
*** warfare has quit IRC | 20:54 | |
*** warfare has joined #maemo | 20:55 | |
*** drathir has joined #maemo | 20:56 | |
*** xy2_ has joined #maemo | 21:14 | |
*** ssvb has quit IRC | 21:23 | |
*** r00t-home has quit IRC | 21:36 | |
*** xy2_ has quit IRC | 21:50 | |
*** ashneo76 has joined #maemo | 22:02 | |
*** Roth has joined #maemo | 22:15 | |
*** Roth_ has joined #maemo | 22:21 | |
*** Roth has quit IRC | 22:24 | |
*** Roth has joined #maemo | 22:26 | |
*** Roth_ has quit IRC | 22:29 | |
*** Roth_ has joined #maemo | 22:31 | |
*** Roth has quit IRC | 22:34 | |
*** Roth has joined #maemo | 22:36 | |
*** N-Mi has quit IRC | 22:38 | |
*** Roth_ has quit IRC | 22:39 | |
*** Roth_ has joined #maemo | 22:41 | |
*** Roth has quit IRC | 22:44 | |
*** Roth has joined #maemo | 22:46 | |
*** chainsawbike has quit IRC | 22:49 | |
*** Roth_ has quit IRC | 22:50 | |
*** chainsawbike has joined #maemo | 22:50 | |
*** Roth_ has joined #maemo | 22:51 | |
*** N-Mi has joined #maemo | 22:55 | |
*** Roth has quit IRC | 22:55 | |
*** Roth has joined #maemo | 22:56 | |
Zungo | Sicelo: samsung phones are the easiest thing to flash stuff :p | 22:59 |
Zungo | also, if its the i9500 | 22:59 |
Zungo | meh | 22:59 |
Zungo | you're using proprietary blobs :( | 22:59 |
*** Roth_ has quit IRC | 23:00 | |
* Zungo suddenly feels stupid | 23:00 | |
*** Roth_ has joined #maemo | 23:02 | |
Sicelo | well .. | 23:03 |
Sicelo | right now the bugger is not being detected when in dowload mode. i feel like flinging it to the wall | 23:03 |
Sicelo | adb does work fine. i've tried other USB ports, and cables | 23:04 |
*** Roth has quit IRC | 23:05 | |
KotCzarny | either wrong usb port, wrong driver, booted instead of flashing or it's a punishment for straying away from godly n900 | 23:05 |
Zungo | sicelo: you use odin for download mode | 23:05 |
Zungo | and the samsung usb drivers provide all the drivers | 23:06 |
Zungo | adb, "modem", download mode and stock recovery | 23:06 |
Sicelo | Zungo: i'm using Linux, and the phone does not even come up in syslog .. so that's not driver issue in my book | 23:07 |
Zungo | well, you need windows to use download mode | 23:07 |
*** Roth has joined #maemo | 23:07 | |
Sicelo | then what's heimdall for? | 23:07 |
Zungo | right | 23:07 |
Zungo | something up with the connection | 23:07 |
warfare | Sicelo: try changing the cable, Samsungs are picky. | 23:07 |
Zungo | ^ yea | 23:07 |
Sicelo | i've tried 3 now | 23:07 |
Zungo | rebooted when changing cables? | 23:08 |
Sicelo | reboot phone? yes. pc no | 23:08 |
*** Roth_ has quit IRC | 23:10 | |
Sicelo | by the way, adb can interact with the phone just fine (which suggests to me that the cable is fine, as well as the port on pc) | 23:10 |
Sicelo | in download mode, absolutely nothing | 23:10 |
Zungo | try windows? | 23:10 |
warfare | Is the cdc_acm module loaded? | 23:10 |
Zungo | hmmm | 23:10 |
Zungo | nvm | 23:11 |
KotCzarny | is device showing in lsusb? | 23:11 |
Sicelo | where am i going to get windows :p | 23:11 |
Zungo | anywhere | 23:11 |
Sicelo | KotCzarny: doesn't show up in syslog .. definitely no chance for it to show up in lsusb. | 23:11 |
Zungo | lol | 23:11 |
KotCzarny | not true | 23:11 |
KotCzarny | if your kernel wanst compiled with 'announce new devices' | 23:11 |
KotCzarny | *wasnt' | 23:11 |
*** Roth_ has joined #maemo | 23:12 | |
Zungo | how to query kernel capabilities? | 23:12 |
KotCzarny | gzip -dc /proc/config.gz|grep SOMETHING | 23:12 |
KotCzarny | sicelo, lsusb queries usb tree | 23:13 |
Sicelo | warfare: it is (was loaded when connecting it in normal mode for adb). i've removed now. will test again | 23:14 |
*** Roth has quit IRC | 23:15 | |
warfare | Oh, and did you stop adb? | 23:15 |
Zungo | download mode doesnt use adb | 23:15 |
warfare | Thats why it should be stopped ;) | 23:16 |
Zungo | irrelevant... | 23:16 |
Zungo | hmm | 23:16 |
Zungo | maybe it interferes, sure | 23:16 |
*** Roth has joined #maemo | 23:17 | |
Sicelo | it was still running in background. closed. same result | 23:17 |
warfare | Sicelo: anything in lsusb? | 23:17 |
*** Roth_ has quit IRC | 23:20 | |
Sicelo | nop | 23:20 |
*** Roth_ has joined #maemo | 23:22 | |
Zungo | adb kill-server btw | 23:22 |
*** dafox has joined #maemo | 23:23 | |
*** Roth has quit IRC | 23:25 | |
*** dafox has quit IRC | 23:27 | |
*** Roth has joined #maemo | 23:27 | |
*** Roth_ has quit IRC | 23:30 | |
*** Roth_ has joined #maemo | 23:32 | |
*** LauRoman has quit IRC | 23:33 | |
*** Roth has quit IRC | 23:36 | |
Sicelo | ok. i think i should give up for now ... noot getting anywhere | 23:37 |
*** Roth has joined #maemo | 23:37 | |
Sicelo | exact same symptoms. i rebooted pc just to be sure i don't have something left over from my adb and other sessions | 23:38 |
*** LauRoman has joined #maemo | 23:40 | |
*** r00t-home has joined #maemo | 23:40 | |
*** Roth_ has quit IRC | 23:41 | |
*** Roth_ has joined #maemo | 23:43 | |
*** Roth has quit IRC | 23:46 | |
*** jonwil has joined #maemo | 23:47 | |
*** Roth_ has quit IRC | 23:51 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!