Tag: Linux
I haven’t posted for a while, and this is not going to be a very useful post, you have been warned…
At work we use Windows. I vowed when I left my last job that I’d never go to work somewhere that uses Windows.
I am very much still not a fan, especially since I have not got admin rights and we are using Windows 8 - one of the most hated versions of Windows since ME.
If you’re:
- running Fedora
- using dnf as a package manager
- get the following error:
Failed loading plugin: copr
then listen up, your solution is at hand: install python-requests using yum:
sudo yum install -y python-requests
I have not tested if this will work installing with pip yet. The linked bug report suggests that this will be registered as a dependency as of 2014-06-05 so this problem should go away.
Source: this bug report
Synergy is a great program to control multiple computers from a single keyboard or mouse even without them being plugged in. The only requirement is that theyre on the same local network.
Im sharing my configuration which has my windows desktop as the server, and my macbook as the client. Using a windows keyboard creates some issues with the macbook, so here are the settings I use to map the keys correctly:
Update: For the most part, I want to tunnel from the server to the local machine. This only works with the localhostname set to localhost, for example to tunnel a mysql server to the current machine port 10101:
ssh -L 10101:localhost:3306 user@remoteserver.com -N
The localhost is important, and in this case the mysql client (on the local machine) has to have the hostname set to 127.0.0.1 (for some reason localhost doesnt work). Ive been trying to access my works MySQL database from outside the universities firewall and was having issues. Im still having issues but thats another story: Ill get to that. Some definitions: the local machine is my machine accessing the server from outside the firewall, and the server machine is the one running the server and is behind the firewall. My initial test was to run a rails server (which runs on port 3000) on the server machine. It serves a basic test page just to show it works. To set up a tunnel, I used the following command:
I have recently been playing with the Synergy software, which allows a single mouse and keyboard to control multiple computers whatever operating system they may be using. I am currently using my PC’s mouse and keyboard to write this on my macbook pro!
It’s pretty easy to set up, the windows server is pretty simple, the only bit the documentation does not emphasise enough is that the screens must be named after the hostname of the computer, so for widows it’s the ‘Computer name’ and for OSX/linux it’s the output of the ‘hostname’ command. The linux and OSX client is command line only which is quite annoying but otherwise a very nice piece of software.