Pi cheat-sheet (LxTerminal)
Posted: Thu Mar 05, 2015 10:01 pm
While this is a rather lame beginning, I like to keep cheat-sheets for obscure things I've done to make linux (or whatever else) work just the way I want. Usually there is a lot of googling to find what actually works, then a one-liner. The trouble is, next time you have to do that - you remember the stuff you saw in hours of googling, and not the one line that worked. I figured I'd start keeping that kind of stuff up here so others can use it too.
Today's trick: I just put Ada's 800x480 touchscreen on a pi-2, and the terminal shows much too large once I increased the default font (in the terminal settings) large enough to read (and that, with reading glasses). Since I plan to use this a lot with just the touch screen, I wanted the tic-tac-toe buttons and so on to always be reachable, and to do that, I wanted to reduce the default size of the terminal to about 70x19.
(and BTW, there are bugs in their .pdf file on how to make it work, and I'll post the fixes later on this thread)
Well, there's a command line option for that... it goes kinda like this: $lxterminal --geometry=70x19
Easy, but what about the shortcut in the taskbar? Yes, if you put one on the desktop, you can edit the Exed= line and add this, but I wanted the taskbar one to work like that too.
To make things extra confusing, there's a hidden config file under home/pi/.config/lxterminal/lxterminal.conf - which does absolutely nothing I can discover. That's what makes this a worthy tip.
The one that matters is at /usr/share/applications/lxterminal.desktop - and it's owned by root. Fix it there and it's fixed all over. Gheesh.
I'll have a lot more to add to this thread (and anyone else chime in here if you've got a good one) later on. Ada's pdf on how to make this display work has typos, and they are different typos from the online one...neither work, and I'll get to that soon, because I did figure it out.
I have NGINX, MySQL, PhpMyAdmin and some interesting pi-camera stuff going now. Those all didn't quite work out easily, so there will be tips for those. NGINX blows apache off totally - but needs all kinds of different configuration than apache (one of the reasons it's better, actually) to make things like phpmyadmin work with it, and so on. The cool camera live streaming thing I have going on apache, I still have to get working with NGINX, which will be yet another post.
For those who don't know - the pi-2 is a quad core and TONS faster than the old raspberry pi. It'll even run iceweasel (firefox by another name) instead of the crap browser the old one would barely run...and so on. It's about eqivalent to a modern haswell i3. The old one? Well, it runs. That's about what you can say for it. Streaming 320x240 video out of it took 100% cpu....It couldn't play music over USB dongles without dropouts on every single buffer....and so on. The new one, now this is a real computer...
I'll try to put what the tip is about in this thread in the title...so we can find stuff quicker. You can change the title in each post on a thread...
Today's trick: I just put Ada's 800x480 touchscreen on a pi-2, and the terminal shows much too large once I increased the default font (in the terminal settings) large enough to read (and that, with reading glasses). Since I plan to use this a lot with just the touch screen, I wanted the tic-tac-toe buttons and so on to always be reachable, and to do that, I wanted to reduce the default size of the terminal to about 70x19.
(and BTW, there are bugs in their .pdf file on how to make it work, and I'll post the fixes later on this thread)
Well, there's a command line option for that... it goes kinda like this: $lxterminal --geometry=70x19
Easy, but what about the shortcut in the taskbar? Yes, if you put one on the desktop, you can edit the Exed= line and add this, but I wanted the taskbar one to work like that too.
To make things extra confusing, there's a hidden config file under home/pi/.config/lxterminal/lxterminal.conf - which does absolutely nothing I can discover. That's what makes this a worthy tip.
The one that matters is at /usr/share/applications/lxterminal.desktop - and it's owned by root. Fix it there and it's fixed all over. Gheesh.
I'll have a lot more to add to this thread (and anyone else chime in here if you've got a good one) later on. Ada's pdf on how to make this display work has typos, and they are different typos from the online one...neither work, and I'll get to that soon, because I did figure it out.
I have NGINX, MySQL, PhpMyAdmin and some interesting pi-camera stuff going now. Those all didn't quite work out easily, so there will be tips for those. NGINX blows apache off totally - but needs all kinds of different configuration than apache (one of the reasons it's better, actually) to make things like phpmyadmin work with it, and so on. The cool camera live streaming thing I have going on apache, I still have to get working with NGINX, which will be yet another post.
For those who don't know - the pi-2 is a quad core and TONS faster than the old raspberry pi. It'll even run iceweasel (firefox by another name) instead of the crap browser the old one would barely run...and so on. It's about eqivalent to a modern haswell i3. The old one? Well, it runs. That's about what you can say for it. Streaming 320x240 video out of it took 100% cpu....It couldn't play music over USB dongles without dropouts on every single buffer....and so on. The new one, now this is a real computer...
I'll try to put what the tip is about in this thread in the title...so we can find stuff quicker. You can change the title in each post on a thread...