Linux basic configurations - linux tutorials http://www.basicconfig.com/taxonomy/term/7 en Configure MariaDB in Slackware 14.1 http://www.basicconfig.com/linuxsoftware/configure-mariadb-slackware-141 <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>MariaDB is a default database server pre-configured in Slackware 14.1 replacing the MySQL server. This tutorial will guide a Slackware beginner on how to setup and configure MariaDB in the most basic way. Oh don't worry about the command. MariaDB uses <em>mysql</em> as well. Let's begin the first step:</p> <p>1- Install MariaDB system database:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">mysql_install_db --user=mysql</span><br /> Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...<br /> OK<br /> Filling help tables...<br /> OK<br /><br /> To start mysqld at boot time you have to copy<br /> support-files/mysql.server to the right place for your system<br /><br /> PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !<br /> To do so, start the server, then issue the following commands:<br /><br /> '/usr/bin/mysqladmin' -u root password 'new-password'<br /> '/usr/bin/mysqladmin' -u root -h slackware password 'new-password'<br /><br /> Alternatively you can run:<br /> '/usr/bin/mysql_secure_installation'<br /><br /> which will also give you the option of removing the test<br /> databases and anonymous user created by default. This is<br /> strongly recommended for production servers.<br /><br /> See the MariaDB Knowledgebase at http://kb.askmonty.org or the<br /> MySQL manual for more instructions.<br /><br /> You can start the MariaDB daemon with:<br /> cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'<br /><br /> You can test the MariaDB daemon with mysql-test-run.pl<br /> cd '/usr/mysql-test' ; perl mysql-test-run.pl<br /><br /> Please report any problems with the '/usr/bin/mysqlbug' script!<br /><br /> The latest information about MariaDB is available at http://mariadb.org/.<br /> You can find additional information about the MySQL part at:<br /> http://dev.mysql.com<br /> Support MariaDB development by buying support/new features from<br /> Monty Program Ab. You can contact us about this at sales@montyprogram.com.<br /> Alternatively consider joining our community based development effort:<br /> http://kb.askmonty.org/en/contributing-to-the-mariadb-project/<br /><br /> root@slackware:~#<br /></code></td> </tr></table><p>2- Start MariaDB daemon. We need to make mysql daemon script executable to make it start at boot: </p> <table><tr><td><code>root@slackware:~# <span style="color:red;">chmod 755 /etc/rc.d/rc.mysqld </span><br /> root@slackware:~#<br /></code></td> </tr></table><p>Now we can start the daemon:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">/usr/bin/mysqld_safe --datadir='/var/lib/mysql' </span><br /> [1] 1714<br /> root@slackware:~# 140105 12:48:13 mysqld_safe Logging to '/var/lib/mysql/slackware.err'.<br /> 140105 12:48:13 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql<br /></code></td> </tr></table><p>3- Set root password or better, we can run '/usr/bin/mysql_secure_installation' which provides more options. The below example shows a finished running tool. You can choose what you want to do with your system.</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">/usr/bin/mysql_secure_installation</span><br /> /usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not found<br /><br /> NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB<br /> SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!<br /><br /> In order to log into MariaDB to secure it, we'll need the current<br /> password for the root user. If you've just installed MariaDB, and<br /> you haven't set the root password yet, the password will be blank,<br /> so you should just press enter here.<br /><br /> Enter current password for root (enter for none): <span style="color:red;">Just press Enter here</span><br /> OK, successfully used password, moving on...<br /><br /> Setting the root password ensures that nobody can log into the MariaDB<br /> root user without the proper authorisation.<br /><br /> Set root password? [Y/n] <span style="color:red;">Y</span><br /> New password: <span style="color:red;">Enter password for MariaDB. It's invisible</span><br /> Re-enter new password: <span style="color:red;">Repeat password for MariaDB. It's invisible</span><br /> Password updated successfully!<br /> Reloading privilege tables..<br /> ... Success!<br /><br /> By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment.<br /><br /> Remove anonymous users? [Y/n] <span style="color:red;">Y</span><br /> ... Success!<br /><br /> Normally, root should only be allowed to connect from 'localhost'. This<br /> ensures that someone cannot guess at the root password from the network.<br /><br /> Disallow root login remotely? [Y/n] <span style="color:red;">Y</span><br /> ... Success!<br /><br /> By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment.<br /><br /> Remove test database and access to it? [Y/n] <span style="color:red;">Y</span><br /> - Dropping test database...<br /> ... Success!<br /> - Removing privileges on test database...<br /> ... Success!<br /><br /> Reloading the privilege tables will ensure that all changes made so far<br /> will take effect immediately.<br /><br /> Reload privilege tables now? [Y/n] <span style="color:red;">Y</span><br /> ... Success!<br /><br /> Cleaning up...<br /><br /> All done! If you've completed all of the above steps, your MariaDB<br /> installation should now be secure.<br /><br /> Thanks for using MariaDB!<br /> root@slackware:~#<br /></code></td> </tr></table><p>4- Test mariaDB:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">mysql -u root -p</span><br /> Enter password: <span style="color:red;">Enter MariaDB password. It's invisible.</span><br /> Welcome to the MariaDB monitor. Commands end with ; or \g.<br /> Your MariaDB connection id is 9<br /> Server version: 5.5.32-MariaDB MariaDB Server<br /><br /> Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.<br /><br /> Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.<br /><br /> MariaDB [(none)]&gt;<br /></code></td> </tr></table><p>5- Create a new database:</p> <table><tr><td><code>MariaDB [(none)]&gt; <span style="color:red;">create database basicconfdb;</span><br /> Query OK, 1 row affected (0.00 sec)<br /><br /> MariaDB [(none)]&gt;quit;<br /></code></td> </tr></table><p>6- That's all.</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/tags/mariadb" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">MariaDB</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div></div></div> Tue, 07 Jan 2014 07:55:09 +0000 jinlusuh 315 at http://www.basicconfig.com http://www.basicconfig.com/linuxsoftware/configure-mariadb-slackware-141#comments Install Drupal 6 website backup from hosting server in Slackware 14.1 http://www.basicconfig.com/linuxsoftware/install-drupal-6-website-backup-hosting-server-slackware-141 <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Install a backup for your website is a good practice. Here is a tutorial on how to backup your Drupal website and install it in Slackware 14.1 64bit example. </p> <h2>Prerequisites</h2> <ol><li>Download latest website database from your hosting server</li> <li>Download <em>files</em> directory from your hosting server</li> <li>Download <em>sites</em> directory from your hosting server</li> <li>Download Drupal core from drupal website</li> <li>Configure MariaDB in Slackware 14.1</li> <li>Configure web server in Slackware 14.1</li> </ol><h2>Configure MariaDB in Slackware 14.1</h2> <p>If you haven't setup MariaDB in Slackware yet, that's the first thing you have to do. See our tutorial on <a href="/linuxsoftware/configure-mariadb-slackware-141" target="_blank">how to configure MariaDB in Slackware 14.1</a>. It's an easy few steps because Slackware has MariaDB pre-configured.</p> <h2>Configure Web Server in Slackware 14.1</h2> <p>Slackware has Web Server pre-configured as well. All configuration files are in <em>/etc/httpd</em> directory. Here is a simple Web Server setup and configuration for our Drupal website.</p> <p>First, we edit <em>/etc/httpd/httpd.conf</em> file.</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">vim /etc/httpd/httpd.conf</span><br /></code></td> </tr></table><p>1. Add:</p> <table><tr><td><code># DirectoryIndex: sets the file that Apache will serve if a directory<br /> # is requested.<br /> #<br /><ifmodule dir_module=""><br /> DirectoryIndex index.html <span style="color:red;">index.php index.htm index.xhtml</span><br /></ifmodule><br /> #<br /></code></td> </tr></table><p>2. Enable PHP:</p> <table><tr><td><code># Uncomment the following line to enable PHP:<br /> #<br /><span style="color:red;">Include /etc/httpd/mod_php.conf</span><br /></code></td> </tr></table><p>3. Enable mod_rewrite:</p> <table><tr><td><code><span style="color:red;">LoadModule rewrite_module lib64/httpd/modules/mod_rewrite.so</span></code></td> </tr></table><p>4. Edit 'AllowOverride None' to 'AllowOverride All' in the main directive for DocumentRoot:</p> <table><tr><td><code>DocumentRoot "/srv/httpd/htdocs"<br /><directory><br /> #<br /> # Possible values for the Options directive are "None", "All",<br /> # or any combination of:<br /> # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews<br /> #<br /> # Note that "MultiViews" must be named *explicitly* --- "Options All"<br /> # doesn't give it to you.<br /> #<br /> # The Options directive is both complicated and important. Please see<br /> # http://httpd.apache.org/docs/2.4/mod/core.html#options<br /> # for more information.<br /> #<br /> Options Indexes FollowSymLinks<br /><br /> #<br /> # AllowOverride controls what directives may be placed in .htaccess files.<br /> # It can be "All", "None", or any combination of the keywords:<br /> # AllowOverride FileInfo AuthConfig Limit<br /> #<br /> #AllowOverride None<br /><span style="color:red;">AllowOverride All</span><br /><br /> #<br /> # Controls who can get stuff from this server.<br /> #<br /> Require all granted<br /></directory><br /></code></td> </tr></table><p>5. Save and exit file (Ctrl+ZZ).</p> <h2>Configure PHP</h2> <p>1. Edit <em>/etc/httpd/php.ini</em> file:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">vim /etc/httpd/php.ini</span></code></td> </tr></table><p>2. Set timezone to your location:</p> <table><tr><td><code>[Date]<br /> ; Defines the default timezone used by the date functions<br /> ; http://php.net/date.timezone<br /> ;date.timezone =<br /><span style="color:red;">date.timezone = "US/Arizona"</span><br /></code></td> </tr></table><p>3. Change maximum allowed size for uploaded files:</p> <table><tr><td><code>; Maximum allowed size for uploaded files.<br /> ; http://php.net/upload-max-filesize<br /> ;upload_max_filesize = 2M<br /><span style="color:red;">upload_max_filesize = 8M</span><br /></code></td> </tr></table><p>4. Save and exit file (Ctrl+ZZ).</p> <p>5. Start web server:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">chmod 755 /etc/rc.d/rc.httpd</span><br /> root@slackware:~# <span style="color:red;">/etc/rc.d/rc.httpd start</span><br /></code></td> </tr></table><h2>Install and configure Drupal backup website in Slackware</h2> <p>1. Copy Drupal website backup directory from your hosting server to your Slackware <em>/var/www/htdocs/</em>. You can also use a clean drupal core downloaded from Drupal website:</p> <table><tr><td><code>root@slackware:/home/jinlusuh/Documents/basicconfig# <span style="color:red;">cp -R drupal-6.29/ /var/www/htdocs/</span></code></td> </tr></table><p>2. Rename the Drupal directory as necessary:</p> <table><tr><td><code>root@slackware:/home/jinlusuh/Documents/basicconfig# <span style="color:red;">mv /var/www/htdocs/drupal-6.29/ /var/www/htdocs/basicconfig</span></code></td> </tr></table><p>3. If you choose to use a clean drupal core, copy 'files' folder from your hosting website to the backup website in your Slackware (if you setup your Drupal website to use 'files' directory in the root instead of 'sites/default/files'):</p> <table><tr><td><code>root@slackware:/home/jinlusuh/Documents/basicconfig# <span style="color:red;">cp -R files/ /var/www/htdocs/basicconfig/</span></code></td> </tr></table><p>4. Give full permission to the 'files' directory:</p> <table><tr><td><code>root@slackware:/home/jinlusuh/Documents/basicconfig# <span style="color:red;">chmod 777 /var/www/htdocs/basicconfig/files </span></code></td> </tr></table><p><strong>Note</strong>: Don't forget 'tmp' directory should be created as well.</p> <p>5. Now copy your 'sites' directory from your hosting website to the backup website directory in your Slackware:</p> <table><tr><td><code>root@slackware:/home/jinlusuh/Documents/basicconfig# <span style="color:red;">cp -R sites/ /var/www/htdocs/basicconfig/</span></code></td> </tr></table><p>6. Edit <em>sites/default/setting.php</em>.</p> <table><tr><td><code>root@slackware:/var/www/htdocs/basicconfig/sites/default# <span style="color:red;">vim settings.php</span></code></td> </tr></table><p>Edit:</p> <table><tr><td><code>* Database URL format:<br /> * $db_url = 'mysql://username:password@localhost/databasename';<br /> * $db_url = 'mysqli://username:password@localhost/databasename';<br /> * $db_url = 'pgsql://username:password@localhost/databasename';<br /> */<br /> $db_url = 'mysql://<span style="color:red;">root:admin@localhost/basicconfdb</span>';<br /> $db_prefix = '';<br /></code></td> </tr></table><p>Edit:</p> <table><tr><td><code># $cookie_domain = 'example.com';<br /> $cookie_domain = <span style="color:red;">'localhost/website-dir-name'</span>;<br /></code></td> </tr></table><p>Set 'cookie domain' to your local website directory (Drupal website directory in your Slackware). If you don't set this or forgot to change the name, you won't be able to login to your Drupal website with Access Denied "You are not authorized to access this page" error.</p> <p>7. Import drupal website database from your hosting server to the new MariaDB database in Slackware:</p> <table><tr><td><code>root@slackware:/var/www/htdocs/basicconfig/sites/default# <span style="color:red;">mysql -u root -p</span><br /> Enter password:<br /> Welcome to the MariaDB monitor. Commands end with ; or \g.<br /> Your MariaDB connection id is 1<br /> Server version: 5.5.32-MariaDB MariaDB Server<br /><br /> Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.<br /><br /> Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.<br /><br /> MariaDB [(none)]&gt; <span style="color:red;">use basicconfdb;</span><br /> Database changed<br /> MariaDB [basicconfdb]&gt; <span style="color:red;">source /home/jinlusuh/basicconfdb.sql;</span><br /></code></td> </tr></table><p><strong>Note</strong>: Change the correct path to where your database located. Normally, the backup database downloaded from hosting server would be archived and compressed in 'your-database.sql.bz2' or 'your-database.zip'. Uncompress it first.</p> <p>8. Now open web browser and type 'localhost/your-website-directory-name'. </p> <h2>Final check</h2> <p>1. Check File System directory existence (url:localhost/your-website/admin/settings/file-system)</p> <p>2. Check Status Report (url:localhost/your-website/admin/reports/status)</p> <h2>Problem and trouble-shooting </h2><p>Check your website status (url:your-website/admin/reports/status). Normally, the 'files' directory would be the problem because of permission.</p> <table><tr><td>Image module directories</td> <td>Missing directory</td> </tr><td>The image module's image directory files/content is missing.</td> <td></td> </table><p>Change permission for 'files/content' directory and other directories as well:</p> <table><tr><td><code>root@slackware:/var/www/htdocs/basicconfig/files# <span style="color:red;">chmod 777 content/</span><br /> root@slackware:/var/www/htdocs/basicconfig/files# <span style="color:red;">chmod 777 content/temp/</span><br /> root@slackware:/var/www/htdocs/basicconfig/files# chmod 777 color/<br /> root@slackware:/var/www/htdocs/basicconfig/files# chmod 777 download/<br /> root@slackware:/var/www/htdocs/basicconfig/files# chmod 777 imagepicker/<br /> root@slackware:/var/www/htdocs/basicconfig/files# chmod 777 images/<br /></code></td> </tr></table><p>That's it for now. If you have problem installing Drupal backup from your hosting server to your Slackware by following this tutorial, please comment. </p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/9" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">software</a></div><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/10" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">drupal</a></div></div></div> Tue, 07 Jan 2014 03:29:57 +0000 jinlusuh 314 at http://www.basicconfig.com http://www.basicconfig.com/linuxsoftware/install-drupal-6-website-backup-hosting-server-slackware-141#comments Install virtualbox on Ubuntu http://www.basicconfig.com/linuxsoftware/install-virtualbox-ubuntu <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This is a guide on how to setup Virtualbox on Ubuntu. We use 'virtualbox-qt 4.1.2-dfsg-1ubuntu1', a Virtualbox package for Ubuntu Desktop version 11.10 for this example.</p> <h3>Download and install Virtualbox</h3> <p>It's easier to download and install Virtualbox using Ubuntu Software Center. Open Ubuntu Software Center from the left panel menu on the desktop and type 'virtualbox' in the search textbox. See screenshot example below:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/virtualbox01.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/virtualbox01.png" alt="Ubuntu Virtualbox installation image" class="imgp_img" width="300" height="182" /></a></p> <p>Choose Virtualbox from the result and click install button to begin the installation. If you want to read more information about this software, click 'more about' link before you click the install button. There are some comments and reviews from other users about the software.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/virtualbox-about02.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/virtualbox-about02.png" alt="Virtualbox brief description image" class="imgp_img" width="300" height="182" /></a></p> <p>After we click the 'Install' button, Ubuntu need to authenticate, so we have to provide our account password.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/virtualbox-authenticate03.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/virtualbox-authenticate03.png" alt="Ubuntu install software authenticate image" class="imgp_img" width="300" height="196" /></a></p> <p>Wait for download to finish and Ubuntu Software Center will automatically install Virtualbox for us.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/virtualbox-install04.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/virtualbox-install04.png" alt="Ubuntu Virtualbox install image" class="imgp_img" width="300" height="182" /></a></p> <h2>Setting up virtualbox on Ubuntu</h2> <p>Now that we have Virtualbox installed in our computer, we are going to setup a virtual machine on Ubuntu. There is an explanation here in this window about Virtualbox Manager. It's important so here what it says:</p> <p>Oracle VM Virtualbox Manager: <i>The left part of this window is a list of all virtual machines on your computer. The list is empty now because you haven't created any virtual machines yet. In order to create a new virtual machine, press the New button in the main tool bar located at the top of the window. You can press the F1 key to get instant help, or visit <a href="https://www.virtualbox.org">virtualbox website</a> for the latest information and news.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/virtualbox-manager01.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/virtualbox-manager01.png" alt="Virtualbox Manager image" class="imgp_img" width="300" height="225" /></a></p> <p>At the top left of the window, there is a 'New' button. Click on this button to create a new virtual machine.</p> <p><b>VM Name and OS</b></p> <p>A new window pops up. This is a wizard to create a new virtual machine. Here is what it says:</p> <p>Oracle VM Virtualbox Manager: <i>Enter a name for the new virtual machine and select the type of the guest operating system you plan to install onto the virtual machine. The name of the virtual machine usually indicates its software and hardware configuration. It will be used by all VirtualBox components to identify your virtual machine.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/vm02-name-os-type.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/vm02-name-os-type.png" alt="Choose Virtualbox name and OS type image" class="imgp_img" width="300" height="199" /></a></p> <p>The instruction is clear. So type a name for our virtual machine's name such as 'Ubuntu Server'. In the OS Type section, choose 'Linux' for Operating System and 'Ubuntu' in Version. Click Next when you are done.</p> <p><b>Memory</b></p> <p>Now we need to provide memory size for our virtual machine. Here what it says in the wizard's window:</p> <p>Oracle VM Virtualbox Manager: <i>Select the amount of base memory (RAM) in megabytes to be allocated to the virtual machine. The recommended base memory size is 512 MB.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/vm03-memory.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/vm03-memory.png" alt="Virtualbox choose memory size image" class="imgp_img" width="300" height="199" /></a></p> <p>If you have large RAM in your computer (more than 4GB) and you are planning to install Ubuntu Desktop or Windows, then you can provide more memory size, for example 1024MB. Click Next when you are done.</p> <p><b>Create new virtual disk</b></p> <p>Our next task is to create hard disk for our virtual machine. Here is the explanation from Virtualbox Manager:</p> <p>Oracle VM Virtualbox Manager: <i>If you wish you can now add start-up disk to the new machine. You can either create a new disk or select one from the list or from another location using the folder icon. If you need a more complex virtual disk setup, you can skip this step and make the changes to the machine settings once the machine is created. The recommended start-up disk is 8.00GB.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/vm04-virtual-hard-disk.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/vm04-virtual-hard-disk.png" alt="Virtualbox create new hard disk image" class="imgp_img" width="300" height="199" /></a></p> <p>This is our first time setting up Ubuntu Virtualbox, so choose create new hard disk. Click Next to define our hard disk space.</p> <p><b>Welcome to the new virtual disk creation wizard</b></p> <p>Another wizard is going to help us create hard disk space for our virtual machine. The wizard's explanation is excellent:</p> <p>Create New Virtual Disk Wizard: <i>This wizard will help you to create a new virtual disk for your virtual machine. Use the Next button to go to the next page of the wizard and the Back button to return to the previous page. You can also press Cancel if you want to cancel the execution of this wizard. Please choose the type of file that you would like to use for the new virtual disk. If you do not need to use it with other virtualization software you can leave this setting unchanged.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/create-virtual-disk01.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/create-virtual-disk01.png" alt="Virtualbox hard disk creation image" class="imgp_img" width="300" height="218" /></a></p> <p>We are going to install Ubuntu server as guest operating system in this virtual machine. So we take the default setting and click Next.</p> <p><b>Virtual disk storage details</b></p> <p>Create New Virtual Disk Wizard: <i>Please choose whether the new virtual disk file should be allocated as it is used or if it should be created fully allocated. A dynamically allocated virtual disk file will only use space on your physical hard disk as it fills up, although it will not shrink again automatically when space on it is freed. A fixed size virtual disk file may take longer to create on some systems but is often faster to use.</i></p> <p><b>Virtual disk file location and size</b></p> <p>Create New Virtual Disk Wizard: <i>Please type the name of the new virtual disk file into the box below or click on the folder icon to select a different folder to create the file in.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/create-virtual-disk02.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/create-virtual-disk02.png" alt="Image" class="imgp_img" width="300" height="218" /></a></p> <p><b>Summary</b></p> <p>This window shows a summary of how we configured our virtual machine:</p> <p>Create New Virtual Disk Wizard: <i>You are going to create a new virtual disk with the following parameters:</i></p> <table><tr><td><code>File type:<br /> VDI (VirtualBox Disk Image)<br /> Details:<br /> Fixed size storage<br /> Location:<br /> /home/kkcj/VirtualBox VMs/Ubuntu Server/Ubuntu Server.vdi<br /> Size:<br /> 10.00 GB (10737418240 B) </code></td> </tr></table><p>Create New Virtual Disk Wizard: <i>If the above settings are correct, press the Create button. Once you press it the new virtual disk file will be created.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/create-virtual-disk03.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/create-virtual-disk03.png" alt="Image" class="imgp_img" width="300" height="218" /></a></p> <p>This is it. Click Create button to begin creating a new virtual disk. The process will take about a minute (or less). When it's done. we'll get a new virtual machine in the left pane of the window as in the picture below:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/done-vm-disk-created.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/done-vm-disk-created.png" alt="Image" class="imgp_img" width="300" height="225" /></a></p> <p>That's it. Now prepare Ubuntu server installation disk to install our first virtual machine.</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/9" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">software</a></div></div></div> Mon, 31 Oct 2011 07:25:31 +0000 jinlusuh 75 at http://www.basicconfig.com http://www.basicconfig.com/linuxsoftware/install-virtualbox-ubuntu#comments Cannot boot Slackware Linux after installation http://www.basicconfig.com/linuxtips/cannot-boot-linux-after-installation-slackware <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Sometimes it happens. Here is a tip on how to boot into your Linux and fix the problem. Normally, this problem always happen because of wrong Lilo configuration. For example, you choose to store Lilo in / directory instead of mbr during Lilo setup when installing Slackware. Anyway, whatever the reason is, you need to configure Lilo again.</p> <p>If you create a boot disk or usb boot disk during installation setup, you just need to boot from it. If not, then you can boot from Slackware installation cd or dvd. For this particular example, we use Slackware dvd. See steps below:</p> <p>1) Boot from Slackware installation CD/DVD.</p> <p>2) At boot prompt, enter: <span style="color:red;">root=/dev/<em>sda1</em> rdinit= ro </span></p> <p><strong>Note</strong>: Choose this option if you install LILO in root (/) partition. Replace <em>sda1</em> with your root partition. Press Enter to boot. If you got an error such as 'There is no Linux image in this partition' or you don't remember what your Linux partition is, continue to step 3 below.</p> <p>3) Press Enter to use default kernel. Login as 'root'.</p> <p>The above steps are exactly the same as the steps when you install Slackware. See <a href="http://www.basicconfig.com/slackware_first_installation_screen" target="_blank">Slackware 14.1 installation guide</a> if you are not sure. It is a step by step instructions with pictures. When you are done, you'll have a shell prompt. If your problem is that you choose to store Lilo in / partition, then try setting boot flag to the / partition. This can be done with typing 'fdisk /dev/sda' at the command prompt. Please replace /sda with your hard disk name. The next step is to set boot flag which is shown below. The steps are in the fdisk tool's prompt.</p> <p>1) Press 'p' to print the partition table. Please identify your root partition.</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">fdisk /dev/sda</span><br /><br /> Command (m for help): <span style="color:red;">p</span><br /><br /> Disk /dev/sda: 500.1 GB, 500107862016 bytes<br /> 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors<br /> Units = sectors of 1 * 512 = 512 bytes<br /> Sector size (logical/physical): 512 bytes / 512 bytes<br /> I/O size (minimum/optimal): 512 bytes / 512 bytes<br /> Disk identifier: 0x43934f6e<br /><br /> Device Boot Start End Blocks Id System<br /> /dev/sda1 2048 2048 0 82 Linux swap<br /> /dev/sda2 2048 104859647 52428800 83 Linux<br /> /dev/sda3 104859648 209717247 52428800 83 Linux<br /> /dev/sda4 209717248 976773167 383527960 83 Linux<br /><br /> Command (m for help): </code></td> </tr></table><p>2) Press 'a' to set a bootable disk partition. Enter number of the partition you wish to set a boot flag.</p> <table><tr><td><code>Command (m for help): <span style="color:red;">a</span><br /> Partition number (1-4): <span style="color:red;">2</span><br /><br /> Command (m for help): p<br /><br /> Disk /dev/sda: 500.1 GB, 500107862016 bytes<br /> 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors<br /> Units = sectors of 1 * 512 = 512 bytes<br /> Sector size (logical/physical): 512 bytes / 512 bytes<br /> I/O size (minimum/optimal): 512 bytes / 512 bytes<br /> Disk identifier: 0x43934f6e<br /><br /> Device Boot Start End Blocks Id System<br /> /dev/sda1 2048 2048 0 82 Linux swap<br /> /dev/sda2 * 2048 104859647 52428800 83 Linux<br /> /dev/sda3 104859648 209717247 52428800 83 Linux<br /> /dev/sda4 209717248 976773167 383527960 83 Linux<br /><br /> Command (m for help): </code></td> </tr></table><p>Note:<i>The example above shows /dev/sda2 is set as a bootable disk partition.</i></p> <p>3) Press 'w' to write the changes and exit.</p> <p>Try reboot your Linux computer and see if it solve the problem. If not, then we need to reconfigure Lilo. Here are the steps:</p> <p>1) Boot from Slackware installation CD/DVD.</p> <p>2) At boot prompt, press Enter to use default kernel.</p> <p>3) Login as 'root'.</p> <p>4) At the command prompt, type:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">mount /dev/sda2 /mnt</span><br /> root@slackware:~# </code></td> </tr></table><p>To begin reconfigure Lilo, we need chroot environment. Issue the command below:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">chroot /mnt</span></code></td> </tr></table><p>Configure Lilo again using the command 'liloconfig' as example below:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">liloconfig</span></code></td> </tr></table><p>Install Lilo - Choose 'Expert'.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/install-lilo01.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/install-lilo01.png" alt="Install Lilo image" class="imgp_img" /></a></p> <p>Expert Lilo installation - Choose 'Begin'</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/expert-lilo-installation02.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/expert-lilo-installation02.png" alt="Expert Lilo installation image" class="imgp_img" /></a></p> <p>Optional Lilo append - Just press Enter.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/optional-lilo-append03.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/optional-lilo-append03.png" alt="Optional Lilo append image" class="imgp_img" /></a></p> <p>Use UTF-8 text console - Choose 'No'.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/use-utf-8-text-console04.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/use-utf-8-text-console04.png" alt="Use UTF-8 text console image" class="imgp_img" /></a></p> <p>Configure Lilo to use frame buffer console - Choose 'Standard' or anything else if you know what you are doing.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/config-lilo-to-use-frame-buffer05.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/config-lilo-to-use-frame-buffer05.png" alt="Configure Lilo to use frame buffer console image" class="imgp_img" /></a></p> <p>Select Lilo target location - Choose 'MBR'.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/select-lilo-target-location06.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/select-lilo-target-location06.png" alt="Select Lilo target location image" class="imgp_img" /></a></p> <p>Confirm location to install Lilo - Enter your hard disk name.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/confirm-location-to-install-lilo07.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/confirm-location-to-install-lilo07.png" alt="Confirm location to install Lilo image" class="imgp_img" /></a></p> <p>Choose Lilo timeout - '5 seconds' is a good idea.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/choose-lilo-timeout08.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/choose-lilo-timeout08.png" alt="Choose Lilo timeout image" class="imgp_img" /></a></p> <p>Optional Slackware logo boot screen - Yes or No is alright.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/optional-slackware-logo-boot-screen08.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/optional-slackware-logo-boot-screen08.png" alt="Optional Slackware logo boot screen image" class="imgp_img" /></a></p> <p>Next is to 'Add a Linux partition to the Lilo Config'. Press OK.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/expert-lilo-installation-linux01.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/expert-lilo-installation-linux01.png" alt="Image" class="imgp_img" /></a></p> <p>Select Linux partition - Select using arrow key and press Enter to choose.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/select-linux-partition02.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/select-linux-partition02.png" alt="Select Linux partition image" class="imgp_img" /></a></p> <p>Select partition name for the hard disk - Name it 'Slackware' or anything you want. This is the menu appeared in the boot manager.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/select-partition-name03.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/select-partition-name03.png" alt="Select partition name for the hard disk image" class="imgp_img" /></a></p> <p>Expert Lilo installation - Finally, install Lilo.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/Install-lilo.png" title="" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/Install-lilo.png" alt="Expert Lilo installation - install lilo image" class="imgp_img" /></a></p> <p>That's it. Type 'exit' to exit chroot environment. Now you can reboot and see if your Linux boot this time. It should!</p> <p><strong>Note:</strong>If you have problem or got error running 'liloconfig' tool, you can still edit lilo.conf file manually. This should be done before you exit chroot environtment. You can mount your linux partition again and chroot into the mounted directory as steps above.</p> <p>1. Type <span style="color:red;">vim /etc/lilo.conf</span>. Check which hard disk partition lilo choose to boot:</p> <table><tr><td><code># LILO configuration file<br /> # generated by 'liloconfig'<br /> #<br /> # Start LILO global section<br /> boot = </code></td> </tr></table><p><strong>Note:</strong> If it's blank, enter hard disk name where you install Linux. For example, if you install Linux in the first hard disk in your computer: boot = /dev/sda. </p> <p>2. Check 'Linux bootable partition config' at the bottom of lilo.conf file. See the example below:</p> <table><tr><td><code># Linux bootable partition config begins<br /> image = /boot/vmlinuz<br /> root = /dev/sda1<br /> label = Slacker<br /> read-only # Partitions should be mounted read-only for checking<br /> # Linux bootable partition config ends</code></td> </tr></table><p><strong>Note:</strong>Make sure you have them. You can save and exit vim using <em>:wq</em> command. </p> <p>3. Run: <span style="color:red;">lilo</span> to overwrite the changes.</p> <p>4. Type: <span style="color:red;">exit</span> to exit chroot environment and reboot your Linux system.</p> <p>That's all.</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div></div></div> Wed, 15 Jun 2011 05:14:27 +0000 jinlusuh 143 at http://www.basicconfig.com http://www.basicconfig.com/linuxtips/cannot-boot-linux-after-installation-slackware#comments Mount cdrom Linux http://www.basicconfig.com/linuxtips/mount-cdrom-linux <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>In Slackware Linux, you need to manually mount the cdrom from command line terminal before you are able to use it. In order to mount the cdrom, you must have root privilege. So if you are going to mount the cdrom from Slackware 13.1 x-window(KDE), open command line terminal from Start --&gt; Applications --&gt; Systems --&gt; Terminal. In Slackware 12.2 x-window kde, Start --&gt; System --&gt; Konsole. You can also switch to the command line terminal to another virtual terminal by pressing Alt+(F2-F6) and login as a normal user.</p> <p>What you need to do now is to gain root privilege. Invoke 'su -' command and enter root password. Now that we are already root, we are set to mount the cdrom. The mount syntax is 'mount /dev/cdrom /mount-point'. See the example below:</p> <table><tr><td><code>luzar@slackware:~$ <span style="color:red;">su -</span><br /> Password:<br /><br /> Psychology. Mind over matter.<br /> Mind under matter? It doesn't matter.<br /> Never mind.<br /><br /> root@slackware:~# <span style="color:red;">mount /dev/cdrom /mnt/cdrom/</span><br /> mount: block device /dev/sr0 is write-protected, mounting read-only<br /> root@slackware:~#<br /></code></td> </tr></table><p>If you are finish using your cd, you need to unmount the cdrom drive or the disk won't eject. To unmount the cdrom in Linux, use 'umount /mnt/cdrom' command. Change the '/mnt/cdrom' to where you mounted your cdrom. See umount example below:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">umount /mnt/cdrom/</span><br /> root@slackware:~#<br /></code></td> </tr></table><p>Now you can press the eject button on the cdrom drive to manually eject cd. Also, you must not be on the mounted directory when issuing the umount command otherwise you'll get the 'device is busy' error message:</p> <table><tr><td><code>root@slackware:/mnt/cdrom# umount /mnt/cdrom/<br /><span style="color:green;">umount: /mnt/cdrom: device is busy.</span><br /> (In some cases useful info about processes that use<br /> the device is found by lsof(8) or fuser(1))<br /> root@slackware:/mnt/cdrom#<br /></code></td> </tr></table><p>That's it. However, the above mount command only valid for the first cdrom drive and only if you are using Slackware Linux. Ubuntu desktop automatically mount cdrom, there's no problem. If you are using other Linux distributions that need to manually mount the cdrom, keep on reading.</p> <p>Here are some useful information about cdrom. If you have many cdrom drives such as a cd writer, dvd drive and dvd writer, then you should know that Linux assigns a unique name for each device. For example, if sata devices, the first cdrom would be /dev/sr0, the cd writer is /dev/sr1, the dvd writer is /dev/sr2 and so on. Linux detects sata devices as scsi devices. You can confirm it using 'cat /proc/scsi/scsi' command. If it's ide devices, the name can be different. You can check using command 'dmesg | grep cd' or 'dmesg | grep dvd'. See examples below:</p> <p>Example checking cdrom using 'dmesg | grep cd' command.</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">dmesg | grep cd</span><br /><span style="color:green;">sr0</span>: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray<br /><span style="color:green;">sr1</span>: scsi3-mmc drive: 52x/52x writer dvd-ram cd/rw xa/form2 cdda tray<br /> Bla bla bla<br /> root@slackware:~#<br /></code></td> </tr></table><p>Example checking cdrom using 'cat /proc/scsi/scsi' command.</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">cat /proc/scsi/scsi</span><br /> Attached devices:<br /> Host: scsi2 Channel: 00 Id: 00 Lun: 00<br /> Vendor: ATA Model: WDC WD1600AAJS-0 Rev: 05.0<br /> Type: Direct-Access ANSI SCSI revision: 05<br /><span style="color:green;">Host: scsi3 Channel: 00 Id: 00 Lun: 00<br /> Vendor: HL-DT-ST Model: DVDRAM GSA-H62N Rev: CL00<br /> Type: CD-ROM ANSI SCSI revision: 05</span><br /> Host: scsi4 Channel: 00 Id: 00 Lun: 00<br /> Vendor: ATA Model: ST3250820SV Rev: 3.AC<br /> Type: Direct-Access ANSI SCSI revision: 05<br /><span style="color:green;">Host: scsi5 Channel: 00 Id: 00 Lun: 00<br /> Vendor: TSSTcorp Model: CDDVDW SH-S223C Rev: SB02<br /> Type: CD-ROM ANSI SCSI revision: 05</span><br /> Bla bla bla<br /> root@slackware:~#<br /></code></td> </tr></table><p>It's also fun using command line terminal to mount cdrom. You can open cdrom tray using the 'eject' command. When you invoke the eject command, the first cdrom tray will open. So you put the cd on the cd tray. Now, to close the tray, issue 'eject -T' command.</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">eject</span><br /> root@slackware:~# <span style="color:red;">eject -T</span><br /></code></td> </tr></table><p>If you want to open the second cdrom drive's tray, invoke the command 'eject /dev/sr1' (change the name sr1 to your cdrom drive!). See the example below on how to open and close second cdrom tray:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">eject /dev/sr1</span><br /> root@slackware:~# <span style="color:red;">eject -T /dev/sr1</span><br /></code></td> </tr></table><p>You can mount cdrom on other cdrom drive (for example, on second cdrom drive) using the name of the drive. This command also applicable to those using other Linux distributions. Basiccally, you just select which cdrom device to mount and mount it somewhere. See example below:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">mount /dev/sr1 /mnt/cdrom/</span><br /> mount: block device /dev/sr1 is write-protected, mounting read-only<br /> root@slackware:~#<br /></code></td> </tr></table><p>If you are trying to mount an empty cdrom drive, Linux will give you 'No medium found' error message as in the example below:</p> <table><tr><td><code>root@slackware:~# mount /dev/sr1 /mnt/cdrom/<br /><span style="color:green;">mount: No medium found</span><br /> root@slackware:~#<br /></code></td> </tr></table><p>Last note, we can copy files from cd even if we are a normal user. That means from x-window, we can navigate to the directory we mounted the cdrom and copy files to the computer using mouse as usual. However, we can't copy files from computer to the cd. The cd is mounting as a read-only. That's all. Have fun!</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div></div></div> Sun, 12 Dec 2010 05:08:41 +0000 jinlusuh 155 at http://www.basicconfig.com http://www.basicconfig.com/linuxtips/mount-cdrom-linux#comments Install phpmyadmin in Ubuntu 9.04 http://www.basicconfig.com/software/install-phpmyadmin-in-ubuntu <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>PhpMyAdmin is a graphical user interface tool to manage mysql database. It's very popular and used by many web hosting providers around the world. This tutorial is a guide on how to install phpmyadmin in Ubuntu 9.04. Prerequisite is you need to have mysql server already installed in your system. The instructions are in step by step, however, it's not in proper order. You need to read it first and make your own notes after finished reading it.</p> <p>Open command line terminal and install phpMyAdmin using apt-get:</p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">apt-get install phpmyadmin</span><br /> Reading package lists... Done<br /> Building dependency tree<br /> Reading state information... Done<br /> Some packages could not be installed. This may mean that you have<br /> requested an impossible situation or if you are using the unstable<br /> distribution that some required packages have not yet been created<br /> or been moved out of Incoming.<br /> The following information may help to resolve the situation:<br /><br /> The following packages have unmet dependencies:<br /> phpmyadmin: Depends: php5-mcrypt but it is not going to be installed<br /> E: Broken packages<br /></code></td> </tr></table><p>Let's check why php5-mcrypt is not going to be installed. We can do this by trying to install php5-mcrypt using apt-get:</p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">apt-get install php5-mcrypt</span><br /> Reading package lists... Done<br /> Building dependency tree<br /> Reading state information... Done<br /> Some packages could not be installed. This may mean that you have<br /> requested an impossible situation or if you are using the unstable<br /> distribution that some required packages have not yet been created<br /> or been moved out of Incoming.<br /> The following information may help to resolve the situation:<br /><br /> The following packages have unmet dependencies:<br /> php5-mcrypt: Depends: libltdl3 (&gt;= 1.5.2-2) but it is not installable<br /> E: Broken packages<br /></code></td> </tr></table><p>Now we got libltdl3 (&gt;= 1.5.2-2) but it is not installable dependencies message.</p> <p>All right now something is not right. If you get the same dependencies messages as above, let's check everything required to install phpmyadmin. First check whether we have php5 installed in our Ubuntu system:</p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">apt-get install php5</span><br /></code></td> </tr></table><p>For a complete php5 installation in Ubuntu, you can check the following tutorial: <a href="http://www.basicconfig.com/software/install-php5-in-ubuntu" target="_blank">How to install php5 in Ubuntu 9.04</a>.</p> <p>Next step is we need to install <b>libltdl3</b> package. Get it from <a href="http://packages.debian.org/lenny/i386/libltdl3/download" target="_blank">Debian website</a>. When you finished download the file, install it using dpkg command. Here is the command example:</p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">dpkg --install /home/kkcjlab/Desktop/libltdl3_1.5.26-4+lenny1_i386.deb</span><br /> (Reading database ... 198567 files and directories currently installed.)<br /> Preparing to replace libltdl3 1.5.26-4+lenny1 (using .../libltdl3_1.5.26-4+lenny1_i386.deb) ...<br /> Unpacking replacement libltdl3 ...<br /> Setting up libltdl3 (1.5.26-4+lenny1) ...<br /><br /> Processing triggers for libc6 ...<br /> ldconfig deferred processing now taking place<br /> root@kkcjlab-server:~#<br /></code></td> </tr></table><p>We can now install php5-mcrypt which is needed to install phpmyadmin.</p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">apt-get install php5-mcrypt</span><br /> Reading package lists... Done<br /> Building dependency tree<br /> Reading state information... Done<br /> The following NEW packages will be installed:<br /> php5-mcrypt<br /> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br /> Need to get 12.9kB of archives.<br /> After this operation, 45.1kB of additional disk space will be used.<br /> WARNING: The following packages cannot be authenticated!<br /> php5-mcrypt<br /> Install these packages without verification [y/N]? Y<br /> Get:1 http://packages.dotdeb.org stable/all php5-mcrypt 5.2.13-0.dotdeb.1 [12.9kB]<br /> Fetched 12.9kB in 1s (9006B/s)<br /> Selecting previously deselected package php5-mcrypt.<br /> (Reading database ... 198466 files and directories currently installed.)<br /> Unpacking php5-mcrypt (from .../php5-mcrypt_5.2.13-0.dotdeb.1_i386.deb) ...<br /> Setting up php5-mcrypt (5.2.13-0.dotdeb.1) ...<br /><br /> root@kkcjlab-server:~#<br /></code></td> </tr></table><p>Everything is ready to begin the phpmyadmin installation. Use apt-get command to install phpmyadmin as in the example below:</p> <p>Note:<br /><i>During installation process, you need to configure phpmyadmin password and mysql password. See the screenshots below phpmyadmin installation example.</i></p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">apt-get install phpmyadmin</span><br /> Reading package lists... Done<br /> Building dependency tree<br /> Reading state information... Done<br /> The following extra packages will be installed:<br /> dbconfig-common<br /> The following NEW packages will be installed:<br /> dbconfig-common phpmyadmin<br /> 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.<br /> Need to get 4101kB of archives.<br /> After this operation, 15.4MB of additional disk space will be used.<br /> Do you want to continue [Y/n]? y<br /> Get:1 http://my.archive.ubuntu.com jaunty-updates/main dbconfig-common 1.8.40ubuntu1 [488kB]<br /> Get:2 http://my.archive.ubuntu.com jaunty-updates/universe phpmyadmin 4:3.1.2-1ubuntu0.2 [3613kB]<br /> Fetched 4101kB in 41s (98.9kB/s)<br /> Preconfiguring packages ...<br /> Selecting previously deselected package dbconfig-common.<br /> (Reading database ... 198469 files and directories currently installed.)<br /> Unpacking dbconfig-common (from .../dbconfig-common_1.8.40ubuntu1_all.deb) ...<br /> Selecting previously deselected package phpmyadmin.<br /> Unpacking phpmyadmin (from .../phpmyadmin_4%3a3.1.2-1ubuntu0.2_all.deb) ...<br /> Processing triggers for man-db ...<br /> Setting up dbconfig-common (1.8.40ubuntu1) ...<br /><br /> Setting up phpmyadmin (4:3.1.2-1ubuntu0.2) ...<br /> dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf<br /><br /> Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version<br /><br /> Creating config file /etc/phpmyadmin/config-db.php with new version<br /> granting access to database phpmyadmin for phpmyadmin@localhost: success.<br /> verifying access for phpmyadmin@localhost: success.<br /> creating database phpmyadmin: success.<br /> verifying database phpmyadmin exists: success.<br /> populating database via sql... done.<br /> dbconfig-common: flushing administrative password<br /> * Reloading web server config apache2 [ OK ]<br /><br /> root@kkcjlab-server:~#<br /></code></td> </tr></table><p>Here are phpmyadmin package configuration screenshots:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/configuring-phpmyadmin.png" title="Configuring phpmyadmin" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/configuring-phpmyadmin.png" alt="Configuring phpmyadmin" /></a></p> <p>Configuring database's administrative user:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/phpmyadmin-password.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/phpmyadmin-password.png" alt="Configuring database admiistrative user image" /></a></p> <p>Provide password for phpmyadmin to register with the database server:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/phpmyadmin-mysql-passwd.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/phpmyadmin-mysql-passwd.png" alt="Image" /></a></p> <p>Confirm password for phpmyadmin:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/phpmyadmin-passwd-confirm.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/phpmyadmin-passwd-confirm.png" alt="Confirm password for phpmyadmin image" /></a></p> <p>That's all. To test the newly installed phpmyadmin, open web browser and type <b>localhost/phpmyadmin</b> in the url. You should get the phpmyadmin login page as screenshot below:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/phpmyadmin-login-page.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/phpmyadmin-login-page.png" alt="phpmyadmin login page image" /></a></p> <p>phpmyadmin login page</p> <p>That's all.</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/9" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">software</a></div></div></div> Thu, 15 Jul 2010 05:28:56 +0000 jinlusuh 88 at http://www.basicconfig.com http://www.basicconfig.com/software/install-phpmyadmin-in-ubuntu#comments How to install php5 in Ubuntu 9.04 http://www.basicconfig.com/software/install-php5-in-ubuntu <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This is a guide on how to install php5 in Ubuntu 9.04 using command line. We are using apt-get package management system to install the package. It is pretty simple, straight forward instructions. There are only two important things to do here, install php5 and remove all packages that are no longer required. Here are all the steps you need:</p> <p>Install php5 using apt-get command:</p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">apt-get install php5</span><br /> Reading package lists... Done<br /> Building dependency tree<br /> Reading state information... Done<br /> The following packages were automatically installed and are no longer required:<br /> libsm-dev libice-dev libqt4-assistant x11proto-xext-dev libatk1.0-dev<br /> debhelper libaudio-dev intltool-debian x11proto-kb-dev libglib2.0-dev<br /> libdjvulibre-dev libjasper-dev x11proto-xinerama-dev libpango1.0-dev<br /> libqt4-test x11proto-render-dev libxi-dev libxmu-headers libxrender-dev<br /> po-debconf libflac++6 libqt4-opengl-dev libgraphviz-dev libcairo2-dev<br /> mesa-common-dev libxdmcp-dev libsysfs-dev libdirectfb-extra libglu1-xorg-dev<br /> libsqlite0-dev libfontconfig1-dev libmail-sendmail-perl libdirectfb-dev<br /> x11proto-composite-dev xtrans-dev libtool libqt4-xmlpatterns libqt4-dev<br /> libmagickwand-dev x11proto-core-dev libxcursor-dev gettext libqt4-help<br /> libexif-dev libglu1-mesa-dev x11proto-randr-dev x11proto-damage-dev<br /> autotools-dev libxcb-render-util0-dev qt4-qmake libxt-dev libgtk2.0-dev<br /> libxmu-dev libxext-dev libxdamage-dev libmagickcore-dev libmagick++-dev<br /> libwmf-dev libxml2-dev x11proto-input-dev libltdl7-dev libfreetype6-dev<br /> libqt4-svg x11proto-fixes-dev libpthread-stubs0-dev xlibmesa-gl-dev<br /> libmagick++1 libxau-dev libpthread-stubs0 libxcomposite-dev libgl1-mesa-dev<br /> liblcms1-dev libxrandr-dev libexpat1-dev librsvg2-dev html2text<br /> libpixman-1-dev libxft-dev libx11-dev libopenexr-dev libxcb-render0-dev<br /> libxfixes-dev libmng-dev libxcb1-dev libqt4-scripttools libxinerama-dev<br /> libsys-hostname-long-perl libbz2-dev libilmbase-dev<br /> Use 'apt-get autoremove' to remove them.<br /> The following NEW packages will be installed:<br /> php5<br /> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br /> Need to get 1060B of archives.<br /> After this operation, 0B of additional disk space will be used.<br /> WARNING: The following packages cannot be authenticated!<br /> php5<br /> Install these packages without verification [y/N]?<br /></code></td> </tr></table><p>You can press <b>Y</b> and enter now to install php5 but in this tutorial, we are going to remove all packages that are no longer required first, so press <b>N</b> to stop the installation.</p> <p>We can use <b>apt-get autoremove</b> packages command to remove all packages that no longer required. Just select the first package and remove it as in the example below:</p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">apt-get autoremove libsm-dev libice-dev libqt4-assistant x11proto-xext-dev libatk1.0-dev</span><br /> Reading package lists... Done<br /> Building dependency tree<br /> Reading state information... Done<br /> The following packages were automatically installed and are no longer required:<br /> debhelper libaudio-dev intltool-debian x11proto-kb-dev libglib2.0-dev<br /> libdjvulibre-dev libjasper-dev x11proto-xinerama-dev libqt4-test<br /> x11proto-render-dev libxmu-headers libxrender-dev po-debconf libflac++6<br /> libgraphviz-dev mesa-common-dev libxdmcp-dev libsysfs-dev libdirectfb-extra<br /> libglu1-xorg-dev libsqlite0-dev libfontconfig1-dev libmail-sendmail-perl<br /> xtrans-dev libtool libqt4-xmlpatterns x11proto-core-dev gettext libqt4-help<br /> libexif-dev libglu1-mesa-dev x11proto-randr-dev autotools-dev<br /> libxcb-render-util0-dev qt4-qmake libxml2-dev x11proto-input-dev<br /> libltdl7-dev libfreetype6-dev libqt4-svg libpthread-stubs0-dev<br /> xlibmesa-gl-dev libmagick++1 libxau-dev libpthread-stubs0 libgl1-mesa-dev<br /> liblcms1-dev libexpat1-dev html2text libpixman-1-dev libxft-dev libx11-dev<br /> libopenexr-dev libxcb-render0-dev libmng-dev libxcb1-dev libqt4-scripttools<br /> libsys-hostname-long-perl libbz2-dev libilmbase-dev<br /> The following packages will be REMOVED:<br /> autotools-dev debhelper gettext html2text intltool-debian libatk1.0-dev<br /> libaudio-dev libbz2-dev libcairo2-dev libdirectfb-dev libdirectfb-extra<br /> libdjvulibre-dev libexif-dev libexpat1-dev libflac++6 libfontconfig1-dev<br /> libfreetype6-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev<br /> libglu1-xorg-dev libgraphviz-dev libgtk2.0-dev libice-dev libilmbase-dev<br /> libjasper-dev liblcms1-dev libltdl7-dev libmagick++-dev libmagick++1<br /> libmagickcore-dev libmagickwand-dev libmail-sendmail-perl libmng-dev<br /> libopenexr-dev libpango1.0-dev libpixman-1-dev libpthread-stubs0<br /> libpthread-stubs0-dev libqt4-assistant libqt4-dev libqt4-help<br /> libqt4-opengl-dev libqt4-scripttools libqt4-svg libqt4-test<br /> libqt4-xmlpatterns librsvg2-dev libsm-dev libsqlite0-dev<br /> libsys-hostname-long-perl libsysfs-dev libtool libwmf-dev libx11-dev<br /> libxau-dev libxcb-render-util0-dev libxcb-render0-dev libxcb1-dev<br /> libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev<br /> libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxml2-dev libxmu-dev<br /> libxmu-headers libxrandr-dev libxrender-dev libxt-dev mesa-common-dev<br /> po-debconf qt4-qmake x11proto-composite-dev x11proto-core-dev<br /> x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev<br /> x11proto-randr-dev x11proto-render-dev x11proto-xext-dev<br /> x11proto-xinerama-dev xlibmesa-gl-dev xtrans-dev<br /> 0 upgraded, 0 newly installed, 89 to remove and 0 not upgraded.<br /> After this operation, 117MB disk space will be freed.<br /> Do you want to continue [Y/n]?<br /></code></td> </tr></table><p>Now we can continue installing php5:</p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">apt-get install php5</span><br /> Reading package lists... Done<br /> Building dependency tree<br /> Reading state information... Done<br /> The following NEW packages will be installed:<br /> php5<br /> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.<br /> Need to get 1060B of archives.<br /> After this operation, 0B of additional disk space will be used.<br /> WARNING: The following packages cannot be authenticated!<br /> php5<br /> Install these packages without verification [y/N]?<br /></code></td> </tr></table><p>Press <b>Y</b> and Enter to install php5.</p> <table><tr><td><code>Install these packages without verification [y/N]? Y<br /> Get:1 http://packages.dotdeb.org stable/all php5 5.2.13-0.dotdeb.1 [1060B]<br /> Fetched 1060B in 0s (1154B/s)<br /> Selecting previously deselected package php5.<br /> (Reading database ... 198455 files and directories currently installed.)<br /> Unpacking php5 (from .../php5_5.2.13-0.dotdeb.1_all.deb) ...<br /> Setting up php5 (5.2.13-0.dotdeb.1) ...<br /> root@kkcjlab-server:~#<br /></code></td> </tr></table><p>That's all. Now you have php5 installed in your Ubuntu system.</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/9" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">software</a></div></div></div> Thu, 15 Jul 2010 02:48:37 +0000 jinlusuh 87 at http://www.basicconfig.com http://www.basicconfig.com/software/install-php5-in-ubuntu#comments Cannot delete read only files in virus infected thumb drive http://www.basicconfig.com/linuxtips/cannot-delete-read-only-files-virus-infected-thumb-drive <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This is a step by step guides on how to recover a virus infected thumb drive using Linux operating system. If a normal virus, we can just delete the virus file and related directories from the thumb drive. However, if the thumb drive has been infected by some viruses that created a read only files and input output error, that's trouble. This tutorial is a guide for those who need to fix this kind of problem. For this example, an input output error virus infected thumb drive and Ubuntu Desktop as Linux operating system are used.</p> <p>A thumb drive automatically detected and mounted in Ubuntu Desktop by default. If you change the configuration or if you are using other Linux distribution such as Slackware, you need to manually mount the thumb drive. See <a href="/linux/mount" target="_blank">How to mount and unmount usb drive or thumb drive in Linux</a> tutorial if you need help on this issue.</p> <p>Ubuntu Desktop opens the thumb drive directory if it has been successfully mounted. Click <b>View</b> menu and choose <b>Show Hidden Item</b> to view all files in the thumb drive. This tutorial shows a thumb drive that has been infected by viruses but cannot be cleaned. It has been deleted using Linux and all the infected files have been moved to <i>.Trash-1000</i> directory. When we open the '.Trash-1000' directory, we can see two sub-directories, 'files' and 'info'. See the example picture below:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/thumb-drive-virus01.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/thumb-drive-virus01.png" alt="Thumb drive folder image" /></a></p> <p>If we try to delete those files, we'll get the 'Read Only' error. See example picture below:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/thumb-drive-virus.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/thumb-drive-virus.png" alt="Error while deleting thumb drive folder image" /></a></p> <p>Now, open a command line terminal to see all the permissions in detail. We need root permission to complete this job, so type <i>sudo su</i> and enter your password if hate to type 'sudo' and provide password each time you need root privilege later. See the example below:</p> <table><tr><td><code>kkcjlab@kkcjlab-server:~$ <span style="color:red;">sudo su</span><br /> [sudo] password for kkcjlab:<br /> root@kkcjlab-server:/home/kkcjlab#<br /></code></td> </tr></table><p>Change into the thumb drive directory which is the /media/disk. Use Linux 'ls -al' command to view all files including hidden files. See all the steps in the example below:</p> <table><tr><td><code>root@kkcjlab-server:/home/kkcjlab# <span style="color:red;">cd /media/disk/</span><br /> root@kkcjlab-server:/media/disk# <span style="color:red;">ls -al</span><br /> total 1656<br /> drwx------ 4 kkcjlab root 4096 1970-01-01 07:30 .<br /> drwxr-xr-x 4 root root 4096 2010-04-07 11:16 ..<br /> drwx------ 2 kkcjlab root 4096 2010-03-07 18:04 B Borang Berkaitan Tugas Rasmi<br /> -rwx------ 1 kkcjlab root 1679360 2010-02-04 01:04 ELM 2005A.xls<br /> drwx------ 4 kkcjlab root 4096 2010-03-07 11:09 .Trash-1000<br /> root@kkcjlab-server:/media/disk#<br /></code></td> </tr></table><p>Let's see what happen when a thumb drive has been infected by viruses. The picture below shows the 'handout' directory that has been infected by a viruses viewed in GUI or x-window:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/thumbdrive-virus-handout-directory.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/thumbdrive-virus-handout-directory.png" alt="Thumb drive virus infected directory image" /></a></p> <p>This is what it looks like when we view using a command line terminal:</p> <table><tr><td><code>root@kkcjlab-server:/media/disk/.Trash-1000/files/kursus-joomla/handout# <span style="color:red;">ls -al</span><br /> ls: cannot access ═èu*E."╬╞: Input/output error<br /> ls: cannot access d-*üçÑyΓ.│ÿé: Input/output error<br /> ls: cannot access )4╒δ$¿╩ª.╧εm: Input/output error<br /> root@kkcjlab-server:/media/disk/.Trash-1000/files/kursus-joomla/handout# </code></td> </tr></table><p>If you plugged this thumb drive in Windows XP or Vista operating system, you'll get error when you try to unmount the drive. This thumb drive can't be unmount properly because Windows said that it's being used and ask you to close any open files. You need to shutdown the computer and pull off the thumb drive to properly unmount the drive.</p> <p>What you need to do now is just delete the directory, right? You are already root, so just enter 'rm -rf' command. So let's see what happen:</p> <table><tr><td><code>root@kkcjlab-server:/media/disk/.Trash-1000/files# <span style="color:red;">rm -rf kursus-joomla/</span><br /> rm: cannot remove `kursus-joomla/Joomla_1.5.14-Stable-Full_Package.zip': Read-only file system<br /> rm: cannot remove `kursus-joomla/handout/joomla_15_quickstart.pdf': Read-only file system<br /> rm: cannot remove `kursus-joomla/handout/joomla-installation.pdf': Read-only file system<br /> rm: cannot remove `kursus-joomla/handout/1.5_Installation_Manual_version_0.5.pdf': Read-only file system<br /> rm: cannot remove `kursus-joomla/joomla-installation.ppt': Read-only file system<br /> rm: cannot remove `kursus-joomla/joomla-installation.odp': Read-only file system<br /> rm: cannot remove `kursus-joomla/joomla-screen.odt': Read-only file system<br /></code></td> </tr></table><p>So, even as root you cannot remove the directory. Just forget about changing the directory permission. It fails too.</p> <p>Here is the easy solution. Copy all important files in the thumb drive to another directory in your Ubuntu Desktop. You need to format the whole thumb drive manually from the command line terminal using Linux fdisk command. Here are the complete steps:</p> <p>1) Check the thumb drive mount point using fdisk command:</p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">fdisk -l</span><br /><br /> Disk /dev/sda: 160.0 GB, 160041885696 bytes<br /> 255 heads, 63 sectors/track, 19457 cylinders<br /> Units = cylinders of 16065 * 512 = 8225280 bytes<br /> Disk identifier: 0xea4ba281<br /><br /> Device Boot Start End Blocks Id System<br /> /dev/sda1 1 12158 97659103+ 83 Linux<br /> /dev/sda2 12159 12523 2931862+ 82 Linux swap / Solaris<br /> /dev/sda3 * 12524 19457 55697355 83 Linux<br /><br /> Disk /dev/sdb: 4009 MB, 4009754624 bytes<br /> 51 heads, 51 sectors/track, 3010 cylinders<br /> Units = cylinders of 2601 * 512 = 1331712 bytes<br /> Disk identifier: 0x04030201<br /><br /> Device Boot Start End Blocks Id System<br /> /dev/sdb1 1 3011 3915204 b W95 FAT32<br /></code></td> </tr></table><p>2) Invoke the fdisk command below to open the thumb drive (We can see our thumb drive in this example is /dev/sdb. Please watch carefully what your thumb drive is.).</p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">fdisk /dev/sdb</span><br /><br /> The number of cylinders for this disk is set to 3010.<br /> There is nothing wrong with that, but this is larger than 1024,<br /> and could in certain setups cause problems with:<br /> 1) software that runs at boot time (e.g., old versions of LILO)<br /> 2) booting and partitioning software from other OSs<br /> (e.g., DOS FDISK, OS/2 FDISK<br /></code></td> </tr></table><p>3) Press <b>'p'</b> to print partition table available in the thumb drive:</p> <table><tr><td><code>Command (m for help): <span style="color:red;">p</span><br /><br /> Disk /dev/sdb: 4009 MB, 4009754624 bytes<br /> 51 heads, 51 sectors/track, 3010 cylinders<br /> Units = cylinders of 2601 * 512 = 1331712 bytes<br /> Disk identifier: 0x04030201<br /><br /> Device Boot Start End Blocks Id System<br /> /dev/sdb1 1 3011 3915204 b W95 FAT32<br /><br /> Command (m for help):<br /></code></td> </tr></table><p>4) Press <b>'d'</b> to delete a partition:</p> <table><tr><td><code>Command (m for help): <span style="color:red;">d</span><br /> Selected partition 1<br /></code></td> </tr></table><p>5) Press <b>'n'</b> to create a new partition. Enter 'p' for primary partition. Choose 1 for the first cylinder and just press enter to accept the default value for the last cylinder. See all the steps below:</p> <table><tr><td><code>Command (m for help): <span style="color:red;">n</span><br /> Command action<br /> e extended<br /> p primary partition (1-4)<br /><span style="color:red;">p</span><br /> Partition number (1-4): <span style="color:red;">1</span><br /> First cylinder (1-3010, default 1):<br /> Using default value 1<br /> Last cylinder, +cylinders or +size{K,M,G} (1-3010, default 3010):<br /> Using default value 3010<br /></code></td> </tr></table><p>6) Use 'p' to see the new partition that we just created:</p> <table><tr><td><code>Command (m for help): <span style="color:red;">p</span><br /><br /> Disk /dev/sdb: 4009 MB, 4009754624 bytes<br /> 51 heads, 51 sectors/track, 3010 cylinders<br /> Units = cylinders of 2601 * 512 = 1331712 bytes<br /> Disk identifier: 0x04030201<br /><br /> Device Boot Start End Blocks Id System<br /> /dev/sdb1 1 3010 3914479+ 83 Linux<br /></code></td> </tr></table><p>7) The new partition is Linux formatted file system. We don't want that. We need a Windows FAT file system like the original. The original id (see fdisk result above when we first print the partition table) is <b>'b'</b>. So press <b>'t'</b> to change file system id and enter the HEX Code, which is 'b'. See the steps below:</p> <table><tr><td><code>Command (m for help): <span style="color:red;">t</span><br /> Selected partition 1<br /> Hex code (type L to list codes): <span style="color:red;">b</span><br /> Changed system type of partition 1 to b (W95 FAT32)<br /><br /> Command (m for help): p<br /><br /> Disk /dev/sdb: 4009 MB, 4009754624 bytes<br /> 51 heads, 51 sectors/track, 3010 cylinders<br /> Units = cylinders of 2601 * 512 = 1331712 bytes<br /> Disk identifier: 0x04030201<br /><br /> Device Boot Start End Blocks Id System<br /> /dev/sdb1 1 3010 3914479+ b W95 FAT32<br /></code></td> </tr></table><p>8) Press 'a' to toggle a bootable flag for the new partition. Enter 1 for the first partition:</p> <table><tr><td><code>Command (m for help): <span style="color:red;">a</span><br /> Partition number (1-4): <span style="color:red;">1</span><br /><br /> Command (m for help): p<br /><br /> Disk /dev/sdb: 4009 MB, 4009754624 bytes<br /> 51 heads, 51 sectors/track, 3010 cylinders<br /> Units = cylinders of 2601 * 512 = 1331712 bytes<br /> Disk identifier: 0x04030201<br /><br /> Device Boot Start End Blocks Id System<br /> /dev/sdb1 * 1 3010 3914479+ b W95 FAT32<br /></code></td> </tr></table><p>9) Now press <b>'w'</b> to write all the changes and exit fdisk:</p> <table><tr><td><code>Command (m for help): <span style="color:red;">w</span><br /> The partition table has been altered!<br /><br /> Calling ioctl() to re-read partition table.<br /><br /> WARNING: Re-reading the partition table failed with error 16: Device or resource busy.<br /> The kernel still uses the old table.<br /> The new table will be used at the next reboot.<br /><br /> WARNING: If you have created or modified any DOS 6.x<br /> partitions, please see the fdisk manual page for additional<br /> information.<br /> Syncing disks.<br /> root@kkcjlab-server:~#<br /></code></td> </tr></table><p>10) Finally, format the partition using Linux 'mkfs' command:</p> <table><tr><td><code>root@kkcjlab-server:~# <span style="color:red;">umount /media/disk/</span><br /> root@kkcjlab-server:~# <span style="color:red;">mkfs -t vfat /dev/sdb1</span><br /> mkfs.vfat 3.0.1 (23 Nov 2008)<br /></code></td> </tr></table><p>That's all.</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div></div></div> Wed, 07 Apr 2010 07:01:56 +0000 jinlusuh 153 at http://www.basicconfig.com http://www.basicconfig.com/linuxtips/cannot-delete-read-only-files-virus-infected-thumb-drive#comments Linux desktop tutorials for beginner http://www.basicconfig.com/linux-desktop-tutorials-for-beginner <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><h2>Overview</h2> <p>Linux desktop is a Linux version customizes for end user. There is nothing special or big differences between Linux and Linux desktop. It's just phrases use to say that some tweaks have been done to the Linux network operating system so that a normal user will be able to use it in their daily job. Here are some <b>'tweaks'</b> that can be spotted in the desktop version of Linux:</p> <ul> <li>Boot directly into the xwindow (KDE or GNOME).</li> <li>Lots of GUI configuration tools.</li> </ul> <p>What really great about Linux desktop is the customizations of tools such as software management (install, remove software) and software support which make Linux seems easier to use and bring some sort of confidence for end users. You can find some tutorials about how to do things in Linux desktop here.</p> <div class="services"> <div class="service-left grid_6 alpha"> <h2>Linux graphics</h2> <img src="/sites/all/themes/corporateclean/mockup/web-design.png" style="float:left; padding:0 10px 0 0;"/>GIMP can be found in any Linux distribution including Ubuntu desktop and Slackware Linux. This is a beginner's guide on how to remove background color from image such as a logo image. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="linux-desktop/howto-remove-image-background-using-gimp">View page</a></div> </div> <div class="service-right grid_6 omega"> <h2>Ubuntu ftp client guide</h2> <img src="/sites/all/themes/corporateclean/mockup/graphic-design.png" style="float:left; padding:0 10px 0 0;"/>This is a specific guide on how to install and using ftp client in Ubuntu Desktop. The gftp is used as an example, which is a quite familiar ftp client in Linux community. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="linux-desktop/ubuntu-ftp-client-guide">View page</a></div> </div> </div> <div class="services"> <div class="service-left grid_6 alpha"> <h2>How to create favourite icon</h2> <img src="/sites/all/themes/corporateclean/mockup/seo.png" style="float:left; padding:0 10px 0 0;"/> This is a guide on how to create favorite icon (as required beside the url of a website) in Ubuntu desktop using GIMP image Editor. GIMP Image Editor is installed by default in Ubuntu desktop and Slackware too. We don't need anything else. No converter what so ever. So here we go. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="linux-desktop/howto-create-favourite-icon-ubuntu-using-gimp">View page</a></div> </div> </div></div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div></div></div> Thu, 07 Jan 2010 04:55:12 +0000 jinlusuh 134 at http://www.basicconfig.com http://www.basicconfig.com/linux-desktop-tutorials-for-beginner#comments Burn iso image using k3b burner software in Slackware http://www.basicconfig.com/software/burn-iso-image-using-k3b-burner-software-slackware-linux <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>K3b is a CD/DVD burning software comes by default with KDE when you installed Slackware. It has everything a beginner needs to burn a data, audio, video and ISO image under Linux using the graphical user interface without learning the command line utilities such as cdrecord, cdrdao, and growisofs. This is an example on how to burn ISO image using k3b dvd burner program running in Slackware Linux.</p> <p>1) Insert dvd into the dvd writer. KDE will automatically detect the blank dvd that you insert and asked what you want to do with it. Choose to 'Create data dvd with k3b' and click OK. See the example k3b screenshot below:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/burn-iso-image-linux01.png" title="Burn iso image in Linux" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/burn-iso-image-linux01.png" alt="Burn iso image in Linux" /></a><br /></p><div class="imgp_desc">k3b burner software main page.</div> <p>2) The k3b program opens. Navigate the source image that you want to burn in the left pane. Choose the iso image that you want to burn from the right pane. Click and drag the iso image to the bottom pane. See the step by step instructions in screenshot example below:</p> <div class="imgp_title">Burn iso image in Linux</div> <p><a href="http://www.basicconfig.com/files/imagepicker/2/burn-iso-image-linux02.png" title="Burn iso image in Linux" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/burn-iso-image-linux02.png" alt="Burn iso image in Linux" /></a><br /></p><div class="imgp_desc">k3b burner software instructions step by step.</div> <p>3) The k3b burner program automatically detect the data/source file is an iso image file and inform us that the iso image can be burn directly to a medium. So we can choose 'Burn the image directly' to burn the iso image to the dvd.</p> <div class="imgp_title">Burn iso image in Linux</div> <p><a href="http://www.basicconfig.com/files/imagepicker/2/burn-iso-image-linux03.png" title="Burn iso image in Linux" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/burn-iso-image-linux03.png" alt="Burn iso image in Linux" /></a><br /></p><div class="imgp_desc">k3b burner software burns the image directly.</div> <p>4) The md5sum program automatically run to check the file integrity.</p> <div class="imgp_title">Burn iso image in Linux</div> <p><a href="http://www.basicconfig.com/files/imagepicker/2/burn-iso-image-linux04.png" title="Burn iso image in Linux" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/burn-iso-image-linux04.png" alt="Burn iso image in Linux" /></a><br /></p><div class="imgp_desc">k3b burner software runs md5sum.</div> <p>5) Compare the md5sum and when you are done, change the burn speed to 4x to make sure the image will be burn properly (the slower is better). Set how many copies to burn and choose to verify the burned data or not. Click Start to begin burning the iso image. See the step by step instructions in the screenshot image below:</p> <div class="imgp_title">Burn iso image in Linux</div> <p><a href="http://www.basicconfig.com/files/imagepicker/2/burn-iso-image-linux05.png" title="Burn iso image in Linux" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/burn-iso-image-linux05.png" alt="Burn iso image in Linux" /></a><br /></p><div class="imgp_desc">k3b burner software step by step dvd burning customization.</div> <p>6) A new window pops up. This window shows the burning process in real time. See example screenshot below:</p> <div class="imgp_title">Burn iso image in Linux</div> <p><a href="http://www.basicconfig.com/files/imagepicker/2/burn-iso-image-linux06.png" title="Burn iso image in Linux" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/burn-iso-image-linux06.png" alt="Burn iso image in Linux" /></a><br /></p><div class="imgp_desc">k3b burner software burning iso image in progress.</div> <p>Wait until the Overall process is at 100%. When k3b has finished the burning, click on Close to quit the program.</p> <p>That's all.</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/9" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">software</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div></div></div> Sun, 27 Dec 2009 07:52:58 +0000 jinlusuh 86 at http://www.basicconfig.com http://www.basicconfig.com/software/burn-iso-image-using-k3b-burner-software-slackware-linux#comments