Category Archives: Linux

Restore Ubuntu Jaunty Panel

My friend played with the panels (its position, size, etc) it turned out to cause a tragedy. He nearly couldn’t do anything with the freshly installed, keyboard-shortcut-less Ubuntu. After searching the web, here’s the fix:

1. make a new folder in desktop, to open the nautilus file browser.

2. run gnome-terminal in /bin/ (if not mistaken)

3. Type in

gconftool-2 –shutdown

rm -rf ~/.gconf/apps/panel

pkill gnome-panel

sudo debconf gnome-panel

Hope it works for you.

Howto: Troubleshoot MCP-55 Ethernet on Ubuntu Jaunty 9.04

I installed a fresh Ubuntu Jaunty on a desktop and couldn’t connect to the local area network (DHCP). I tried the following tweaks, and finally it worked.

add to/etc/modprobe.d/options

options forcedeth msi=0 msix=0


sudo rmmod forcedeth
sudo modprobe forcedeth

sudo /etc/init.d/networking restart
sudo dhclient eth0

During the last line, the ethernet will start listening and start DHCPDISCOVER on eth0. I clicked the network manager to reattempt a connection and it worked.

Repository Open Source di Indonesia (Ubuntu)

Pasca kepulangan dari Jepang, saya mencari server repository utk mengupdate Ubuntu. Mengapa repot2 mengubahnya? Sebab di kampus saya ada batasan filesize yang bisa didownload, yikes X|

Pertama saya mencoba http://kambing.ui.edu. Kecepatannya lebih baik dibandingkan server luar, namun masih kurang memuaskan. Setidaknya saya mencari yg melebihi 1 MB(yte)/detik. Dimana lagi selain server intranet.. Akhirnya setelah susah payah mencari :P, saya menggunakan ftp://ftp.itb.ac.id/pub/ubuntu/

Untuk Ubuntu, karena server ini tidak terdaftar pada pilihan repo, kita harus edit manual file /etc/apt/sources.list (sudo gedit /etc/apt/sources.list).

Untuk masing2 baris, tambahkan dengan server yang kita inginkan, misalkan dari:
deb http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ hardy main restricted
menjadi (copy-paste-edit):
deb ftp://ftp.itb.ac.id/pub/ubuntu/ hardy main restricted

Kemudian, comment isi file yang lama, misalkan dari:

deb http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ hardy main restricted
menjadi:
#deb http://ubuntu-ashisuto.ubuntulinux.jp/ubuntu/ hardy main restricted
sekedar untuk berjaga2.

Hasilnya update jadi kenceng (>2 MByte/s) 🙂

How to Enable Dual Headphone Jacks Inspiron 1420 on Ubuntu 8.04

Open Volume Control by double clicking the sound icon.

1. Edit -> Preferences

2. Check the Surround

3. Unmute it!

4. Done

It’s just in the setting of the ALSA-mixer. 🙂

Enable Internal/External Microphone Inspiron 1420 on Ubuntu 8.04

I wanted to use VOIP, but the mic didn’t work. How did I enable it?

First, I was able to use the internal mic, thanks to this post.
OK, so now how do I use my own mic.
In the volume control,

1. Click Edit -> Preferences

2. Check the Input Source

3. Change the Digital Input Source to Analog Inputs

4. Select Front Mic as Input Source.

Tested on the Sound Recorder, fixed.

Fix Slow Boot/Close VMWare; Host:Ubuntu 8.04

After the first install, my virtual WinXP took ages to boot up. The hard disk activity was really intensive for unknown reason. After a quick search, here’s a quick fix. Add to the /etc/vmware/config for always running the following script, or into individual vmx files:

mainMem.useNamedFile = “FALSE”
prefvmx.useRecommendedLockedMemSize = “TRUE”
prefvmx.minVmMemPct = “100”

The main hero seems to be the edit of mainMem. My boot and closing speeds up significantly, but it is still slow to start up. After loading, performance is good, and the HD is quiet too. Still finding out why the VM is slow on starting up (and so noisy for a long time).

Fix Clock Speed on VMWare; Host:Ubuntu Guest:WinXP

I started using my VOIP software on the guest WinXP today (since the VOIP Provider didn’t provide Linux version). I called and the timer showed more than one hour, when it felt like 20 minutes or so. Well, I had a great chat, so I didn’t really think about it. I realized the clock speed was waay to fast when I called for the second time. It was like 10 seconds, counted as more than a minute?!

I checked the clock on the guest XP and it was speeding very nasty. To make the post short, here’s what I did:

sudo gedit /etc/vmware/config
(edit the config as superuser)

Then add:

#edit your cpu clock, this shows 1.0 GHz
host.cpukHz = 1000000
host.noTSC = TRUE
ptsc.noTSC = TRUE

If you want to synchronize host-guest, add: (it only syncs forwards, not backwards. Didn’t help in speeding cases like mine)
In the guest *.vmx file:

tools.syncTime = TRUE
timeTracker.periodicStats=”True”
timeTracker.statsInterval=”10″

We can keep a difference of time in host-guest if we want:

tools.syncTime = FALSE
time.synchronize.continue = FALSE
time.synchronize.restore = FALSE
time.synchronize.resume.disk = FALSE
time.synchronize.shrink = FALSE

We can also make the guest clock slower by increasing the value of the processor speed. I suggest to add a little more than the original, because there are some issues in the power down mode of the processor. It can cause a sudden speed-up of clock cycles. If the guest is a little slower, it would be fine as it can sync periodically.

If sudden speed-up is the case, add:

timeTracker.catchupPercentage = 200
timeTracker.catchupIfBehindByUsec = 60
timeTracker.giveupIfBehindByUsec = 50000000

Install Ubuntu on Dell Inspiron 1420 Part II – Upgrades

After installation, Ubuntu asks for an update. I think it would be better to upgrade to 8.10, they have many bug fixes.

Compiz-fusion is enabled by default (I’m using the Intel Integrated), but the settings manager have to be installed. Search compiz on the Add Software App. Pretty much everything works already. Ethernet, sound, USB, 3D Windows. I haven’t tested the Wireless yet. There is a workaround for the internal mic here. If the speaker volume is too soft, check the volume control, and in the Edit -> Preferences, check the Front.

Dell Media buttons?  Works like charm.

I’m so glad I got Ubuntu up and running. It feels so much better than the other OS, and Compiz-fusion is simply fun and great!

PS: see next posts for common issues fixes

Install Ubuntu on Dell Inspiron 1420 Part I – Live CD

My academic semester have just finished, finally I have time to do what I’ve been wanting to do, install Linux on my laptop. That other OS has shown its unstableness once again, slowing down heavily after each semester. Before I begin, here are my specs:

Intel Core2Duo T7300 (2.0 GHz, 4MB Cache, 800MHzFSB)
2GB DDR2-SDRAM
120GB SATA
Intel Wireless 3945ABG
Intel X3100 Integrated Graphics
Japanese Keyboard, Webcam, DVD-RW

If we were to install the Standard Ubuntu, we should expect to install the drivers one by one. Which is time-spending, exhausting, and one of the reasons why Linux isn’t popular for notebooks yet. So, we should use the “Dell-remastered” Ubuntu version. They can be found here. This is the 7.10 version, which has many bug fixes from the previous 7.04. It’s all in DVD, ~4,3GB! But I assure you it’s worth downloading and burning it, it saves your precious time. Choose the right platform and video card.

After burning the DVD, boot it by pressing F12 at the BIOS Screen, then choose the CD Drive.
The Live CD will boot, and it takes some time. During this mode, the ethernet works. I also have backed up all of my data, so I didn’t have to worry on using the guided partition format.

After the installation finishes, choose to reboot, and don’t boot into the DVD again.


Fixing Japanese Keyboard Layout Dell Inspiron 1420 Ubuntu 8.04

After installing Ubuntu on my Dell laptop, one of the problems encountered was the keyboard. I have an uncommon Japanese keyboard layout since I bought the Inspiron in Japan. But hopefully the info is useful for modifying the keyboard in Ubuntu.

The first thing to do would be to go to System -> Preferences -> Keyboards, and choose the appropiate layout. Also click the Layout Options button and modify the Alt-Win behavior, choose to use the Win key as Super. I needed this to activate some cool Compiz animations comfortably 🙂

Then we’re going to need these three utilities: xev, xmodmap, xkeycaps. If you don’t have the xkeycaps, install it by:

sudo apt-get install xkeycaps

Xkeycaps is the GUI for xmodmap, use it first because it’s easy to modify. Just click and click. But you may encounter some keys that are not detected in xkeycaps, thus we must modify it manually through xmodmap. By the way, if you’re looking for the Fn key, it can’t be mapped because it modifies the key value through the BIOS/hardware.

Using xmodmap seemed hard, but turns out it’s not that scary. First, get the keycode of the button you wish to modify through xev. I think it’s self-explanatory. Then, modify the button with xmodmap, using the following syntax:

xmodmap -e “<expression>”

The <expression> field can be filled in with such expressions:

add <modbit> = keyvalue
remove <modbit> = keyvalue
keysym <value> = <another keysym value>
keycode <value> = <keysyms value>

Confused? Hopefully in most cases we won’t need to touch modbit. To map a key, we only need the simple last expression. Remember/note down the keycode-s to be changed. These keycodes are fixed to a certain button.

Now, change the “output” of that button by the keysyms value. Look it up on google, or in here.
In my case, my backslash-underscore button was like a dead button. I couldn’t type an backslash nor underscore, not very nice 🙂 This is what I typed in the terminal:

xmodmap -e “keycode 211=backslash underscore”

Easy as that, my “Super” (Win) key now works, and I can type underscores: ___ (Hooray)

PS: You may notice I use the nice Mac4Lin Theme. 🙂

Edit:

Complete keysym list:
http://wiki.linuxquestions.org/wiki/List_of_Keysyms_Recognised_by_Xmodmap

PS again: Please see the following link on how to make the changes run on every startup!!

http://ubuntuforums.org/showthread.php?t=325688

It tells you how to put those commands in a file named .xmodmaprc in your home. It will be read everytime you login.