OESF Portables Forum

Model Specific Forums => Gemini PDA => Gemini PDA - Linux => Topic started by: ArchiMark on May 08, 2018, 12:59:58 pm

Title: Debian on Gemini - Usage
Post by: ArchiMark on May 08, 2018, 12:59:58 pm
Managed to get Debian running on Gemini!

Working, but runs a bit slow.....

Have a few issues/questions....thought it would be good to start a thread for such things....

1. Mouse

I plugged my tiny little Targus mini-mouse into Gemini usb hub but it was not recognized.

Has anyone used a mouse successfully? If so, did you plug into the hub or ?


2.  Window Manager

Any pros/cons for using KWin vs Xfwm4?

Also, in the window that allows you to choose, it listed KWin twin, but since window is so small, you can't read all the text description. Is this just a duplicate entry or are there 2 different versions?


3.  Wireless Network

Used ConnMan to connect to the guest network at work. However, the guest network requires that you login via a webpage. For some unknown reason, I get an error message in browsers when I try to connect to that page.

I have no problem connecting to the login page when using Android on Gemini.

Any suggestions?


Thanks for any help.

Mark
Title: Debian on Gemini - Usage
Post by: Adam Boardman on May 09, 2018, 07:14:10 am
Slow:
Well yesterday evening TheKit put a patch in that got gtkperf to go from 214s -> 65s, so a 3x performance improvement. Just an apt-get update & upgrade away.

Mouse:
I found the connectivity kit hub to have an audible electronic hum so hadn't tried it much, but I just tried it now and it does seem to dislike mice in both Android and Linux. I've been using a mouse happily with a more pocket-able USB Converter (http://cpc.farnell.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=15002&partNumber=CS29239).

WM:
I picked KWin, never tried the other.

Wireless:
The code within cmst (the Connman UI) has a second tab for its wifi-password entry to supposedly attempt to handle those kind of guest networks. Could you try with a regular Debian 9 install on a x86 laptop to identify if the problem is a generic one with stretch or with our changes?
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 09, 2018, 10:16:18 am
Quote from: Adam Boardman
Slow:
Well yesterday evening TheKit put a patch in that got gtkperf to go from 214s -> 65s, so a 3x performance improvement. Just an apt-get update & upgrade away.

Sounds good, will do upgrade....



Quote
Mouse:
I found the connectivity kit hub to have an audible electronic hum so hadn't tried it much, but I just tried it now and it does seem to dislike mice in both Android and Linux. I've been using a mouse happily with a more pocket-able USB Converter (http://cpc.farnell.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=15002&partNumber=CS29239).


Sounds good, will get an adaptor....although seems odd that we can't use the hub...


Quote
WM:
I picked KWin, never tried the other.

Did you see KWin listed twice in the list to choose from?


Quote
Wireless:
The code within cmst (the Connman UI) has a second tab for its wifi-password entry to supposedly attempt to handle those kind of guest networks. Could you try with a regular Debian 9 install on a x86 laptop to identify if the problem is a generic one with stretch or with our changes?

This login page does not have a password to enter....it requires that you click on a tiny checkbox and then click on a button that says 'Login'.

Used the second tab, selected network, then chromium as browser. It opened up chromium, but get error message:

Quote
This site can't be reached

Shows URL and says 'is unreachable' at end of URL

ERR_ADDRESS_UNREACHABLE

I do not have this problem with my x86 laptop that dual boots Win10 and LinuxMint.


Thank you for all your help, Adam!
Title: Debian on Gemini - Usage
Post by: Adam Boardman on May 09, 2018, 12:19:07 pm
Yes there was two KWins, no idea why.

LinuxMint has probably a bunch of newer versions of various packages, so my request still stands that I would like you to try out an x86 Debian 9 to isolate the problem to whether its in something we've changed or just that the older versions of things in D9 just don't support your kind of guest network.
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 09, 2018, 01:03:00 pm
Quote from: Adam Boardman
Yes there was two KWins, no idea why.

LinuxMint has probably a bunch of newer versions of various packages, so my request still stands that I would like you to try out an x86 Debian 9 to isolate the problem to whether its in something we've changed or just that the older versions of things in D9 just don't support your kind of guest network.


OK, will try to get Debian 9 install setup...
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 09, 2018, 05:06:40 pm
OK, was able to get Debian 9 running on my lil' Lenovo Flex 10 laptop.....

Selected the guest network and opened Firefox and it already had a button near top of window that says 'login page'. Clicked it and Voila! it connected to the login page and worked when I logged in....

So, there's something funky with the Debian/ConnMan setup on the Gemini I assume.....

Meanwhile, when I get home from work, I should be able to do the apt-get upgrade there.

Let me know if you have any other suggestions regarding being able to connect the guest network at my office.

Thanks!
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 10, 2018, 12:20:19 am
Playing with Debian on Gemini this evening at home...

Good news is that it connects easily to my home WiFi network. Selected my home network from list in ConnMan, clicked 'Connect' and then it popped open a window asking me to enter my network password.

Also, bought a nice little sleek MacAlly USB to USB-C adapter. Mouse works well now.

Meanwhile, a new issue....

I wanted to do 'apt-get upgrade', but I can't type some of the characters I need such as ' - '.

4. Keyboard Layout

How do you type the characters that are printed on the front edge of the keyboard keys?

I went into Preferences > LXQt Settings > Keyboard and Mouse > Keyboard Layout and it shows 'US Keyboard', which is good since I am in USA.

Underneath this is 'Keyboard model' and next to it is a pop-down menu with a long list of models to choose. It was set to 'Generic 101-key PC'. Is this OK or is there a better one to use?

Or is there something else I need to do to get the right keyboard layout?

Would help if there was an on-screen keyboard to use for now to get access to needed characters.....


5. Terminal

Which terminal is best to use?

UXterm gives error message in the terminal window when opened.

Xterm opens OK, but text is microscopic in size, have to use a magnifying lens to read text in window....can one enlarge size of text?


Thanks for any and all help.

Mark
Title: Debian on Gemini - Usage
Post by: Adam Boardman on May 10, 2018, 05:22:54 am
You need to update all the packages the keyboard layouts were done after the first image. DebianTP (https://github.com/gemian/gemini-keyboard-apps/wiki/DebianTP) has lots of helpful stuff to do with getting things updated to the latest state. QTerminal supports zoom levels but you need to fix the shell before its usable.
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 10, 2018, 09:04:30 am
THANK YOU for the input and link, Adam!

Took a quick look at that page and it does have lots of good info. Wish I'd known about it earlier....

So, will work my way through the various things mentioned there in order to get my setup correct.

And then will try to connect to the guest network at work again to see if it will connect....
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 14, 2018, 10:34:47 am
At home, last evening I did some of the items on DebianTP page....WiFi connection works well at home.

SSH'd into the Gemini and did the following items (showing the Heading from the DebianTP page):

Set a shell so that the device is usable

More disk space

Locales


A. Shared Internet Connection

Now I would like to use apt-get to more updates.

However, I'm at work now and I still cannot connect to guest network from Gemini. However, I can connect to guest network from GPD Pocket running LinuxMint.

Is it possible to piggyback off of the WiFi connection on GPD Pocket to access internet?

I'm connected Gemini to Pocket with the usb cable to use ssh.


UPDATE:  Figured out how to setup Pocket as 'Hotspot'. However, won't work at work on guest network. Got error message that this connection cannot be shared. Oh well....will continue update process when I get home this evening....



B. Keyboard Mapping


Not clear about getting keyboard mapping working properly.

Will doing apt-get upgrades will get mapping working properly or do I need to update the kernel or ?


Thank you for help.

Mark
Title: Debian on Gemini - Usage
Post by: depscribe on May 14, 2018, 03:10:02 pm
Quote from: ArchiMark
Will doing apt-get upgrades will get mapping working properly or do I need to update the kernel or ?
As the wiki notes (it is easy to miss stuff; I did and made a mess), for the new keyboard mapping to work a hacked kernel is necessary:

Update the kernel

NOTE[HAZARD WARNING]: If you've used the Gemini Partition Tool to swap your primary boot to linux then its its no longer possible to update your kernel in this way. You'll have to go back to the flashing tool.

Gemian now includes a branch of xkb with some initial keyboard maps, these need a newer kernel, this can be done on device without going back to the flashing system:

Code: [Select]
wget https://gemian.thinkglobally.org/linux-boot-2018-03-26-H4.img
sudo dd if=linux-boot-2018-03-26-H4.img of=/dev/disk/by-partlabel/linux_boot
You can check your kernel version with a:

uname -a
After the update it should show:

Linux localhost 3.18.41+ #4 SMP PREEMPT Wed Mar 26 22:43:05 MSK 2018 aarch64 GNU/Linux
Probably best to check your version before updating it, the date stamp is the most reliable way of knowing what is newer, the build numbers randomly reset.

[eoq]

Unless you used the partitioning tool -- did you? It askes which operating system you want as the default and how you want to divide the available space -- that should worj just fine, no reflash needed.
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 14, 2018, 05:18:12 pm
Quote from: depscribe
Quote from: ArchiMark
Will doing apt-get upgrades will get mapping working properly or do I need to update the kernel or ?

As the wiki notes (it is easy to miss stuff; I did and made a mess), for the new keyboard mapping to work a hacked kernel is necessary:

Update the kernel

NOTE[HAZARD WARNING]: If you've used the Gemini Partition Tool to swap your primary boot to linux then its its no longer possible to update your kernel in this way. You'll have to go back to the flashing tool.

Gemian now includes a branch of xkb with some initial keyboard maps, these need a newer kernel, this can be done on device without going back to the flashing system:

Code: [Select]
wget https://gemian.thinkglobally.org/linux-boot-2018-03-26-H4.img
sudo dd if=linux-boot-2018-03-26-H4.img of=/dev/disk/by-partlabel/linux_boot
You can check your kernel version with a:

uname -a
After the update it should show:

Linux localhost 3.18.41+ #4 SMP PREEMPT Wed Mar 26 22:43:05 MSK 2018 aarch64 GNU/Linux
Probably best to check your version before updating it, the date stamp is the most reliable way of knowing what is newer, the build numbers randomly reset.

[eoq]

Unless you used the partitioning tool -- did you? It askes which operating system you want as the default and how you want to divide the available space -- that should worj just fine, no reflash needed.

THANK YOU, dep, for your input!

Yes, read page and trying to follow it carefully....but wasn't completely sure if you did need to update the kernel to get keyboard mapping set correctly....

Will do kernel update this evening at home...

I did not use the partitioning tool....I did the resize command as noted on the GemianTP page.

Hope to have a usable Debian setup on Gemini soon....

Mark
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 14, 2018, 11:39:22 pm
OK, did the system upgrades with apt-get and the kernel update per GemianTP page.

Checked kernel version to make sure it matched info on GemianTP page.

Tried typing, but could not get the characters on front edge of keys to type.

I rebooted Gemini and still can't type the characters on front edge of keys with pressing Fn key too.

I checked LXQt settings, ‘keyboard and mouse’. There keyboard is shown as ‘English (US) and keyboard layout as ‘generic 101-key PC’. There is a message about these settings may be ignored if system uses some other controls. So, don’t know if this Debian setup ignores preferences shown.

I have US keyboard on my Gemini.

Is there some other configuration step I need to do that is not described on GemianTP page???

Thanks for any help.

Mark
Title: Debian on Gemini - Usage
Post by: Adam Boardman on May 15, 2018, 03:30:05 am
Sorry should probably mention it on the page. Once you've done the updates the sddm (the login screen) has in its top edge a dropdown so you can pick the keyboard layout. This will (should) set the keyboard for the session.

The only trouble is if you've also manually set a session keyboard within the LXQt settings this will probably override it. In that case you need to pick your layout and then select 'Planet Computers Gemini' for the 'Keyboard model'. Also if your keyboard layout has two sets of letters printed the keyboard will be auto-configured to use left+right shift to swap the letters in use, this may conflict with other multi-layout settings you can pick from the UI.

The idea was to have the keyboard types auto detect based upon plugging so that the internal one will automatically be selected as a Gemini and an external one as pc104 etc, and the layouts work as expected. Any lxqt settings set break this. I'm not entirely convinced its working right just yet either I've not tested it recently, it was working once upon a time. If someone wants to try testing it then edit files in .config to remove any keyboard settings first, then select from the login screen.

The kernel update enables things like Sleep on Close, Bluetooth, the use of the ESC key as fn+esc to 'sleep (off)'. All the rest of the keys are the same without the kernel update. (the updated shortcuts may also require a reset of your .config/lxqt/globalkeyshortcuts.conf)
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 15, 2018, 09:01:16 am
THANKS, Adam, for your help....that did it...

I logged out, then selected keyboard on login screen. Then logged in and went to LXQt preferences, Keyboard and Mouse. Then in Keyboard, I selected 'English (US)' and clicked 'Remove' button and closed window.

Tried typing characters on front edge of keys and it finally worked !!!

Now have a working Gemini with Debian.....

 

Mark
Title: Debian on Gemini - Usage
Post by: Adam Boardman on May 15, 2018, 09:23:01 am
I'm uncertain if the second part of you did was required, but so long as it works.
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 15, 2018, 09:28:09 am
Quote from: Adam Boardman
I'm uncertain if the second part of you did was required, but so long as it works.

It was...

I tried just the first part and still no go. So, logged out again and did as I wrote in prior post and Voila! It worked!
Title: Debian on Gemini - Usage
Post by: Adam Boardman on May 15, 2018, 09:35:51 am
Good stuff, the latest thing is that you can install gemian-leds and to get the caps lock led to work.
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 15, 2018, 09:40:00 am
Great....

Onward and upward.....

 
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 15, 2018, 12:10:05 pm
Got caps lock LED working...no more blue LED!

Battery status app is not working, correct?

if so, is there way to fix?

Thanks.
Title: Debian on Gemini - Usage
Post by: Adam Boardman on May 15, 2018, 01:33:56 pm
The battery status green circle shows how much is left, the clicking on it thing is nonsense it seems.
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 15, 2018, 03:04:34 pm
Quote from: Adam Boardman
The battery status green circle shows how much is left, the clicking on it thing is nonsense it seems.

OK, now I get it....

Thanks!
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 16, 2018, 12:20:43 am
Got another one.....

Ethernet Connection

At home it would be nice to use my wired ethernet connection.

Is the Debian image setup for this or does one need to some installs and/or configuration to get it working.

I have the Gemini hub which has ethernet port at the end of it. However, one light is green and other is orange at port when cable plugged in.

Tried pinging, but says network unreachable.

Did ifconfig and think ethernet is rndis0. Tried doing ifup rndis0, but says not found....

Any suggestions?


Thanks.
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 16, 2018, 09:53:32 am
OK, now another one....

Relates to DebianTP webpage, heading 'Sleep on close'.

Did as instructed, and after using Gemini, I closed it up. If I click on the silver side button, I hear the time announcement. That's the good news...


Meanwhile, have no idea how to wake up Gemini, so tried various keys.

Clicked Esc key and get this world map graphic with yellow dots on some locations in the world. No hint on screen regarding unlocking.

Clicked Enter key: I get a blue circle with word 'verifying...' on display. Then after a bit, circle turns red and says 'wrong!'

What is key(s) to get Gemini unlocked?

Thanks.

UPDATE

OK, figured out how to unlock....

When you see the world map screen, type the Gemini password and it unlocks....


UPDATE 2

Noticed an item in taskbar 'Screen Saver Activation Error'. Clicked on it and window popped up that says:

Quote
An error occurred starting screensaver. Action 'activate' failed. Ensure you have xscreensaver installed and running'.
Title: Debian on Gemini - Usage
Post by: Grench on May 16, 2018, 11:31:09 am
You folks here working on the Debian items might have some insights to a few issues I'm seeing on Android.

Above was a discussion where the lid switch was activated under Debian.  I want to change how it works on Android.  Is the lid switch in the Keyboard matrix (keycode?) or does it live on it's own weird GPIO elsewhere or other?

Debian has it's own keyboard mapping - which may be better than what is on Android.  Within Debian, do Fn+arrows work?  I.e. is PgUp, PgDn, Home, End working on the Debian side?  If so - good, that means there is hope.  Is there a table of keycodes generated by keys that can be shared?

Thanks!
Title: Debian on Gemini - Usage
Post by: Adam Boardman on May 16, 2018, 12:25:52 pm
Grench - We changed our kernel so that it doesn't use F11/12 for the lid switch:
https://github.com/gemian/gemini-linux-kern...47c8967963d6b0f (https://github.com/gemian/gemini-linux-kernel-3.18/commit/60bb1bd77ef6f9127dbfe11ac47c8967963d6b0f)

The android kernel will still be sending F11/12 keys.

Yes we have our own key maps, and all the keys can be made to do useful/appropriate things:
https://github.com/gemian/xkeyboard-config/...net_vndr/gemini (https://github.com/gemian/xkeyboard-config/blob/stretch/symbols/planet_vndr/gemini)

Uncertain how you would make use of any of this in Android, unless your re-building your own version some how (Lineage OS)?

Crucial things to know about keyboards - the Gemini closes on its keys, this means that they fire off random key presses on the close and the open and sometimes full scale repeat for the entire duration of the closed lid state. In debian we handle this with both turning off the screen/keyboard and launching a lock screen to eat key presses. It will be interesting to figure out the HDMI+USB/BT keyboard+closed device user story once we get to working on that side of things.

--

Mark - Ethernet not supported yet, theoretically there are USB drivers available for the dongle, just need to debug it/figure out why they aren't being picked up automatically, not looked into it yet, probably not worth looking into until we've decided on the best cellular connectivity solution.

The rndis is the usb tethering that can be used for initial setup when connected to a PC via the USB cable.

You can activate the screen saver (sleep) with the fn+esc key combination. We don't use xscreensaver, isn't that the animated type screen-saver rather than a power efficient sleep?
Title: Debian on Gemini - Usage
Post by: Grench on May 16, 2018, 12:49:14 pm
Quote from: Adam Boardman
Grench - We changed our kernel so that it doesn't use F11/12 for the lid switch:
https://github.com/gemian/gemini-linux-kern...47c8967963d6b0f (https://github.com/gemian/gemini-linux-kernel-3.18/commit/60bb1bd77ef6f9127dbfe11ac47c8967963d6b0f)

The android kernel will still be sending F11/12 keys.

Yes we have our own key maps, and all the keys can be made to do useful/appropriate things:
https://github.com/gemian/xkeyboard-config/...net_vndr/gemini (https://github.com/gemian/xkeyboard-config/blob/stretch/symbols/planet_vndr/gemini)

Uncertain how you would make use of any of this in Android, unless your re-building your own version some how (Lineage OS)?

Crucial things to know about keyboards - the Gemini closes on its keys, this means that they fire off random key presses on the close and the open and sometimes full scale repeat for the entire duration of the closed lid state. In debian we handle this with both turning off the screen/keyboard and launching a lock screen to eat key presses. It will be interesting to figure out the HDMI+USB/BT keyboard+closed device user story once we get to working on that side of things.

Thank you - that helps a lot.  My interest is in being to document the issues on the Android keyboard & lid switch in the faint hope that they might get fixed in the Gemini Android keyboard driver.  Since the Debian group here has, 'been there done that', I thank you for your assistance in documentation.

Android lid switch is F11/F12.  So it's behavior should be governed in the Planet keyboard app.

Can you verify that PgUp/PgDn/Home/End are returning their proper keycodes and functioning normally in Debian applications?  (These do not work at all in Android on the Gemini US keyboard definition.)  Likely just a value change in a table.

Thank you!
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 16, 2018, 03:51:18 pm
Quote from: Adam Boardman
Mark - Ethernet not supported yet, theoretically there are USB drivers available for the dongle, just need to debug it/figure out why they aren't being picked up automatically, not looked into it yet, probably not worth looking into until we've decided on the best cellular connectivity solution.

The rndis is the usb tethering that can be used for initial setup when connected to a PC via the USB cable.

Thanks for explaining.....understand current situation...


Quote
You can activate the screen saver (sleep) with the fn+esc key combination. We don't use xscreensaver, isn't that the animated type screen-saver rather than a power efficient sleep?


Thanks for this info...

Regarding xscreensaver, I was just surprised to see the error message and thought it good to report it.

You're right, it's the animated screen-saver....
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 20, 2018, 04:41:27 pm
WiFi - Guest Network - Captive Portal - Login Problem

Per my earlier posts on page 1 of this thread, I am still not able to get to login page on web browsers for the guest network at my workplace.

WiFi works well on Gemini everywhere except at my workplace.

I know it should work as I'm able to connect easily to guest network with all my other little laptops that run Win 10 or Linux.

Even though I can see the guest network and shows I'm connected in cmst, the browsers will not go to the login page.

Have tried with Firefox ESR and Chromium included in Debian image.

The guest network at my company is the type where you have to see the login page, click on checkbox to agree to terms & conditions, then click on connect button, then you get taken to a company related webpage, and you're good to go web-surfing wherever you like.

I've looked through the various items in Connman/cmst windows, and tinkered a bit with some settings, but nothing seems to fix this.

Have tried various suggestions mentioned on various websites about not connecting to public WiFi networks, but nothing works. Have tried typing in the network IP address in browser, typing in neverssl.com, etc.

In the Details tab, it says:

Connection: wifi_0009345a845c_4b61697365724775657374_managed_none

Service Details:
Service Type: WiFi
Service State: Ready
Favorite: Yes
External Configuration File: No
Auto Connect: On

Name Servers
8.8.4.4
8.8.8.8

Time Servers
192.168.0.1

IPv4
IP Address Acquisition: DHCP
IP Address: 192.168.0.11
IP Netmask: 255.255.255.0
IP Gateway: 192.168.0.1

IPv6
section is blank

Ethernet
Connection Method: Auto
Interface: wlan0
Device Address: 00:09:34:5A:84:5C
MTU: 1500

Wireless
Security: None
Strength: 60
Roaming: No

Proxy
Address Acquisition: Direct

VPN Provider

section is empty


In browser, I get following message:

Quote
Unable to connect

Firefox can't establish a connection to the server at 10.224.128.40

In URL field, I see:

10.224.128.40/upload/custom/PK-EDGE-CP/index.html?cmd=login&mac=00:09:34:5a:84:5c&ip=192.168.0.11&essid=%20&url=http%3A%2F%2neverssl%2Ecom%2F



*** Please note that I altered a few letters/numbers in the URL above.

Again, the Gemini PDA connects OK to my WiFi network at home, but there I am able to enter password myself.

If you need me to check on some things and provide info, let me know.

Any suggestions of what to do to be able to get to the login page would be greatly appreciated!

Thanks,

Mark
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 21, 2018, 10:21:03 am
Reading about Connman online....

Want to find the file that is holding the name servers info, so I can delete the current google server info.

Just looked at the 'settings' file in /var/lib/connman.

Not much there...but here's what's written (changed name of guest network to hide company name):

Quote
OfflineMode=false

[WiFi]
Enable=true
Tethering=false
Tethering.Identifier=XxxxxxGuest


[Bluetooth]
Enable=true
Tethering=false


Just tried to check what is in /var/lib/connman/wifi_0009345a845c_4b61697365724775657374_managed_none directory and can't get in.

Quote
$ cd ./wifi_0009345a845c_4b61697365724775657374_managed_none
Permission denied

$ sudo cd ./wifi_0009345a845c_4b61697365724775657374_managed_none
sudo: cd: command not found



Any suggestions?

Thanks,

Mark
Title: Debian on Gemini - Usage
Post by: jutleys on May 23, 2018, 11:02:32 am
I know this is the first release but its not that much usable for everyday use i hope a updated revision is out soon.
Title: Debian on Gemini - Usage
Post by: tuk0z on May 25, 2018, 08:13:35 am
Quote from: Adam Boardman
Gretch - We changed our kernel so that it doesn't use F11/12 for the lid switch:
https://github.com/gemian/gemini-linux-kern...47c8967963d6b0f (https://github.com/gemian/gemini-linux-kernel-3.18/commit/60bb1bd77ef6f9127dbfe11ac47c8967963d6b0f)
(...)
@Adam, am one the « your-Gemini-pda-production-started-May-2 » guy. Super glad that you started Gemian up.
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 25, 2018, 08:59:36 am
Would greatly appreciate it if anyone could please assist with the issue of my not being able to connect to the guest WiFi network at my workplace location.

Please see posts 30 - 31 on page 2 of this thread.

It is very frustrating to not be able to have internet connection on my Gemini on Monday - Friday, 8 - 10 hours a day!

If I can't figure this out soon, I might have to sell Gemini.

So, any help will be truly appreciated greatly!

Mark
Title: Debian on Gemini - Usage
Post by: Grench on May 25, 2018, 12:25:21 pm
Quote from: ArchiMark
Would greatly appreciate it if anyone could please assist with the issue of my not being able to connect to the guest WiFi network at my workplace location.

Please see posts 30 - 31 on page 2 of this thread.

It is very frustrating to not be able to have internet connection on my Gemini on Monday - Friday, 8 - 10 hours a day!

If I can't figure this out soon, I might have to sell Gemini.

So, any help will be truly appreciated greatly!

Mark

At some point in the process of evaluating a problem it can be useful to consider what works.

Are you dual booting Debian and Android?  If so, try connecting with Android.  If that works, the hardware is good and it's a Debian setting issue.  If Android doesn't work, then there may be some weird hardware incompatibility between your Gemini and the particular access point or model that you are trying to connect to.

I have seen it before where a device works on every wireless access point but one - and that one access point connected to everything else fine.

I initially had issues connecting my Gemini to my work network.  I tried various settings, etc - no good.  Then on a whim I tried to connect in another area of the building using the default settings - all good.  Once connected and authenticated on the far access point, it now works on the near access point.  Try forgetting the network, go to near a different access point and try again?
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 25, 2018, 01:09:18 pm
Quote from: Grench
Quote from: ArchiMark
Would greatly appreciate it if anyone could please assist with the issue of my not being able to connect to the guest WiFi network at my workplace location.

Please see posts 30 - 31 on page 2 of this thread.

It is very frustrating to not be able to have internet connection on my Gemini on Monday - Friday, 8 - 10 hours a day!

If I can't figure this out soon, I might have to sell Gemini.

So, any help will be truly appreciated greatly!

Mark

At some point in the process of evaluating a problem it can be useful to consider what works.

Are you dual booting Debian and Android?  If so, try connecting with Android.  If that works, the hardware is good and it's a Debian setting issue.  If Android doesn't work, then there may be some weird hardware incompatibility between your Gemini and the particular access point or model that you are trying to connect to.

I have seen it before where a device works on every wireless access point but one - and that one access point connected to everything else fine.

I initially had issues connecting my Gemini to my work network.  I tried various settings, etc - no good.  Then on a whim I tried to connect in another area of the building using the default settings - all good.  Once connected and authenticated on the far access point, it now works on the near access point.  Try forgetting the network, go to near a different access point and try again?

Thank you for your help, Grench!

Good point about checking with Android....

I am dual booting, so, just checked with Android and I can get to the login page OK.

So, clearly there's an issue with Debian setup. Was assuming it relates to something with Connman, the program that is included in the Debian image file, that manages WiFi connections.

I will try your suggestion to try and connect in other part of building. The signal is not the strongest in my own office.

Will report back after I try other locations.

Mark
Title: Debian on Gemini - Usage
Post by: ArchiMark on May 25, 2018, 01:37:04 pm
Tried in area close to access point, but still won't connect to the login page....

Still get same error message that the page is unreachable.

ERR_ADDRESS_UNREACHABLE


Dang......


 


Mark
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 05, 2018, 10:06:49 am
Any other suggestions regarding connecting to my workplace guest WiFi network with captive portal login?

As noted in posts above, I can connect OK when using Android. Problem is not being able to get to the login page when using Debian with Connman.

Would really like to get this solved, as I spend most of my time during the week at the office, so, would be great to be able to connect to internet while I am here.

Thank you.

Mark
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 05, 2018, 11:41:02 am
Just tried ping and got:

Code: [Select]
$ sudo ping -c 4 8.8.8.8

PING 8.8.8.8 (8.8.8.8) 56(84 bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=21.5 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=20.4 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=57 time=23.2 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=28.2 ms

--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004 ms
rtt min/avg/max/mdev = 20.433/23.365/28.278/3.012 ms


Seems like I'm able to reach internet.....so, why can't I get to login page????
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 10:21:50 am
Additional info regarding Connman and internet connection issue....

When I look at the Details tab screen in Connman, under heading Name Servers, it shows

Quote
Name Servers
8.8.4.4
8.8.8.8


I clicked Configuration button and deleted the numbers and tried connecting again.

Still can't get to login page.

When I looked at the Details tab screen again, it shows the numbers (as shown above) again.

Can someone please assist?

This is driving me nutz.....and makes having the Gemini not useful.

Thanks,

Mark
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 08, 2018, 10:36:52 am
An alternative option to try is to flip to NetworkManager.

If you want to try this something along the lines of:

sudo apt-get install network-manager network-manager-gnome plasma-nm

Switch from connman to NetworkManager (this may actually have been done by the above install, but just in case, and if you want to switch back you can swap the enable/disable to reverse it):

sudo systemctl stop connman
sudo systemctl disable connman
sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager

reboot to clear out any lingering connman configured bits and bobs

lxqt-menu -> Preferences -> Network Connections

Add new wifi etc.
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 11:06:30 am
Thanks for your help, Adam!

Only thing is that I can't connect to internet now, so, can't install NetworkManager....

I will try to go somewhere at lunch today that has free wifi and see if I can connect to their network.

If so, will install NetworkManager and then try at office again.

Otherwise, will have to wait until this weekend to install and then try at office again on Monday.....

So it goes...
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 12:02:18 pm
Went to a place that has free wifi....

I was able to get to their login page and connect to network!

Installed NetworkManager....


Came back to office and tried to connect to my company guest network.

Still no go......    

I now get this error message in browser:

Quote
This site can't be reached

The webpage at http://neverssl.com/ (http://neverssl.com/) might be temporarily down or it may have moved permanently to a new web address.

ERR_NAME_RESOLUTION_FAILED


Any other suggestions???

Thanks!
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 08, 2018, 12:32:03 pm
All seems a bit strange, so going back to the beginning, we got you to try with D9 on another laptop, and you said that worked. Can you go through/check the config on both and let us know what is different.

i.e. I figured perhaps you'd used NetworkManager on your laptop rather than connman, so thats why I suggested that.
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 08, 2018, 12:34:40 pm
Oh if you just have name resolution failure then check your /etc/resolv.conf if empty/absent pop the usual default you mentioned before of nameserver 8.8.8.8 (I had thought that the reboot would make that bit work)
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 01:25:21 pm
Quote from: Adam Boardman
Oh if you just have name resolution failure then check your /etc/resolv.conf if empty/absent pop the usual default you mentioned before of nameserver 8.8.8.8 (I had thought that the reboot would make that bit work)

Thanks for your continued help....

Tried to look at resolv.conf, but it wasn't found....

Looked inside /etc and saw resolv.conf, but it was in shown in red.

Did

Code: [Select]
$ ls -al

lrwxrwxrwx  1  root  root      24   Nov    3   2016  resolv.conf  -> /run/conman/resolv.conf


Nothing shown in /run/connman.....

What do I do now?

Thanks.
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 01:49:38 pm
Quote from: Adam Boardman
All seems a bit strange, so going back to the beginning, we got you to try with D9 on another laptop, and you said that worked. Can you go through/check the config on both and let us know what is different.

i.e. I figured perhaps you'd used NetworkManager on your laptop rather than connman, so thats why I suggested that.

Yes, D9 Live worked on my laptop....

D9 Live uses NetworkManager...

NM connects to my company guest network OK...

Opened Firefox and it opened a tab for Mozilla first run.  The body of the page says:

Quote
Login to network


This network may require you to login to use the internet.

Button: Open Login Page  and other button:  Advanced



Nothing happened when I clicked on Open Login Page button.

However, in another tab, I typed in 'neverssl.com' and it went to my company guest network login page!
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 01:53:48 pm
UPDATE...

On my laptop running D9 Live....in terminal just did:

Code: [Select]
$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.4.4
nameserver 8.8.8.8


So, picks up same nameservers......

Anything else to check?
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 08, 2018, 01:59:28 pm
If you've got your /etc/resolv.conf on the gemini linking to a non-existant connman related link then I suggest you remove that dead link and then reboot again.
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 02:12:58 pm
Quote from: Adam Boardman
If you've got your /etc/resolv.conf on the gemini linking to a non-existant connman related link then I suggest you remove that dead link and then reboot again.

Thanks....

Have no idea where that link came from....

Just tried to remove link..did:

Code: [Select]
$ sudo rm /etc/connman/resolv.conf
sudo: unable to resolve host localhost.localdomain: Connection refused
rm: cannot remove '/run/connman/resolv.conf' : No such file or directory


Any suggestion?

Thanks!
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 08, 2018, 02:21:31 pm
The file your trying to remove is /etc/resolv.conf?
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 02:25:13 pm
Quote from: Adam Boardman
The file your trying to remove is /etc/resolv.conf?

Good question....

I thought I needed to remove the one named in link....

But maybe I'm mistaken...and I need to remove /etc/resolv.conf

Please see my prior post and advise...
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 08, 2018, 02:25:17 pm
If that filed dosn't exist then you need to make it and it should contain the same contents as your d9 laptop as you previously quoted above. A reboot should have created it for you as network manager should have created it as you attached to the wifi, the assumption is that there is a dead link from the old connman config left lying about getting in the way.

Edit for clarity: you target is to remove the file /etc/resolv.conf then reboot and reconnect to the wifi, then verify that the /etc/resolv.conf file is now created with the same contents as on the D9 laptop (or very similar).
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 02:28:06 pm
Quote from: Adam Boardman
If that filed dosn't exist then you need to make it and it should contain the same contents as your d9 laptop as you previously quoted above. A reboot should have created it for you as network manager should have created it as you attached to the wifi, the assumption is that there is a dead link from the old connman config left lying about getting in the way.

Think I understand....

Will check the file on D9 laptop....

Then create new resolv.conf on Gemini as you suggest.....

Will report back....

Thanks!
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 08, 2018, 02:32:00 pm
You don't need to go back to the laptop, you've already quoted its contents there in your post #47
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 02:48:53 pm
Quote from: Adam Boardman
You don't need to go back to the laptop, you've already quoted its contents there in your post #47


Oops, you're right!...    


Meanwhile, I created new /etc/resolv.conf to match D9 laptop. [However, per below, it is not there...???]

However, I noticed in /etc there is another directory now 'resolvconf'....assume created by NetworkManager install?....

Tried connecting again, but same error....

Should I put the resolv.conf file in the new resolvconv directory?

Also, I still see resolv.conf in red text in /etc as before:

resolv.conf -> /run/connman/resolv.conf

How can I delete it? As note in earlier post, it didn't delet with sudo rm....

Thanks
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 02:56:07 pm
UPDATE

So, was looking around directories....

Went inside /run...and saw NetworkManager directory.

Inside it is resolve.conf and it matches the one on my D9 laptop!

So, think (hope, wish...) issue now is to get rid of the nasty resolv.conf file and link that is still there in /etc....

Thanks.
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 08, 2018, 03:08:36 pm
I'm really confused by this file is there file is not there thing.

On my gemini I have a real file called /etc/resolv.conf its automatically created by NetworkManager when I connect to my wifi network. I don't see how your sudo nano /etc/resolv.conf enter the nameserver line and save then check your internet connection can end up with the file not being there?
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 04:30:15 pm
Sorry, it is a bit confusing....

Will try to clarify situation:

A.  Like you, I do have a real file resolv.conf created by NetworkManager. However, I see mine in /run/NetworkManager.

B.  If I look in /etc directory, I see in red text 'resolv.conf' and a 'resolvconf' directory.

C.  If I do 'ls -al', I see:

Code: [Select]
$ ls -al

lrwxrwxrwx   1   root  root       24  Jun   8  11:41  resolv.conf  ->  /run/connman/resolv.conf

drwxr-xr-x    3   root  root   4096   Feb 23  12:31 resolvconf


D.  If I look inside 'resolvconf directory, I see directory 'update-libc.d' and inside that directory is 'avahi-daemon'.


So....given the above state of things, etc, should I delete the /etc/resolv.conf that is linked to /run/connman/resolv.conf or leave it?

If delete, could use direction as to how to delete, given earlier posts today where I showed that system did not want to let me delete it.

Hope this is bit clearer now.....

Thanks!

UPDATE

Well, decided to try and delete /etc/resolv.conf again. This time it worked! Go figure.....

Logged out and then logged back in....

NetworkManager automagically connects to my company guest network. Signal is pretty good....like 3 bars....

Opened Chromium browser and tried to get to login page...

Unfortunately, now I got the error message that I got in my much earlier posts....

Quote
The site can't be reached

http://10.224.128.40/upload/custom/PK-EDGE-PC/index.html (http://10.224.128.40/upload/custom/PK-EDGE-PC/index.html)?
cmd=login&mac=00:09:345a:84:5c&ip=192.168.0.71&essid=%20
%%0&url=http%3A%2F%2Fwebmail%2Eearthlink%2Enet%2F is
unreachable.
ERR_ADDRESS_UNREACHABLE

* I changed a few numbers and letters in url quoted above....


UPDATE 2

Just checked /etc and now I see 'resolv.conf' file in light blue color...looked at the file, it is now showing the text as generated by NetworkManager!
So, that's progress, I suppose....

However, still can't connect to login page......  
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 08, 2018, 05:30:01 pm
OK so basically the connman and the NM are both doing the same for your WiFi, you get a connection but for some reason the auto redirect to guest login is failing.

So can you go back to the D9 laptop and get to the guest network login web page, check whats in the address bar, then see what happens if you type that into the gemini address bar.

I also assume you've tried both firefox and chromium.
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 08, 2018, 05:50:02 pm
Quote from: Adam Boardman
OK so basically the connman and the NM are both doing the same for your WiFi, you get a connection but for some reason the auto redirect to guest login is failing.


Correct, in connman and NM, I can see that it says I'm connected to the guest network, but in browsers, it fails to go to the guest login page.



Quote
So can you go back to the D9 laptop and get to the guest network login web page, check whats in the address bar, then see what happens if you type that into the gemini address bar.

Just did this, but I still get 'Unable to Connect' error message.....


Quote
I also assume you've tried both firefox and chromium.

Correct, have tried both browsers......


 
Title: Debian on Gemini - Usage
Post by: galodoido on June 09, 2018, 06:20:06 pm
Quote from: ArchiMark
Quote from: Adam Boardman
OK so basically the connman and the NM are both doing the same for your WiFi, you get a connection but for some reason the auto redirect to guest login is failing.


Correct, in connman and NM, I can see that it says I'm connected to the guest network, but in browsers, it fails to go to the guest login page.



Quote
So can you go back to the D9 laptop and get to the guest network login web page, check whats in the address bar, then see what happens if you type that into the gemini address bar.

Just did this, but I still get 'Unable to Connect' error message.....


Quote
I also assume you've tried both firefox and chromium.

Correct, have tried both browsers......


 

Hi,

I can't do the test because I have no network with captive login page near my house.
But I saw 3 possibilities searching google :

1-


Make the connection to the WIFI.

 If you are connected, but can not browse the web, Open a terminal and type sudo  route. You should receive a display such as:


Destination Gateway Genmask Flags Metric Ref Use Iface


If you type the default Gateway (i.e., 10.1.0.1) into your browser's address bar, you will receive the WIFI login page.

maybe you can Enjoy your time on the internet.

2-

When you are behind a captive portal you can open a browse to a HTTP site (not HTTPS), the portal will redirect you to a login page.

Maybe you are not redirected because you are trying to open a HTTPS site. The portal usually blocks that entirely, because attempting to redirect it would anyway result in a certificate warning.

3-

sudo dpkg-reconfigure resolvconf


good luck !
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 09, 2018, 07:42:30 pm
Thank you for your help, galodoido. Greatly appreciate it!

Have tried 1 and 2....but no go....

For number 2, I use neverssl.com....

Can try 3 and test on Monday, when I am back at office.....
Title: Debian on Gemini - Usage
Post by: galodoido on June 09, 2018, 08:16:03 pm
Quote from: ArchiMark
Thank you for your help, galodoido. Greatly appreciate it!

Have tried 1 and 2....but no go....

For number 2, I use neverssl.com....

Can try 3 and test on Monday, when I am back at office.....

Ok.

I saw this also searching on google :

https://blog.ham1.co.uk/2016/02/06/cannot-s...ux-ubuntu-mint/ (https://blog.ham1.co.uk/2016/02/06/cannot-sign-in-using-hotel-wifi-on-linux-ubuntu-mint/)

I had trouble connecting to the Internet while abroad using the hotel1 WiFi2 on my Linux Mint laptop.

The Problem
I could connect to the WiFi and obtain an IP address, however, the hotel’s internet sign-in page failed to load in both Chromium or Firefox. Turns out it was a DNS oddity.

The Solution
Update (thanks to Abe)
For Ubuntu 17.04 simply run:

sudo dhclient -r
Original Solution
When I had this problem on Linux Mint the following solved the problem for me:

Comment out dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf (i.e. put a # at the beginning of the line)
Restart network-manager: sudo service networking restart
Additional Steps
The following commands might also be required for some:

sudo dhclient -r
sudo dhclient
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 09, 2018, 09:08:41 pm
Quote from: galodoido
Quote from: ArchiMark
Thank you for your help, galodoido. Greatly appreciate it!

Have tried 1 and 2....but no go....

For number 2, I use neverssl.com....

Can try 3 and test on Monday, when I am back at office.....

Ok.

I saw this also searching on google :

https://blog.ham1.co.uk/2016/02/06/cannot-s...ux-ubuntu-mint/ (https://blog.ham1.co.uk/2016/02/06/cannot-sign-in-using-hotel-wifi-on-linux-ubuntu-mint/)

I had trouble connecting to the Internet while abroad using the hotel1 WiFi2 on my Linux Mint laptop.

The Problem
I could connect to the WiFi and obtain an IP address, however, the hotel’s internet sign-in page failed to load in both Chromium or Firefox. Turns out it was a DNS oddity.

The Solution
Update (thanks to Abe)
For Ubuntu 17.04 simply run:

sudo dhclient -r
Original Solution
When I had this problem on Linux Mint the following solved the problem for me:

Comment out dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf (i.e. put a # at the beginning of the line)
Restart network-manager: sudo service networking restart
Additional Steps
The following commands might also be required for some:

sudo dhclient -r
sudo dhclient

THANK YOU for the additional suggestions....

Will report back on Monday after I do more testing.....
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 11, 2018, 10:07:07 am
At office...tried

Quote
3 - sudo dpkg-reconfigure resolvconf

No change, can't get to login page....


Tried the other suggestions:

Quote
I saw this also searching on google :

https://blog.ham1.co.uk/2016/02/06/cannot-s...ux-ubuntu-mint/ (https://blog.ham1.co.uk/2016/02/06/cannot-s...ux-ubuntu-mint/)

I had trouble connecting to the Internet while abroad using the hotel1 WiFi2 on my Linux Mint laptop.

The Problem
I could connect to the WiFi and obtain an IP address, however, the hotel’s internet sign-in page failed to load in both Chromium or Firefox. Turns out it was a DNS oddity.

The Solution
Update (thanks to Abe)
For Ubuntu 17.04 simply run:

sudo dhclient -r

Nope, that did not work....


Quote
Original Solution
When I had this problem on Linux Mint the following solved the problem for me:

Comment out dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf (i.e. put a # at the beginning of the line)
Restart network-manager: sudo service networking restart


Looked at NetworkManager.conf. It did not have the line "dns=dnsmasq" in it. So, nothing to comment out.....


Quote
Additional Steps
The following commands might also be required for some:

sudo dhclient -r
sudo dhclient


Nope, that did not work....and got error messages that "dhclient" could not be found....


 
Title: Debian on Gemini - Usage
Post by: galodoido on June 11, 2018, 10:10:07 am
Quote from: ArchiMark
At office...tried

Quote
3 - sudo dpkg-reconfigure resolvconf

No change, can't get to login page....


Tried the other suggestions:

Quote
I saw this also searching on google :

https://blog.ham1.co.uk/2016/02/06/cannot-s...ux-ubuntu-mint/ (https://blog.ham1.co.uk/2016/02/06/cannot-s...ux-ubuntu-mint/)

I had trouble connecting to the Internet while abroad using the hotel1 WiFi2 on my Linux Mint laptop.

The Problem
I could connect to the WiFi and obtain an IP address, however, the hotel’s internet sign-in page failed to load in both Chromium or Firefox. Turns out it was a DNS oddity.

The Solution
Update (thanks to Abe)
For Ubuntu 17.04 simply run:

sudo dhclient -r

Nope, that did not work....


Quote
Original Solution
When I had this problem on Linux Mint the following solved the problem for me:

Comment out dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf (i.e. put a # at the beginning of the line)
Restart network-manager: sudo service networking restart


Looked at NetworkManager.conf. It did not have the line "dns=dnsmasq" in it. So, nothing to comment out.....


Quote
Additional Steps
The following commands might also be required for some:

sudo dhclient -r
sudo dhclient


Nope, that did not work....and got error messages that "dhclient" could not be found....


 

This seems to be a problem. Let's continue searching.
Good luck !
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 11, 2018, 10:44:00 am
Quote from: galodoido
This seems to be a problem. Let's continue searching.
Good luck !


Yes, indeed, and a very strange one!

Especially, since I can connect to networks elsewhere with no problem.....

Wish there was a way to diagnose the problem....
Title: Debian on Gemini - Usage
Post by: Varti on June 17, 2018, 03:20:38 am
Seem like dhclient isn't installed by default on the Gemini, dhcpcd might be used instead, you can check this with

Code: [Select]
type -a dhclient
type -a dhcpcd

Reference: https://superuser.com/questions/393887/dhcl...real-difference (https://superuser.com/questions/393887/dhclient-and-dhcpcd-the-real-difference)

In your case it looks like the DHCP is assigning you a default gateway, but your system for some reason can't reach it. What is the IP address you have been assigned, and what does ping (IP address) return? Also, it could be helpful to see from the logs what does the DHCP client output when getting an IP address:

Code: [Select]
journalctl | grep -Ei 'dhcp'or
Code: [Select]
cat /var/log/syslog | grep -Ei 'dhcp'https://superuser.com/questions/944687/how-...hcp-client-does (https://superuser.com/questions/944687/how-to-see-what-dhcp-client-does)

Also, please post your routing table with
Code: [Select]
ip routesince there might be already a static route to a different gateway that gets in the way.

Varti
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 18, 2018, 10:33:58 am
THANKS for your help, varti!

Here's info requested:

Code: [Select]
$ type -a dhclient
dhclient: not found

$ type -a dhcpcd
dhcpcd: not found

Code: [Select]
$ hostname -I

10.15.19.82  192.168.0.71


Code: [Select]
$ ping -c 3 192.168.0.71

PING 192.168.0.71 (192.168.0.71) 56(84) bytes of data.
64 bytes from 192.168.0.71: icmp_seq=1 ttl=64 time=0.225 ms
64 bytes from 192.168.0.71: icmp_seq=2 ttl=64 time=0.459 ms
64 bytes from 192.168.0.71: icmp_seq=3 ttl=64 time=0.415 ms

--- 192.168.0.71 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003 ms
rtt min/avg/max/mdev = 0.225/0.366/0.459/0.102 ms

Code: [Select]
$ sudo journalctl | grep -Ei ‘dhcp’

Sudo: unable to resolve host localhost.localdomain: Connection refused

Jun 18 06:37:49 localhost dhcpd [685]: Wrote 0 leases to leases file.

Jun 18 06:37:50 localhost dhcpd [685]: Server starting service.

Jun 18 06:39:00 localhost.localdomain Network Manager [702]: [1529329140.0248] dhcp-init: Using DHCP client ‘dhclient’

Jun 18 06:39:00 localhost.localdomain Network Manager [702]: [1529329140.0264] dhcp4 (wlan0) : activation: beginning transaction (timeout in 45 seconds)

Jun 18 06:39:00 localhost.localdomain Network Manager [702]: [1529329140.0345] dhcp4 (wlan0): dhclient started with pid 2609

Jun 18 06:39:00 localhost.localdomain dhclient [2609]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7

Jun 18 06:39:01 localhost.localdomain dhclient [2609]: DHCPREQUEST of 192.168.0.71 on wlan0 to 255.255.255.255 port 67

Jun 18 06:39:01 localhost.localdomain dhclient [2609] DHCPOFFER of 192.168.0.71 from 192.168.0.2

Jun 18 06:39:01 localhost.localdomain NetworkManager [702]: [1529329140.1894] dhcp4 (wlan0):  address 192.168.0.71

Jun 18 06:39:01 localhost.localdomain NetworkManager [702]: [1529329140.1906] dhcp4 (wlan0):  plen 24 (255.255.255.255)

Jun 18 06:39:01 localhost.localdomain NetworkManager [702]: [1529329140.1907] dhcp4 (wlan0):  gateway 192.168.0.1

Jun 18 06:39:01 localhost.localdomain NetworkManager [702]: [1529329140.1908] dhcp4 (wlan0):  server identifier 192.168.0.2

Jun 18 06:39:01 localhost.localdomain NetworkManager [702]: [1529329140.1908] dhcp4 (wlan0):  lease time 1800

Jun 18 06:39:01 localhost.localdomain NetworkManager [702]: [1529329140.1909] dhcp4 (wlan0):  nameserver ‘8.8.4.4’

Jun 18 06:39:01 localhost.localdomain NetworkManager [702]: [1529329140.1909] dhcp4 (wlan0):  nameserver ‘8.8.8.8’

Jun 18 06:39:01 localhost.localdomain NetworkManager [702]: [1529329140.1910] dhcp4 (wlan0):  state change unknown -> bound

Code: [Select]
$ ip route
Default via 192.168.0.1 dev wlan0 proto static metric 600
10.0.0.0/8 dev rndis0 proto kernel scope link src 10.15.19.82
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.71
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.71 metric 600


Think this is everything....if not, please let me know...

Thanks,

Mark

UPDATE

Went to the place nearby that has free WiFi. Last time I got to their login page with no problem.

Today, I could not get to login page. Even though in NetworkManager, I was connected to their network.

So, things are getting worse.....

 
Title: Debian on Gemini - Usage
Post by: raesene on June 18, 2018, 04:58:55 pm
Quote from: ArchiMark
<snip>

Code: [Select]
$ ip route
Default via 192.168.0.1 dev wlan0 proto static metric 600
10.0.0.0/8 dev rndis0 proto kernel scope link src 10.15.19.82
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.71
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.71 metric 600

so I've not got my gemini yet to be  able to check, but I think I can see a problem for you there, which might explain the issue.  You've got two interfaces (wlan0 and rndis0) .  rndis0 has got a route to 10.0.0.0/8 which means that any traffic for addresses in that range (IIRC your captive portal was in the 10.x range?) will go over that interface, when presumably you're wanting it to go over the wlan0 interface.

In theory, you should be able to delete the route in question to see if that affects things (e.g. https://serverfault.com/questions/181094/ho...-routing-table) (https://serverfault.com/questions/181094/how-do-i-delete-a-route-from-linux-routing-table)) , but I'm not sure without seeing a setup, why that route has been put in place...
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 18, 2018, 05:27:24 pm
Quote from: raesene
Quote from: ArchiMark
<snip>

Code: [Select]
$ ip route
Default via 192.168.0.1 dev wlan0 proto static metric 600
10.0.0.0/8 dev rndis0 proto kernel scope link src 10.15.19.82
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.71
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.71 metric 600

so I've not got my gemini yet to be  able to check, but I think I can see a problem for you there, which might explain the issue.  You've got two interfaces (wlan0 and rndis0) .  rndis0 has got a route to 10.0.0.0/8 which means that any traffic for addresses in that range (IIRC your captive portal was in the 10.x range?) will go over that interface, when presumably you're wanting it to go over the wlan0 interface.

In theory, you should be able to delete the route in question to see if that affects things (e.g. https://serverfault.com/questions/181094/ho...-routing-table) (https://serverfault.com/questions/181094/how-do-i-delete-a-route-from-linux-routing-table)) , but I'm not sure without seeing a setup, why that route has been put in place...

THANK YOU, raesene!

Sounds like a reasonable possibility to explain the problem.....

In post #26, back a few pages, the Great Adam Boardman, our Debian on Gemini dev, explained what rndis0 is for:

Quote
The rndis is the usb tethering that can be used for initial setup when connected to a PC via the USB cable.


So, don't want to mess things up in case I need to tether Gemini to PC again....

Any advice on how to adjust routing parameters to let wlan0 get to web address instead of rndis0 ?

Thanks,

Mark
Title: Debian on Gemini - Usage
Post by: galodoido on June 22, 2018, 06:25:47 am
Quote from: ArchiMark
Quote from: raesene
Quote from: ArchiMark
<snip>

Code: [Select]
$ ip route
Default via 192.168.0.1 dev wlan0 proto static metric 600
10.0.0.0/8 dev rndis0 proto kernel scope link src 10.15.19.82
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.71
192.168.0.0/24 dev wlan0 proto kernel scope link src 192.168.0.71 metric 600

so I've not got my gemini yet to be  able to check, but I think I can see a problem for you there, which might explain the issue.  You've got two interfaces (wlan0 and rndis0) .  rndis0 has got a route to 10.0.0.0/8 which means that any traffic for addresses in that range (IIRC your captive portal was in the 10.x range?) will go over that interface, when presumably you're wanting it to go over the wlan0 interface.

In theory, you should be able to delete the route in question to see if that affects things (e.g. https://serverfault.com/questions/181094/ho...-routing-table) (https://serverfault.com/questions/181094/how-do-i-delete-a-route-from-linux-routing-table)) , but I'm not sure without seeing a setup, why that route has been put in place...

THANK YOU, raesene!


Hi



Sounds like a reasonable possibility to explain the problem.....

In post #26, back a few pages, the Great Adam Boardman, our Debian on Gemini dev, explained what rndis0 is for:

Quote
The rndis is the usb tethering that can be used for initial setup when connected to a PC via the USB cable.


So, don't want to mess things up in case I need to tether Gemini to PC again....

Any advice on how to adjust routing parameters to let wlan0 get to web address instead of rndis0 ?

Thanks,

Mark

Hi ArchiMArk,

I had  a similar problem when configuring my usb modem 3g. It was connected, but all sites were unreachable.
After a long search I found that resolv.conf was always rewrited when the gemini was rebooted.
So I've installed dnsmasq ( apt-get install dnsmasq) and put the open dns ip's  at the end of /etc/dnsmasq.conf file like below ( sudo nano /etc/dnsmasq.conf )

server 208.67.222.222
server 208.67.220.220

Saved and rebooted the gemini.
My problem was solved.
I think your problem can be solved with this.
Good luck.
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 22, 2018, 11:18:46 am
Sorry completely not paying attention to this, so yes the usb-tethering was grabbing all the 10.* IP addresses (as indicated by ip route) so as your local network was on that range things were all confused. I've just updated the usb tethering to only nab 10.15.19.* so that should make it a lot less likely to conflict with various networks you might like to connect to.

You'll need to apt update & upgrade, and reboot for it to take effect.
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 22, 2018, 12:38:26 pm
Thank you, galodoido and Adam for your help.

Out of office today. Will upgrade system as suggested and test when I get back to office on Monday and report back the results.
Title: Debian on Gemini - Usage
Post by: ArchiMark on June 25, 2018, 04:59:27 pm
Woo Hoo!!!!

Finally able to connect to the guest network at my workplace!

THANKS to ALL who provided input to get this resolved. Truly appreciate it greatly!

It proves what a great community is here at OESF.

This is a BIG relief having internet connection at my workplace as I spend a lot of time here during the week.

Now, onto more fun things with Gemini.....

 

Mark
Title: Debian on Gemini - Usage
Post by: Varti on June 26, 2018, 10:18:23 am
I'm really glad to hear you have fixed the problem, and that the rndis IP range has now been narrowed, so that other users won't have the same issues as you. I agree, the community here is really great, thanks to all of you for all the support and help you're providing

Varti
Title: Debian on Gemini - Usage
Post by: psionlover on June 27, 2018, 10:06:01 am
I have my new geminiPDA for a few days now and have been doing a lot of fiddling to get gembian to be usable for me. I am really glad with the device, it would be so nice to have a proper linux device with me everywhere I go. As far as I see now I am quite sure I can configure gembian so that it will suit my daily needs for the near future. But the only thing that I am worried about is the power management. I did not really deep dive into it, but before I do I will ask you if this is useful or that power management is still a Gembianism.

What did I do so far:
- In installed dual boot conform the flashing guide (http://support.planetcom.co.uk/index.php/Linux_Flashing_Guide)
- I checked the manual on DebianTP (https://github.com/gemian/gemini-keyboard-apps/wiki/DebianTP). But as far as I see everything there is already part of the standard image.
- I did a lot of fiddling and probably broke one or more things without noticing,realizing.

What do I notice:
- If I do a shutdown via the menu the device inmediately hangs and I have to shutdown by using the Esc key. If I do a shutdown via the terminal sometimes it shutdowns fine, sometimes it hangs also.
- If I do a hybernate via the menu the device does not react in any way.
- if I do a suspend the screen is locked but I am unsure wetter it really suspends. At least the leds stay burning and I am still able to ssh from outside. how can I know/check if the device properly suspends ?
- Last night the battery was still half full. I left it in suspend mode and found the battery nearly drained after 10 hours. This means that using the device in silent (suspend) mode the battery is drained in one day. This won't work for me if I want to use the device for daily use. I want a mobile device to get unhooked, not to join the zombie army chasing after an electric socket

My question is should I deep dive in power management and will I find a solution to get the gembian power-safe ? Or is there still something fundamental that prevents proper power management on the gembian ?

One other question is about Conman. If I turn off bluetooth every time I do a reboot bluetooth is back. How can I get bluetooth definitely turned off ?
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 27, 2018, 10:51:41 am
Shutdown issues:- https://www.oesf.org/forum/index.php?showto...st&p=287687 (https://www.oesf.org/forum/index.php?showtopic=35248&view=findpost&p=287687)
(once we've got text console we can see what is blocking and so then fix it?)

Suspend:- We are using repowerd (branched from UBPorts) to sleep, it can probably be much improved, I find 1-3% drop in 8 hours with wifi off (so I expect many days of sleeping). I hope we can improve the effeiciency of 'wifi on' sleeping, as currently if you ssh in and view the logs (journalctl) then its very noisy for no good reason that I can see. This is why I put the LED's in to indicate that you'll not get a good sleep.

I'm glad that a few people are interested in this, DonOregano on irc just now is proposing suspend/unsuspend of web browsers as they seem to block a good sleep also. So please do investigate & suggest fixes.

For me a laptop style suspend is of no use as I want it to monitor for calls. I guess WiFi only folks might like that, but it would probably require tinkering in the kernel and adding a swap file or some such for suspend to disk to work.

Bluetooth:- I think if you set the cmst settings the right way (retain state? or similar), I think it can be made to work sensibly. We should probably change the default.
Title: Debian on Gemini - Usage
Post by: psionlover on June 27, 2018, 11:04:34 am
Thanks for replying Adam. I understand poor power management is not a Gemianism but needs more fiddling by myself  So I will dive into it and let you know. First thing to find out: how to let suspend know 'turning wifi off' is part of my meaning of 'suspend'.
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 27, 2018, 11:23:01 am
You can just add some more commands in repowerd, this diff (https://github.com/gemian/repowerd/commit/a629960a0d52d3a006899ad145f2eb1eed9bf843) will help you find the right bit of code, you might change it to run custom scripts that you can then tinker with more easily than having to recompile it all the time with each change.
Title: Debian on Gemini - Usage
Post by: psionlover on June 27, 2018, 12:22:22 pm
Quote from: Adam Boardman
You can just add some more commands in repowerd, this diff (https://github.com/gemian/repowerd/commit/a629960a0d52d3a006899ad145f2eb1eed9bf843) will help you find the right bit of code, you might change it to run custom scripts that you can then tinker with more easily than having to recompile it all the time with each change.
I am searching like a madman, but where can I find those config files for repowerd ?
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 27, 2018, 12:56:26 pm
Sorry there are no config files, I gave you a link (https://github.com/gemian/repowerd/commit/a629960a0d52d3a006899ad145f2eb1eed9bf843) in my last post, you'll have to recompile the source (after changing it to run a script in addition to the current xrandr stuff).
Title: Debian on Gemini - Usage
Post by: psionlover on June 27, 2018, 01:17:22 pm
Okay thanks. I am not into recompiling distro's yet, so better leave this for the moment.
Title: Debian on Gemini - Usage
Post by: Adam Boardman on June 28, 2018, 04:37:30 am
Was only suggesting recompiling one component. But in case you've not found it the fn+areoplane button is mapped to offline mode, and I just use that before I close the device to turn off the connectivity stuff, and again when I open it to turn it back on, not as nice as your suggested automatic way but better than having to fiddle about finding the right app etc. There is also a lid watcher in lxqt settings, but it seemed to cause problems as I recall.
Title: Debian on Gemini - Usage
Post by: psionlover on June 28, 2018, 08:13:45 am
Quote from: Adam Boardman
But in case you've not found it the fn+areoplane button is mapped to offline mode, and I just use that before I close the device to turn off the connectivity stuff
Thanks, that indeed works better for the moment. My device was last night roughly on 50% battery power and I left it in suspend and flight mode. After 10 hours there was 32% power left, so it drained 18%. That is much better then with wifi on (50% drain during the night), but not even close to the 2-3% drain you experienced, so I probably still miss something.

I lowered my short term goals. I only will use the device as an offline pda with wifi/bluetooth off. Theoretically I will still have power if I can't or forget to connect the device to an electric socket for a few days. I  will mostly power the device if I am next to my pc by connecting the usb cable. I want to achieve that while connected to the pc 1. device and pc can be connected 2. device has internet access. I did not yet try to get device and pc connected by usb. At least if I do connect the usb cable there is no connection out of the box. But I will start fiddling around and will find a way to get it working.
Title: Debian on Gemini - Usage
Post by: psionlover on June 28, 2018, 03:13:18 pm
It took me a while, but now my device is via usb connected to my local network and the internet. the only thing I miss is that I don't know how to append the 'route' to rndis0. I tried setting 'add route default gw 10.15.19.1' to /etc/rc.local, but that did not work. I also red somewhere that I should make an /etc/systemd/network/rndis0.network
Code: [Select]
[Match]
Name=rndis0

[Address]
Address=10.15.19.82
Peer=10.15.19.0/24

[Network]
Gateway=10.15.19.1
But that did not help either.

I also don't see a way to configure the usbnet interface on cronnman

Anyone an idea ?

[Update]
I found out that if I rename the file to '10-static-rndis0.network' helps. If I restart the device sometimes the above settings are rewarded and I have connection with pc and internet. But on other reboots the settings are not rewarded.

[Update2]
The settings above does not seem to help much. The only thing that works is put 'route add default gw ...' to /etc/rc.local' and prepend it with a 'sleep 5'. This doesn't look like the proper way to me, but at least it works ... for now.
Title: Debian on Gemini - Usage
Post by: speculatrix on August 13, 2018, 07:59:05 am
I thoight I would share this as it might save others some time.

When I connect my G to my linux desktop (ubuntu 16.04) I was trying to work out where the IP address for the USB netework on the G was being set, it's always 10.15.19.82

I discovered it's a hard-wired value in this file: /usr/bin/usb-tethering as variable "LOCAL_IP". The netmask is embedded as 255.255.255.0 further into the script.

This file comes from package hybris-usb

It would be nice if the package/tool was improved to pick up parameters from, say, /etc/hybris-network or something.