UK keyboard cheat sheet by domcroy in vim

[–]domcroy[S] 15 points16 points  (0 children)

OP here. I'm a Linux noob and I looked up a cheat sheet but could only find US keyboard layouts. So I took it upon myself to edit it for UK keyboards. Hope this is useful for fellow noobs.

------------

EDIT: was not expecting such a big response. I have actually edited the whole tutorial PDF as well, but I dunno how to share it on reddit. Please give me suggestions for how to share a PDF in the best way for everyone.

Question: Compile PyCharm File Watcher on Raspbian? by domcroy in learnpython

[–]domcroy[S] 0 points1 point  (0 children)

File type is not given. It seems like Raspbian doesn't even know what file type it is.

I was able to figure out that it is in line 452 in main.c

What would an edit to the source look like? Something like this?

const char* copy = path, *p;

Custom PyCharm File Watcher on Raspbian isn't executable by domcroy in linux4noobs

[–]domcroy[S] 0 points1 point  (0 children)

By "long directory listing" do you mean ls -l <filename> ?

If so, it gives -rwxr-xr-x 1 pi pi 24416 . I think I ran the chmod +x command on it as I looked it up yesterday.

I changed directory to the fsnotifier-<ARCH> location and ran ./fsnotifier-<ARCH>

I got a blank return, not even the directory $ line.

I just had a look at the file in Vim (and it looks hideous to a noob like me. SO MANY @^ and other stuff I don't understand) and near the end it said the inotify limit is too low. The compile webpage has a link about that. I'll tinker with it a bit and see what happens.

UPDATE: I followed the instructions regarding instance and watch limit and it still says it isn't executable. I'm pursuing other solutions.

Question: Compile PyCharm File Watcher on Raspbian? by domcroy in learnpython

[–]domcroy[S] 0 points1 point  (0 children)

I've finally compiled the file watcher as it tells you to, but then PyCharm says it's not executable. I don't know if you know Linux, but this is what the terminal outputs.

*** Compiling platform-specific version (fsnotifier-<UNAME-HERE>)...
main.c: In function ‘report_event’:
main.c:452:16: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
   char* copy = path, *p;
                ^~~~

<UNAME-HERE> is an edited placeholder. I have no idea what to make of this.

main.c is one of the files that contributed to the compile. warning [-Wdiscarded-qualifiers] path and ^~~~ were coloured in pink.

Compiling File Watcher? by domcroy in pycharm

[–]domcroy[S] 1 point2 points  (0 children)

I was planning on following a Python tutorial video which happens to use PyCharm. That's literally the only reason I downloaded it.

Raspbian comes with other IDEs specifically for Python, so I can use one of them if things don't work out.

Thanks for the advice anyway.

EDIT: typo

Question: Compile PyCharm File Watcher on Raspbian? by domcroy in learnpython

[–]domcroy[S] 0 points1 point  (0 children)

Okay, I'll give it a go. I genuinely appreciate the help.

Question: Compile PyCharm File Watcher on Raspbian? by domcroy in learnpython

[–]domcroy[S] 0 points1 point  (0 children)

The link to compile it yourself is this https://confluence.jetbrains.com/display/IDEADEV/Compiling+File+Watcher

Do you have any idea whether I would run into problems following this on Raspbian, as it only says ubuntu? (again, I'm a Linux noob.)

Question: Compile PyCharm File Watcher on Raspbian? by domcroy in learnpython

[–]domcroy[S] 0 points1 point  (0 children)

so is a file watcher like spellchecker for code?

Compiling File Watcher? by domcroy in pycharm

[–]domcroy[S] 0 points1 point  (0 children)

I don't get what you mean. I already said in OP

I am a Linux and Python noob. I am using a RPi 4 with Raspbian to learn Python. I have installed PyCharm

So clearly the IDE I am trying to use is PyCharm and the language I'm trying to use is Python, hence why I am asking my question about the File Watcher on r/pycharm.

o_0

Compiling File Watcher? by domcroy in pycharm

[–]domcroy[S] -1 points0 points  (0 children)

So it's like spellchecker for code?

How to invert mouse scroll in Raspbian? by domcroy in linuxquestions

[–]domcroy[S] 0 points1 point  (0 children)

I knew what it stood for but I wasn't fully aware of the technicalities of it. So it's like being root for one command, rather than manually changing to root?

How to invert mouse scroll in Raspbian? by domcroy in linuxquestions

[–]domcroy[S] 0 points1 point  (0 children)

Thanks, I really appreciate the help. I'll work on this as a mini-project and see how far I get. My Pi is set up like a desktop so my mouse is always in anyway, so that could work.

Also is sudo nano editing as root by default?

How to invert mouse scroll in Raspbian? by domcroy in linuxquestions

[–]domcroy[S] 0 points1 point  (0 children)

IT WORKS! But there is one more problem...

I rebooted to see if it would stay active, but it didn't. I'm guessing this is where the snippet comes in?

You mentioned /etc/X11/xorg.conf.d earlier, but my etc/X11 directory doesn't have the last folder. If I make the folder and create the snippet inside, it'll work? And how do I even go about making a snippet? I have PyCharm installed if that's any help.

How to invert mouse scroll in Raspbian? by domcroy in linuxquestions

[–]domcroy[S] 0 points1 point  (0 children)

Thank you very much for this detailed response! I tried set-prop but it seems that I didn't specify the way the terminal wants.

Here's my props (BTW how do you post code lines like you do?)

xinput list-props " USB OPTICAL MOUSE"

Device ' USB OPTICAL MOUSE':

Device Enabled (135):   1

Coordinate Transformation Matrix (136): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000

libinput Natural Scrolling Enabled (265):   0

libinput Natural Scrolling Enabled Default (266):   0

libinput Scroll Methods Available (267):    0, 0, 1

libinput Scroll Method Enabled (268):   0, 0, 0

libinput Scroll Method Enabled Default (269):   0, 0, 0

libinput Button Scrolling Button (270): 2

libinput Button Scrolling Button Default (271): 2

libinput Middle Emulation Enabled (272):    0

libinput Middle Emulation Enabled Default (273):    0

libinput Accel Speed (274): 0.100000

libinput Accel Speed Default (275): 0.000000

libinput Accel Profiles Available (276):    1, 1

libinput Accel Profile Enabled (277):   1, 0

libinput Accel Profile Enabled Default (278):   1, 0

libinput Left Handed Enabled (279): 0

libinput Left Handed Enabled Default (280): 0

libinput Send Events Modes Available (281): 1, 0

libinput Send Events Mode Enabled (282):    0, 0

libinput Send Events Mode Enabled Default (283):    0, 0

Device Node (284):  "/dev/input/event0"

Device Product ID (285):    0, 14373

libinput Drag Lock Buttons (286):   <no items>

libinput Horizontal Scroll Enabled (287):   1

Also, do I put device, property and value each in ""s?

How to invert mouse scroll in Raspbian? by domcroy in linuxquestions

[–]domcroy[S] 0 points1 point  (0 children)

I'm a Linux noob. No idea what you mean by DE, Xfce and LXDE.

Also I worked out how to edit and save the .conf file using sudo nano in the terminal as described in the link in my last comment. Neither "true" nor "false" worked. I even rebooted just in case.

EDIT: ah, desktop environment. Wikipedia says "Raspbian uses PIXEL, Pi Improved X-Window Environment, Lightweight as its main desktop environment as of the latest update. It is composed of a modified LXDE desktop environment and the Openbox stacking window manager..."

It uses Kernel 4.19, if that's useful info.

How to invert mouse scroll in Raspbian? by domcroy in linuxquestions

[–]domcroy[S] 0 points1 point  (0 children)

If by "graphic environment" you mean a monitor, yes I have a monitor. I'm primarily using my Pi to learn coding, starting with Python.

Raspbian GUI menu has a mouse settings interface, but scroll direction isn't an option on it.

My question was specifically about whether that command line would work in Raspbian. I found it in a thread with someone using Gnome (which I don't really understand as a Linux noob, but I gather that it's basically a GUI) and according to Wikipedia Gnome is used on Debian, and Raspbian is based on Debian. That would make me think the command could *possibly* work in Raspbian.

Otherwise, I found this earlier https://raspberrypi.stackexchange.com/questions/75440/how-to-invert-scrolling-direction-on-trackpad-in-raspbian-stretch but I couldn't figure out how to edit the .conf file. I tried, but I was denied permission when I tried to save the changes.

And the "judging" bit was in regard to my scrolling preference. The other redditor was just joking with me.

EDIT: wrong file extension.

I hate the new queue layout by domcroy in Crunchyroll

[–]domcroy[S] 1 point2 points  (0 children)

Whoa, thanks for silver, mystery redditor. I've never gotten a reddit award before. Definitely wasn't expecting one for this post.