Yes ! Never used this specific tool but the concept behind that was also my first idea, shared libraries make intercepting library calls much easier to do that most people suspect. You can also strace the application first to see which functions you need to intercept.
The pausing part is simple, spotify has a dbus MPRIS2 api. Detecting when something else starts to play is harder. Pulseaudio can probably give you a list of programs playing sound, but I do not know of an event system, so that would mean polling pulseaudio commands.
Edit: nevermind, pulseaudio has actually an event system, see pactl subscribe. Even if the information is not the one you need, that may help to wake up to check applications at the right time. Seeing who is playing what would mean checking the sink-inputs I guess.
My first guess would be a missing driver, does lsmod shows anything that is essential for boot ? Last time I had a non-initramfs boot, I had simply compiled in all the modules that were loaded save for proprietary drivers, but that wasn't with minimal size in mind.
I'm not sure why you need pdf2svg, you can choose the page on import, edit and save it as its own pdf, and then indeed merge with whatever you like e.g. pdftk. But if you're switching between pages a lot, that still means a ton of inkscape documents open at once that you have to save each time, that gets tiresome quickly.
You can also let a du run for a while (save the output to a file and then sort it) to figure out what folders are the largest, that would give you hints as to what to clean up.
As far as I know the bbswitch module that goes with bumblebee does that, it powers off your graphic card when you're not running anything on it. Your X server should already use only your intel card, and bumblebee fires up a second one which uses the nvidia card on demand.
I haven't tested but I would therefore not expect to so see any battery life improvement by turning off card in bios, for instance, vs just letting bbswitch power it down. You should see 'disabling discrete graphics' traces in your log if bbswitch is correctly working.
Edit: I'm a bit confused as to why disabling nvidia stuff would lead to a blank screen in your case though, since your primary X should not use it. What does your Xorg log say ?
I tend to distrust routing because you never know when some dhcp hook you forgot about is going to change your routing table on a reconnect or something like that. So yes, iptables.
They say "limits the amount of data for tethering", so in the end the ISP needs cooperation from your device to know if traffic is thetering or not and keep track, and with a rooted device it's almost certainly possible. Now, what method would work and whether root is strictly necessary would depends on how your ISP tracks it.
If they use actual linux routing capabilities and rely on it to mark packets somehow and don't spy on the tethering interface (for instance, this post deals with an ISP that rely on the TTL of packets and don't run any code on your phone as far as I understand) then routing traffic through an app would be enough. For instance running an ssh server with SOCKS on the phone.
Edit: this old thread has a nice overview of the technics ISPs can use. Many of them can be worked around.
Safest thing that comes to mind (apart from a vm or container) is creating a dedicated user account, which would have its own home directory and would run its own graphical session. Then no risk of remote user accessing any file you did not put in that dedicated home on purpose, and you can wipe it afterwards. "Drawback" is that you need to reconfigure any software that you would need during the exam, but I would call that a feature since for example browser-saved passwords are technically a part of your browser user configuration and you don't want teamviewer to be able to read that. You would just hand-pick some needed files (i.e. your i3 config) that are not sensitive and copy them over to the new home after double checking their content.
What breaks compatibility ? After chroot you're using your system's binaries and libraries, so the only problem would be if the kernel of your install media is incompatible with the libraries on your system I guess ? How long does it take for that to happen ?
In the meantime before the root cause is found and fixed, you can also try modprobe -r / modprobe again the driver as a not very subtle way to reset the device, can sometimes avoid a reboot. Also, check power management setting for said device.
The keyboard driver does not expose the Fn key to the operating system, so basically your operating system (and therefore AutoHotkey) does not know that it exists.
When you press the Fn key in combination with a supported key, the keyboard driver reports a single key press to the operating system with a different scan code. Basically, it tells the operating system that a different key was pressed.
So the only way would be to tweak your driver somehow, but I have never heard of that being done, if it is even possible.
You sort of prove the point though. Debian and Ubuntu are indeed different distros, with different package repositories, wikis and forums, and different user demographics. A solution to a problem on debian may not work on ubuntu ; an ubuntu package may fail to install on debian. When I need more information to setup something on a debian machine, I check first debian-specific resources, and I don't expect to find tons of unrelated advice concerning ubuntu there.
Edit: also, the manjaro fork was 8 years ago while the ubuntu one was 15 years ago. I don't know enough about all four distros to be sure, but it does sound right to say that ubuntu and debian are more different distros than manjaro and arch are. And that could be an idea of the path that manjaro and arch will follow in the future.
I don't think "untracked" is optimal, because within the context of aconfmgr, these files are tracked within the configuration (either as added files or as ignore rules).
| What about "unmanaged"?
I think it has the same problem as "untracked". (But, so does "managed".)
But it's actually a good distinction to make. Package-owned files are "managed" in the sense that they are built, updated, tested, deployed from an upstream source -- and they are tracked by the package manager. The rest is unmanaged in the sense they were just put there at some point out of nowhere. aconfmgr do not manage them, it has no clue what these files do or are supposed to contain, it simply tracks them. Hence these files are unmanaged files that would be tracked by aconfmgr.
[Un]owned is logical but when I think of the owner of a file, I think first of an user, not of a package, so it would make sense but is not super natural.
As other suggested, you can just use an international variant of the us layout:
setxkbmap us intl
setxkbmap us altgr-intl
I use the second one myself, ß is altgr + s, ä is altgr + a altgr + q, ü is altgr + y and ö is altgr + p. I prefer this one without dead keys because it still has the quotes and so on behave normally for programming.
Check the arch linux news regularly before you update
Yes ! Never used this specific tool but the concept behind that was also my first idea, shared libraries make intercepting library calls much easier to do that most people suspect. You can also strace the application first to see which functions you need to intercept.
The pausing part is simple, spotify has a dbus MPRIS2 api. Detecting when something else starts to play is harder. Pulseaudio can probably give you a list of programs playing sound, but I do not know of an event system, so that would mean polling pulseaudio commands.
Edit: nevermind, pulseaudio has actually an event system, see
pactl subscribe. Even if the information is not the one you need, that may help to wake up to check applications at the right time. Seeing who is playing what would mean checking the sink-inputs I guess.My first guess would be a missing driver, does
lsmodshows anything that is essential for boot ? Last time I had a non-initramfs boot, I had simply compiled in all the modules that were loaded save for proprietary drivers, but that wasn't with minimal size in mind.I'm not sure why you need pdf2svg, you can choose the page on import, edit and save it as its own pdf, and then indeed merge with whatever you like e.g. pdftk. But if you're switching between pages a lot, that still means a ton of inkscape documents open at once that you have to save each time, that gets tiresome quickly.
yay before powering off at the end of the day. If it doesn't boot, that looks like a problem for tomorrow's me.
Ow, I have a super key sticker from them right now that I bought a few years earlier, it seems they stopped making them...
You can also let a
durun for a while (save the output to a file and then sort it) to figure out what folders are the largest, that would give you hints as to what to clean up.I've never used Ubuntu server and don't know much about it, would you use that over plain Debian and why ?
As far as I know the bbswitch module that goes with bumblebee does that, it powers off your graphic card when you're not running anything on it. Your X server should already use only your intel card, and bumblebee fires up a second one which uses the nvidia card on demand.
I haven't tested but I would therefore not expect to so see any battery life improvement by turning off card in bios, for instance, vs just letting bbswitch power it down. You should see 'disabling discrete graphics' traces in your log if bbswitch is correctly working.
Edit: I'm a bit confused as to why disabling nvidia stuff would lead to a blank screen in your case though, since your primary X should not use it. What does your Xorg log say ?
I tend to distrust routing because you never know when some dhcp hook you forgot about is going to change your routing table on a reconnect or something like that. So yes, iptables.
They say "limits the amount of data for tethering", so in the end the ISP needs cooperation from your device to know if traffic is thetering or not and keep track, and with a rooted device it's almost certainly possible. Now, what method would work and whether root is strictly necessary would depends on how your ISP tracks it.
If they use actual linux routing capabilities and rely on it to mark packets somehow and don't spy on the tethering interface (for instance, this post deals with an ISP that rely on the TTL of packets and don't run any code on your phone as far as I understand) then routing traffic through an app would be enough. For instance running an ssh server with SOCKS on the phone.
Edit: this old thread has a nice overview of the technics ISPs can use. Many of them can be worked around.
Safest thing that comes to mind (apart from a vm or container) is creating a dedicated user account, which would have its own home directory and would run its own graphical session. Then no risk of remote user accessing any file you did not put in that dedicated home on purpose, and you can wipe it afterwards. "Drawback" is that you need to reconfigure any software that you would need during the exam, but I would call that a feature since for example browser-saved passwords are technically a part of your browser user configuration and you don't want teamviewer to be able to read that. You would just hand-pick some needed files (i.e. your i3 config) that are not sensitive and copy them over to the new home after double checking their content.
What breaks compatibility ? After chroot you're using your system's binaries and libraries, so the only problem would be if the kernel of your install media is incompatible with the libraries on your system I guess ? How long does it take for that to happen ?
I'd give the proprietary broadcom-wl a shot.
That would only be the driver for the bus. What does
ls -l /sys/class/net/<your\_device>/device/driverreport ?In the meantime before the root cause is found and fixed, you can also try modprobe -r / modprobe again the driver as a not very subtle way to reset the device, can sometimes avoid a reboot. Also, check power management setting for said device.
https://stackoverflow.com/questions/24423724/finding-the-scan-code-of-fn-key
So the only way would be to tweak your driver somehow, but I have never heard of that being done, if it is even possible.
That's exactly what aconfmgr and similar tools are for.
You sort of prove the point though. Debian and Ubuntu are indeed different distros, with different package repositories, wikis and forums, and different user demographics. A solution to a problem on debian may not work on ubuntu ; an ubuntu package may fail to install on debian. When I need more information to setup something on a debian machine, I check first debian-specific resources, and I don't expect to find tons of unrelated advice concerning ubuntu there.
Edit: also, the manjaro fork was 8 years ago while the ubuntu one was 15 years ago. I don't know enough about all four distros to be sure, but it does sound right to say that ubuntu and debian are more different distros than manjaro and arch are. And that could be an idea of the path that manjaro and arch will follow in the future.
Stealing this one.
Basic check list:
- is your card on, not soft blocked, and does the driver report loading correctly ?
- are you authenticated/registered succesfully in the access point (including if it's open) ?
- did you register through dhcp and receive a valid ip ?
- are your ip routes set up ?
- is your dns properly configured ?
The point against "unmanaged" was:
But it's actually a good distinction to make. Package-owned files are "managed" in the sense that they are built, updated, tested, deployed from an upstream source -- and they are tracked by the package manager. The rest is unmanaged in the sense they were just put there at some point out of nowhere. aconfmgr do not manage them, it has no clue what these files do or are supposed to contain, it simply tracks them. Hence these files are unmanaged files that would be tracked by aconfmgr.
[Un]owned is logical but when I think of the owner of a file, I think first of an user, not of a package, so it would make sense but is not super natural.
As other suggested, you can just use an international variant of the us layout:
I use the second one myself, ß is altgr + s, ä is
altgr + aaltgr + q, ü is altgr + y and ö is altgr + p. I prefer this one without dead keys because it still has the quotes and so on behave normally for programming.End of this list.
Back to top