Johan Rylander

2011-08-17

Dela disk mellan Windows 7 och ubuntu 11.04 (nutty)

Postat i: Computers — Johan Rylander @ 11:09

För det första måste open-source-varianten av vm-tools vara avinstallerade (se http://www.vmware.com/pdf/osp_install_guide.pdf)

Sedan kan du hälla in VMWares variant av samma.

Sedan laddas (för mig) inte vmhgfs automatiskt utan kan göras med sudo modprobe vmhgfs

Mount måste fixas med att skapa mount points: sudo mkdir -p /mnt/hgfs

Och den måste in i fstab, lägg till nederst:

.host:/ /mnt/hgfs vmhgfs auto,rw,exec,utf8 0 0

Sedan gick det att mounta med sudo mount -a (efter att ha shareat i VMWare-menyn)

2011-05-11

Editera som root i emacs

Postat i: Computers — Johan Rylander @ 14:53

Med ”tramp” kan man editera filer över ssh och samma paket kan också användas för att köra sudo lokalt när man editerar. Tramp kommer installerat i emacs 23 åtminstone, så då kan du skriva:

M-x find-file, /sudo::/etc/hosts

för att redigera /etc/hosts på din lokala maskin som root

Från: http://lostwebsite.wordpress.com/2008/08/26/superuser-edit-in-emacs/

2011-05-10

Git; status och completion i bash

Postat i: Computers, Programming — Johan Rylander @ 13:06

Om du har git installerat har du nog bash-completion installerad också. Har du installerad med brew på mac kan du i din .profile eller vad du nu använder skriva:

source /usr/local/etc/bash_completion.d/git-completion.bash
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export PS1='\W$(__git_ps1 " (%s)")\$ '

2010-12-31

Using private/public key to login with putty

Postat i: Computers — Johan Rylander @ 15:38

On Windows 7, using putty the private key file needs to be in a directory without slashes. A stored config to login with a key file is:

  1. Session->Host Name: Whatever host you want to access
  2. Connection->Data->Auto-login username: The login name to use at remote host
  3. Connection->SSH->Auth->Private key file…: The file containing the private key. N.B that the path to this file cannot have spaces in it.

Sleep and wake your mac from Windows

Postat i: Computers, Uncategorized — Johan Rylander @ 15:31

I use my mac mini to backup my windows box using the (free) software from crashplan.

The mac mini sits at the top of a book shelf and so is hard to reach so to wake it up and put it to sleep, I use putty with a stored config that executes:

pmset sleepnow

I use puttygen to get a public/private key and put the public one into .ssh/authorized_keys on the mac and then put:

putty.exe -load MiniSleep

into a batch file (MiniSleep is the stored config).

To wake it up, I use mc-wol.exe and use the ethernet-mac address on the mac as argument. That is also put into a batch file.

So, now I have two batch files, wakeup.bat and sleep.bat

Links:

2010-10-07

ant completion in bash

Postat i: Computers, java, Programming — Johan Rylander @ 14:32

Originally from http://matthew.mceachen.us/blog/ant-bash-completion-on-mac-os-x-43.html

  1. sudo brew install bash-completion
  2. Add to .profile or .bash_profile:
    if [ -f `brew --prefix`/etc/bash_completion ]; then  . `brew –prefix`/etc/bash_completionficomplete -C /usr/share/ant/bin/complete-ant-cmd.pl ant

2010-07-02

Huawei E122 and Dovado 3GN

Postat i: Computers — Johan Rylander @ 13:00

How we all continue to buy things that are this complicated to get to work never ceases to amaze me:

I have a Huawei E122 (from tre) that has worked really well and the installation went really smooth too. Trying to get it to work in Dovado:

  1. Start Dovado 3GN and surf to 192.168.0.1
  2. The login page and all subsequent pages loads extremely slow (minutes)
  3. At the end it does not connect with the modem
  4. Update modem with firmware from tre.se, need to use a Windows computer
  5. Test again, still extremely slow
  6. No go.
  7. Update Dovado from dovado.se
  8. Hey, it works!

But really… Yes, Dovado should work with a myriad of products but still, how is any normal consumer supposed to cope with all this?

2010-05-11

Tail for windows to view large files

Postat i: Computers — Johan Rylander @ 7:59

Being stuck on windows for a while I needed a program to be able to view large log files. This one worked well and worked on big files, including opening them over lan: http://www.baremetalsoft.com/baretail/

2010-03-02

Korrupt pdf i openoffice

Postat i: Computers — Johan Rylander @ 15:41

I mitt nuvarande uppdrag hade vi ett problem med att OpenOffice export till pdf av Word-dokument inte fungerade som den skulle. Dokumenten gick inte att söka i och kopiering av text fungerade inte även om dokumenten såg bra ut och gick att läsa (i Acrobat Reader).

Lösningen var att välja default språk i Verktyg->Alternativ-Språkinställningar->Språk till Svenska (Sverige). Samma inställning återfinns också i profilen i filen Linguistic.xcu

2010-02-16

See the answers in experts-exchange from Google

Postat i: Computers — Johan Rylander @ 10:39

View the page as cached by Google and view without stylesheet. The answers are at the bottom ;)

Äldre inlägg »

Tema: Silver is the New Black. Blogga med WordPress.com.

Follow

Get every new post delivered to your Inbox.