Re: [PLUG] Connect BT keyboard to headless Raspberry
On Fri, Jan 21, 2022 at 1:45 PM Eric House wrote: > > With screen you can resize the terminal size to fit using ctrl-a F - > > that's your screen's control command followed by a capital F. > > That works! If I have two different terminals ssh'd into the same screen > session and resize one then ctrl-A F it, the session in the other terminal > changes size to match. > > But: unlike with tmux (which is totally new to me as I said), the two > sessions are not kept in sync. > If I switch panes in one, or split the window, the other doesn't change. > Since one of my sessions will be invisible, I need it to automatically > follow whatever I do in the other so that keystrokes will always go where I > can see them. Is that possible with screen? Seems a useful feature e.g. for > demonstrating something remotely, but I can't find anything even asking how > to do it (so I'm probably asking the wrong question) > tl;dr: don't split screens in multi-user sessions. Use a single window and a single region. Just a bit of nomenclature to make sure we are on the same page. There are four main objects with screen: a session, a window, a layout, and a region. By default a new screen "session" creates a new "window" and displays it in a single "region". But it can get more complex. A session can contain one or more windows and one or more regions. The arrangement of regions ( i.e. number, size, position ) is called a "layout". Regions can be blank or display a window. ( This description is simplified, but suffices. ) Here's a walk through to demonstrate. Type the following commands: screen -dmS foo# creates a screen session named "foo" screen -x foo # attaches to the screen session named "foo" At this point you'll have a single screen session named "foo", a single window running bash, and a single region displaying the window. Type the following commands. sleep 12345# this is to keep track of what window we are in ^ac# create a new window running bash sleep 54321# again, to keep track of what window we are in ^ac# create a new window running bash We now have three windows: one with a bash prompt and two running sleep for various times. Type this commands: ^a"# this will list the windows, press the up/down to move between windows, press enter to select That will allow you to switch between windows. Because we only have a single region, we can only view one window at a time. Type these command: ^a|# this will split the region in two with a new blank region on the right ^a{tab}# this will change focus to the new region; the {tab} is the tab key ^a"# this will list the windows, press the up/down to move between windows, press enter to select You now have two regions, side-by-side, each displaying one of the windows. In fact, you could have both regions displaying the same window. As mentioned before, the arrangement of regions is called a "layout". Type these command: ^ad# this will detach from the screen session screen -x foo # this will attach to screen session "foo" Notice that when you detach and then reattach, your layout is apparently lost and you have again a single region displaying one of the windows. Question: Of the three windows, which one will be displayed when you reattach? ( I don't know the answer to this, but the choice of window appears arbitrary. )It appears that a second connection behaves the same: it starts with a single region displaying one of the windows. It knows nothing about existing regions, any layouts, or what window is in what region. Question: How do you get two connecting processes to have the same layout when connected to the same screen session? Saved layouts ... maybe. I'm not that familiar with working with layouts and haven't had much success with them. And I'm not encouraged from this in the "layout dump" command: "While the order of the regions are recorded, the sizes of those regions and which windows correspond to which regions are not." But maybe they'll work good enough. https://www.gnu.org/software/screen/manual/html_node/Layout.html Another possible solution would be to run screen within screen. That is, create two screen sessions, e.g. foo and bar. Have both users connect to session foo and then connect to session bar. This does have the desired effect of being able to create regions in session "bar" and have all regions displayed to both users. However, this gets really confusing really quickly, but might work for you. Admittedly, this post turned out longer than I had intended. But I hope that it clarifies how screen works, at least a little. Good luck and let us know how things work out. Regards, - Robert
Re: [PLUG] Recommended video editor
http://fixounet.free.fr/avidemux/ https://www.shotcutapp.com/ https://www.pitivi.org/ Or check this list: https://www.creativebloq.com/buying-guides/best-free-video-editing-software --- Michael Rasmussen, Portland Oregon Be Appropriate && Follow Your Curiosity On 2022-01-21 21:33, Dick Steffens wrote: I don't need a video editor for much, so I'm looking for something fairly simple to use to cut some cell phone shots. The recommendations I've found are like sledge hammers when I need a tack hammer. Blender, KdenLive, and OpenShot are what I've seen, and all of them sound great if I want to produce a serious movie. I would need to spend a fair amount of time with them to get the most out of them, but that's more than I need for now. Any other recommendations for a simple video editor?
[PLUG] Recommended video editor
I don't need a video editor for much, so I'm looking for something fairly simple to use to cut some cell phone shots. The recommendations I've found are like sledge hammers when I need a tack hammer. Blender, KdenLive, and OpenShot are what I've seen, and all of them sound great if I want to produce a serious movie. I would need to spend a fair amount of time with them to get the most out of them, but that's more than I need for now. Any other recommendations for a simple video editor? -- Regards, Dick Steffens
Re: [PLUG] Connect BT keyboard to headless Raspberry
On Fri, Jan 21, 2022 at 2:45 PM Eric House wrote: > > With screen you can resize the terminal size to fit using ctrl-a F - > > that's your screen's control command followed by a capital F. > > That works! If I have two different terminals ssh'd into the same screen > session and resize one then ctrl-A F it, the session in the other terminal > changes size to match. > > I am not entirely sure what you did here. What are the two commands that you used to connect to the same screen session and how did you start that initial screen session? I thought the original scenario was a keyboard attached to the Pi. You login via the keyboard and start a screen session. Granted this has to be done blindly because you don't have a display connected to the Pi. Then from the Ipad you ssh to the Pi and connect to the screen session started from the Pi keyboard. This has only one ssh session involved. Bill
Re: [PLUG] Connect BT keyboard to headless Raspberry
On Fri, Jan 21 > > If I understand correctly, yes, [screen-mirroring] should be possible. > I've used screen > for remote pair programming. I usually do the following to initiate a > session: > > screen -dmS foo > > Then this to connect to it: > > screen -x foo > Doesn't get mirroring. To be clear, when I follow the above with two terminals ssh'd into the host, both connect to the same session. But if in one terminal I create a new window I don't see it on the other. If the same window is open in both screen sessions then what happens in one window appears in the other, but both sessions must independently agree and arrange to have the same window open. I need the two screen sessions to keep what window is open, etc. in sync. That seems like a requirement for any sort of pair programming or teaching use, and it is what the upstart tmux does, but it's not screen's default behavior. Am I missing something? Or running the wrong version? My debian server's running screen 4.06.02 -- which is four years old! But my Pi's running 4.08 from 2020 and [mis]behaves the same. Thanks, --Eric
Re: [PLUG] Setting to make Firefox look like it's coming from Windows
On 1/21/22 1:11 PM, Bill Barry wrote: On Fri, Jan 21, 2022 at 1:51 PM Dick Steffens wrote: I recall someone mentioning a way to make Firefox look like it's a Windows version instead of a Linux version, but I don't recall what it's called. Can someone please provide a clue stick? <---> Which version of Firefox are you using? 96.0.1 (64-bit) Are you using a package from your Linux distribution or did you directly download Firefox from Mozilla. I didn't do anything to get it. It came with the distribution, Linux Mint Mate 20.2, MATE. I decided last year sometime that the distribution updates of Firefox were not keeping up quickly enough so I just installed directly from Mozilla. It works fine. I can't tell from the Xfinity junk whether they are checking for browser versions or operating system but if you just need to update Firefox here is the link https://www.mozilla.org/en-US/firefox/browsers/ and instructions for installing it on Ubuntu https://help.ubuntu.com/community/FirefoxNewVersion/MozillaBuilds Based on my response to Robert, I think they check at different levels for different things, since I am able to use the scheduling tool, but not play a program in Linux Firefox, but am able to do both in Win7 Firefox. If I need to get fancier in the future, I'll remember your recommendation about getting Firefox directly from Mozilla. Thanks. -- Regards, Dick Steffens
[PLUG] Resolved: Setting to make Firefox look like it's coming from Windows
On 1/21/22 1:04 PM, Robert Citek wrote: User-Agent Switcher https://addons.mozilla.org/en-US/firefox/addon/uaswitcher/ Good luck and let us know how things go. I installed it and set the user agent to Windows / Firefox 83. Then I attempted to sign on to the Xfinity stream page and was successful. I was able to schedule a TV program. I was unable to watch TV with this browser. I am able to watch TV with Firefox in virtual Win7. I don't often have occasion to watch TV from my computer, but I do prefer the website scheduling tool to the tool available on the TV. Thanks for pointing me to that add-on. -- Regards, Dick Steffens
Re: [PLUG] Setting to make Firefox look like it's coming from Windows
On Fri, Jan 21, 2022 at 3:05 PM Robert Citek wrote: > User-Agent Switcher > > https://addons.mozilla.org/en-US/firefox/addon/uaswitcher/ > > Good luck and let us know how things go. > > Regards, > - Robert > > > > On Fri, Jan 21, 2022 at 1:51 PM Dick Steffens > wrote: > > > I recall someone mentioning a way to make Firefox look like it's a > > Windows version instead of a Linux version, but I don't recall what it's > > called. Can someone please provide a clue stick? > > > > The current need is because Comcast downgraded their website (I'm sure > > they think they upgraded it, but ...). Yesterday morning I was able to > > reach their TV scheduling page. This morning I get this message: > > > > - > > Xfinity Stream > > Please download the latest browser version. > > > > Before upgrading to the latest browser version, ensure you're on a > > supported Operating System. > > > > Supported Operating Systems > > Windows 7+, iOS 11+, Android 7+ > > Mac OS X 10.14.4+ for Safari > > Mac OS X 10.7+ for Chrome and Firefox > > - > > > > I can use my virtual Win7 version of Firefox, but I'd rather not. > > > > -- > > Regards, > > > > Dick Steffens > > > > > Which version of Firefox are you using? Are you using a package from your Linux distribution or did you directly download Firefox from Mozilla. I decided last year sometime that the distribution updates of Firefox were not keeping up quickly enough so I just installed directly from Mozilla. It works fine. I can't tell from the Xfinity junk whether they are checking for browser versions or operating system but if you just need to update Firefox here is the link https://www.mozilla.org/en-US/firefox/browsers/ and instructions for installing it on Ubuntu https://help.ubuntu.com/community/FirefoxNewVersion/MozillaBuilds Bill
Re: [PLUG] Setting to make Firefox look like it's coming from Windows
User-Agent Switcher https://addons.mozilla.org/en-US/firefox/addon/uaswitcher/ Good luck and let us know how things go. Regards, - Robert On Fri, Jan 21, 2022 at 1:51 PM Dick Steffens wrote: > I recall someone mentioning a way to make Firefox look like it's a > Windows version instead of a Linux version, but I don't recall what it's > called. Can someone please provide a clue stick? > > The current need is because Comcast downgraded their website (I'm sure > they think they upgraded it, but ...). Yesterday morning I was able to > reach their TV scheduling page. This morning I get this message: > > - > Xfinity Stream > Please download the latest browser version. > > Before upgrading to the latest browser version, ensure you're on a > supported Operating System. > > Supported Operating Systems > Windows 7+, iOS 11+, Android 7+ > Mac OS X 10.14.4+ for Safari > Mac OS X 10.7+ for Chrome and Firefox > - > > I can use my virtual Win7 version of Firefox, but I'd rather not. > > -- > Regards, > > Dick Steffens > > >
Re: [PLUG] Connect BT keyboard to headless Raspberry
On Fri, Jan 21, 2022 at 1:45 PM Eric House wrote: > > With screen you can resize the terminal size to fit using ctrl-a F - > > that's your screen's control command followed by a capital F. > > That works! If I have two different terminals ssh'd into the same screen > session and resize one then ctrl-A F it, the session in the other terminal > changes size to match. > > But: unlike with tmux (which is totally new to me as I said), the two > sessions are not kept in sync. > If I switch panes in one, or split the window, the other doesn't change. > Since one of my sessions will be invisible, I need it to automatically > follow whatever I do in the other so that keystrokes will always go where I > can see them. Is that possible with screen? Seems a useful feature e.g. for > demonstrating something remotely, but I can't find anything even asking how > to do it (so I'm probably asking the wrong question) > > Thanks! > > --Eric > If I understand correctly, yes, that should be possible. I've used screen for remote pair programming. I usually do the following to initiate a session: screen -dmS foo Then this to connect to it: screen -x foo FWIW, I also remap the escape key to Ctrl+v as bash uses the Ctrl+a for beginning of line. alias screen='screen -e$'\''\026'\''v' Good luck and let us know how things go. Regards, - Robert
[PLUG] Setting to make Firefox look like it's coming from Windows
I recall someone mentioning a way to make Firefox look like it's a Windows version instead of a Linux version, but I don't recall what it's called. Can someone please provide a clue stick? The current need is because Comcast downgraded their website (I'm sure they think they upgraded it, but ...). Yesterday morning I was able to reach their TV scheduling page. This morning I get this message: - Xfinity Stream Please download the latest browser version. Before upgrading to the latest browser version, ensure you're on a supported Operating System. Supported Operating Systems Windows 7+, iOS 11+, Android 7+ Mac OS X 10.14.4+ for Safari Mac OS X 10.7+ for Chrome and Firefox - I can use my virtual Win7 version of Firefox, but I'd rather not. -- Regards, Dick Steffens
Re: [PLUG] Connect BT keyboard to headless Raspberry
> With screen you can resize the terminal size to fit using ctrl-a F - > that's your screen's control command followed by a capital F. That works! If I have two different terminals ssh'd into the same screen session and resize one then ctrl-A F it, the session in the other terminal changes size to match. But: unlike with tmux (which is totally new to me as I said), the two sessions are not kept in sync. If I switch panes in one, or split the window, the other doesn't change. Since one of my sessions will be invisible, I need it to automatically follow whatever I do in the other so that keystrokes will always go where I can see them. Is that possible with screen? Seems a useful feature e.g. for demonstrating something remotely, but I can't find anything even asking how to do it (so I'm probably asking the wrong question) Thanks! --Eric
Re: [PLUG] Using crosh shell on a Chromebook ( was: Chromebooks and Linux )
On Fri, Jan 21, 2022, 10:32 Robert Citek wrote: > On Fri, Jan 21, 2022 at 2:09 AM John Jason Jordan wrote: > > > * If you have the laptop folded over, in 2-in-1 mode, how can you hold > > it up in the air (like you were reading a book sitting in a > > recliner), without your fingers pressing on the keys in back? > > > > After a certain angle, the keyboard is inactivated and the laptop acts like > a touch-screen tablet with an on-screen keyboard. That said, I never use > the 2-in-1 in tablet mode. For me, it's too awkward. When I'm reading > a book or article, I prefer my iPad or Kindle ( if outside in daylight ). > In the future, I'll probably get a tablet Chromebook and a folio case with > a bluetooth keyboard that is backlit. Something like the Lenovo 10e. > > * If you are holding it up in portrait mode, does the display > > automatically go portrait as well? > > > > Yes, the display rotates 90, 180, and 270 degrees as you rotate the > Chromebook, just like a tablet. > . I solved the same reading problem with iPad + nextcloud client sync to my server almost 2 years ago. I still like that solution today. Couple of learnings: 1. I tried light netbooks, lightweight laptops, android tablet before setling on iPad. 2. Android tablet was fin-ish, but the lack of updates made it useless in about 2 years + I did not like the wide screen format for reading. 3. Laptops/netbooks/Chromebooks end up clumsy and pretty heavy after a few minutes + battery life + page flipping/zooming and other touch related issues + it is distracting from reading because it can be used for other computing stuff + the wide screen curse. 4. I find iPad pretty useless for anything but reading. I totally hate its closed garden aproach to data, privacy, total lock-in For reading it works great, sreen format is excellent, and it gets updates for a long time. Using NextCloud is not a problem for me - without it, it would not work. Bast, Tomas >
Re: [PLUG] Using crosh shell on a Chromebook ( was: Chromebooks and Linux )
On Fri, Jan 21, 2022 at 2:09 AM John Jason Jordan wrote: > * If you have the laptop folded over, in 2-in-1 mode, how can you hold > it up in the air (like you were reading a book sitting in a > recliner), without your fingers pressing on the keys in back? > After a certain angle, the keyboard is inactivated and the laptop acts like a touch-screen tablet with an on-screen keyboard. That said, I never use the 2-in-1 in tablet mode. For me, it's too awkward. When I'm reading a book or article, I prefer my iPad or Kindle ( if outside in daylight ). In the future, I'll probably get a tablet Chromebook and a folio case with a bluetooth keyboard that is backlit. Something like the Lenovo 10e. * If you are holding it up in portrait mode, does the display > automatically go portrait as well? > Yes, the display rotates 90, 180, and 270 degrees as you rotate the Chromebook, just like a tablet. Regards, - Robert
Re: [PLUG] Using crosh shell on a Chromebook ( was: Chromebooks and Linux )
On Thu, 20 Jan 2022 23:23:06 -0700 Robert Citek dijo: >Here's the output from 'free' in crosh with the Debian VM running: > >crosh> shell >chronos@localhost / $ sudo su - >localhost ~ # free -tm > totalusedfree shared buff/cache >available >Mem: 38062732 231 287 842 >369 >Swap: 557523523222 >Total: 938150843454 > >And here's 'free' from within the Debian VM: > >rwcitek@penguin:~$ free -tm > totalusedfree shared buff/cache >available >Mem:2777 82744 0 25 > 2769 >Swap: 0 0 0 >Total: 2777 82744 > >This is on a Dell 3100 2-in-1. So, this is an Intel Celeron and not a >Snapdragon CPU. > >localhost ~ # grep name /proc/cpuinfo | uniq -c > 2 model name : Intel(R) Celeron(R) N4020 CPU @ 1.10GHz > >What are you wanting to do in Linux? I'd be happy to try it out. That looks like I might be able to run Debian in a container. Another couple of questions have occurred to me: * If you have the laptop folded over, in 2-in-1 mode, how can you hold it up in the air (like you were reading a book sitting in a recliner), without your fingers pressing on the keys in back? * If you are holding it up in portrait mode, does the display automatically go portrait as well?