How To mount ISO images in FreeBSD and Linux
An ISO image is an archive file (disk image) of an optical disc using a conventional ISO (International Organization for Standardization) format. ISO image files typically have a file extension of .ISO.
The name "ISO" is taken from the ISO 9660 file system used with CD-ROM media, but an ISO image can also contain UDF file system because UDF is backward-compatible to ISO 9660.
1. Procedure to mount ISO images under Linux
You can mount an ISO image via the loop device under Linux. It's possible to specify transfer functions using loop device.
Print This PostWorkaround for HTC Hero Sync Problem in Windows 7 – 3 easy steps
Many user who are running Windows 7 are having trouble syncing their HTC Hero to their computer, as the driver is not installed properly in Microsoft Windows 7. The following guide is a workaround.
In order to get HTC Hero synchronizes with Windows 7 do the following:
1. Download latest synchronization tool from HTC, namely HTC Sync.
2. Install HTC Sync program on the computer. At this moment, your computer still unable to recognize your phone.
3. Manually update the HTC drivers for Windows 7, using the following driver
Print This PostRPM Package manager – Using RPM Commands
RPM Package Manager is a package management system. The name RPM refers to two things: a software package file format, and software packaged in this format.
This document contains an overview of the principal RPM commands for installing, uninstalling, upgrading, querying, listing and checking RPM packages on your Linux system.
To install a RPM package, use the command:
# rpm -ivh foo-1.1-2.i386.rpm
Take a note that RPM packages have a file of names like foo-1.1-2.i386.rpm, which include the package name (foo), version (1.1), release (2), and architecture (i386).
Print This PostHow To Access SAMBA shares through SSH in Linux
You can access Samba shares by using SSH tunneling. We need a host computer (x.y.z.w) and a destination computer (192.168.0.1, is located in the x.y.z.w network), we'll use adi as username and pass as password.
First we'll create a new mount directory:
# mkdir -p /mnt/share
Now we connect to it:
# ssh -N -L 139:192.168.0.1:139 adi@x.y.z.w
Now we have to run the following commands:
# umount /mnt/share
# mount -t smbfs -o username=adi,workgroup=WORKGROUP,password=pass,port=139,dmask=770,fmask=660,netbiosname=computer1 //localhost/share /mnt/share
x.y.z.w=computer's IP address
192.168.0.1=destination computer
adi=samba username
WORKGROUP=your workgroup
pass=password for the share
How To Reset MySQL Password
1. Stop MySQL server
# /usr/local/etc/rc.d/mysql-server stop
2. Start MySQL server with skip grant table mode
# mysqld_safe –skip-grant-tables &
Output:
[1] 5187
# Starting mysqld daemon with databases from /var/db/mysql
3. Login as user root without password
# mysql -u root -p
Print This PostHow To Reset Keyring Password in Ubuntu
GNOME Keyring is a daemon application designed to take care of the user's security credentials, such as user names and passwords. The sensitive data is encrypted and stored in a keyring file in the users home folder. The default keyring uses the login password for encryption, so users don't need to remember yet another password.
In order to reset the password for Keyring, you will have to delete the keyring files and then start from scratch entering all your password
# rm ~/.gnome2/keyrings/*.keyring
You should be greeted by this prompt when you try
How To extract a single file from an archive
To extract a single file from an archive, do the following:
# tar zxf archfile.tgz –include=”filetoextract”
You can use patterns as well:
# tar zxf archfile.tgz –include=”filetoextract*”
‘filetoextract’ should contain the full path.
To check file’s full path, do the following:
# tar tf archfile.tgz
Print This PostHow To Improve the Speed of Firefox 3 in Linux
We all know Firefox is a memory hog. To speed things up, do the following:
Open Firefox and type about:config in the address bar.
Click the “I’ll be careful, I promise“ button
Use the search bar above to look for network.http.pipelining and double click on it to set it’s value to True.
Create a new boolean value named network.http.pipelining.firstrequest and set it to True.
Find network.http.pipelining.maxrequests and change its value to 8.
Look for network.http.proxy.pipelining and set it to True.
Create two new integers named nglayout.initialpaint.delay and content.notify.interval, set them to 0.
Restart your browser.
Enjoy!
Print This Post10 Linux Tips and Tricks
Here you will find a collection of usefull tips and tricks for Linux-based Operating Systems.
1. How to remove a file with a dash as first character?
If you accidentally created a file with a "-" in the beginning then you want to remove it, you have to do :
# rm ./-filename
or
# rm -- -filename
2. How to set-up nice welcome messages?
It's not actually a tip, it's just a nice thing that will make every login more cooler.
Go to http://www.fi
How To Recover the root Password in FreeBSD
The password cannot be recovered. The following procedure will allow you to change the root password.
Do the following:
- when the following boot message appears
Hit [ENTER] to boot immediately, or any other key for command prompt.
Booting [kernel] in 10 seconds...
hit a key, just pick one EXCEPT the ENTER key. You'll get a prompt like:
disk1s1a:>
- type the following commands:
disk1s1a:>unload all
disk1s1a:>load kernel
disk1s1a:>boot -s
The boot process will now start, just wait until it asks you for a shell. Just hit
ENTER and 'sh' will be used as shell.
If you type 'mount' you will see that only your root partition ( / ) is mounted, you will have to mount 'usr' partition as well.
#mount /dev/ad0s1f /usr
Now you have to mount root partition as read-write enabled. Use the following command:
#mount -u /
The root partition should now be mounted read-write. Now you can use 'passwd' program to
change the root password.
#passwd
That's all, reboot the system and login with the new password.
Print This Post