Sunday, May 22, 2011
Sunday, March 13, 2011
Changing DNS of my Ubuntu server
This is related to my September 2010 post on how to configure a static IP address for a computer.
I had to revisit that post and change the IP address again today, after having bought a new router with a new LAN configuration.
Here is the how-to for specifying an explicit DNS server, to guarantee that the Ubuntu SSH server will have Internet as well.
Edit this file in the terminal:
Changes:
1. Remove the "domain-name-servers" from the request directive.
2. Modify the line:
For my case, using Sun Broadband (Huawei usb modem), it was:
Taken from this Ubuntu Forum thread.
I had to revisit that post and change the IP address again today, after having bought a new router with a new LAN configuration.
Here is the how-to for specifying an explicit DNS server, to guarantee that the Ubuntu SSH server will have Internet as well.
Edit this file in the terminal:
sudo nano etc/dhcp3/dhclient.conf
Changes:
1. Remove the "domain-name-servers" from the request directive.
2. Modify the line:
prepend domain-name-servers 127.0.0.1;by changing 127.0.0.1 to the DNS server of your Internet connection.
For my case, using Sun Broadband (Huawei usb modem), it was:
prepend domain-name-servers 202.138.128.50,202.138.128.54;
Taken from this Ubuntu Forum thread.
Friday, March 4, 2011
PLDT WeRoam on Linux Mint 10 (or Ubuntu 10.10)
These PLDT support guys don't have a clue how to support their product for Linux.
Major turn-off.
I didn't have to install those drivers in their website for my version of Linux Mint.
All I had to do was plug in the ZTE MF627 modem in my USB slot and Linux Mint automatically detected the modem.
These are the settings in my network connection:
Number: *99#
User name: pldt@weroam
Password: pldt
APN: weroam
Network ID:
Type: 3g (UMTS/HSDPA)
PPP Settings:
Allow PAP as the only method.
Uncheck Use point-to-point encryption (MPPE)
Check Allow BSD, Deflate, and TCP header compression
Major turn-off.
I didn't have to install those drivers in their website for my version of Linux Mint.
All I had to do was plug in the ZTE MF627 modem in my USB slot and Linux Mint automatically detected the modem.
These are the settings in my network connection:
Number: *99#
User name: pldt@weroam
Password: pldt
APN: weroam
Network ID:
Type: 3g (UMTS/HSDPA)
PPP Settings:
Allow PAP as the only method.
Uncheck Use point-to-point encryption (MPPE)
Check Allow BSD, Deflate, and TCP header compression
Friday, February 11, 2011
How to resize pictures in Ubuntu
Quick way to have the ability to resize big pictures. Very useful when you upload pictures to the web a lot (e.g. Facebook)
Then restart Nautilus:
When in want of resizing, right-click on the picture (or pictures) to resize, and select resize pictures from the context menu.
sudo apt-get install nautilus-image-converter
Then restart Nautilus:
sudo killall nautilus
When in want of resizing, right-click on the picture (or pictures) to resize, and select resize pictures from the context menu.
Sunday, February 6, 2011
A dark theme for Geany
Been always partial to dark themes for my editors. Studying PHP, and using Geany, I got this excellent theme.
Downloaded the zip file from code.google.com
extracted to a subfolder in my Downloads folder, e.g. darktheme
From a terminal window,
then still in the terminal,
And this is how it looks.
Update:
This theme (from Mozilla bespin) looks promising. Gotten from github.
Downloaded the zip file from code.google.com
extracted to a subfolder in my Downloads folder, e.g. darktheme
From a terminal window,
ls ~/Downloads/darktheme
then still in the terminal,
sudo cp -r ~/Downloads/darktheme/*.* ~/.config/geany/filedefs
And this is how it looks.
Update:
This theme (from Mozilla bespin) looks promising. Gotten from github.
Sunday, January 30, 2011
virtualbox stuff
Version 4.x changes the game somewhat from version 3.x.
To enable USBs, you'd need to download a separate file called extensions pack. USB is NOT included in the vbox additions, as in earlier versions.
Download the extensions pack using your host browser, not the guest VM.
Then shut down your VM (if it's running), and install it under File-Preferences-Extensions.
Then, THEN, make sure your Linux user id belongs to the group vboxusers. System-Administration-Users and Groups, under Ubuntu's main menu.
Only then did my USB drive work inside the guest machine.
---
Import/Export appliance - it works. I exported from v3.1 (still under the Sun logo), to v4.0.2 (Oracle logo). Different machines. Installed ssh-server on the destination laptop, installed filezilla on the source laptop, did the export locally, then did a sftp to copy the 3 virtualbox files, then on the destination laptop, did the import.
The 3 files generated during export were:
1. *.mf
2. *.ovf
3. *.vmdk (the virtual hard disk)
To enable USBs, you'd need to download a separate file called extensions pack. USB is NOT included in the vbox additions, as in earlier versions.
Download the extensions pack using your host browser, not the guest VM.
Then shut down your VM (if it's running), and install it under File-Preferences-Extensions.
Then, THEN, make sure your Linux user id belongs to the group vboxusers. System-Administration-Users and Groups, under Ubuntu's main menu.
Only then did my USB drive work inside the guest machine.
---
Import/Export appliance - it works. I exported from v3.1 (still under the Sun logo), to v4.0.2 (Oracle logo). Different machines. Installed ssh-server on the destination laptop, installed filezilla on the source laptop, did the export locally, then did a sftp to copy the 3 virtualbox files, then on the destination laptop, did the import.
The 3 files generated during export were:
1. *.mf
2. *.ovf
3. *.vmdk (the virtual hard disk)
Saturday, January 29, 2011
how to view local php files
Here's just so I won't forget.
Currently my home laptop have these packages installed:
1. mysql-server, and dependencies
2. phpmyadmin, and dependencies
3. php5, and dependencies
Now wanting to play around with PHP scripting, without installing LAMP, I found out here that the default location where I should start putting my PHP files would be in /var/www.
Putting any PHP file in this directory, then viewing in my browser via http://localhost/ works.
However, I want to have my own webdev directory, under my own home folder. Trying out the tips of this link.
Great tutorial - it works!
Currently my home laptop have these packages installed:
1. mysql-server, and dependencies
2. phpmyadmin, and dependencies
3. php5, and dependencies
Now wanting to play around with PHP scripting, without installing LAMP, I found out here that the default location where I should start putting my PHP files would be in /var/www.
Putting any PHP file in this directory, then viewing in my browser via http://localhost/
However, I want to have my own webdev directory, under my own home folder. Trying out the tips of this link.
Great tutorial - it works!
Subscribe to:
Posts (Atom)
