Skip to main content

Posts

Ubuntu 11.04 Standard Install and Basic post install configuration

Install Ubuntu 11.04 Simply use the CD, DVD or USB to install vanilla Ubuntu Linux install. Setup Static Network Interface configuration Uninstall Network Manager so that your network does not rely on your desktop login. sudo apt-get remove --purge network-manager* cat /etc/network/interfaces auto lo iface lo inet loopback auto eth1 iface eth1 inet static address 192.168.0.2 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 #auto wlan2 #iface wlan2 inet static #wpa-ssid SSID #wpa-psk PASSPHRASEORKEY #address 192.168.0.3 #netmask 255.255.255.0 #network 192.168.0.0 #broadcast 192.168.0.255 #gateway 192.168.0.1 Setup DNS or Nameservers for dns resolution Network Manager automatically tries to populate nameservers upon initial configuration so if you uninstalled network manager dns entries may still exist in config file. Modify /etc/resolv.conf to update your nameservers that I usualy use Google...

How to recover encrypted home folder on Ubuntu 11.04

How to set up Home directory encryption in Ubuntu 11.04 Install ecryptfs-utils sudo apt-get install ecryptfs-utils ecryptfs-setup-private Enter your account password and then passphrase. Your passphrase is different from your login. Logout, and Log back in to establish the mount Accessing your encrypted folder from Live CD, another machine or as a secondary drive. You first need to establish the secondary drive in working order. You can try to mount it in readonly mode to protect your data from any accidents. sudo mkdir /media/sda1 sudo mount /dev/sda1 /media/sda1 sudo mount -o remount,ro /dev/sda1 (for remounting it as readonly) sudo ecryptfs-recover-private /media/sda1/home/user/.Private [sudo] password for kamran: ****** INFO: Searching for encrypted private directories (this might take a while)... INFO: Found [/media/sda1/home/.ecryptfs/user/.Private]. Try to recover this directory? [Y/n]: y INFO: Enter your LOGIN passphrase... Passphrase: ********* Inserted auth tok wi...

Universal Oaths

As a human it is your responsiblity to live your life by some rules that you believe in and are not wrong. An oath of righous person: Stand without fear if you haven't done wrong. Live for truth and never compromise youf life for lie. Listen to your heart and do the right. Safegaurd the rightous helpless humans. There are many

How to set up Postfix as email MTA to send outbound emails on Ubuntu

It is usually nightmere getting outbound emails working on your Linux installation however usually following below instructions should get it working for you easily. Assumptions: It is a Ubuntu/Debian 11.04 or similar desktop or server install, including other variences such as Xubuntu, Lubuntu, Kubuntu etc. You only want to send outbound emails originated from this computer. You do not have a SMTP relay for sending or receiving emails. Smarthost is used for message delivery without any need of SMTP relays. Install Postfix MTA and MailX programs sudo apt-get install postfix mailutils Configure Postfix sudo dpkg-reconfigure postfix Read given options and select OK General type of mail configuration select "Satellite System". System Mail Name "yourFQCN.com", you can select a FQDN and doesn't have to be on this server. SMTP relay host - Make it blank by deleting smtp.localdomain Root and postmaster mail recipient - enter your Ubuntu...

Ubuntu 11.04 Grub2 stuck on menu, not loading any option automatically and no countdown

Don't know why or what causes it so far and there are many open bugs on Ubuntu or Debian for grub2 related issues which may also seem to be related, however it seems to be actually more related to recordfail event variable. Recordfail is is a grub environment variable which is set to stop grub on boot following a boot that failed or had issues. This provides user a degree of control and option to control how they want to deal with the system issues. This variable is not being reset and every subsequent boot will stop on grup options. Running following command seems to fix the issue once but stuck again on grub boot indicates that there are some issues with boot up or system start. $ grub-editenv list  recordfail=1 $ sudo grub-editenv /boot/grub/grubenv unset recordfail Another suggestion is to change timeout=-1 to timeout=5 in /boot/grub/grub.cfg, but obviously this is not stopping the grub on menu options even if there was errors with failures and instead would delay boot by ...

Oracle Application Express (APEX/HTMPDB) Global System Variable or Subtitutes

If you are using a static value number of times in your Oracle Application Express (APEX) application that you have to change on all occurances if the value had changed. For example if you had a system with a url used all over pages and had changed you would have to go and change the variable defined in every page for it to take correct effect throughout application. There is a way to define a global variable as long as you have a static value to go in it. Please find below how you define and use this global system variable in apex applications. Login to application express as Administrator. Click Application Builder Select the application. Go to Shared Components Click  Globalization Attributes under Globalization section Select Definition tab Select Subtitutions tab Here you can define Subtitution Strings with their corresponding values For example you can define string "MYEXTERNALURL" with value "http://www.mydomainname.com" and click Apply Chang...
For your Eyes Only تغافل شعار آشنا مرا اذیتوں کی تمام نشتر مری رگوں میں اتر کر بڑی محبت سے پوچھتا ہے تمہاری آنکھوں کو کیا ہوا ہے A poem from Ruby Niazi of Bhakkar