General :: Making The SHIFT Key Behave Like That Of Andriod - IOS
May 17, 2011
I want to disable the CAPS LOCK key and replace it by pressing SHIFT twice in quick successions (like you do in Android and iOS devices). Disabling the Caps Lock key is easy using xmodmap but is it possible to do what I want to do with the SHIFT key?
I found this Is the Success of Google's Android a Threat to Free Software? (thanks to linuxtoday.com) and in the end it says
Quote:
Worse, if efforts to enable Android apps to run on distros like Ubuntu succeed, then we may see closed-source software being used on the free software stack there, too. Ironically, Android's success could harm not just open source's chances in the world of mobile phones, but even on the desktop.
I don't see how this is a threat too Linux but that's not why I'm here. I've never understood why some say that Linux is too fragmented for developing games and other applications. I mean Savage 2 comes in one Linux(.bin file) version and it runs on most of the distributions. What is the difference between all the package formats (like .rpm and .dpkg). Why won't a application run on all systems with the Linux kernel on it? Can someone with more computer and Linux knowledge please explain this to me?
is there any way by which the cat command can be made to behave like less or more?i.e when less or more used with a text file as argument, will display the file 1 page at a time, allowing us to navigate through the file.So any way for cat to display the file 1 page at a time?P.S : I don't want to pipe the output of cat to less or more.
I have a file in a directory mysite/a.php on machine A and machine B. The files will not have any difference initially.On machine A if a.php is changed and then when a sync is done from machine B to A, will a.php have the change or will it be overwritten? What about directories?
One of the very few things I miss from Windows is that when you press LeftShift+Del the delete key acts like the backspace key, in other words you can use Del to delete forwards and LeftShift+Del to delete backwards.
I've been reading man pages such as xmodmap and used xev to get keycodes but I can't work out how to map LeftShift+Del to Backspace.
I switched to zsh, but I dislike the completion. If I have 20 files, each with a shared prefix, on pressing tab, zsh will fully complete the first file, then continue going through the list with each press of tab. If I want one near the end, I would have to press tab many times.
In bash, this was simple - press tab and I would get the prefix. If I continued typing (and pressing tab), bash would complete as far as it could be certain of. I find this behavior to be much more intuitive but prefer the other features of zsh to bash.
Is there a way to get this style of completion? Google suggested setopt bash_autolist, but this had no effect for me (and no error message was printed upon starting my shell).
it has installed correctly and asked me to reboot my computer so i did but it automatically boots Windows7 and i dont seem to get a choice, i read up on GRUB 1.99 and it says i have to use shift or esc to run it to select Ubuntu, i did this but shift didnt work, tryed esc but i only caught a glimpse of what i think was GRUB before the computer restarted.
I love using htop, but I have noticed that whenever I sort by a parameter (for example, Shift+m for sorting by Memory usage), the htop stats stop dynamically refreshing. Is this intended? I also notice this with top as well.
I want to remap the Capslock key to a Shift key. The reason being is the UK keyboard has a very large Caps Lock and a alpha size shift. I have been looking everywhere and there is a lot about turning it into a CTRL key but I don't understand. Can you give me simple instuctions I don't know what keycodes to use and what file to edit.
I am compiling some c++ code trying to connect it with libi2cbrdg.a library where I have a lot of functions. So when I am doing this gcc -g rand.c -lasound -li2cbrdg -o rand.I don't have missed functions instead I have some other C/C++ connected errors, when I am using g++ compiler like this g++ -g rand.c -lasound -li2cbrdg -o rand.it does not see functions inside that library but everything fine with c++ code.How can I make g++ behave like gcc in this case?
In order to make this conversion I have to use a text editor. This is tedious. Is there an easier way to do it, like some program I can run from the Linux or OSX terminal?
I think this might be related to the changes to using udev or DeviceKit. It started when I was running the beta versions of F12. Then it crept into Debian Sid. And my Arch Testing and Gentoo also suffer from the same.
What happens is that I'll be working along. Then when I press any key it is as if the SHIFT key is pressed. When I press CAPSLOCK, some of the keys react as they would normally. This never lasts for more than 5 minutes. And seems to happen infrequently. I say seems because there are the times I am at work and it could be that the same thing is happening only there is no one on the keyboard.
The reason I pick out udev/DeviceKit is that when it used to happen to F12 beta, the other distros had not yet made the move. So back then it was only a F12 issue. Now it is happening across the board. And only started recently.
I installed Slackware 13.37 current 32 bit (kernel 2.6.38.7-smp) last saturday and almost everything works fine. I don't understand why I cannot use Ctrl-Ins and Shift-Ins shortcuts for copy and paste in console terminal. Shortcuts works fine in X terminal (fluxbox) Konsole... but they don't in text console.
In Konqueror, when browsing files the display would open in the "Advanced Embedded Text Editor" which was really handy. In Dolphin it opens in Kate (KWrite by default but I changed it.) Is there a way to make Dolphin behave like Konqueror?
I have a 6+2 disk RAID5 array. If I do mdadm --detail, it shows me 6 active, working 8, failed 0 and spare 2, as expected. However, in Disk Utility, it tells me I have two arrays, the one I expect, but with 6+1; and another with no disks. When I look through my disks, I see there's one which is 'different'. While I had made all my 8 disks partition-less, this one seems to have developed a partition somehow - "Linux RAID autodetect". Also, when I click on 'Go to array', it takes me to this other odd diskless array.
How can I get my disks to behave themselves?
(Also, I think these disks seem to move around devices for some reason).
some days ago I upgraded my 10.04 Ubuntu to 10.10. Upgrading took quite some time as I had already witnessed in previous upgrades. Everything seems to work fine after this operation but for the Grub. I can no longer set the timer! It means I have to manually push "Enter" to start booting. I also noted that I cannot change the font size of the Grub any longer. I have not seen such behaviour during previous upgrades (I started upgrading with U 9.04).
Toshiba L505-10M with dual boot W7/U 10.10 500 GB HD & 6 GB RAM
In my corporate environment, I'm required to run a Windows machine that acquires a VNC session on a machine in the server farm. My windows machine is dual head with different resolution monitors ( 1600x1080 on left and 1920x1200 on right). If I create a VNC session that spans the monitors, then maximizing a window in the VNC session causes it to stretch across both my monitors.
Instead, I want a "maximize" event to behave like it does on my windows machine -- I only want to maximize to the display that the window is on.
How can I define what, what I'll call, "maximize regions"? Regions in the VNC graphical plane where when I click "maximize", the window only expands to the region it currently ( and mostly) resides in.
Can I do this in gnome, X, xrandr, or some other magical interface?
I just set up NIC bonding in Ubuntu 10.4, following these instructions, and I've got it working except for one problem: Every time I up or down a network device, or every time the system reboots, my routes go all to hell with eth0 and eth1 entries next to my bond0 entries. When the eth0 and eth1 entries show up, my connection is hosed and I have to go in via the maintenance IP to kill each route one at a time, leaving only bond0. Here's how I want my routes to look at all times:
Code: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.87.9.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0 0.0.0.0 10.87.9.1 0.0.0.0 UG 100 0 0 bond0 Here's my /etc/network/interfaces:
possible to make a flashdrive behave like keyboard. I recon there must be some good reasons not to. Because I can imagine some situations where this comes in verry handy.For example a script that executes gives login tab password enter and readies the next login for the next computer.This way I could just plug the flashdrive in, let type, plug it out and continue.
Each time I pass with a cursor over a widget on the desktop its side bar appears, of course it should because of resizing and moving or do some setting, but that is very boring if I do not intend to use that bar. Screenlets behave better, the setting menu appear only with proper clicking. Is there a way to manage jumping widget menu bar not to appear on every cursor passing ?
I've recently installed openSuse 11.4 64bit with KDE 4.6 and that's when the trouble started. If I put a data or mp3 cd in the drive it can be mounted. Simple audio cds refuse to mount, giving me only the option to play on one of the audio players. Since I wanted to move some music to the computer I've had to resort to windows to copy files then transfer them. How can I force KDE/Suse to behave the way I want or do I have to revert to an earlier version with KDE3.5? I suspected that System Settings/Removable Devices was where I needed to be but nothing I did worked. So then I tried playing with System Settings/Device Actions and again nothing seemed to work. I can't mount the CD manually,I get this (using su -c "mount etc"
I have a monitoring program ( GIT link to sourceforge ) which I'm trying to use to track when a child exits/dies/whatever. I'm calling fork(), then close for 0,1,2, and then opening /dev/null, monitored.stdout, and monitored.stderr as a replacement. I'm not sure if I've done something incorrect (perhaps I should use dup2 for explicit assignment?) but it appears that printf() messages are just being blackholed. I've tried setting the line buffering as a last ditch effort. On a different system, using code similar to the spawn_monitor() function, this appears to work fine, which makes me think I'm relying on some implementation specific detail.
Relevant function, for those who don't click links:
I want to make an rpm which when installed as an update causes another rpm to be removed. I'm fairly sure this is possible because I have seen LibreOffice rpms install as updates replacing OpenOffice rpms in the process without any interaction being required. However I'm unable to figure out how to do it, even after having looked at the spec file for such a LibreOffice rpm.
I have package gstreamer-0_10-ffmpeg installed. I have another package called multimedia installed. I've built a new version of multimedia which includes the gstreamer ffmpeg plugin so I don't need the gstreamer-0_10-ffmpeg package installed any more. I've tried using Provides and Obsolete in the spec file of the new multimedia package. E.g.
Code: Provides: gstreamer-0_10-ffmpeg Obsoletes: gstreamer-0_10-ffmpeg <= 0.10.10 (I've tried it with and without version numbers.) Whatever I put in the spec file, when I try and install the new multimedia package as an update zypper says
Problem: multimedia-1.1-1.i586 obsoletes gstreamer-0_10-ffmpeg <= 0.10.10 provided by gstreamer-0_10-ffmpeg-0.10.10-0.i686 Solution 1: replacement of gstreamer-0_10-ffmpeg-0.10.10-0.i686 with multimedia-1.1-1.i586 Solution 2: do not ask to install a solvable providing multimedia > 1.0-2 Selecting an option manually is no good, I need the update to happen without user interaction.
I'm trying to make a huge installation of applications on linux, (Red Hat), but without internet, i mean, i will have to download rpm's one by one and install them, the problem is that i've tried and is terrible, it always shows conflicts within versions, dependencies of dependencies, etc etc...
Is there any kind of tip to get this working? any kind of command that shows me the real dependencies that should be installed (with the right versions, etc) without conflicts? I've tried the following: