DAMZIE.net – The Geeky Things

Just another BS

Archive for the ‘Ubuntu’ Category

Monday
Feb 21,2011

I found a faster way to change your display from terminal.

To check what resolution does your monitor support type:

adamz@UBUNTU:~$ xrandr -q

It will show something like this:

adamz@UBUNTU:~$ xrandr -q
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA1 connected 1024×768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1360×768 59.8
1024×768 60.0*
800×600 60.3 56.2
848×480 60.0
640×480 59.9 59.9

Example I’m on 800×600 resolution and I want to change to 1024×768. I type this:

adamz@UBUNTU:~$ xrandr -s 1024×768

Thats it!

If you want to specify a refresh rate when switching your resolution, you can do it like this:

adamz@UBUNTU:~$ xrandr -s 1024×768@75

Wednesday
Oct 21,2009

After upgrading my Ubuntu box I find that everytime I boot up I see alot of items on my GRUB list.

So I decided to delete the useless ones.

So just so that I wont forget next time here’s how I did it:

Hit ALT+F2 then type the following & run:

gksu gedit /boot/grub/menu.lst

Scroll down to the bottom of the page. Select & delete the ones you dont want.

Here’s a screenshot of my case:

Screenshot-menu.lst (-boot-grub) - gedit-1

(If you cant see the image then click to view larger size)

I deleted the ones that I have selected (highlighted) & “Save” the file.

Reboot & there you go. All those useless items are gone!

Tuesday
Oct 20,2009

I finally decided to upgrade my 8.04 (Hardy Heron) to 9.04 (Jaunty Jackalope)

It’s AWESOME!! I love Ubuntu & I love linux OS! I can really feel the huge difference on 9.04 compared to 8.04.

Here’s a tutorial on How-To Upgrade to your latest Ubuntu distribution, in my case Ubuntu 9.04 using Torrent.

The first thing I did was:

Go to http://www.ubuntu.com/getubuntu/downloadmirrors#alternate

Then, I download:

ubuntu-x.xx-alternate-i386.iso.torrent

* I assume that you are on i386 platform.

Since I do not want to waste my CD/DVD, i mounted the ISO file directly from terminal by typing:

sudo mount -o loop /location/of/ubuntu-x.xx-alternate-1386.iso /media/cdrom0

And then from terminal, I typed the following:

gksu sh /cdrom0/cdromupgrade

Lasty, we wait untill all the updating & installing is completed, restart your computer and there you go. Full upgrade yo!

Here’s a screenshot of my desktop:

Screenshot-9.04

Ubuntu 9.04 (Jaunty Jackalope)

Monday
Sep 29,2008

As I was installing the latest WordPress on my localhost, I found out that my mod_rewrite wasn’t working properly. So What I did was first I typed:

sudo apache2ctl -l

To know if this module is already loaded. Turns out it’s not, so what I did after that was I typed in:

a2enmod rewrite

To enable the mod_rewrite module. So i tested accessing my localhost link and it didn’t work. I checked back by typing the first command line and it says that the module isn’t enabled yet. So what I did next was I typed in:

sudo gedit /etc/apache2/sites-available/default

Then I looked for AllowOverRide and change it from None to All

I restarted Apache2 by typing:

sudo /etc/init.d/apache2 restart

And everything works perfectly fine! My mod_rewrite is working!

Friday
Jul 18,2008

Here’s a simple tutorial for setting up Synergy with Ubuntu as client and Vista as Server

I have a CPU running on Ubuntu and a Laptop running on Vista. I use my Ubuntu box as a test server for my projects while Vista for my daily use. My monitor is placed on my left side and my laptop on the right.

So basically here’s how my setup would look like:

Left – Ubuntu (no keyboard & mouse)

Right – Vista (with keyboard & mouse)

Left – Ubuntu (Client)
right – Vista (Server)

Setup Synergy on Vista

Download Synergy here and install it.

On Vista run Synergy & configure the server

  • Click the Share this computer’s keyboard and mouse (server) radio button
  • Click the Screens & Links Configure… button
  • Click the + button to add the server to the Screens list
    • Enter the name of server (the computer’s name is the recommended name)
    • Optionally enter other names the server is known by
    • Click OK
  • Use the + button to add your other computers
    • Using a computer’s name as its screen name is recommended
    • Choose desired screen options on the Add Screen dialog
  • Use the controls under Links to link screens together
    • Click (once) on the server’s name in the Screens list
    • Choose the screen to the left of the server; use — if there is no screen to the left of the server
    • Choose the screens to the right, above and below the server
    • Repeat the above steps for all the other screens
  • Click OK to close the Screens & Links dialog
  • If the server’s screen name is not the server’s computer name:
    • Click Advanced…
    • Enter the server’s screen name next to Screen Name
    • Click OK

Now click Start, your server is running!

Setup Synergy on Ubuntu

Open up your terminal and type:

sudo apt-get install synergy

Then type:

synergy -f ip-address-of-server

Now your client is running. You can move your mouse and see that it is working superbl

Autostart on GNOME

If you want to run your client on autostart, just go to Systems > Preferences > Sessions

Click Add and put the following:

Name: Synergy
Command: synergyc -f ip-address-of-server

Click OK, restart and your DONE!

I learned all these from:

* http://synergy2.sourceforge.net/index.html

* https://help.ubuntu.com/community/SynergyHowto