Just realized that different keyboard shortcuts in the terminal behave inconsistently
While going through the keyboard shortcuts for editing text, I've realized there are some inconsistencies as to what justifies a word. For instance we can look at the keyboard shortcut for cutting the word just before the cursor (CTRL-W) and the shortcut from transposing the current word with the last word (ALT-T).
If we have some text, let's say, `/usr/bin`, and the cursor sits just past the last character, transposing the last two words results in `/bin/usr.` So this implies that /usr and /bin are treated as two separate words. But if our cursor is in the same position and we delete the last word (or cut it), it removes the entire path /usr/bin. I.e. it just cuts until the preceding white space.
I am wondering why it would behave like that naturally. What defines a word should be consistent throughout all operations with the keyboard. I personally don't think it should depend on what type of editing I am doing. I would prefer it if the '/' was *always* treated as a word separator rather than have it depend on what I was doing. Inconsistency leads to confusion. Maybe I can fix this editing the bash config, but I don't think that should be necessary to begin with.
I am curious as to what others think about this.
Edit: I found something even more bizarre and irritating. As previously mentioned, if I use CTRL-W to delete the previous word when the cursor is just past the string `/usr/bin` it removes the entire string. **But** if I use the shortcut that does exactly the opposite (ALT-D) to remove the next word and the cursor is just before the string, I am left with `/bin`. So cutting forward recognized the slash character as a word separator, but cutting backwards does not. That's really stupid.
https://redd.it/clcvmo
@r_linux
While going through the keyboard shortcuts for editing text, I've realized there are some inconsistencies as to what justifies a word. For instance we can look at the keyboard shortcut for cutting the word just before the cursor (CTRL-W) and the shortcut from transposing the current word with the last word (ALT-T).
If we have some text, let's say, `/usr/bin`, and the cursor sits just past the last character, transposing the last two words results in `/bin/usr.` So this implies that /usr and /bin are treated as two separate words. But if our cursor is in the same position and we delete the last word (or cut it), it removes the entire path /usr/bin. I.e. it just cuts until the preceding white space.
I am wondering why it would behave like that naturally. What defines a word should be consistent throughout all operations with the keyboard. I personally don't think it should depend on what type of editing I am doing. I would prefer it if the '/' was *always* treated as a word separator rather than have it depend on what I was doing. Inconsistency leads to confusion. Maybe I can fix this editing the bash config, but I don't think that should be necessary to begin with.
I am curious as to what others think about this.
Edit: I found something even more bizarre and irritating. As previously mentioned, if I use CTRL-W to delete the previous word when the cursor is just past the string `/usr/bin` it removes the entire string. **But** if I use the shortcut that does exactly the opposite (ALT-D) to remove the next word and the cursor is just before the string, I am left with `/bin`. So cutting forward recognized the slash character as a word separator, but cutting backwards does not. That's really stupid.
https://redd.it/clcvmo
@r_linux
reddit
r/linux - Just realized that different keyboard shortcuts in the terminal behave inconsistently
0 votes and 6 comments so far on Reddit
Linux-based DAS (direct-attached storage) ideas?
I see lots of great guides online for turning Linux machines (and Raspberry Pis) into NAS devices, but what about DAS devices like those USB enclosures one finds on Amazon. If I have a linux machine with a USB 3 port, how can I expose that port so another machine can access its disks directly? Is there some distro, package, or method for doing this? In my use case, using ethernet just wouldn't work.
Thanks anybody for their ideas and advice :D.
https://redd.it/clar45
@r_linux
I see lots of great guides online for turning Linux machines (and Raspberry Pis) into NAS devices, but what about DAS devices like those USB enclosures one finds on Amazon. If I have a linux machine with a USB 3 port, how can I expose that port so another machine can access its disks directly? Is there some distro, package, or method for doing this? In my use case, using ethernet just wouldn't work.
Thanks anybody for their ideas and advice :D.
https://redd.it/clar45
@r_linux
reddit
r/linux - Linux-based DAS (direct-attached storage) ideas?
0 votes and 7 comments so far on Reddit
Looking to install my first distro
Hello linux community, I'm looking forward to try a dual boot and I have a few questions.
I've only been using windows, but I want to try linux and I don't want to jump with my head first so I know that I can make a dual boot with windows.
My first question is, can I have a dual boot by installing linux on another partition and is a hard process or is it straightforward within the linux install?
My 2nd question is with the distro itself, I want to install pop\_os but Idk if I should get the LTS release or the latest one. My use case is purely gaming and browsing, that's it.
https://redd.it/cl9yce
@r_linux
Hello linux community, I'm looking forward to try a dual boot and I have a few questions.
I've only been using windows, but I want to try linux and I don't want to jump with my head first so I know that I can make a dual boot with windows.
My first question is, can I have a dual boot by installing linux on another partition and is a hard process or is it straightforward within the linux install?
My 2nd question is with the distro itself, I want to install pop\_os but Idk if I should get the LTS release or the latest one. My use case is purely gaming and browsing, that's it.
https://redd.it/cl9yce
@r_linux
reddit
r/linux - Looking to install my first distro
0 votes and 20 comments so far on Reddit
self made proxy for using while traveling to access like from home
hi i'm looking for a way incessantly to access few data bases and website that are only open from my home city and my isp provider dynamic ips while i'm traveling abroad !
and i though self made or host proxy that i will connect to from anywhere in the world that will be installed on my mini pc running 24/7 which will be connected to my isp provider to browse and use to access them data bases .
​
SO if any one knows such software or means for linux or windows based Please replay if even this is possible ?
https://redd.it/clb587
@r_linux
hi i'm looking for a way incessantly to access few data bases and website that are only open from my home city and my isp provider dynamic ips while i'm traveling abroad !
and i though self made or host proxy that i will connect to from anywhere in the world that will be installed on my mini pc running 24/7 which will be connected to my isp provider to browse and use to access them data bases .
​
SO if any one knows such software or means for linux or windows based Please replay if even this is possible ?
https://redd.it/clb587
@r_linux
reddit
r/linux - self made proxy for using while traveling to access like from home
0 votes and 4 comments so far on Reddit
Visualization for any shell command — right from your terminal. Written in pure Go.
https://github.com/sqshq/sampler
https://redd.it/clfxel
@r_linux
https://github.com/sqshq/sampler
https://redd.it/clfxel
@r_linux
GitHub
GitHub - sqshq/sampler: Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file. - sqshq/sampler
This isnt the place
But someone here may have an answer.
Is there a way to remotely access a router and or modem from another location. Like for instance to ping/restart it?
Any tips or advice is greatly Appreciated
https://redd.it/clcmna
@r_linux
But someone here may have an answer.
Is there a way to remotely access a router and or modem from another location. Like for instance to ping/restart it?
Any tips or advice is greatly Appreciated
https://redd.it/clcmna
@r_linux
reddit
r/linux - This isnt the place
0 votes and 5 comments so far on Reddit
KDE is working with GNOME to create a common, fair, sustainable and open app ecosystem, not a desktop.
https://twitter.com/kdecommunity/status/1157407732397498368
https://redd.it/clgztl
@r_linux
https://twitter.com/kdecommunity/status/1157407732397498368
https://redd.it/clgztl
@r_linux
Twitter
KDE Community
KDE is working with @gnome to create a common, fair, sustainable and open app ecosystem, not a desktop. The @gnome and KDE communities want to provide users with free and open applications that will respect their privacy and rights. That is what @LinuxAppSummit…
Linux laptops simillar to Pinebook Pro?
Hello,
I'm in the market for a cheaper laptop, so I've been poking around online and found Pinebook Pro for pre-orders. Wish I was a forum member back then as they're getting theirs first, but it's only going to be available around september.
I was wondering what other options are out there for something similar. Cheap and efficient. Something as a daily driver for basic tasks as web browsing, youtube, office, etc. With hardware focused towards Linux. If anyone knows of something like that or has any ideas, please share.
Cheers.
https://redd.it/clhgia
@r_linux
Hello,
I'm in the market for a cheaper laptop, so I've been poking around online and found Pinebook Pro for pre-orders. Wish I was a forum member back then as they're getting theirs first, but it's only going to be available around september.
I was wondering what other options are out there for something similar. Cheap and efficient. Something as a daily driver for basic tasks as web browsing, youtube, office, etc. With hardware focused towards Linux. If anyone knows of something like that or has any ideas, please share.
Cheers.
https://redd.it/clhgia
@r_linux
reddit
r/linux - Linux laptops simillar to Pinebook Pro?
0 votes and 1 comment so far on Reddit
How to remove Darling
Hello,
I tried to install Darling on my Ubuntu 19.04 by following these steps here: [https://wiki.darlinghq.org/build\_instructions](https://wiki.darlinghq.org/build_instructions)
at following step i have recieved a lot of warning generated:
>\# Build and install Darling
>
>make
and in the end it stucked at 94%
so i killed the process.
What i want to know is if it is okay to leave it like that or i better remove all the files copied from my laptop.
Maybe there is nothing to remove since it is just a layer but i do not know anything since im a very casual linux user.
​
thanks for the help, cheers
https://redd.it/clhbi9
@r_linux
Hello,
I tried to install Darling on my Ubuntu 19.04 by following these steps here: [https://wiki.darlinghq.org/build\_instructions](https://wiki.darlinghq.org/build_instructions)
at following step i have recieved a lot of warning generated:
>\# Build and install Darling
>
>make
and in the end it stucked at 94%
so i killed the process.
What i want to know is if it is okay to leave it like that or i better remove all the files copied from my laptop.
Maybe there is nothing to remove since it is just a layer but i do not know anything since im a very casual linux user.
​
thanks for the help, cheers
https://redd.it/clhbi9
@r_linux
Are the Librem 5's final specs a disappointment?
https://www.youtube.com/watch?v=cwwJGEIeZNg
https://redd.it/clgxln
@r_linux
https://www.youtube.com/watch?v=cwwJGEIeZNg
https://redd.it/clgxln
@r_linux
YouTube
Are the Librem 5's final specs a disappointment?
https://puri.sm/posts/librem-5-smartphone-final-specs-announced/ You can find me on these socials: * Forums: https://forum.heavyelement.io/ * Podcast: https:...
Laptop advise - Thinkpad vs KDE Slimbook vs System76
TLDR: Looking for suggestions for a new linux laptop under 2k CAD. Confused b/w Thinkpad/KDE Slimbook/System76.
So after months of saving, i think i'm ready for my next laptop after a long time \[i have been using my current laptop for around 8yrs now, and geez most of the things i knew about hardware has changed\]. I'm waiting for black friday to make the purchase.
My usecases:
1. I will use my laptop for tinkering around things like VMs, Dockers etc, trying out new programming languages etc.
2. I want to install and use Arch Linux - i might choose to move away to a different distro later. However i don't see myself going back to Windows, so linux support is of atmost importance.
3. My linux literacy is somewhere b/w beginner and intermediate - so i think i can google around stuff and apply fixes and solutions for "not-very-complicated" problems. I have been using Kubuntu for around a year now in my personal laptop.
4. Laptop will mostly be used along with a dock with 2-3 displays \[like a workstation\] , but i also want to carry the laptop for meetups and stuff. So i prefer laptop being an ultrabook - but anything not too heavy can be managed.
​
Specs i'm looking for:
1. Budget: Max 2k CAD \[1.5k USD/1.36K EUR\]. To be bought and used in Canada.
2. CPU: i5/i7 \[i7 preferred\]. I have read about Ryzen - but not sure how well they are linux supported, and none of the laptops i was looking for had this CPU.
3. RAM: 16GB or more. How is your experience with soldered RAM? Do they get damaged easily? I can start with 8GB and maybe later add 8GB.
4. Display: I don't game, also don't care much about the 4k display. So anything with HD and about will suffice. Definitely won't use the touchscreen feature or tablet mode.
5. Battery - Anything above 4-5hrs is fine as i will be mostly using this as a desktop with dock.
6. Storage: 250GB NVMe SSD
7. Repairabe: I plan to use this laptop atleast for next 5yrs. So something easily repairable will be preferred.
​
In your experience, how good are exlusive linux laptops like KDE Slimbook or/ System76? Are they better thank thinkpads ? I personally have shortlisted Thinkpad X1 Carbon \[but integrated memory is a disadvantage\] and few T series.
I would love to hear your opinions.
​
TLDR: Looking for suggestions for a new linux laptop under 2k CAD. Confused b/w Thinkpad/KDE Slimbook/System76.
https://redd.it/clj25q
@r_linux
TLDR: Looking for suggestions for a new linux laptop under 2k CAD. Confused b/w Thinkpad/KDE Slimbook/System76.
So after months of saving, i think i'm ready for my next laptop after a long time \[i have been using my current laptop for around 8yrs now, and geez most of the things i knew about hardware has changed\]. I'm waiting for black friday to make the purchase.
My usecases:
1. I will use my laptop for tinkering around things like VMs, Dockers etc, trying out new programming languages etc.
2. I want to install and use Arch Linux - i might choose to move away to a different distro later. However i don't see myself going back to Windows, so linux support is of atmost importance.
3. My linux literacy is somewhere b/w beginner and intermediate - so i think i can google around stuff and apply fixes and solutions for "not-very-complicated" problems. I have been using Kubuntu for around a year now in my personal laptop.
4. Laptop will mostly be used along with a dock with 2-3 displays \[like a workstation\] , but i also want to carry the laptop for meetups and stuff. So i prefer laptop being an ultrabook - but anything not too heavy can be managed.
​
Specs i'm looking for:
1. Budget: Max 2k CAD \[1.5k USD/1.36K EUR\]. To be bought and used in Canada.
2. CPU: i5/i7 \[i7 preferred\]. I have read about Ryzen - but not sure how well they are linux supported, and none of the laptops i was looking for had this CPU.
3. RAM: 16GB or more. How is your experience with soldered RAM? Do they get damaged easily? I can start with 8GB and maybe later add 8GB.
4. Display: I don't game, also don't care much about the 4k display. So anything with HD and about will suffice. Definitely won't use the touchscreen feature or tablet mode.
5. Battery - Anything above 4-5hrs is fine as i will be mostly using this as a desktop with dock.
6. Storage: 250GB NVMe SSD
7. Repairabe: I plan to use this laptop atleast for next 5yrs. So something easily repairable will be preferred.
​
In your experience, how good are exlusive linux laptops like KDE Slimbook or/ System76? Are they better thank thinkpads ? I personally have shortlisted Thinkpad X1 Carbon \[but integrated memory is a disadvantage\] and few T series.
I would love to hear your opinions.
​
TLDR: Looking for suggestions for a new linux laptop under 2k CAD. Confused b/w Thinkpad/KDE Slimbook/System76.
https://redd.it/clj25q
@r_linux
reddit
r/linux - Laptop advise - Thinkpad vs KDE Slimbook vs System76
0 votes and 1 comment so far on Reddit
Pinebook Pro update and discussion
What do folks think of the pinebook pro? It's a $200 linux laptop from Pine64. Preorders are open now, but the specs/language used on the page don't fill me with a great deal of confidence.
Do people think this is a steal for a linux laptop? Or a waste of time/money and buying a 'better' laptop and 'linux-ing' it would be a better choice?
Pre order link here: https://store.pine64.org/?product=14-pinebook-pro-linux-laptop
Note, I'm not affiliated with Pine at all, just saw this and wanted a discussion
https://redd.it/cljzkt
@r_linux
What do folks think of the pinebook pro? It's a $200 linux laptop from Pine64. Preorders are open now, but the specs/language used on the page don't fill me with a great deal of confidence.
Do people think this is a steal for a linux laptop? Or a waste of time/money and buying a 'better' laptop and 'linux-ing' it would be a better choice?
Pre order link here: https://store.pine64.org/?product=14-pinebook-pro-linux-laptop
Note, I'm not affiliated with Pine at all, just saw this and wanted a discussion
https://redd.it/cljzkt
@r_linux
reddit
r/linux - Pinebook Pro update and discussion
0 votes and 10 comments so far on Reddit
LinuxInsider TROM-Jaro review. (Manjaro w/ customized GNOME and non-libre packages removed).
https://www.linuxinsider.com/story/TROM-Jaro-A-New-Twist-on-Open-Source-Freedom-86160.html
https://redd.it/cllcrw
@r_linux
https://www.linuxinsider.com/story/TROM-Jaro-A-New-Twist-on-Open-Source-Freedom-86160.html
https://redd.it/cllcrw
@r_linux
Linuxinsider
TROM-Jaro: A New Twist on Open Source Freedom
TROM-Jaro Linux offers a new twist on the concept of open source as free software. First released as a beta version last December, TROM-Jaro's second and current non-beta release pushed out in June. This new distro is a custom-built version of the popular…
[PATCH] MAINTAINERS: floppy: take over maintainership
https://lore.kernel.org/lkml/57af5f3e-9cfe-b6d8-314c-f59855408cd5@linux.com/
https://redd.it/clmsvd
@r_linux
https://lore.kernel.org/lkml/57af5f3e-9cfe-b6d8-314c-f59855408cd5@linux.com/
https://redd.it/clmsvd
@r_linux
reddit
r/linux - [PATCH] MAINTAINERS: floppy: take over maintainership
0 votes and 0 comments so far on Reddit
What exactly does this bash noscript do?
I found a bash noscript and I honestly dont know what it does and have come up empty handed trying to figure it out. the bash noscript is named "Foobar" I found it on a computer running Slackware I picked up from a goodwill. oddly enough the password for root was "root"
this laptop is a treasure trove of noscripts but this one is the most confusing to me.
​
Edit: also when I connect it to the internet I get people logging in and accessing the laptop with in 5 minutes. yes the date and time are wrong but I dont really care about that right now.
https://i.redd.it/ibbsy6dwwae31.gif
NULL=/dev/null
ROOT=$HOME/.bo
BOCL=/usr/local/bin/bo
LOGS=$ROOT/bo.log
VERS=0.2
usage() {
echo ""
echo "usage: $(basename $0) Version $VERS"
echo "-r Reboot host"
echo "-d dialog"
echo ""
exit 0
}
error() {
echo "Can't connect to $TARGET_HOST!"
echo ""
exit 1
}
chkhost() {
ping -qc 1 $TARGET_HOST > $NULL
if [ "$?" = "1" ]; then error; fi
}
connect() {
echo "You can use an IP as well."
echo -ne "Hostname to target: "; read TARGET_HOST
echo "Anything under 60 seconds is silly."
echo -ne " Number of seconds: "; read SECOND_WAIT
}
if [ -d "$ROOT" ]; then : ; else
echo Creating directory: $ROOT
mkdir -m 700 $ROOT
fi
if [ "$#" = "0" ]; then
usage
elif [ "$1" = "-r" ]; then
connect
while true; do
chkhost
echo -ne "host $TARGET_HOST\nreboot" | $BOCL >> $LOGS
echo "$TARGET_HOST rebooted!"
echo ""
sleep $SECOND_WAIT
done
elif [ "$1" = "-d" ]; then
connect
echo -ne "Message to display: "; read MES
echo -ne " Window noscriptbar: "; read TIT
while true; do
chkhost
echo -ne "host $TARGET_HOST\ndialog \"$MES\" \"$TIT\"" \
| $BOCL >> $LOGS
echo "$TARGET_HOST recieved message!"
echo " Message displayed: $MES"
echo " Window noscriptbar: $TIT"
echo ""
sleep $SECOND_WAIT
done
elif [ "$1" = "-s" ]; then
connect
while true; do
chkhost
echo -ne "host $TARGET_HOST\nprocspawn \"start shit.mpg\"" \
| $BOCL >> $LOGS
echo "$TARGET_HOST is shit"
echo ""
sleep $SECOND_WAIT
done
else
usage
fi
https://redd.it/clnz69
@r_linux
I found a bash noscript and I honestly dont know what it does and have come up empty handed trying to figure it out. the bash noscript is named "Foobar" I found it on a computer running Slackware I picked up from a goodwill. oddly enough the password for root was "root"
this laptop is a treasure trove of noscripts but this one is the most confusing to me.
​
Edit: also when I connect it to the internet I get people logging in and accessing the laptop with in 5 minutes. yes the date and time are wrong but I dont really care about that right now.
https://i.redd.it/ibbsy6dwwae31.gif
NULL=/dev/null
ROOT=$HOME/.bo
BOCL=/usr/local/bin/bo
LOGS=$ROOT/bo.log
VERS=0.2
usage() {
echo ""
echo "usage: $(basename $0) Version $VERS"
echo "-r Reboot host"
echo "-d dialog"
echo ""
exit 0
}
error() {
echo "Can't connect to $TARGET_HOST!"
echo ""
exit 1
}
chkhost() {
ping -qc 1 $TARGET_HOST > $NULL
if [ "$?" = "1" ]; then error; fi
}
connect() {
echo "You can use an IP as well."
echo -ne "Hostname to target: "; read TARGET_HOST
echo "Anything under 60 seconds is silly."
echo -ne " Number of seconds: "; read SECOND_WAIT
}
if [ -d "$ROOT" ]; then : ; else
echo Creating directory: $ROOT
mkdir -m 700 $ROOT
fi
if [ "$#" = "0" ]; then
usage
elif [ "$1" = "-r" ]; then
connect
while true; do
chkhost
echo -ne "host $TARGET_HOST\nreboot" | $BOCL >> $LOGS
echo "$TARGET_HOST rebooted!"
echo ""
sleep $SECOND_WAIT
done
elif [ "$1" = "-d" ]; then
connect
echo -ne "Message to display: "; read MES
echo -ne " Window noscriptbar: "; read TIT
while true; do
chkhost
echo -ne "host $TARGET_HOST\ndialog \"$MES\" \"$TIT\"" \
| $BOCL >> $LOGS
echo "$TARGET_HOST recieved message!"
echo " Message displayed: $MES"
echo " Window noscriptbar: $TIT"
echo ""
sleep $SECOND_WAIT
done
elif [ "$1" = "-s" ]; then
connect
while true; do
chkhost
echo -ne "host $TARGET_HOST\nprocspawn \"start shit.mpg\"" \
| $BOCL >> $LOGS
echo "$TARGET_HOST is shit"
echo ""
sleep $SECOND_WAIT
done
else
usage
fi
https://redd.it/clnz69
@r_linux
i removed old EFI entries from boot menu and i can't get to the bios
Hello i removed old EFI entries from boot menu and i can't get to the bios.
when i boot up it says F2 for Setup and F4 for recovery but the only one that works is the recovery one.
F10 used to work for me to get straight to the bios.
Can anyone please help me?
(Note: i deleted manjaro and ubuntu entries)
(Edit: this is the video i followed https://youtu.be/255ltqk7xDM)
https://redd.it/cloe02
@r_linux
Hello i removed old EFI entries from boot menu and i can't get to the bios.
when i boot up it says F2 for Setup and F4 for recovery but the only one that works is the recovery one.
F10 used to work for me to get straight to the bios.
Can anyone please help me?
(Note: i deleted manjaro and ubuntu entries)
(Edit: this is the video i followed https://youtu.be/255ltqk7xDM)
https://redd.it/cloe02
@r_linux
YouTube
Remove old EFI entries from Boot Menu
Commands here: http://izzylaif.com/en/?p=1297 How to clear bogus items from BCD store and Bios boot menu. #izzylaif
Just installed Ableton Live 10 using WINE and it runs flawlessly on Linux!
https://www.tekbyte.net/how-to-install-ableton-live-10-on-linux-with-wine-it-works-flawlessly/
https://redd.it/cls07p
@r_linux
https://www.tekbyte.net/how-to-install-ableton-live-10-on-linux-with-wine-it-works-flawlessly/
https://redd.it/cls07p
@r_linux
Why does Google maintain Chromium, as it allows people to stay away from Chrome more easily?
https://old.reddit.com/r/fossdroid/comments/ckwfk7/why_does_google_maintain_chromium_as_it_allows/
https://redd.it/clsnm8
@r_linux
https://old.reddit.com/r/fossdroid/comments/ckwfk7/why_does_google_maintain_chromium_as_it_allows/
https://redd.it/clsnm8
@r_linux
reddit
r/fossdroid - Why does Google maintain Chromium, as it allows people to stay away from Chrome more easily?
16 votes and 34 comments so far on Reddit