How to activate DHCPP Server for Ethernet over USB conenction to Android Tablet in KDE Networkmger

Now with Corona keeping me far, far away from my multi monitor set up, I have to use my old laptop and a 12.2 Samsung Android Tablet as second monitor and an ipad mini as third.

the solution with https://github.com/kbumsik/VirtScreen does not work, as it needs an intel graphicscard,

So I connected back to my notebook from Android tablet via Wifi and started a XFCE VNC Session and started Quicksynergy client on the tablet and qsynergy server on the notebook.

But I hope the connection could be improved by using ethernet over USB.

On the Samsung Galaxy Tablet 12.2 SM-T900 runs Cyanogenmod /Lineage 14 and in the development options I can select

USB-configuration (USB-ethernet)

If I activate this configuration, K-Netowrkmanager tries to optain an IP address. So the connection could work. But I see no option in lineage to enter a static IP adress.

That means I need a DHCP server on OpenSUSE 15.1 networkmanager. Is there an option in networkmanager? every disconnect creates a new “WIRED NETWORK CONNECTION”

The Internet is shared through WiFi on another Android phone.

I hope to increase the VNC speed that way.

I’m not quite sure what you are looking for here. However, the KDE NetworkManager client does allow you to manually assign an IP address.

Right click on the tray icon, and select “Configure Network Connections”.

Select the device. Click the IPv4 tab. Where it says “Method: Automatic” you have to change that to manual. And then you can add an IP address.

LIenage Android Ehternet oder USB tries to receive an IP address from a DHCP server. There is no option to configure the IP address manually.

I can configure the IP in Knetworkmanager manually, but that way, the tablet still has not assigned IP address. What I need is, that the notebook acts as DHCP and assigns a virtual IP to the android and itself

dmesg


 2948.121456] usb 4-5: Product: SAMSUNG_Android
 2948.121457] usb 4-5: Manufacturer: SAMSUNG
 2948.666456] usbcore: registered new interface driver cdc_ether
 2948.669986] rndis_host 4-5:1.0 usb0: register 'rndis_host' at usb-0000:00:1d.7-5, RNDIS device,
 2948.670004] usbcore: registered new interface driver rndis_host
 2948.695180] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready

You could install “dhcp-server”.

I followed:

https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha-dhcp.html

to install the DHCP Yast pattern, but the GUI does only shows eth0 as configurable interface.

neither
eth2 USB
WLAN0 or
USB0 for the tablet connection are not shown in yast dhcp. :frowning:

:
ip link show
 lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:AD:DR:ES:S0: brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 00:AD:DR:ES:SS:SS brd ff:ff:ff:ff:ff:ff
4: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether AD:DD:RR:EE:SS:SS brd ff:ff:ff:ff:ff:ff

Manual configuring appears to be a lot, for what I want o_O

https://www.suse.com/c/dhcp-dynamic-host-configuration-protocol/

It’s about 25 years since I last setup a dhcp server. It ought to be easier by now.

Is there a way of using “avahi” for what you are trying to do?

The DHCP issue is still work in problem, but with my set up I experienced a different issue, my / was filled with logs

Two days ago I experienced this the first time. SDDM login manager did not work any more, because no space left on /

Then yesterday I understood this space issue and I thought this would be a installation issue, so I resized and added 2G to /

But after half an hour, again all space on / is used up.

So paranoia on and clean reinstall.

But again, all space is used up again. there are supposed to be 10G free of 22G

/temp
/home
/swap

are unaffectd

Dateisystem    1K-Blöcke   Benutzt Verfügbar Verw% Eingehängt auf
devtmpfs         4070448         0                 4070448    0% /dev
tmpfs              4078608       146972           3931636    4% /dev/shm
tmpfs              4078608       399936           3678672   10% /run
tmpfs              4078608         0                  4078608    0%      /sys/fs/cgroup
**/dev/sdb6        22527120     22366668         0             100% /**
/dev/sda7        10186040     23856             9621720    1% /tmp
/dev/sda6        681572352   197385240      482370376   30% /home
tmpfs              815720        40                   815680    1% /run/user/1000

I am guessing one is not suposed to be that big

# du -sh /var /usr
13G     /var
7,7G    /usr


And then there they are, the logs

du -sh /var/log
13G     /var/log


So apparantly baloo is filling the logs

2020-03-21T15:28:09.660753+08:00 linux-3dl9  baloo_file_extractor[3166]: org.kde.baloo.engine: PositionDB::put  MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2020-03-21T15:28:09.660838+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must  abort, has a child, or is invalid
2020-03-21T15:28:09.660923+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must  abort, has a child, or is invalid
2020-03-21T15:28:09.661009+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must  abort, has a child, or is invalid
2020-03-21T15:28:09.661093+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must  abort, has a child, or is invalid
2020-03-21T15:28:09.661180+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must  abort, has a child, or is invalid
2020-03-21T15:28:09.661266+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must  abort, has a child, or is invalid
2020-03-21T15:28:09.661351+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must  abort, has a child, or is invalid
2020-03-21T15:28:09.661572+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must  abort, has a child, or is invalid
2020-03-21T15:28:09.661659+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: PositionDB::put MDB_BAD_TXN: Transaction must  abort, has a child, or is invalid


I really hate the file indexer, it never works right and I cannot seach through USB drives.

and /var/log/messages as well

2020-03-21T15:28:09.821868+08:00 linux-3dl9  baloo_file_extractor[3166]: org.kde.baloo.engine: PositionDB::put  MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2020-03-21T15:28:09.821955+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: PostingDB::put MDB_BAD_TXN: Transaction must  abort, has a child, or is invalid
2020-03-21T15:28:09.822071+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: Transaction::commit MDB_BAD_TXN: Transaction must  abort, has a child, or is invalid
2020-03-21T15:28:09.822478+08:00 linux-3dl9 kdeinit5[2185]: ()
2020-03-21T15:28:09.822547+08:00 linux-3dl9 kdeinit5[2185]: ("/home/lars/Stick/home/IMG_20160729_154023.jpg")
2020-03-21T15:28:09.822612+08:00 linux-3dl9 kdeinit5[2185]: ()
2020-03-21T15:28:09.823883+08:00 linux-3dl9 baloo_file_extractor[3166]:  org.kde.baloo.engine: DocumentDB::put MDB_CORRUPTED: Located page was  wrong type
2020-03-21T15:28:09.823976+08:00 linux-3dl9 baloo_file_extractor[3166]: org.kde.baloo.engine: Docum

12G of baloo indexing. are there alternatives? This is so annoying. I have to use the terminal to search for files

as user ps

ps
  PID TTY          TIME CMD
 2421 pts/1    00:00:00 bash
 3413 pts/1    00:00:39 baloo_file
 6591 pts/1    00:00:18 Xvnc
 6599 pts/1    00:00:00 sh
 6608 pts/1    00:00:00 xfce4-session
 6613 pts/1    00:00:00 dbus-launch
 6627 pts/1    00:00:00 xfwm4
 6631 pts/1    00:00:00 xfce4-panel
 6633 pts/1    00:00:00 Thunar
 6636 pts/1    00:00:01 xfdesktop
 6653 pts/1    00:00:50 applet.py
 6659 pts/1    00:00:00 tracker-miner-a
 6668 pts/1    00:00:00 pk-update-icon
 6669 pts/1    00:00:00 evolution-alarm
 6671 pts/1    00:00:00 nm-applet
 6675 pts/1    00:00:09 tracker-miner-f
 6681 pts/1    00:00:01 tracker-extract
 6687 pts/1    00:00:00 kdeconnectd
 6692 pts/1    00:00:00 xscreensaver
 6720 pts/1    00:01:38 baloo_file
 6763 pts/1    00:00:01 panel-1-whisker
 6791 pts/1    00:00:02 panel-6-pulseau
 6799 pts/1    00:00:00 panel-13-power-
 6803 pts/1    00:00:00 panel-15-status
 6812 pts/1    00:00:00 panel-7-systray
 6839 pts/1    00:00:00 panel-14-notifi
 7051 pts/1    00:23:12 baloo_file_extr
 8025 pts/1    00:00:03 nautilus
 9487 pts/1    00:00:00 ps


are there two parallel instances running ? as root

ps -a
  PID TTY          TIME CMD
 3413 pts/1    00:00:39 baloo_file
 4417 pts/3    00:00:00 kdesu_stub
 6591 pts/1    00:00:18 Xvnc
 6599 pts/1    00:00:00 sh
 6608 pts/1    00:00:00 xfce4-session
 6613 pts/1    00:00:00 dbus-launch
 6627 pts/1    00:00:00 xfwm4
 6631 pts/1    00:00:00 xfce4-panel
 6633 pts/1    00:00:00 Thunar
 6636 pts/1    00:00:01 xfdesktop
 6653 pts/1    00:00:51 applet.py
 6659 pts/1    00:00:00 tracker-miner-a
 6668 pts/1    00:00:00 pk-update-icon
 6669 pts/1    00:00:00 evolution-alarm
 6671 pts/1    00:00:00 nm-applet
 6675 pts/1    00:00:09 tracker-miner-f
 6681 pts/1    00:00:01 tracker-extract
 6687 pts/1    00:00:00 kdeconnectd
 6692 pts/1    00:00:00 xscreensaver
 6720 pts/1    00:01:41 baloo_file
 6763 pts/1    00:00:01 panel-1-whisker
 6791 pts/1    00:00:02 panel-6-pulseau
 6799 pts/1    00:00:00 panel-13-power-
 6803 pts/1    00:00:00 panel-15-status
 6812 pts/1    00:00:00 panel-7-systray
 6839 pts/1    00:00:00 panel-14-notifi
 7051 pts/1    00:23:45 baloo_file_extr
 7086 pts/4    00:00:00 quicksynergy
 7908 pts/6    00:00:00 kdesu_stub
 8025 pts/1    00:00:03 nautilus
 9522 pts/1    00:00:00 su
 9527 pts/1    00:00:00 bash
 9547 pts/1    00:00:00 ps


I am using my Android tablet to login into the same user via VNC, but instead of KDE, into XFCE and connect both session with qsynergy and quicksynergy.
I appears the only tool so fare is baloo, that cannot work, as they are running the same instances.

What is an alternative for baloo?

Here are some thoughts…
First, regarding your Ethernet over BT efforts…
No one ever “needs” DHCP, it’s a convenience. If you know the default network your openSUSE is set up to use, then you can configure a fixed IP address on your attached device (your tablet/phone).

If you’re running KDE, have you tried KDE Connect and then seeing what options you have?

Depending on exactly your purposes, eg Did you want some kind of access to applications on the other device? Only display files? Only display Internet content?
It can be easier to connect through your LAN, particularly by using WiFi instead of trying to set up a direct connection.
It can even be easier to use Internet Cloud storage to transfer or access a copy of files on the other device if you don’t want to set up a private file server of some sort.

Just typical ideas if one proves more difficult to configure than other available solutions…

TSU

The Andoid lineage 14.1 device can be configured for RNDIS USB ethernet. When I enable RNDIS ethernet, Knetwortkamanager recognizes a ethernet connection on the USB port. and tried to assign a address.

I cannot set the UBS RNDIS IP address on the android tablet, because, I do not have root.

The tablet listen to a DHCP server to get an IP.

So if I assign a static IP to the USB0 LAN, then it still does not have an IP address on the tablet.

To solve the problem, I either need ROOT or Knetworkmanger to reverse tether.