Linux Basics --For those new (or relatively new) to Linux

Post tutorials, HOWTO's and other useful resources here.
User avatar
Ed_P
Contributor
Contributor
Posts: 7915
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.0 ISO
Location: Western NY, USA

Linux Basics --For those new (or relatively new) to Linux

Post#16 by Ed_P » 28 Aug 2021, 15:46

Sorry you had a bad experience MGracia. Is the computer you're using a laptop with a touchpad for the mouse movement? If so your palm is touching the touchpad when you type causing the mouse to move. It's also possible the mouse is jumping to where it was last while your typing has moved past that point. I have both these problems and I believe the fix is in tweaking the touchpad's synclient settings. Unfortunately I haven't done that yet for my 5.0rc3 system. For my 4.0 system my settings look like this:

Code: Select all

# https://forum.porteus.org/viewtopic.php?f=81&t=5096&p=37761#p37761
synclient PalmDetect=1 PalmMinWidth=4 PalmMinZ=100
synclient MinSpeed=.2

# Acer 722
#synclient LeftEdge=30   RightEdge=1385 TopEdge=0    BottomEdge=600

# Acer Aspire One
#synclient LeftEdge=0    RightEdge=1408 TopEdge=0    BottomEdge=640

# ?
#synclient LeftEdge=1472 RightEdge=5888 TopEdge=1408 BottomEdge=5218

# Dell Inspiron 13 
#if [ `uname -r` == "5.10.5-porteus" ]; then
#   exit
#fi    
synclient  LeftEdge=30   RightEdge=6942 TopEdge=0    BottomEdge=5218
synclient RightButtonAreaLeft=3471 RightButtonAreaTop=4062
#synclient RightButtonAreaLeft=3914 RightButtonAreaTop=3918 
#synclient HorizEdgeScroll=1  RTCornerButton=0  RBCornerButton=9  LBCornerButton=8
#synclient TapButton2=2 TapButton3=3 MaxDoubleTapTime=180
synclient MaxDoubleTapTime=180 
synclient VertTwoFingerScroll=0
synclient TouchpadOff=2 TapButton2=0

As you can see different machines have different settings.
Ed

Rapha_
Samurai
Samurai
Posts: 180
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

Linux Basics --For those new (or relatively new) to Linux

Post#17 by Rapha_ » 29 Aug 2021, 14:55


User avatar
Ed_P
Contributor
Contributor
Posts: 7915
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.0 ISO
Location: Western NY, USA

Linux Basics --For those new (or relatively new) to Linux

Post#18 by Ed_P » 29 Aug 2021, 16:17

:o :good: Rapha_
Ed

User avatar
Rava
Contributor
Contributor
Posts: 4914
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#19 by Rava » 05 Sep 2021, 00:15

While it gives some overview, it is also outdated. E.g. I looked at http://web.archive.org/web/200206040209 ... ?PageID=14
While it lists /proc it does not explain it.
Many Linux internal workings are even to be found in Wikipedia: e.g. /proc or more precisely named procfs: procfs
Or Magic SysRq key aka REISUB :)
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 4914
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#20 by Rava » 29 Aug 2023, 09:07

A very helpful command can be lsof ("list open file(s)") when you cannot umount a device. Example:

Code: Select all

guest@porteus:/tmp$ umount /mnt/sdc1
umount: /mnt/sdc1: target is busy.
guest@porteus:/tmp$ lsof |grep sdc1
bash       2068                      guest  cwd       DIR          \
     8,33    16384 1601991 /mnt/sdc1/boot/syslinux
lsof without the |grep DEVICE gives you the complete list of all current file and that is not what you usually want. In my current case:

Code: Select all

guest@porteus:/tmp$ lsof | wc
  27487  298108 3539096
27487 newlines, 298108 words, and 3539096 bytes overall. who in their sane mind would want to review 27487 lines for only one line of interest (in my example case):

Code: Select all

guest@porteus:/tmp$ lsof |grep sdc1|wc
      1       9     118
Cheers!
Yours Rava

Nikole
Ronin
Ronin
Posts: 3
Joined: 24 Sep 2023, 21:32
Distribution: puppy linux

Linux Basics --For those new (or relatively new) to Linux

Post#21 by Nikole » 25 Sep 2023, 23:44

Thank you very much for this information!
I'm one of those new to Linux :)

User avatar
Rava
Contributor
Contributor
Posts: 4914
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#22 by Rava » 26 Sep 2023, 10:55

Nikole wrote:
25 Sep 2023, 23:44
Thank you very much for this information!
I'm one of those new to Linux :)
Hopefully you will learn that the command line and terminal is not bothersome, but that the CLI (command line interpreter) is much much more powerful than any GUI or DE can ever accomplish.
And could be there comes the day you start coding shell scripts that do work on ever repeating tasks. While it might take some hours or even a day to create your very first useful script, from then on it only takes a second to execute the script and it does all the work, be it just 2 commends or be it a dozens of commands, from then on you have much less work to do for the same task. :)
And originally all PCs are meant o be that way, not some GUI where you have to do every single task yourself - be it tiny and repeating or complex and rarely done, but it was meant to be a system custom-made for you so that all repeating menial tasks are automated. That is what computers do best. Image
Cheers!
Yours Rava

Nikole
Ronin
Ronin
Posts: 3
Joined: 24 Sep 2023, 21:32
Distribution: puppy linux

Linux Basics --For those new (or relatively new) to Linux

Post#23 by Nikole » 26 Sep 2023, 20:01

Yeah, I hope I can pull it off. I'm working hard for it!

User avatar
Rava
Contributor
Contributor
Posts: 4914
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.0 x86_64 + 4.0 i586
Location: Forests of Germany

Linux Basics --For those new (or relatively new) to Linux

Post#24 by Rava » 26 Sep 2023, 23:36

Nikole wrote:
26 Sep 2023, 20:01
Yeah, I hope I can pull it off. I'm working hard for it!
Ravas coding goodies (Post by Rava #95879)
HTH! :)

Post Reply