**** BEGIN LOGGING AT Sat Apr 01 03:00:03 2017 Apr 01 09:01:04 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. Apr 01 09:01:39 use apt-cache policy yourpkg Apr 01 09:02:06 What's that? Apr 01 09:02:13 will give you info about pkg Apr 01 09:02:18 Ok. Apr 01 09:03:36 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? Apr 01 09:04:56 Ah, well, maybe I understand. Let me try. Apr 01 09:05:39 No, I didn't get it. I am trying to install rsync. It should be apt-get install rsync, right? Apr 01 09:05:57 yes, assuming its in repos and dependencies are available Apr 01 09:06:47 From the web it seems it is there, in fact I downloaded it on my computer. I'll try installing the dependencies separately. Apr 01 09:07:13 no, pastebin the error if you want some answer Apr 01 09:07:28 and result of that policy command Apr 01 09:08:09 Ok. But no true error - just sticking there. Apr 01 09:17:34 https://pastebin.com/X0YHQ61A Apr 01 09:19:05 do you have anything weird in /etc/apt/conf.d ? Apr 01 09:19:25 what happens if you just wait? Apr 01 09:20:01 Ok, meanwhile I got the error: https://pastebin.com/MKY6yd82 Apr 01 09:25:01 There is no /etc/apt/conf.d. There is a /etc/apt/apt.conf.d. Inside, three files: 00maemo, 01autoremove, 99-docpurge. Apr 01 09:25:36 maybe your connection went down Apr 01 09:25:45 is it wifi or gsm? Apr 01 09:25:52 Wifi. Apr 01 09:54:36 Ok, I solved the thing by a workaround. But I don't understand what happens. Let me explain. Apr 01 09:55:41 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. Apr 01 09:56:38 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. Apr 01 09:56:58 I had to ssh through the wifi. This way I have been able to install rsync. Apr 01 09:57:22 Anybody with an explanation? Apr 01 09:57:31 you didnt say you were using usb for connecting Apr 01 09:57:51 Yes, that's true. Sorry. I didn't expect that to be a problem. Apr 01 09:58:51 if you have conflicting network setting it usually fails. anyway, connect through wifi and ignore usb (use it for emergency and dont worry) Apr 01 09:59:18 this will keep things simple Apr 01 09:59:41 Ok, I was using usb to transfer files from the computer. Apr 01 10:00:07 And why the N900 keyboard didn't work? Why it doesn't accept the Y? Apr 01 10:00:57 where is your Y ? Apr 01 10:01:09 what shows on terminal when you enter it? Apr 01 10:01:22 It shows correctly an Y. Apr 01 10:01:44 lowercase vs uppercase maybe then? Apr 01 10:01:58 I tried both lowercase and uppercase. Apr 01 10:12:48 i genuinely doubt the problem is being explained to us correctly ... does the Y/y type correctly in other applications? Apr 01 10:13:44 and you are using apt-get in Maemo's XTerminal? Apr 01 10:16:47 popup notifier? Apr 01 10:18:00 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 Apr 01 10:18:04 seen this so many times :-P "why the damn thing stalls on apt-get install??... OH DAMN! It was showing a requester on device display! and I connected via ssh from my PC" Apr 01 10:18:33 pastebin.com is rogue Apr 01 10:20:06 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<< Apr 01 10:21:02 first generic advice: try again later Apr 01 10:21:56 Sicelo Yes I tried with apt-get in Maemo's XTerminal. Apr 01 10:22:07 Got the problem in telling it the Y. Apr 01 10:22:21 I tried via ssh on wifi and it worked. Apr 01 10:22:50 http://monitor.maemo.org/ganglia/?c=maemo&h=blade-a&m=load_one&r=2hr&s=by%20name&hc=4&mc=2 Apr 01 10:23:26 If I ssh via usb, after that I am unable to connect to the Internet. I solved by rebooting the N900. Apr 01 10:23:47 sicelo: try adding /raw/ after the domain, makes it lighter Apr 01 10:24:00 (for pastebin.com) Apr 01 10:25:29 Enrico_Menotti: well, ssh via USB might mean you manually forced a quite 'unusual' network config Apr 01 10:25:59 also, if you use firefox, install noscript extension, much recommended, also from security point of view Apr 01 10:27:56 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) Apr 01 10:30:01 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 Apr 01 10:31:13 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 Apr 01 10:32:56 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 Apr 01 10:36:24 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 Apr 01 10:38:09 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 :-) Apr 01 10:39:39 IroN900:~# uptime Apr 01 10:39:40 12:39 52 Tage 13:45 an, 0 Benutzer, Durchschnittslast: 0,00, 0,00, 0,00 Apr 01 10:44:12 DocScrutinizer05: if there are files opened in MyDocs, it is not exported via mass storage Apr 01 10:44:27 yep Apr 01 10:45:05 "device storage in use" or somesuch Apr 01 10:45:14 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 Apr 01 10:45:20 sure Apr 01 10:45:33 camera-ui2 does it :D Apr 01 10:45:53 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. Apr 01 10:45:55 the old linux pun, use up all disk space in a file hidden under a mountpoint ;-P Apr 01 10:46:07 After this, the N900 does not connect to the Internet anymore. Apr 01 10:46:16 Even if unplugged. I had to reboot it. Apr 01 10:46:16 Enrico_Menotti: and what is your GW/DNS? Apr 01 10:47:05 freemangordon: irrelevant, for sure not 192.168.2.14. Apr 01 10:47:18 you can;t access internet if you don;t have gateway setup, and your device cannot resolve names without DNS Apr 01 10:47:46 Enrico_Menotti: you established a local network with just 2 participants and no way out of it into the internet Apr 01 10:48:08 but he said he also had wifi running Apr 01 10:48:17 ~usbnetworking Apr 01 10:48:17 extra, extra, read all about it, usbnetworking is http://wiki.maemo.org/USB_networking, or http://wiki.maemo.org/N900_USB_networking Apr 01 10:48:43 unless it was before/after, not during Apr 01 10:48:49 Enrico_Menotti: and unplugging doesn't revert an ifup Apr 01 10:48:53 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 Apr 01 10:49:10 KotCzarny: doesn't matter wifi Apr 01 10:49:24 fmg, usb networking mangles default gw? Apr 01 10:49:37 depends on what he did Apr 01 10:49:38 i mean default route Apr 01 10:49:42 ^^^ Apr 01 10:49:56 freemangordon: with ifup usb no internet will be available unless further 'tricks' with routing and dnsmasq are done, I guess Apr 01 10:50:08 see ^^^ ~usbnetworking Apr 01 10:50:21 Enrico_Menotti: may we have the output of "route -n" after you have usb interface up? Apr 01 10:50:52 freemangordon Ok, a minute. Apr 01 10:51:03 freemangordon: please don't make Enrico_Menotti do ifup usb again ;-) Apr 01 10:51:41 oh well, I guess he already did, so he's up for yet another reboot Apr 01 10:51:47 comeon Apr 01 10:51:50 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. Apr 01 10:51:56 aaah Apr 01 10:52:04 yep Apr 01 10:52:12 DocScrutinizer05 What's the problem with the reboot? Apr 01 10:52:14 last time I checked it was easy to delete a route in linux Apr 01 10:52:22 Enrico_Menotti: it sucks? :-D Apr 01 10:52:29 it's a not wise thing in linux world Apr 01 10:52:36 see my uptime above ;-) Apr 01 10:52:40 you fix things so reboot is not required Apr 01 10:52:47 well, it is not politically correct :p Apr 01 10:52:58 also sucks a lot of battery Apr 01 10:53:05 about 1.5% Apr 01 10:53:06 and time Apr 01 10:53:22 Ah ok. Yes, I would fix things, I also have that idea. But I need to understand how! :) Apr 01 10:53:34 anyway Apr 01 10:53:39 ~usbnetworking Apr 01 10:53:40 [usbnetworking] http://wiki.maemo.org/USB_networking, or http://wiki.maemo.org/N900_USB_networking Apr 01 10:53:48 *strongly* recommended read Apr 01 10:53:49 first: do you lose wifi when you connect via usb? Apr 01 10:54:24 guys, lets wait for the route table, everything will become clear Apr 01 10:54:25 and generally, try to steer clear of usb networking, use WLAN instead whenever possible Apr 01 10:55:15 Enrico_Menotti: for a start, did you try ifdown usb ? Apr 01 10:55:25 btw. if you only move relatively small files (<1gigabite), just install tinysmb, and copy via wifi Apr 01 10:57:22 KotCzarny: is that GB or Gb? Apr 01 10:57:53 fmg: that's up for the reader and his patience with wifi speeds Apr 01 10:58:02 :) Apr 01 10:58:28 i've used USB networking with no ill effect lots of imes :-) Apr 01 10:58:32 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 Apr 01 10:58:49 Sicelo: :nod: Apr 01 10:59:13 i've found tinysmb to perfectly suit me, so i won't have to find cable, abuse usb port etc Apr 01 10:59:21 https://pastebin.com/xbC2wZKL Apr 01 10:59:32 This is the rounting table right now. Apr 01 10:59:36 just click on the desktop icon, enable smb, and be done Apr 01 10:59:51 now, there's your problem Apr 01 10:59:59 see Apr 01 11:00:00 192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 usb0 Apr 01 11:00:15 your computer advertisestises usb route, and not forwarding packets Apr 01 11:00:23 oops Apr 01 11:00:30 it should just work after you do ifconfig usb0 down Apr 01 11:00:31 that one 0.0.0.0         192.168.2.14    0.0.0.0         UG    0      0        0 usb0 Apr 01 11:00:35 to restore connectivity Apr 01 11:00:48 no, he can just delete usb0 default GW Apr 01 11:00:53 or: route del -net default dev usb0 Apr 01 11:00:58 yup Apr 01 11:01:02 slow typing here :P Apr 01 11:01:09 both ways, no need for a reboot Apr 01 11:01:13 :nod: Apr 01 11:01:17 BUT! Apr 01 11:01:18 ifdown Apr 01 11:01:28 the question is who sets USB0 ad default GW Apr 01 11:01:33 *as Apr 01 11:01:39 maybe it gets from windoze? Apr 01 11:01:43 no way Apr 01 11:01:51 this is local setting Apr 01 11:02:06 let's wait for enrico Apr 01 11:02:37 how exactly do you connect/enable usb network? Apr 01 11:02:38 Enrico_Menotti: what is the content of /etc/network/interfaces? Apr 01 11:02:49 http://paste.opensuse.org/32586921 Apr 01 11:03:00 I suspect: Apr 01 11:03:02 iface usb0 inet static Apr 01 11:03:09 gateway 192.168.2.14 Apr 01 11:03:15 because this is what I have here Apr 01 11:03:23 but who would do such dastardly thing?! Apr 01 11:03:30 Nokia Apr 01 11:03:32 good luck with setting up network sharing on your PC Apr 01 11:03:53 THIS **SUCKS** big time Apr 01 11:03:55 network sharing on linux is 2-3 lines max Apr 01 11:04:21 KotCzarny: this is the default setting for QtCreator/scratchbox devel connection Apr 01 11:04:26 since your network manager will interfere anything you try Apr 01 11:04:45 KotCzarny: on ubuntu it is 2 clicks away :) Apr 01 11:04:50 network manager is evil abomination of systemd devels Apr 01 11:04:52 on windows it might be actually simpler Apr 01 11:05:04 DocScrutinizer05: actually it is very complicated Apr 01 11:05:11 you need to play with netsh Apr 01 11:05:20 Ok. Thank you for all the feedback. But please let me understand. Apr 01 11:05:35 So first, I have a Debian distro running on the PC. Apr 01 11:05:44 I connect the N900 via USB. Apr 01 11:05:45 GOOD! Apr 01 11:05:50 great Apr 01 11:06:11 first: do you require internet working via usb? Apr 01 11:06:16 or just files? Apr 01 11:06:19 ^^^ that one Apr 01 11:06:28 http://wiki.maemo.org/USB_networking#Linux Apr 01 11:07:21 DocScrutinizer05 Thanks for the links. I will read them. Apr 01 11:07:36 For now, let me just explain what I did. Apr 01 11:07:56 if you prefer internet via vifi to stay alive, just comment out gateway line in /etc/network/interfaces (the one in usb0 contect) Apr 01 11:08:00 *context Apr 01 11:08:18 not needed. Apr 01 11:08:32 usb networking not needed ;-) Apr 01 11:08:50 as long as you own a WLAN access point Apr 01 11:09:09 i meant .. no need to comment out anything. Apr 01 11:09:10 it's really a PITA Apr 01 11:09:30 Sicelo: err, sorry, I missed some context Apr 01 11:09:43 usb networking does not interfere with wifi at all. if it seems to, that's user error, not N900 issue Apr 01 11:09:44 Sicelo: sure, but he will have to delete usb0 route every time he brings usb0 up Apr 01 11:10:27 in order not to have default GW setup through usb0, he has to comment the "gateway" line in /etc/network/interfaces Apr 01 11:10:39 as KotCzarny said Apr 01 11:10:54 ah yes .. guess i'm also getting confused here lol Apr 01 11:10:57 usb networking ois really deprecated Apr 01 11:11:24 it's a PITA and so much more intricate than WiFi Apr 01 11:11:27 DocScrutinizer05: it is absolutely ok, and the rules are exactly the same as for the other network interfaces Apr 01 11:11:38 +1 Apr 01 11:11:41 it is not some kind of a special net device Apr 01 11:11:46 you forget to count in the mess on PC Apr 01 11:11:57 there is no mess, esp on linux Apr 01 11:12:10 actually the same thing happens when you want to use wifi & gprs simultaneously (yes some of us need that sometimes) Apr 01 11:12:11 on windows it is tricky, but not THAT hard Apr 01 11:12:24 well, when you're happy with turning your PC fronm a client into a router, then yes Apr 01 11:12:46 Ok, guys, sorry, please wait a minute... I will try to explain what I did... I'd like to understand... Apr 01 11:12:58 there is no ohter way, if we assume "router" is a device transferring packets from one interface to another Apr 01 11:13:07 Enrico_Menotti: ok Apr 01 11:13:18 I'm out, I for sure don't want to deal with USB in any way, unless I have to Apr 01 11:13:44 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. Apr 01 11:14:00 Then I issued, on the N900, ifup usb0. Apr 01 11:14:22 At this point I'm able to ssh from the computer to the N900 by ssh 192.168.2.15. Apr 01 11:14:35 Also here, I don't understand why that particular address. Apr 01 11:14:51 Enrico_Menotti: there is no need for there address to be 192.168.2.14 Apr 01 11:14:59 at that point you established a LAN cosisting of two nodes: 192.168.2.15 and 192.168.2.14 Apr 01 11:15:11 DocScrutinizer05 Yes, ok, I understand this. Apr 01 11:15:18 with no links of any kind to any other network Apr 01 11:15:32 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 Apr 01 11:16:04 Enrico_Menotti: where did you get 192.168.2.14 address from? Apr 01 11:16:08 freemangordon: seems 192.168.2.15 is hardcoded Apr 01 11:16:13 not, it is not Apr 01 11:16:21 int is in /etc/network/interfaces Apr 01 11:16:25 *it is Apr 01 11:16:32 that's what I'm talking about :-P Apr 01 11:16:39 this is not hardcoded Apr 01 11:16:39 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. Apr 01 11:17:02 Enrico_Menotti: so, in short - you may assign whatever address you want to both the device and the PC Apr 01 11:17:24 then softcoded X-P Apr 01 11:17:39 they MUST be in one and the same network, otherwise they won;t "see" each other Apr 01 11:17:44 anyway if you want to change those addresses, you need to edit stuff Apr 01 11:18:20 Enrico_Menotti: TCP addresses starting with 192.168.x.x are in the so-called "C" class networks (just a detail) :) Apr 01 11:18:37 and get a 100g Vodka if your PC LAN is 192.168.2.0/24 Apr 01 11:19:01 routers ususlly use 192.168.1.x Apr 01 11:19:06 or 192.168.0.x Apr 01 11:19:11 Right, it's subnet mask 255.255.255.0, right? Apr 01 11:19:15 yes Apr 01 11:19:18 HAHA do you think anything in my network is _usual_ Apr 01 11:19:49 DocScrutinizer05: please, let me explain to Enrico_Menotti what is going on :) Apr 01 11:20:12 freemangordon Please. I'm listening. Apr 01 11:20:36 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 Apr 01 11:20:53 look route -n output you apstebin ^^^ Apr 01 11:21:08 192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 usb0 Apr 01 11:21:39 ^^^ means that for addresses starting with 192.168.2.X, the packets will be send through usb0 interface Apr 01 11:21:45 http://paste.opensuse.org/7622474 Apr 01 11:21:54 Enrico_Menotti: anything unclear so far? Apr 01 11:22:11 All clear, ok. Apr 01 11:22:15 ok... Apr 01 11:22:28 now, what is "default gateway"... Apr 01 11:23:14 Sorry? Apr 01 11:23:39 "default gateway" is a network interface the packets are send to, when there is no match with the adresses of the interfaces Apr 01 11:23:52 Enrico_Menotti: I am continuing with the explanantion :) Apr 01 11:23:59 *explanation Apr 01 11:24:02 Sorry! :) Apr 01 11:24:11 lesson Apr 01 11:24:19 in your case you have 2 of them: Apr 01 11:24:34 0.0.0.0         192.168.2.14    0.0.0.0         UG    0      0        0 usb0 Apr 01 11:24:44 0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0 Apr 01 11:24:55 UGH Apr 01 11:26:01 Kernel IP routing table Apr 01 11:26:02 Destination Gateway Genmask Flags Metric Ref Use Iface Apr 01 11:26:02 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 Apr 01 11:26:04 192.168.4.0 * 255.255.255.0 U 0 0 0 wlan0 Apr 01 11:26:05 default 192.168.4.1 0.0.0.0 UG 0 0 0 wlan0 Apr 01 11:26:17 DocScrutinizer05: please, hold on a secod Apr 01 11:26:21 *second Apr 01 11:26:56 Enrico_Menotti: usb0 is chosen because it comes in the list BEFORE wlan0 Apr 01 11:27:18 thus, all the packets (connections) you try to do are send via usb0. Apr 01 11:27:29 'sent' Apr 01 11:27:34 right Apr 01 11:27:54 BUT your PC is not setup to act as a router, so they are effectively dropped Apr 01 11:28:15 long story short, self inflicted network breakage on enrico's part Apr 01 11:28:22 Enrico_Menotti: is it getting clearer now? Apr 01 11:28:24 fixable by removing gateway from usb Apr 01 11:28:29 mhm Apr 01 11:28:35 freemangordon Yes, it is indeed. Apr 01 11:28:36 or configuring pc to act as a router Apr 01 11:28:54 Enrico_Menotti: ok then, explain what you're trying to achieve Apr 01 11:29:21 Well, first of all understanding. :) Apr 01 11:29:33 that's always a noble goal Apr 01 11:29:36 you want to understand what? Apr 01 11:29:42 ask your question Apr 01 11:30:03 Ok, ok, you already explained lots of things I did not understand by myself. Apr 01 11:30:05 buying linux for the beginners is recommended Apr 01 11:30:21 KotCzarny: this is not linux, this is networking :) Apr 01 11:30:25 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? Apr 01 11:30:39 fmg, essential part of linux is networking ;) Apr 01 11:30:51 NotKit: why not native? performance? Apr 01 11:31:14 freemangordon I'd like to ask a couple of things. Apr 01 11:31:19 go ahead Apr 01 11:31:27 don;t ask to ask :) Apr 01 11:31:28 interface don't seem to be adapted for this Apr 01 11:31:35 ah, I see Apr 01 11:31:59 NotKit: hmm, wait, it should be (tm) Apr 01 11:32:14 iirc the code calculates lots of thing based on the resolution Apr 01 11:32:28 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? Apr 01 11:32:30 it should try to calculate in millimeters Apr 01 11:32:34 maybe only the icon sizes could be problematic Apr 01 11:32:47 it's essentially what human would want Apr 01 11:32:58 http://aplawrence.com/Unixart/route.html Apr 01 11:33:00 ie. relative to his finger size Apr 01 11:33:32 ~ask Apr 01 11:33:33 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. Apr 01 11:33:50 0.0.0.0 is ana alias for 'default network, catch all' Apr 01 11:33:59 *an Apr 01 11:34:29 because there are specific routes ie. 192.168.2.0/24 will be designation of your usb setup Apr 01 11:34:39 Enrico_Menotti: 0.0.0.0 is wildcard Apr 01 11:35:02 KotCzarny: I am not sure those 0.0.0.0 for GW on an interface actually means anything Apr 01 11:35:07 and when particular packet dont get routed by any specific rule, 0.0.0.0 is used Apr 01 11:35:30 KotCzarny: see what he asked ^^^ Apr 01 11:35:36 KotCzarny This is for the third and fourth line, right? Apr 01 11:35:45 0.0.0.0 on the first and the second line Apr 01 11:35:45 I'm concerned with the gateway in the first two. Apr 01 11:35:46 fmg: https://en.wikipedia.org/wiki/Default_route Apr 01 11:36:05 KotCzarny: this is NOT default route Apr 01 11:36:20 default route has address 0.0.0.0, not gateway 0.0.0.0 Apr 01 11:36:26 freemangordon Right, I think so. Apr 01 11:36:29 btb (house call) Apr 01 11:36:57 see my spam post above Apr 01 11:37:13 DocScrutinizer05 The wildcard? Apr 01 11:37:19 http://paste.opensuse.org/6131360 Apr 01 11:37:50 DocScrutinizer05: you mean '*' for interface GW? Apr 01 11:38:14 yes Apr 01 11:38:30 and "default" for destination Apr 01 11:38:39 route is more human readable in that Apr 01 11:38:48 I don;t think that * means anything Apr 01 11:39:04 it means "applies to all gateways" no? Apr 01 11:39:12 Ok, I understand the "default" in the destination, but not the "*" in the gateway. Apr 01 11:39:23 Enrico_Menotti: just ignore it for now :) Apr 01 11:39:37 you could have multiple gateways with differnet metrics afaik Apr 01 11:39:50 "The gateway address or '*' if none set." Apr 01 11:40:01 DocScrutinizer05: ^^^ this is from man route Apr 01 11:40:21 yes, sure Apr 01 11:40:35 "none set" == 0.0.0.0 Apr 01 11:40:37 Enrico_Menotti: so, this means "no gateway set" Apr 01 11:40:49 aka 'wildcard' Apr 01 11:41:20 or colloquial "never mind, it's an advanced feature" Apr 01 11:41:25 mhm Apr 01 11:43:07 I am not even sure it is possible to setup anything there Apr 01 11:43:19 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?). Apr 01 11:43:35 ? Apr 01 11:44:15 (Sorry it was a question. Not dot, question mark.) Apr 01 11:45:04 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) Apr 01 11:46:36 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 Apr 01 11:47:01 the first line that matches is the chosen interface Apr 01 11:47:47 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? Apr 01 11:48:38 see my lyric explanation above Apr 01 11:49:14 any address directly available on a defined network does _not_ get redirected to a gateway Apr 01 11:49:55 sorry, had a phone call Apr 01 11:50:13 Enrico_Menotti: directly Apr 01 11:50:22 use route without ".n", it's waaay more human readable Apr 01 11:50:36 -n, even Apr 01 11:51:01 DocScrutinizer05 Ah ok this is clearer. So the gw is not set, but also not needed for my purposes, right? Apr 01 11:51:09 I dislike it, as it tries to do reverse dns resolution Apr 01 11:51:13 right Apr 01 11:53:35 Enrico_Menotti: now, do you understand why you don't have internet when usb0 is up? Apr 01 11:53:40 the 'trick' is your network stack _knows_ about all the addresses directly available in that netwrork, from own address and netmask, both in ifconfig Apr 01 11:53:59 gateway set to 0.0.0.0 for particular interface means to use default route Apr 01 11:54:15 hmm, right Apr 01 11:54:37 or rather "to not use gateway" :) Apr 01 11:54:51 or 'see default gw' ;) Apr 01 11:54:54 but send directly through that interface Apr 01 11:55:08 KotCzarny: I tend to disagree Apr 01 11:55:24 if you have address match, no gateway lookup is performed afaik Apr 01 11:55:27 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 Apr 01 11:56:30 anyway, this is very advanced routing, not usually found in home PCs Apr 01 11:56:35 hmm, nope, that would be 'iface' then Apr 01 11:56:39 mhm Apr 01 11:57:01 nfc what for you need "gateway" in U Apr 01 11:57:30 "no meaning" in U, needs a value nevertheless for filling the column in table ;-P Apr 01 11:57:48 Enrico_Menotti: BTW, do you know what 192.168.0/24 is supposed to mean? Apr 01 11:57:49 yes, there are more rules than just ip Apr 01 11:58:03 it means match any address from 192.168.1.X range Apr 01 11:58:24 192.168.1.0/16 would mean: match any ip from 192.168.Y.X Apr 01 11:58:56 freemangordon: why do you ask this? Apr 01 11:59:28 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 :) Apr 01 11:59:47 yes, now you would need to explain what netmask is ;) Apr 01 11:59:51 freemangordon: why not ask "are you aware what netmask (255.255.255.0 aka /24) means?" Apr 01 12:00:08 DocScrutinizer05: because we have types in linux Apr 01 12:00:16 and it is one and the same thing Apr 01 12:00:26 all in all, thanks to n900 he gets linux/networking crash course Apr 01 12:00:26 KotCzarny: I already explained ^^^ Apr 01 12:00:36 you lost me Apr 01 12:00:39 fmg: yeah, i'm sick and slow wyping/reading Apr 01 12:00:51 so bear with my mental lags ;) Apr 01 12:00:59 *typing Apr 01 12:01:25 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? Apr 01 12:01:27 "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" Apr 01 12:02:02 The network address, and the host address inside the (sub) network. If I remember right. Apr 01 12:02:07 Enrico_Menotti: I guess it could be said like that - "network" and "host", so yeah Apr 01 12:02:08 Enrico_Menotti: simply means: only look at the leftmost /N bits of addr Apr 01 12:02:12 btw. did you guys heard that powervr sgx5XX source was dumped on the internet? Apr 01 12:02:25 KotCzarny: yeah, some 3 years ago iirc Apr 01 12:02:27 :) Apr 01 12:02:30 Enrico_Menotti: or "only look at the bits where netmask bit is 1" Apr 01 12:02:37 Enrico_Menotti: nope, that's connection Apr 01 12:02:46 tcp address is just ip Apr 01 12:03:04 hah Apr 01 12:03:10 KotCzarny ? Apr 01 12:03:11 KotCzarny: lets not merge tcp and ip, ok? :) Apr 01 12:03:12 my aprils fools joke failed Apr 01 12:03:13 Enrico_Menotti: so yes, you got an IP addr and a netmask that says which parts of the IP are relevant Apr 01 12:03:38 hmm, lets make it clear: Apr 01 12:03:45 fmg: it's tcp/ip for a reason ;) Apr 01 12:03:46 IP == Internet Protocol Apr 01 12:03:58 TCP == Transmission Control Protocol Apr 01 12:04:00 Yes, the netmask says how long is the part that states the addresses of hosts in the subnet, right? Apr 01 12:04:07 no Apr 01 12:04:24 the /N form does, yes Apr 01 12:04:46 it is the value to apply bitwise AND with the destination address, in short Apr 01 12:04:47 freemangordon I mean, it's binary form states this. Apr 01 12:04:59 http://31.135.195.151:20280/_tools/calc.php Apr 01 12:05:03 have fun with it Apr 01 12:05:18 freemangordon Yes, we are saying the same thing, I did not explain my thought in a clear way. Apr 01 12:05:25 >>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 Apr 01 12:05:42 see how different /N affect the network and bits Apr 01 12:06:01 Enrico_Menotti: iirc it is not disallowed to have non-consecutive ones in the netmask, so "long" is not applicable here Apr 01 12:06:23 the /24 means: watch only the leftmost 24 bits in the 32 bit addr Apr 01 12:06:46 right, but you can;t use /N form for netmask of 255.255.255.1 Apr 01 12:06:55 freemangordon This I really did not know. Never seen anything of this kind. Apr 01 12:07:04 fmg: is such mask even legal? Apr 01 12:07:12 on my home network? Apr 01 12:07:14 freemangordon: I think that's an ODD or even invalifd netmask Apr 01 12:07:15 lol Apr 01 12:07:26 sure, it is odd Apr 01 12:07:33 but invalid? why? Apr 01 12:07:43 because its ineffective/useless Apr 01 12:07:48 because NICs don't support it I guess Apr 01 12:08:01 on a hardware level Apr 01 12:08:08 DocScrutinizer05: NICs have no idea of TCP Apr 01 12:08:20 ooh for netmasks they might Apr 01 12:08:30 I doubt Apr 01 12:08:34 routers/switches might barf Apr 01 12:08:36 checkout WLAN Apr 01 12:08:58 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? Apr 01 12:09:04 sure, but for ethernet it is perfectly fine netmask, albeit odd and ineffective Apr 01 12:09:05 hardMAC will filter for IP addr and not even wake CPU when not addressed Apr 01 12:09:46 Enrico_Menotti: you are talking about traditional (old) subnet classes Apr 01 12:09:50 that's the whhole point of promiscuous mode Apr 01 12:10:03 in fact there might be other masks/networks configured Apr 01 12:10:16 KotCzarny Ah it's something I learned in 2000/2001. Apr 01 12:10:40 2 days ago I setup a netmask of 255.255.255.28 iirc Apr 01 12:10:55 *cough* Apr 01 12:11:13 many tools reject that Apr 01 12:11:23 anyway, the rule is addr AND mask Apr 01 12:11:24 and for good reason Apr 01 12:11:29 fmg, 'it works' vs 'it's proper' are two different things Apr 01 12:11:38 sure Apr 01 12:11:55 you can have your lan set to 8.8.8.0/24 Apr 01 12:12:05 and it WILL work Apr 01 12:12:09 but you can do whatever suits you in your intranet Apr 01 12:12:15 but there will be gotchas Apr 01 12:12:31 and better not to let bad habits stick Apr 01 12:12:41 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? Apr 01 12:12:42 ok, ok Apr 01 12:13:17 Enrico_Menotti: again, stack does AND to find the interface Apr 01 12:13:21 enrico: 'straight there' results from defined route for your lan Apr 01 12:13:47 the result of 1.2.3.4 AND 0.0.0.0 is 0.0.0.0 :) Apr 01 12:13:47 freemangordon: maybe boolean AND is not a nice easy way to explain it Apr 01 12:13:54 it's not magical, it's setup automatically when bringing up the interface Apr 01 12:14:00 it is not boolean, but bitwise :) Apr 01 12:14:38 DocScrutinizer05: maybe not nice and easy, but correct Apr 01 12:14:43 Enrico_Menotti: https://en.wikipedia.org/wiki/Bitwise_operation Apr 01 12:15:01 Enrico_Menotti: the check only looks at the first /N bits of your addr, and compares those to the leftmost col in `route` Apr 01 12:15:28 it follows the first line rule that matches Apr 01 12:15:48 Yes, ok, I understand all this. Let's say the address belongs to those specified in the first two lines, ok? Apr 01 12:16:12 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" Apr 01 12:16:20 Enrico_Menotti: the first match is taken Apr 01 12:16:36 for 8.8.8.8 it matches "0.0.0.0 192.168.4.1 0.0.0.0 UG 0 0 0 wlan0" Apr 01 12:16:40 unless there are round robin routing algos running Apr 01 12:16:51 which would then make things more 'interesting' ;) Apr 01 12:16:56 yeah, but this is advanced routing Apr 01 12:17:11 Ok, now. If 192.18.4.33 is actually on the wlan, the packet goes straight there, right? Apr 01 12:17:27 yes Apr 01 12:17:28 if it matches the route for wlan, yes Apr 01 12:17:32 (Since the gw is stated as 0.0.0.0). Apr 01 12:17:34 if your wlan is on 192.168.4.0/24 network, then yes Apr 01 12:17:37 no Apr 01 12:18:02 since the stack knows it's on LAN, from your ifconfig of the betwork Apr 01 12:18:22 wlan0 Link encap:Ethernet HWaddr EC:9B:5B:FD:85:51 Apr 01 12:18:24 inet addr:192.168.4.41 Bcast:192.168.4.255 Mask:255.255.255.0 Apr 01 12:18:43 DocScrutinizer05 Ok. Apr 01 12:18:45 see, you got a IP addr ANd A NETMASK there too Apr 01 12:19:34 if (ip&&mask == route dest) packet goes this way; else check next rule; Apr 01 12:19:36 so it's evident you can reach 192.18.4.33 on that interface Apr 01 12:19:41 no routing needed Apr 01 12:19:55 KotCzarny: if (ip & mask == route dest) ;) Apr 01 12:20:00 right. Apr 01 12:20:04 bitwise. Apr 01 12:20:19 maybe i should work on code today ;) Apr 01 12:20:46 Enrico_Menotti: exactly what I was saying, but expressed in pseudocode Apr 01 12:21:17 maybe ask if Enrico_Menotti is a coder, first? Apr 01 12:21:21 s/should/shouldn't/ Apr 01 12:21:22 KotCzarny meant: maybe i shouldn't work on code today ;) Apr 01 12:21:23 doh. Apr 01 12:21:44 and this is the way it works, unless there are some advanced routing rules setup, we won;t elaborate on here and now :) Apr 01 12:22:01 fmg, and firewall! dont forget about firewall rules ;) Apr 01 12:22:14 well, but routing has been already done Apr 01 12:22:30 not if firewall reroutes the packet or does nat ;) Apr 01 12:22:40 yeah, right Apr 01 12:23:02 I guess you mean snat :p Apr 01 12:23:07 both Apr 01 12:23:10 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. Apr 01 12:23:24 Enrico_Menotti: your problem is you got TWO gateways, which is almost *always* a very odd thing to have Apr 01 12:23:25 packet with new ip slappen on it is still having same payload (usually) Apr 01 12:23:47 well, unless you have a router you want to config Apr 01 12:23:56 KotCzarny: DNAT and MASQUERADE are don in POSTROUTING tables IIRC Apr 01 12:24:22 might be Apr 01 12:24:25 OHNOES, please let's not start with iptables now! Apr 01 12:24:31 ok :) Apr 01 12:24:34 :) Apr 01 12:25:00 we had to, when we wanted to explain how to set up PC as router Apr 01 12:25:30 but as said before, rather USE A DAMN WLAN ACCESS POINT!!! Apr 01 12:25:36 one could have fun with circle routes Apr 01 12:25:50 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 Apr 01 12:25:53 and a little firewall rule to answer twice Apr 01 12:26:42 DocScrutinizer05: http://askubuntu.com/questions/359856/share-wireless-internet-connection-through-ethernet Apr 01 12:26:54 I guess it is same/similar on debian Apr 01 12:27:31 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 Apr 01 12:27:44 which is the case more often than not, in my experience Apr 01 12:27:51 I think the only thing that has to be done is to set usb0 on N900 to auto Apr 01 12:28:04 or disable usb0 gw Apr 01 12:28:25 or make pc route/forward packets Apr 01 12:28:27 or don't use friggin deprecated USB networking Apr 01 12:28:28 KotCzarny: no, as you need usb0 ip assigned via DHCP Apr 01 12:28:53 fmg, but then he would need to setup dhcp on pc Apr 01 12:28:57 the same goes for GW/DNS Apr 01 12:29:06 or read the relatively fine explanations in ~usbnetworking Apr 01 12:29:07 my ubuntu does it for me Apr 01 12:29:31 it is really that simple as explained on askubuntu Apr 01 12:29:49 sure, you can tweak it as much as you want Apr 01 12:29:57 meh! have fun folks, i'm definitely out Apr 01 12:30:22 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 Apr 01 12:30:23 line. When has this been set up? How to avoid it? Apr 01 12:30:44 when it was setup in /etc/network/interfaces Apr 01 12:30:49 and usb0 went up Apr 01 12:30:53 ((when has the second gw been set up?)) with ifup, so try ifdown! Apr 01 12:31:21 may work, or fail Apr 01 12:31:29 So should I look into /etc/network/interfaces and try to edit it? Apr 01 12:31:40 Ok, let me try to do ifdown. Apr 01 12:31:45 sure. disable gw there (only) Apr 01 12:31:47 no, you should try ifdown and then don't use usb networking Apr 01 12:34:28 ifup is not made to cope with your device having concurrent (WLAN) interface up and running, and you should not use it like that Apr 01 12:35:15 ifup usb is made to provide full internet access via a PC that is set up to forward your traffic to the wider interbet Apr 01 12:35:21 internet even Apr 01 12:36:05 nobody considered you want to run it despite you have absolutely fine WLAN working Apr 01 12:36:37 if you want to really explore that shite, disbale WLAN on N900 first Apr 01 12:36:42 DocScrutinizer05 Ok, I understand. Apr 01 12:36:49 The ifdown worked. Apr 01 12:36:54 :-) Apr 01 12:37:16 I think the best thing to do is using the usb just for massive data transfer, and the wlan for the rest. Apr 01 12:37:32 that's what I suggested, yes Apr 01 12:37:47 only use ass rage mode Apr 01 12:38:07 and don't use the device during that Apr 01 12:38:19 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 Apr 01 12:38:39 WHAT FOR FFS!!! Apr 01 12:38:44 The last point: the "Y" on XTerminal. Any idea? (But I don't want to annoy you with this!) Apr 01 12:38:45 if he wants to Apr 01 12:39:10 if he wants to he could install RTOS on the device, but **WHAT FOR**? Apr 01 12:39:15 enrico, most likely similar 'self inflicted trouble story', we just dont know what you did yet ;) Apr 01 12:39:19 just because :) Apr 01 12:39:45 enrico: you have said it works via ssh, right? Apr 01 12:39:53 what exactly happens in terminal? Apr 01 12:39:57 Yes, it works via ssh. Apr 01 12:40:01 Enrico_Menotti: use lower case y Apr 01 12:40:11 pastebin Apr 01 12:40:16 :nod: Apr 01 12:40:30 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. Apr 01 12:40:41 and what happens? Apr 01 12:40:46 Abort. Apr 01 12:40:50 pastebin Apr 01 12:40:51 error message? Apr 01 12:40:53 As if I state n. Apr 01 12:40:57 No error message. Apr 01 12:41:04 yep. pastebin Apr 01 12:41:06 Seems just not to recognise the Y. Apr 01 12:41:09 there _was_ some bug in apt with that Apr 01 12:41:10 maybe you press enter and some other letter sneaks in Apr 01 12:41:22 keymapping sneaks in Apr 01 12:41:26 mhm Apr 01 12:41:46 Is it possible that it detects me pressing shift? Apr 01 12:41:52 sure Apr 01 12:42:03 big fingers? Apr 01 12:42:12 try the key right of "T" and the key your locale "yes" word starts with Apr 01 12:42:14 earlier i asked - does the Y/y get recognized properly in other applications? Apr 01 12:42:32 and again, pastebin pls Apr 01 12:42:53 or what Sicelo said Apr 01 12:43:02 Sicelo Sorry I don't know. I will work with it and see. Apr 01 12:43:41 but as I said, there *was* a bug in that Apr 01 12:44:06 something in the wider topic "locale" Apr 01 12:44:15 ehehe Apr 01 12:44:39 Ok, so I will just use ssh or, if that's not possible, copy and paste from a text editor, right? Apr 01 12:44:52 copypaste from terminal Apr 01 12:44:57 Ok, also. Apr 01 12:45:14 also output of: locale Apr 01 12:46:02 Enrico_Menotti: try the following: LANG=gb_US apt-get installl .... blabla your cmdline Apr 01 12:46:44 LANG=en_US.UTF-8 Apr 01 12:46:46 see if the prefix "LANG=gb_US " changes stuff for you Apr 01 12:46:57 or what freemangordon said Apr 01 12:47:06 this is what is set on my N900 Apr 01 12:47:28 sorry, I'm getting dizzy with this Apr 01 12:48:07 IroN900:~# echo $LANG Apr 01 12:48:09 de_DE Apr 01 12:48:21 for whatever friggin reason :-/ Apr 01 12:48:29 https://pastebin.com/CpQjJQq4 Apr 01 12:48:31 usually I don't care Apr 01 12:48:34 My locale. Apr 01 12:48:39 It's Italian. Apr 01 12:48:55 There something strange, though. A couple of errors. Apr 01 12:48:58 does apt asks you for yes oe si? Apr 01 12:49:01 try s Apr 01 12:49:03 or S Apr 01 12:49:09 try "LANG=en_US.UTF-8 apt-get ..." Apr 01 12:49:51 what's the italian word for "yes"? try first letter as suggested above Apr 01 12:50:01 Enrico_Menotti: how is "yes" in Italian? "si"? try to enter S when asked Apr 01 12:50:02 and for future, its best to keep root accoubt with kocale set to C Apr 01 12:50:16 right Apr 01 12:50:53 ie. add to your /root/.profile: export LC_ALL=C Apr 01 12:51:03 Ok, I will consider all these options. Now I cannot test them, since I already installed my package by ssh. Apr 01 12:51:06 What's C? Apr 01 12:51:08 theb relog Apr 01 12:51:14 uninstall package Apr 01 12:51:21 insstall again :P Apr 01 12:51:38 KotCzarny Ok, but I'd prefer not. :) Apr 01 12:51:52 then choose some small package Apr 01 12:52:12 what is small enough and non essential? Apr 01 12:52:14 now thinking about it I guess the BUG was: apt asks for "yes/no" but expects reply in locale set Apr 01 12:52:54 on a more technical level: apt localization broken for some locales, when asking for yes/no reply Apr 01 12:53:24 I will tell "sì". So a capital S. Apr 01 12:53:27 :) Apr 01 12:53:39 enrico: use 3g2g-mode-selection-applet for a testing Apr 01 12:53:46 its 8kb small Apr 01 12:54:15 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 Apr 01 12:54:54 its a good approach to ignore docs often too, as he sees only one way to setup everything. his Apr 01 12:55:04 :) Apr 01 12:55:10 Don't fight please! Apr 01 12:55:17 thoughts that often are plain wrong or unneededly complex Apr 01 12:55:37 enrico: what was the result of S ? Apr 01 12:56:21 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. Apr 01 12:56:44 :) Apr 01 12:57:45 test the "S"? aah Si, eh? Apr 01 12:58:14 oh, you said that above Apr 01 12:58:37 * DocScrutinizer05 also heads out, for good Apr 01 13:03:49 FWIW: http://paste.opensuse.org/62693600 Apr 01 13:06:24 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 Apr 01 13:17:45 related: https://lists.debian.org/deity/2012/10/msg00043.html Apr 01 13:18:01 I.E. "broken .po file" Apr 01 13:29:51 http://paste.opensuse.org/51490349 Apr 01 13:39:20 KotCzarny: thanks for the pastebin /raw/ trick Apr 01 13:39:56 sicelo: i've converted to noscript extension some time ago, it really helps Apr 01 13:41:17 and if a site fails to work without js, tough luck, i go elsewhere Apr 01 13:41:53 it has clickable enable too, for sites you want/need to access Apr 01 13:42:45 i have it .. maybe i should check my config again Apr 01 13:43:08 or click 'allow temporarily' instead 'permament' Apr 01 13:47:52 on another note: i think this simple code is elegant (not mine of course) Apr 01 13:51:37 http://pastebin.com/raw/SQm1Dupa Apr 01 13:52:40 exploitable Apr 01 13:52:42 :> Apr 01 13:53:07 meaning? Apr 01 13:53:27 opening links without knowing where they will land? Apr 01 13:53:55 ahm, its msg reader? Apr 01 13:54:32 lol .. it just takes messages and sends them to MicroB Apr 01 13:55:03 seems he made it for people who need large text, as font size is not adjustable Apr 01 13:55:05 keep in mindg your /tmp is only 1MB Apr 01 13:56:23 unlikely that you'd have messages that much .. anyway .. i just like the concept. i don't personally need large text Apr 01 13:56:38 yup, nice bit of code Apr 01 13:58:00 oscp/gtk ..you use hildon styling or plain gtk? Apr 01 13:58:12 depends on mode Apr 01 13:58:27 its configurable in options Apr 01 13:58:41 same as for oscp-remote.py Apr 01 13:58:59 with plain getk it gets hildon styling Apr 01 13:59:09 because hildon uses system's gtk theme Apr 01 13:59:21 but you can overrule gtk style in app too Apr 01 13:59:40 though usually its a bad idea Apr 01 13:59:53 ok. Apr 01 17:07:56 i want to run CM13 on my Samsung Galaxy S4 - looks like flasher intricacies are nothing compared to the confusion in the Android world :-/ Apr 01 17:08:10 :) Apr 01 17:33:42 does Fennec require non-composited mode? Apr 01 19:59:06 Sicelo: samsung phones are the easiest thing to flash stuff :p Apr 01 19:59:14 also, if its the i9500 Apr 01 19:59:33 meh Apr 01 19:59:46 you're using proprietary blobs :( Apr 01 20:00:17 * Zungo suddenly feels stupid Apr 01 20:03:21 well .. Apr 01 20:03:50 right now the bugger is not being detected when in dowload mode. i feel like flinging it to the wall Apr 01 20:04:10 adb does work fine. i've tried other USB ports, and cables Apr 01 20:05:17 either wrong usb port, wrong driver, booted instead of flashing or it's a punishment for straying away from godly n900 Apr 01 20:05:29 sicelo: you use odin for download mode Apr 01 20:06:17 and the samsung usb drivers provide all the drivers Apr 01 20:06:49 adb, "modem", download mode and stock recovery Apr 01 20:07:01 Zungo: i'm using Linux, and the phone does not even come up in syslog .. so that's not driver issue in my book Apr 01 20:07:10 well, you need windows to use download mode Apr 01 20:07:20 then what's heimdall for? Apr 01 20:07:23 right Apr 01 20:07:36 something up with the connection Apr 01 20:07:36 Sicelo: try changing the cable, Samsungs are picky. Apr 01 20:07:42 ^ yea Apr 01 20:07:54 i've tried 3 now Apr 01 20:08:22 rebooted when changing cables? Apr 01 20:08:36 reboot phone? yes. pc no Apr 01 20:10:08 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) Apr 01 20:10:18 in download mode, absolutely nothing Apr 01 20:10:51 try windows? Apr 01 20:10:52 Is the cdc_acm module loaded? Apr 01 20:10:58 hmmm Apr 01 20:11:00 nvm Apr 01 20:11:03 is device showing in lsusb? Apr 01 20:11:06 where am i going to get windows :p Apr 01 20:11:31 anywhere Apr 01 20:11:32 KotCzarny: doesn't show up in syslog .. definitely no chance for it to show up in lsusb. Apr 01 20:11:33 lol Apr 01 20:11:39 not true Apr 01 20:11:50 if your kernel wanst compiled with 'announce new devices' Apr 01 20:11:59 *wasnt' Apr 01 20:12:21 how to query kernel capabilities? Apr 01 20:12:41 gzip -dc /proc/config.gz|grep SOMETHING Apr 01 20:13:24 sicelo, lsusb queries usb tree Apr 01 20:14:46 warfare: it is (was loaded when connecting it in normal mode for adb). i've removed now. will test again Apr 01 20:15:22 Oh, and did you stop adb? Apr 01 20:15:38 download mode doesnt use adb Apr 01 20:16:05 Thats why it should be stopped ;) Apr 01 20:16:05 irrelevant... Apr 01 20:16:16 hmm Apr 01 20:16:24 maybe it interferes, sure Apr 01 20:17:32 it was still running in background. closed. same result Apr 01 20:17:48 Sicelo: anything in lsusb? Apr 01 20:20:56 nop Apr 01 20:22:42 adb kill-server btw Apr 01 20:37:33 ok. i think i should give up for now ... noot getting anywhere Apr 01 20:38:10 exact same symptoms. i rebooted pc just to be sure i don't have something left over from my adb and other sessions Apr 01 21:17:35 well ... Zungo was right about Windows .. i connected it to a machine in the office (but i have no admin permissions on it, so can't install Odin) Apr 01 21:17:52 Odin is not something you install sicelo Apr 01 21:17:58 but this windows thing is making me wonder if i want to go ahead with this ROM business Apr 01 21:18:00 its just an app Apr 01 21:18:08 mmm Apr 01 21:18:26 you'd also want to have a stock rom too Apr 01 21:18:34 in case of problems Apr 01 21:18:42 or giving away Apr 01 21:18:55 and windows Apr 01 21:18:57 restoring stock also resets the tamper flag Apr 01 21:19:02 that's the hard part Apr 01 21:19:09 yeah, heimdal is beta Apr 01 21:19:29 you need admin for devices communication also Apr 01 21:19:39 one more thing Apr 01 21:19:39 still doesn't explain why the phone is not detected on linux ... Apr 01 21:19:42 check your usb filter Apr 01 21:19:47 that might Apr 01 21:20:11 tried another computer with linux? Apr 01 21:20:22 i think i'll remain on stock. the samsung's job is whatsapp only anyway Apr 01 21:20:29 Zungo: yes, pc and laptop Apr 01 21:20:32 touchwiz sucks Apr 01 21:20:43 you maybe want to use odin once to root it Apr 01 21:20:47 and remove knox Apr 01 21:20:53 and bloat Apr 01 21:20:59 you say odin doesn't need install? Apr 01 21:21:08 its a leaked app Apr 01 21:21:10 simple Apr 01 21:21:23 and what's a leaked app? Apr 01 21:21:28 but it does require admin privileges because of driver interaction Apr 01 21:21:32 Odin is leaked software Apr 01 21:21:42 it's a internal samsung tool Apr 01 21:21:51 so yes .. i can't run it on the windows machine i tested on Apr 01 21:22:35 Sicelo: settings developer options "allow kernel unlock" or somesuch, maybe? Apr 01 21:23:13 DocScrutinizer05: that's only on 6.0 onwards or something Apr 01 21:23:22 and he tried a windows machine which worked Apr 01 21:23:23 yep, possible Apr 01 21:23:37 samsung S4 gets no more updates Apr 01 21:23:45 latest stock rom is 5.0.1 Apr 01 21:23:51 based on* Apr 01 21:23:53 meh, spare me from android shit Apr 01 21:24:00 well device manager showed it in windows. no idea if it would have worked, although i guess it would have Apr 01 21:24:13 and the option is called allow oem unlock Apr 01 21:24:19 my evaluation device refused adb, until I reset-factory Apr 01 21:24:25 sicelo it worked probably worked Apr 01 21:24:39 some dunnowhich rogue-fuckapp messed it up Apr 01 21:24:56 DocScrutinizer05: something happened or the usb development setting got disabled Apr 01 21:25:13 usb development is not enabled by default Apr 01 21:25:22 and people still say android is linux ... :-/ Apr 01 21:25:24 also adbd is not always running Apr 01 21:25:26 no, been enabled. I checked everything 5 times with experts doublechecking Apr 01 21:25:38 and re-enabling it? Apr 01 21:25:51 rooted? Apr 01 21:25:52 believe me, it been fucked up Apr 01 21:26:06 well certainly that's a odd issue Apr 01 21:26:14 this shit device is absolutely un-rootable (so far) Apr 01 21:26:33 what device was it DocScrutinizer05? Apr 01 21:26:47 Cat S60 Apr 01 21:28:19 Zungo: i will try someone tomorrow who's got a Windows computer. if not, i'll have to get one of the admins at work on monday to let me install :p Apr 01 21:28:44 sicelo: it's not installable, you need admin privileges to do the flashing Apr 01 21:28:53 yes, that Apr 01 21:28:54 it's not a program you install Apr 01 21:28:56 ah ok Apr 01 21:29:04 so get all the files ready Apr 01 21:29:21 yes i have everything (as far as i understand) .. Apr 01 21:29:30 i have twrp, and the ROM i want to install. Apr 01 21:30:07 GearCM 13 seems to be the best thing out there for the Exynos S4. you can let me know if there's better Apr 01 21:30:20 once you flash recovery you're done with odin, make sure to delete /system/etc/install-recovery.sh Apr 01 21:30:51 Interesting Apr 01 21:30:54 i should check that out Apr 01 21:31:16 or maybe not, i left the phone stock and i gave it away Apr 01 21:31:27 its still around but now i have a nexus 5x Apr 01 21:31:47 Zungo: don't i need it to also flash the ROM? Apr 01 21:31:56 (odin) Apr 01 21:32:11 odin only does tar files Apr 01 21:32:26 tar files containing .imgs with the partition names Apr 01 21:32:43 for zips you use recovery Apr 01 21:32:51 so wait - the TWRP i have is .img :-/ Apr 01 21:33:00 should i tar it up? Apr 01 21:33:08 rename it recovery.img and tar it Apr 01 21:33:11 that should work Apr 01 21:33:26 isnt there a tar version on the website? Apr 01 21:33:59 the samsung tars are a bit odd, 7-zip reports wrong eol Apr 01 21:34:09 bad eol* Apr 01 21:34:17 unexpected eol** Apr 01 21:34:20 https://www.androidfilehost.com/?fid=673368273298920000 Apr 01 21:34:28 um .. wrong link Apr 01 21:34:39 https://dl.twrp.me/i9500/twrp-2.8.7.0-i9500.img.html Apr 01 21:34:45 no tar there Apr 01 21:35:23 go up a directory Apr 01 21:36:02 sicelo, there is Apr 01 21:36:15 https://dl.twrp.me/i9500/ Apr 01 21:36:30 ok i see it. Apr 01 21:36:31 they DO make tar versions of the recovery Apr 01 21:36:33 ok Apr 01 21:36:34 thanks Apr 01 21:37:13 so i flash this with odin Apr 01 21:37:53 next? i presume i flash my rom .. which i guess can be done in TWRP? rom file has to be on SD? file format? Apr 01 21:39:37 the rom i downloaded came as a zip file, https://www.androidfilehost.com/?fid=601300970940399905, which comes from https://forum.xda-developers.com/galaxy-s4/i9500-orig-develop/gearcm-optimized-cyanogenmod-12-1-t3283820 Apr 01 21:40:02 you cant boot back to touchwiz until /system/etc/install-recovery.sh is deleted or the rom is flashed Apr 01 21:40:21 gearcm is cm12.1, mind Apr 01 21:40:24 not 13 Apr 01 21:40:44 am i able to delete that from twrp? or something else is needed? Apr 01 21:41:00 yes, in fact twrp should tell you about it when exiting it Apr 01 21:41:04 oh Apr 01 21:41:14 you also need google drivers on windows for using adb in twrp Apr 01 21:41:16 just in case Apr 01 21:41:30 well not sure about twrp but that was the case with CM Apr 01 21:41:57 i for sure hope it will still at least let me use adb on linux lol. otherwise .. Apr 01 21:42:28 looks like the later version of gearcm is cm13 .. unless i didn't understand something Apr 01 22:02:36 Sicelo: aiui all you need on linux is adb and fastboot Apr 01 22:03:07 both are pretty basic and should work flalessly whe run as root Apr 01 22:10:45 Zungo: recommendations for what i should replace touchwiz with? Apr 01 22:11:04 hmm Apr 01 22:11:07 i am not sure Apr 01 22:11:28 cm should be great choice for a pure android experience, sicelo Apr 01 22:11:37 cool **** ENDING LOGGING AT Sun Apr 02 03:00:01 2017