tar -tvf filename.tar
Wednesday, March 30, 2011
Friday, March 25, 2011
Thursday, June 3, 2010
Blog Moved to Wordpress
Blog moved to http://techienotes.info which redirects to http://mytechnicalthoughts.wordpress.com
Wednesday, May 26, 2010
New Primary HDD: A full Ubuntu backup & restoration experience (Draft)
Steps:
- Use "SystemRescueCD"
- "fsarchiver savefs"
- "fsarchiver restfs"
- mount /dev/sda1 /mnt
mount /dev/sda2 /mnt/boot #skip this if don't have a separate /boot partition
grub2-install --root-directory=/mnt/ /dev/sda
- Original Disk Space used on the HDD to backup: 45 GB
- Size of the backup images using "fsarchiver" default settings: 30 GB
- Time taken to restore the whole HDD: around 45 min.
- Bootloader restoration (grub2): 1 min.
Tuesday, May 18, 2010
Install Bluecurve theme on Ubuntu box
Here's the way to install Redhat's most famous theme "Bluecurve":
It worked me on Ubuntu 10.04
http://ubuntuforums.org/showthread.php?t=342060
It worked me on Ubuntu 10.04
http://ubuntuforums.org/showthread.php?t=342060
Monday, May 17, 2010
convert files from one encoding to another using iconv
I have subtitles that was written on M$ windows that were saved using WINDOWS-1256 encoding and were not working on my Linux box.
I found this command to convert from one encoding to another:
iconv -f WINDOWS-1256 <Ice_age_3.sub> Ice_age_3_utf8.sub
I found this command to convert from one encoding to another:
iconv -f WINDOWS-1256 <Ice_age_3.sub> Ice_age_3_utf8.sub
Thursday, May 13, 2010
Display CPU Temperature Graphically using a Panel Applet in Ubuntu
"sudo apt-get install sensors-applet"
Right-click on any panel and add the new applet, then easily configure it to display the temperature, fan speed, HDD temperature ...etc
Right-click on any panel and add the new applet, then easily configure it to display the temperature, fan speed, HDD temperature ...etc
know the return value of a native (c) program in linux
Hi folks
use this command:
echo $?
to know the return value of a native program in Linux.
try it yourself:
scenario 1:
scenario 2:
use this command:
echo $?
to know the return value of a native program in Linux.
try it yourself:
scenario 1:
more
echo $? #(watch the result, it will be 1, which means unsuccess)
scenario 2:
echo "hello world" > file
more file
echo $? #(watch the result, it will be 0, means success)
Wednesday, May 12, 2010
Create NTFS Partition with gparted in Ubuntu
The "ntfs" option is dimmed by default, to enable it you should install the necessary package: "sudo apt-get install ntfsprogs"
That's it, just re-open gparted and you're ready to go :)
That's it, just re-open gparted and you're ready to go :)
Get CPU Temperature From Command Line in Ubuntu
more /proc/acpi/thermal_zone/THM0/temperature
more /proc/acpi/thermal_zone/THM1/temperature
As I have two processors "THM0" and "THM1"
Source
more /proc/acpi/thermal_zone/THM1/temperature
As I have two processors "THM0" and "THM1"
Source
Permanently Blacklist a Kernel Module in Ubuntu
- Edit "/etc/modprobe.d/blacklist.conf"
- Add the module you want to remove, e.g. to blacklist the "kvm_intel" module, add this line "blacklist kvm_intel"
Thursday, May 6, 2010
Disable a Laptop's Touchpad in Ubuntu Karmic (and later as I well I guess)
- Applications -> Ubuntu Software Center
- Search for Touchpad
- System -> Preferences -> Touchpad
- Untick "Enable Touchpad"
Tuesday, May 4, 2010
How to uncompress zip file on AIX
To uncompress a zip file on AIX, use "unzip" command:
unzip file_name.zip
unzip file_name.zip
Friday, April 30, 2010
Install Linux Distro. without burning on CDs
While searching, I found this cool program that enables you to burn Linux Distro. on USB Devices
http://unetbootin.sourceforge.net/
http://unetbootin.sourceforge.net/
Download Internet Files from the terminal in Ubuntu
wget url
e.g. wget http://files.ubuntu-manual.org/manuals/getting-started-with-ubuntu/10.04/en_US/screen/Getting%20Started%20with%20Ubuntu%2010.04.pdf
Wednesday, April 28, 2010
Change core file path for IBM HTTP Server 2.0.47
To change the default path where the core file is dumped for IBM HTTP Server 2.0.47 on AIX
1- Go to IBM HTTP server conf directory (ex: /usr/IBMIHS/conf)
2- Open httpd.conf
3- Edit the "CoreDumpDirectory" to the required directory (ex: CoreDumpDirectory "/usr/IBMIHS/corefiles")
1- Go to IBM HTTP server conf directory (ex: /usr/IBMIHS/conf)
2- Open httpd.conf
3- Edit the "CoreDumpDirectory" to the required directory (ex: CoreDumpDirectory "/usr/IBMIHS/corefiles")
Kill signal to dump core file
To kill a process and make it dump a core file, use the "6" signal
kill -6 PID
kill -6 PID
How to enable full core on AIX
1- To obtain full core files on AIX, set the following ulimit options:
ulimit -c unlimited turn on corefiles with unlimited size
ulimit -n unlimited allows an unlimited number of open file
descriptors
ulimit -d unlimited sets the user data limit to unlimited
ulimit -f unlimited sets the file limit to unlimited
You can display the current ulimit settings with:
ulimit -a
2- Set the following in smitty:
1. Start smitty as root
2. Go to System Environments -> Change/Show Characteristics of Operating System
3. Set the Enable full CORE dump option to TRUE
Alternatively, you can run chdev -l sys0 -a fullcore='true' as root.
You can check the setting with lsattr -D -c sys -a fullcore -H, which should produce output similar to this:
attribute deflt description user_settable
fullcore false Enable full CORE dump True
Reference: IBM Web Site, AIX Help
ulimit -c unlimited turn on corefiles with unlimited size
ulimit -n unlimited allows an unlimited number of open file
descriptors
ulimit -d unlimited sets the user data limit to unlimited
ulimit -f unlimited sets the file limit to unlimited
You can display the current ulimit settings with:
ulimit -a
2- Set the following in smitty:
1. Start smitty as root
2. Go to System Environments -> Change/Show Characteristics of Operating System
3. Set the Enable full CORE dump option to TRUE
Alternatively, you can run chdev -l sys0 -a fullcore='true' as root.
You can check the setting with lsattr -D -c sys -a fullcore -H, which should produce output similar to this:
attribute deflt description user_settable
fullcore false Enable full CORE dump True
Reference: IBM Web Site, AIX Help
Monday, April 26, 2010
Accesing Linux partitions (ext2/ext3) from Windows
If you need to gain read/write access for Linux partitions from windows box, http://www.fs-driver.org/ provides you with a simple program that enables you to gain read/write access to ext2/ext3 partitions.
Subscribe to:
Posts (Atom)


