Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
08-26-2015, 02:30 AM
|
#31
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
Quote:
Originally Posted by suicidaleggroll
Since when? I have never seen that, and I would be extremely shocked if that was the case with any mainstream distro.
|
Raspbian for example, has a default user "pi" with a default password of "raspberry". Plus ssh server installed and enabled by default. And a very exposed sudoers configuration. Plus no default firewall. It's more common than you would think.
|
|
|
08-26-2015, 10:10 AM
|
#32
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
Quote:
Originally Posted by Shadow_7
Raspbian for example, has a default user "pi" with a default password of "raspberry". Plus ssh server installed and enabled by default. And a very exposed sudoers configuration. Plus no default firewall. It's more common than you would think.
|
Well sure, embedded systems almost always have default accounts, since the OS is pre-installed and you just boot it up. It's understood that the first thing you do with these systems is change the password, especially if it's going to be exposed in any way to the outside world.
I thought you were talking about normal distros that get installed on general purpose machines.
|
|
|
08-26-2015, 11:01 AM
|
#33
|
Senior Member
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,797
|
Quote:
Originally Posted by MrUmunhum
how do I add that to my Window Keyboard shortcut list?
|
What's a "Window Keyboard shortcut list"?
|
|
|
08-26-2015, 04:07 PM
|
#34
|
Member
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549
Original Poster
Rep:
|
Quote:
Originally Posted by ntubski
Add the following to ~/.inputrc:
Code:
# CTRL-P to get previous line, CTRL-A to move cursor to beginning
"\C-t": "\C-p\C-asudo "
That works with CTRL-t, I think CTRL-Enter can't be distinguished from Enter unless you do something special to your terminal. The above should work with any system using bash.
|
Thus is exactly what I wanted, thanks.
On my Ubuntu I needed to create a new .inputrc.
Code:
cat .inputrc
$include /etc/inputrc
"\C-t": "echo Yes\n"
"\C-x\C-r": re-read-init-file
"\C-e": "\C-p\C-asudo "
- line 1 includes the system default file.
- line 2 is a test just to see if my file was loaded.
- line 3 enables reloading my file. This should be default but it is not.
- line 4 uses CTRL and e too recall last line and pre-pend sudo.
I could not figure out how to configure CTRL and Enter?
Also I could use the command format to display the key-binding for a terminal window. All my googling have filed me.
Thanks for your time.
|
|
|
08-26-2015, 04:23 PM
|
#35
|
Member
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549
Original Poster
Rep:
|
Quote:
Originally Posted by ntubski
What's a "Window Keyboard shortcut list"?
|
There are several ways to modify your keyboard input commands. - Bash readline
- Main->Settings->Keyboard->application shortcuts
- Xorg ketboard shortcuts
It all depends on what you need and want you know or are willing to learn.
The people on this forum are very sharp and willing to help you if you ask the right question. Again, it all depends on what you want to do. In my last post, I showed one method that worked for me.
Google is your friend.
|
|
|
08-26-2015, 05:03 PM
|
#36
|
Senior Member
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,797
|
Quote:
Originally Posted by MrUmunhum
I could not figure out how to configure CTRL and Enter?
|
Depends on the terminal emulator. Generally, Enter sends a CR character which is encoded as Ctrl+M, so Ctrl+Enter would be Ctrl+Ctrl+M which is nonsensical (hence each terminal make some "sensible" decision about what to do in this case).
Quote:
Also I could use the command format to display the key-binding for a terminal window.
|
Was that a question?
Quote:
There are several ways to modify your keyboard input commands.
|
Indeed, and I couldn't tell which you meant.
|
|
|
08-27-2015, 12:03 AM
|
#37
|
Member
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549
Original Poster
Rep:
|
Quote:
Originally Posted by ntubski
Was that a question?
|
Yes, that was a question, how can I display/show the BASH keyboard binding?
|
|
|
08-27-2015, 02:44 PM
|
#39
|
Member
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549
Original Poster
Rep:
|
Quote:
Originally Posted by ntubski
|
dump-marcos() fails!
typeset -f works.
The command I needed to use is "bind -s" for user defines.
Thanks.
Last edited by MrUmunhum; 08-27-2015 at 05:28 PM.
Reason: add solution
|
|
|
09-01-2015, 08:18 PM
|
#40
|
Member
Registered: Jul 2005
Location: Montreal Canada
Distribution: Fedora 31and Tumbleweed) Gnome versions
Posts: 311
Rep:
|
What you want to know you will find within
/usr/share/X11/xkb/symbols.
I use the ca keyboard layout so,
less ca
shows me the bindings.
For example,
less us
shows me the US keyboard bindings.
(I added EuroSign and yen to both the us and ca keyboard layouts and on logout/login, the new bindings are present
You may also want to look at wikipaedia for what is a pc104 and what is a pc105 keyboard layout.
|
|
|
All times are GMT -5. The time now is 08:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|