Slackware :: Make Special Keys Run Commands Without X?
Jun 6, 2010
I'm installing Slackware 13.1 on a Samsung N150 netbook and am stuck trying to make the special keys do their normal functions when using a virtual terminal, that is not under X. Under X + Xfce it can be done via Menu->Settings->Keyboard->"Application Shortcuts".
In essence the question is how to make a special key (example Fn+Up to increase screen brightness) run a command in the background.
Changed title and text to make clear that the command should not run in a virtual terminal but while the display is being used for a virtual terminal, that is after Ctrl+Alt+F2 for example.
I've been making some progress with my new Dell Inspiron n5110 and the OpenSUSE 11.4. After searching through the net I found some drivers to get my laptop going. Now I'm facing the following problem: I want to adjust the audio volume using a special key combination on my laptop(fn+F11 to rise, fn+F12 to lower, and another key that works as mute). Although the sound itself works fine, when I use these keys the have no effect on the volume. It stays exactly the same. Some I ask myself are the drivers for the sound card installed? In "Playback Devices" there are two devices: Internal audio analog stereo(which is the one that is working) and GF108 High Definition Audio Controller Digital Stereo(HDMI). The lsusb provides:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 003: ID 8086:0189 Intel Corp. Bus 001 Device 004: ID 1bcf:2880 Sunplus Innovation Technology Inc. Bus 002 Device 003: ID 0bda:0138 Realtek Semiconductor Corp. Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
So I searched for some Realtek drivers and came up with nothing. If you have any idea on how to get my audio running or how to make the special keys working, please let me know!
I wanted to make a video and edit it all together with special effects and all that good stuff, bells and whistles, I want something like Windows Movie Maker, or better, im not a pro at this, back when I was 16 I was pretty damn good but its been a while, I have downloaded a few different editing softwares that I have come across and im not happy with any of them, such as:
Avidemux Pitivi LiVES
now Pitivi comes standard with the newest install of ubuntu, but it sucks, sorry, its has nothing, or im missing something, and for LiVES I just cant seem to get it to do what I want, its very confusing, I just want something with a simple UI like WMM or something along those lines, it doenst have to be linux based, but if your going to give me something that doenst work fresh install,
I just erased WinXp and installed Ubuntu on old laptop. I intend to use it later ot connect to public Wi-Fi. Do i need to install a firewall GUI and make any special settings? I didn't encrypt home folder during installation. I probably should have done it. But i am already low on system resources (224MB ram, 1.2Ghz CPU). Would that use up any additional resources? Would it make computer run slower? Can i still encrypt the home folder after i installed the system?
We're in the process of implementing an offsite backup of all our servers to a remote Linux server. We're using rsync over ssh.What I've found is that characters such as ±, ¶,´ and £ are replaced on the Linux server with underscores.I don't mind if it changes these characters in the filenames of documents, but when it renames a language pack from Espa±ol.clx to Espa_ol.clx, it could cause issues for us further down the line.
What do I need to do differently to make the special characters copy over correctly? For the initial sync which will take place locally, before the machine is moved offsite, I have SAMBA enabled. I am able to copy files from Windows to the Samba share, retaining the original filename, though it looks different in the Linux directory listing, i.e. tÃªst becomes ƒªstThese files get deleted by rsync when it runs, as it does not match the filenames.
Newbie here. I'm thinking about going from Ubuntu to Slackware and I just saw on Wikipedia that there is a number of projects that maintain GNOME binaries especially for Slack. So that made me wonder, why is that needed? What if I download a bare version of Slack and then build the standard GNOME version from source? Would that produce problems?
Slackware 12.2 has the unkind habit of deleting all the /dev/fd?u* floppy special files upon boot-up. I have to make another directory (I use /floppy) to contain these files so I don't have to keep copying them from an earlier distribution (12.1) Now, for example, to format a 1743 kilobyte floppy, I do fdformat /floppy/fd0u1743 mformat a:If I copy these special files to /dev (where they belong) then some part of Slackware Linux 12.2 deletes the special files when I power down and power up the machine.Slackware 12.1 and earlier leave floppy special files severely alone upon shutdown/startup.I cannot seem to "grep" a reference to /dev/fd anywhere in /etc/rc.d or its subdirectories. Why is Slackware 12.2 deleting them?
I want to set fn + Up or Down Arrow to change the brightness of the screen, instead of fn + F4 and F5. However, I don't know the command to do that, and I can't find it in Keyboard Shortcuts.I've seen something about editing a file in /var, but that requires root permissions.
I know it is possible to have the Gnome nm-applet store keys under KDE (Fedora's KDE flavor does it by default) however I am at a loss as to how to make it do this on Ubuntu. It is a pain having to look up my wifi key(s) every time I boot my system up. I have the gnome keyring installed but this did not resolve the issue.
In Ubuntu used to be a keyboard option called "Make Shift+NumPad work like MS Windows" or something. It allowed me to press for example Shift+NumPad 7 and it would get registered as the "Home" key. Without that option the shift key acts like a temporary NumLock and it'll pick up a "7" instead. My regular Home/End keys are somewhat out of reach, so I wonder where the setting is in XFCE. I'm using the latest XUbuntu 11.04.
I understand that some of them may work only with Xorg (e.g. toggle screens), but screen and kbd backlight and volume may work at tty too (because I can change this from tty when xorg is down). I know how to do it all from the console, but I want to bind keys with actions.
E.g. I can change kbd backlight with dbus and attach this action to key in my wm config, but it is not what I want. I want to make it global. I donâ€™t understand which layer may provide the functionality for all users. Now only two keys works as I expect: toggle wifi and toggle touchpad. I havenâ€™t set it up, it works out of the box.
Asus N56VZ, Debian stretch. Code: Select alluname -a Linux isquabook 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux
I've setup the .ssh/authorized_keys and am able to login with the new "user" using the pub/private key ... I have also added "user" to the sudoers list ... the problem I have now is when I try to execute a sudo command, something simple like:
$ sudo cd /root
it will prompt me for my password, which I enter, but it doesn't work (I am using the private key password I set)Also, ive disabled the users password using
$ passwd -l user
I am trying to harden my system ... the ultimate goal is to use pub/private keys to do logins versus simple password authentication. I've figured out how to set all that up via the authorized_keys file.Additionally I will ultimately prevent server logins through the root account. But before I do that I need sudo to work for a second user (the user which I will be login into the system with all the time).
For this second user I want to prevent regular password logins and force only pub/private key logins, if I don't lock the user via" passwd -l user ... then if i dont use a key, i can still get into the server with a regular password.But more importantly I need to get sudo to work with a pub/private key setup with a user whos had his/her password disabled.
1) I've adjusted /etc/ssh/sshd_config and set PasswordAuthentication no This will prevent ssh password logins (be sure to have a working public/private key setup prior to doing this
2) I've adjusted the sudoers list visudo and added
root ALL=(ALL) ALL dimas ALL=(ALL) NOPASSWD: ALL
3) root is the only user account that will have a password, I am testing with two user accounts "dimas" and "sherry" which do not have a password set (passwords are blank, passwd -d user)
The above essentially prevents everyone from logging into the system with passwords (a public/private key must be setup). Additionally users in the sudoers list have admin abilities. They can also su to different accounts. So basically "dimas" can sudo su sherry, however "dimas can NOT do su sherry. Similarly any user NOT in the sudoers list can NOT do su user or sudo su user.
I am having trouble using home and end keys in a terminal, to go to the end or beginning of a line. With xterm it will only work with the bash shell, while under zsh nothing is output. With urxvt, mrxvt and aterm pressing the keys in either bash or zsh always just results in a tilde being printed. Is this perhaps because urxvt, aterm and mrxvt are emulating a different terminal type to xterm by default?
Why does xterm work for bash but not for zsh? I don't just want a solution, I want to understand why it doesn't work by default. As a side question, is there any way to press alt+enter within a terminal? I tried to use wicd-curses where you have to use alt+enter to save settings, and it didnt register in any of the terminals, even xterm.
I'm trying to set up my laptop to ssh into my home server, but I'm trying to find how to generate the public/private keys. I was able to do it in Slack 12.2 by just running ssh-keygen, but that command is not in 13.x.
I've found myself using the -v flag for lots of applications less and less (especially for trivial stuff like tar and cp). However, when I did and I was, say, unzipping a large file, it would take longer than when I didn't use the -v flag.I assume this is because the terminal has to process the text and I'm filling up whatever buffer it might have. But my question is, does this make the application actually run slower or does it complete in the same amount of time and what I'm seeing is the terminal trying to catch up?
I am curious of how to make a GUI interface that uses multiple programs and commands. I have found wxwidgets as the most likely candidate for making my own interface.Is this the best programming language for a beginner?
I just finished my third edit of an article/tutorial I wrote on setting up RSA keys in OpenSSH and configuring SSHD to be a bit more secure than a fresh out of the box install. I also removed any derogatories about sudu Linux that might have been there Anyway, since it's kind of a big deal for anyone who uses it, and could potentially lock them out of their boxes I'd appreciate any comments related to the accuracy of the instructions, if you don't mind [URL]