Linux

7
Dec

Accessing a VirtualBox Machine with NAT


The default way a VirtualBox machine connects to the network is using NAT. Since it’s connected to a private network, you can connect to the outside world but other machines cannot contact you (this holds true even for the host machine). NAT is the easiest and most lightweight way of connecting your virtual machine to the network. VirtualBox also supports others ways of connecting to the network such as a bridge adaptor.

My current setup: I have one virtual machine running Ubuntu 9.04 where I have all my development tools and languages installed (ruby, php, python etc). I run VirtualBox 3.0.8 on my MacOS laptop. This way I can be as close to the server environment as possible while building my applications. I run Apache, Passenger, PHP, MySQL on the guest machine and just forward 22 (ssh), 80 (http) and 3306 (mysql) to MacOS this way I can use apps like MySQL workbench to play with my database or Textmate to code.

7
Dec

Reliance Datacard EC121 on Ubuntu Linux


You will need to activate your phone using Windows and the bundled software. Once this is done you can connect to the internet using Ubuntu or MacOSX.

apt-get install wvdial

Edit your /etc/wvdial.conf and add the following

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 M1 L1 X3 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Abort On No Dialtone = False
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = <username>
Password = <password>
# Baud = 460800
# Stupid Mode = 1
Tags:
7
Dec

Linux kernel upgrade? Try Ksplice


Ksplice allows system administrators to apply security patches to the Linux kernel without having to reboot. Ksplice takes as input a source code change in unified diff format and the kernel source code to be patched, and it applies the patch to the corresponding running kernel. The running kernel does not need to have been prepared in advance in any way.

7
Dec

Ubuntu Ruby


My powerbook recently crapped out. Time to bring out the good ol' think pad.

Just found this meta package that will install everything for you.

apt-get install ruby-full
Tags:
7
Dec

MacOSX and Ubuntu Samba Fix


This should fix issues with making MacOSX talk to Ubuntu (Samba)

  1. Make sure that you are not currently connected to any Samba or Windows (SMB/CIFS) servers and that you do not have any Samba or Windows-related error messages open.
  2. Open the Terminal (/Applications/Utilities/).
  3. At the prompt, type: sudo pico /etc/nsmb.conf
  4. Press Return.
  5. Enter your password when prompted, then press Return again.
7
Dec

Getting Ruby On Rails working on Arch Linux


I recently shifted from Debian GNU/Linux to ArchLinux which is a i686 optimized distribution unlike Debian. No doubt Debian is still my favorite distribution. The best way to get Ruby On Rails working on ArchLinux or any distribution is using Ruby Gems

Download the latest Ruby Gems from here

Extract it by running the following:

6
Dec

Creating magic with ALT-F2View


I am pretty sure you know what the ALT-F2 does; viz. opening a "Run Command" dialog. What you did not know is that you can do a lot more than just enter program names and click on "Run".

Some interesting things you can do with it.

Calculator: 2 + 4
Send a Email: user@domain.com
Visit a website: http://www.hyperionreactor.net
Google: gg: Norrix
Google Images: ggi: Gorillaz
Dictionary: dict: Linux

MiniCLI makes this possible.

Tags:
Syndicate content