tag:blogger.com,1999:blog-66797139467260037572024-03-08T12:24:54.934-05:00My Linux BlogLittle things I learned, other might want to know...Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.comBlogger25125tag:blogger.com,1999:blog-6679713946726003757.post-81016012272914550182011-03-13T18:53:00.003-04:002011-03-19T09:11:26.698-04:00Solved: OpenSUSE 11.3 keyboard and mouse do not respondNot sure when, but on my multi boot PC, on the OpenSUSE partition, the keyboard and mouse were not working.<br />
<br />
Found /etc/X11/xorg.conf had the following in the "ServerFlags" <br />
<br />
<blockquote>#Option "AutoAddDevices" "off" </blockquote>Changed to <br />
<blockquote>Option "AutoAddDevices" "off"</blockquote>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-63975070807495925592010-08-16T07:16:00.000-04:002010-08-16T07:16:19.034-04:00Xserver Restart Start or StopCtrl + Alt + Backspace does not work with later versions of Ubuntu, at least on 10.04<br />
<br />
Here is how to do it<br />
<br />
Press Crl + Alt + 2<br />
Login as admin <br />
<blockquote>#> sudo bash</blockquote><br />
(Use kdm instead of gdm below if your installation is kubuntu)<br />
<br />
To restart gdm <br />
<blockquote>#> /etc/init.d/gdm restart</blockquote><br />
To start gdm<br />
<blockquote>#> /etc/init.d/gdm start</blockquote><br />
To stop gdm<br />
<blockquote>#> /etc/init.d/gdm stop</blockquote>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-23701054636887416492010-03-26T07:39:00.003-04:002010-03-26T07:42:40.569-04:00How I got timeout to work on Grub 2Well, the problem was after I upgraded my grub from grub-x.y to grub-2, the machine was not automatically starting to boot after the timeout (with the countdown at the bottom of the grub menu).<br />
<br />
This is problably a problem only when the grub is upgraded, because on my other machine where I did a fresh install, the problem is not there.<br />
<br />
I modified the <pre>set timeout=-1 </pre>to <pre>set timeout=5</pre>in /etc/grub.d/00_header and then executed the update-grub (of course none of this is possible without sudo)<br />
<br />
<pre>if [ \${recordfail} = 1 ]; then
set timeout=5
else
set timeout=${GRUB_TIMEOUT}
fi
</pre><br />
<pre>update-grub
</pre><br />
<br />
I am not sure if this is the right way to do it, but it worked!Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-50567329030962143682010-03-12T21:58:00.008-05:002010-03-12T22:07:20.380-05:00Grub 2 Cleanup the menuAfter few updates on the grub menu keeps building in size. Also like me if you have a small /boot partition, the partition fills up. So, to clean them up and to clean the menu follow the lines below<br /><br />Delete the unwanted old files in /boot<br /><br />For example on my ubuntu:<br /><pre><br /><span class="yshortcuts" id="lw_1268446122_8">rm abi-2.6.31-19-generic<br />rm initrd.img-2.6.31-19-generic<br />rm vmcoreinfo-2.6.31-19-generic<br />rm config-2.6.31-19-generic<br />rm System.map-2.6.31-19-generic<br />rm vmlinuz-2.6.31-19-generic<br /></span></pre><br /><br />Then run the update-grub command as root<br /><br /><pre><br />update-grub<br /></pre><br /><br />Thats it! Next time you boot you dont see all the old releases on the grub boot menuSadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-60559030915207762682009-07-24T22:26:00.015-04:002009-08-17T07:14:21.400-04:00Some Things I Do After Each InstallationThings differ from distro to distro..<br />Some things I like to be my way...<br />I might have repeated some, just because this was not edited all at once.<br /><br /><ul><br /><li>Edit grub</li><ul><li>Remove unwanted lines, for example, remove the lines for the same distro, older kernels<br /></li><li>Reduce timeout to just enough to enter when alert. 5 Seconds is sufficient when you are alert to press any key<br /></li><li>If there is no "quiet" or "splash" add them<br /></li></ul></ul><ul><br /><li>Update the distro</li><br /><ul><li>Most of the distro's have the default auto-update enabled. I try to make sure I wait for this to popup and execute it.<br /></li></ul><br /><br /><br /><li>Make sure wireless works, make sure sound works (I still have some distros with problems with one of these two.)</li></ul><br /><ul><li>Install vlc</li><ul><li>It may be as simple as <code>sudo aptitude install vlc </code> or using "add/remove software" type application.<br /></li></ul><br /><li>Install latest firefox (curently 3.5)</li><br /><ul><br /><li>Install Ubiquity Addon </li><br /><ul> <li> Change the keystroke to CTRL+SPACE (go to settings tab on ubiquitiy's help page) </li> </ul><br /><li>Remove the Bookmark Toolbar (I can just type CTRL-B to see th e bookmark toolbar) </li><br /><li>Use small icons for toolbars (View->Toolbars->Customize->Use Small Icons) </li><br /></ul><br /><li>Remove Thunderbird (if exists)</li><br /><li>Fine tune the desktop</li><br /><ul><br /><li> KDE </li><br /><ul><br /><li>Date format, add date to time display </li><br /><li>Lock all the panels, after I am happy with the setup</li><br /></ul><br /><li> Gnome </li><br /><ul><br /><li>Reduce the icon size to 66%, set list view as default, etc </li><br /><li>Workspace switcher increase to 4, two rows and two columns </li><br /><li>Remove one of the panels either top or bottom and include all the stuff on the only one left out </li><br /></ul><br /><li> Common </li><br /><ul><br /><li>Create shortcuts to terminal (konsole/gnome-terminal), firefox etc </li><br /><li>Remove any unwanted shortcuts (mail, trash, show desktop) </li><br /><li>Try to set the font on the terminal to a convenient size.</li><br /><li>Adjust the default terminal size (use <code>gnome-terminal --geometry 100x25 </code>for example)<br /></li><br /></ul><br /></ul><br /><li>Install flash - Each distro has its way to install the flash, mostly have to follow instructions when prompted for.<br /></li><br /><li>Install vim/gvim </li><br /><ul><br /> <li> On Ubuntu <code>sudo aptitude install gnome-vim </code> works </li><br /> <li> Other ways include looking for vim in the package manager (add/remove software) </li><br /></ul><br /><li>Make sure user ids and groups ids match the existing distros to access the common stuff </li><br /><ul> <li> I have a <code> /dump </code> partition which is common to all the distros. Here is where I store all my music, pictures, etc.<br /></li></ul><br /><br /><li>Depending on the box I am on, configure compiz (Its System->Preference->Appearance->Visual Effects->Extra On Ubuntu based distros</li><br /><li> Try to get the terminal (gnome-terminal or konsole) to have transparent background (40%), Color->White on Black. </li><br /><br /></ul>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-41284261166059206012009-07-24T21:01:00.003-04:002009-07-24T21:04:35.314-04:00How to install other language fonts<p><br />Before I did not know the easy way, I did it the hard way.</p><p><br />Download the font (whatever.tar.bz2). Then unzip it (tar jzvf ) to ~/.fonts directory (mkdir if does not exits).</p><p><br />Finally run fc-cache. Restart the browser (most of the times refreshing the 'foreign' page worked for me).</p><p><br />Was it simple? Well I found it was simpler to just start synaptic (mintlinux, probably common on all 'debian' based distros) and search for the font, right click, say mark for installation, then 'apply' (of course restart/refresh the web page)</p>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-66415428822396350082009-06-10T21:26:00.009-04:002009-06-10T23:03:20.272-04:00My latest linux "hop" - Fedora 11Fedora 11 (leonidas) - one word "impressive".<br /><br />Downloaded the KDE Live version - did not look at the "type/version" carefully, which lead to a little bit of "circus" I had to do. I had downloaded a "ext4" version (also looks like I got a i686).<br /><br />Understand that Fedora does not allow you to have /boot on a ext4 partition. But the liveCD I have does not support installation on a a ext3 partition! This situation is new to me.<br /><br />Here is what I had to do for getting my installation:<br />a) Delete the existing partition.<br />b) Create a partition for /boot (ext3)<br />c) Create a partition for / (ext4)<br /><br />The "copying to disk" part of installation was real quick, took little more than 5 minutes.<br /><br />Hoping for not needing to do any wireless setup, disconnected my lan cable and fired up the live CD. Right after booting, I clicked on the "disconnected" computer icon in the system tray and was able to provide my wireless key and connect to the internet immediately! Very impressive! I was unsuccessful in getting this USB dongle to work with Debian (but it works with OpenSUSE, with a little work and with Mandriva, without any effort)<br /><br />The liveCD did not seem to like to shutdown. After ejecting the CD, it started complaining something about /sbin/shutdown ..... did not jot down the exact error message :( Ctrl+Alt+Del kept repeating the same message. I forced the push button reset to poweroff.<br /><br />The music on boot, is familiar, not sure if it belongs to KDE4.<br /><br />Kpackageit, came right up and "informed" me that there are 2 enhancements, 59 updates and 1 bug fix - WHAT??? It is just a day since the release and there are already 62 updates???? Anyways, I just let it do its job and now it is all done.<br /><br />Here I noticed one thing. While the Kpackageit was running, my terminal (konsole) had become unbelievably slow.<br /><br />I have to refresh my yum commands! It has been a while since I have used fedora. I guess fedora 8 was the last one I tried. Somehow I started disliking fedora since then. But fedora 11 brings me back!<br /><br />Just had to do a<br /><blockquote>yum install firefox thunderbird gvim</blockquote><br /><br />Fedora 11 came with python 2.6, perl 5.10, gvim 7.2, pretty much what other distros come with. Now I got firefox 3.5b4, Thunderbird 3b2 - not what other distros give you!<br /><br />Not very straight as I had expected, to get idle (and bonus tcl 8.5!)<br /><blockquote>yum install python-tools</blockquote><br /><br />Little bit of googling (does binging help??) and got vlc with the following commands<br /><blockquote>rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm<br />yum install vlc<br /></blockquote><br /><br />I do not have openoffice as of yet (I guess just "yum install openoffice.org-core" should do it). But I just tried to open kspread, and it opened up in split of a second.<br /><br />There is no wait time (timeout 0) on the grub. Was this made to "speed up" the boot time? The actual boot time is not anything greatly different from other distros (they say <20 secs??). Though I did not time it, I did not feel any difference between mandriva 2009.1 and fedora 11.<br /><br />The screen is impressive, the icons are cool.<br /><br />Few observations:<br />a) After selecting to boot (I pressed enter while it was counting down from 10 to 0) on the live CD, there was no sign of anything going on for few seconds. Right when I was about to press the "reset" switch on my PC, I started seeing some movement.<br />b) This Wierd baloon like looking thing at the center of the screen. Happens to be the fedora logo without the "f" in the center, and a single light blue color!<br />c) The waves that float right below fedora logo, beautiful!<br /><br />This happens to be one of my longest posts. The reason is partly because I am so impressed with fedora 11. Before trying fedora 11, my best experience of KDE4 was with Mandriva.Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-43004403948391953622009-05-27T07:56:00.002-04:002009-05-27T08:00:22.902-04:00My distro hoppingIf you have read my posts before, I like to experiment with distros too. Given the problems I am facing and considering the time I have put in, it becomes intimidating to try distros.<br /><br />I try to stick to KDE, but most of the "live" versions come with xfce. I then install KDE.<br /><br />Of late, I found Mandriva 2009 to be one of the best "work right away" distro on my Lenovo J15 AMD64, USB wireless machine (no wired connection). Everything basic worked right away, without having to do a thing after installation. I hate the 'urpmi' thing, as I am more used to aptitude/apt-get, but geting used to it slowly. The best versions of KDE4, I would say.<br /><br />OpenSUSE is worth a shot. The display works, the wirless, I am unable to get to work. I reinstalled a 32 bit version, but still could not get the wireless to work.<br /><br />Arch is good once it starts working, but takes some effort to get it to work. Again, I am unable to get the wireless working. I have a feeling, as my wireless dongle vendor (Dlink DWL-G122 rev D1) does not provide a 64bit version of the driver, it is not gonna work.<br /><br />The two biggest problems with most of the distros is getting wireless and the xconfig working. With nvidia, the newer distros have are getting more and more complicated IMHO. In kubuntu, there are at least 3-4 versions of nvidia-glx. In older versions, I just had to do aptitude install nvidia-glx. Now I am not sure what to use (there is legacy, new, 96, 173, 177 etc).Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-80162282469634019912009-05-16T07:58:00.004-04:002009-05-16T08:31:33.987-04:00BASH aliasesAn easy way to move around using command line, without using "cd " command always.<br /><br /><br />Create ~/.bash_aliases or add to existing ~/.bash_aliases the lines below (or any long directory names which you use frequently)<br /><br />alias plbin='cd /home/usr/perl/bin'<br />alias pllib='cd /home/usr/perl/lib'<br /><br />Then you just type plbin instead of "cd /home/usr/perl/bin"<br />Remember to do a ". .bashrc" before you can get it to work, well also have .bash_aliases in your .bashrc<br /><br />So... your ~/.bashrc should contain the following<br />/home/usr/.bash_aliases<br /><br />and your ~/.bash_aliases should contain the lines<br />alias plbin='cd /home/usr/perl/bin'<br />alias pllib='cd /home/usr/perl/lib'<br /><br />Use a '\' to escape any special characters in the directory namesSadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-40110652373444569432009-03-19T21:43:00.004-04:002009-03-19T21:54:57.129-04:00Screen ManagerCan be used instead of using tabs on konsole (or gnome-terminal) terminal.<br /><br />Just type screen on the terminal.<br />For more screens, type screen again<br /><br />screen --help displays a help<br />When in a screen, to get help type CtrlA+?<br /><br />Some useful commands<br />CtrlA+A (uppercase) to give a title to a screen<br />CtrlA+" To list the screens<br />CtrlA+' To select a screen<br />CtrlA+p To go to previous screen<br />CtrlA+n To go to next screenSadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-1922573115619780182009-02-16T07:19:00.008-05:002009-02-17T20:51:26.535-05:00Debian 5.0!Fantastic, it works!<br /><br />Was released on Saturday 14th Feb (they say). I was looking for it on Saturday but did not get it. On Sunday, I saw it was released.<br /><br />On my Compaq presario 2701T laptop (2001), running kubuntu (+xubuntu), I decided to try Debian 5.0 "lenny".<br /><br />This time around, I tried something different. Installed unetbootin, and did a netinstall of Debian 5.0 "lenny", on a pre-existing partition.<br /><br />By default, xfce was installed. I then did install a KDE desktop - aptitude helps.<br /><br />Amazingly I did not have to do much for getting my wireless (Trendnet PCMCIA card TEW421PC) work - this has been a problem with almost all the distributions (including ubuntu). While I had to do a "ndiswrapper" thing on kubuntu, on lenny it started working right away. Only thing I had to do was to provide the credentials of my network.<br /><br />Was a little confused when I could not find firefox/thunderbird (aptitude search). After a bit of looking around (synpatic) installed Icedove, Iceweasel was already installed.<br /><br />Sound does not work on my laptop, not sure if it is a hardware problem or it is my configuration.Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-34801427114935329782008-06-20T06:27:00.000-04:002008-06-20T06:56:19.446-04:00Open SUSE 11, KDE First DayDownloaded the 64bit, liveCD version of Open SUSE 11 via Bit torrent. Took more than 3 hours to download (first day!)<br /><br />Installation went without much problems, very user friendly installation interface.<br /><br />Only problem was after reboot, the system refused to boot via grub. Took a little while to figure out what was happening (as I was not expecting nothing to go wrong). Found that the grub menu.lst was misconfigured (got configured as (hd1,x), instead of (hd0,x)) on my two hard disk, multi-OS desktop. Cant blame, for not being able to set it up right for the complex configuration I have.<br /><br />Here are some observations.<br /><br /><ul><li>Comes with perl 5.10, which is great.</li><li>No problem with X on my nvidia (there was no problem in Open SUSE 10.2/3 either)</li><li>KDE4... had a couple crashes already in my 1hour or so of usage! Had tried KDE4 on OpenSUSE 10.3, dint work well, had given up and backed up to KDE 3.5.x. Hoping that is not going to be the case again.<br /></li><li>Hate the width of the bottom panel, I reduced it to the minimum size (there is no customized size). Also the font size of the clock. Adding date with year, time with seconds helped.<br /></li><li>Not the latest released version of Firefox. I think it is some 3.0b5. At one point while accessing one of the website realized the flash needs to be installed. Just clicking on the buttons, took me to the adobe's website and got installed flawlessly.<br /></li><li>Try to install anything from the network using yast, din't work. Either because of the network congestion or because of the yast configuration.</li><li>Haven't tried any 3D stuff, not sure if I can with the hardware I have.</li></ul>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-72266350438696584172008-05-25T14:35:00.001-04:002008-07-04T08:22:24.259-04:00Kubuntu UUIDAlready written this before? once again..., the command for getting UUID on kubuntu<br /><blockquote>ls -l /dev/disk/by-uuid</blockquote>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-73747907219820873802008-05-15T20:55:00.000-04:002008-05-16T07:32:43.215-04:00Installing OpenSolaris 2008.05I read somewhere that OpenSolaris 2009.05 was being distributed freely by Sun. I requested for one, did not get any reply from them.<br /><br />Could not wait for it, so I downloaded few days back and tried to install on my multi-boot system. Unfortunately my system got stuck at "grub>" prompt. Tried installing again, Tried installing kubuntu again, nothing helped.<br /><br />Today, I tried it again. Re-installing kubuntu did not help. Installing OS2008.05 again booted the system. Then I had to manually edit the grub menu config file (In solaris it is something like /rpool/boot/grub/menu.lst ).<br /><br />Now I have to take care of my kubuntu installationSadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-18554001131494336272008-05-04T09:33:00.000-04:002008-05-04T09:38:19.974-04:00GlubbleMy 3 year old used to wait for my desktop/laptop to get free, click on whatever he sees on the screen (the most attractive ones are the flash car ads, etc).<br /><br />Last week I found <a href="http://www.glubble.com/">this</a> excellent firefox extension. So far so good. He knows how to click the tab with his name and he gets all the games to play.Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-57339505676558287792008-05-04T09:19:00.000-04:002008-05-04T09:21:34.358-04:00Installing NX Nomachine server on kubuntu 8.04Go to <a href="http://www.nomachine.com/">NoMachine</a> website.<div class="entry"> <p><a href="http://www.nomachine.com/download.php">Download</a> the nx{server, node, and client }.</p> <p>Follow the instructions to install these.</p> <p>NOTE: Remember to restart ssh. I did not have ssh, used simple “aptitude install ssh” to get (open)ssh.</p> <p>It worked!</p></div>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-58067164536607318382008-05-04T09:17:00.000-04:002008-05-04T09:18:39.337-04:00kubuntu 8.04 X not working<div class="entry"> <p>After installing kubuntu 8.04, the screen resolution was too low.</p> <p>apt-get install nvidia-glx<br />nvidia-xconfig<br />restart X to solve the problem</p></div>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-47941294249502776002008-05-04T09:15:00.000-04:002008-05-04T09:17:09.460-04:00My kubuntu 8.04 (hardy heron) installation venture<div class="entry"> <p>Installing kubuntu 8.04 LTS</p> <p>Installation did not go smooth on my multi OS machine.</p> <p>The installation did not boot with hd6 (for /dev/sda7). Tried “grub-install (hd6)”, then “setup /dev/hd0″. The sytsem stopped booting. It was stuck at “grub>” prompt.</p> <p>Installed again with grub at (hd0,6) to (somewhat) solve the problem. It works now, I get into Kubuntu’s boot prompt and I can select any of the other OSs.</p></div>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-71178499980329020622008-05-04T09:10:00.000-04:002008-05-04T09:14:29.496-04:00Shell tips<code>Time to bring back life to my blog!<br /><br />Recently I learned how to execute programs in different directories and direct the output to a single log file in a single command<br /><br />#> cd ~<br />#> (cd perl/bin; perlfind.pl; cd tcl/bin; tclfind.tcl) > find_out.txt<br /><br /><br /></code>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-50998585995728101732007-04-02T22:59:00.000-04:002008-05-04T09:07:53.567-04:00Using abbrevation in VIMHere is a vim tip:<br /><br />use abbreviate to something you type very frequently<br /><br />:abb perl #!/usr/local/bin/perl<br /><br />Now in insert mode as soon as you press space after typing perl, the #!/usr/local/bin/perl will be typed automatically for you.<br /><br />if you don't want it to type, type something like "perls ", and then go back and remove the "s"!<br /><br />Put this in your .exrc file for convenienceSadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-34453528346781873022007-04-01T13:51:00.000-04:002008-05-10T09:27:03.927-04:00Using Samba<span style="font-weight: bold; font-style: italic;">Yes, it is possible!</span><br /><br />Want to access a Windows machine from Linux?<br />Here is what you do to that (samba)<br /><br />First of all, I assume that the two machines are somehow connected to each other. I have both of them connected to my home router.<br /><br />Install samba, start samba, share the folder on windows - use your favorite browser to browse your files<br /><br />Okay, here is little more details<br /><br /><span style="font-style: italic; font-weight: bold;">On the Windows machine</span><br /><ul><li>Open a Windows Explorer</li><li> Right click on the folder you want to share</li><li>Click on "Sharing and Security"</li><li>A Properties window pops up, clock on the "Sharing" Tab</li><li>Check the checkbox "Share this folder on the network" (and "Allow network users to change my files", if you wish) in the "Network sharing and security" section</li><li>Apply and close the window</li><li>Make a note of the IP address of the interface that is connected to the network <span style="font-style: italic;">(say 192.168.100.100)</span></li></ul><br /><span style="font-style: italic; font-weight: bold;">On the Linux machine</span><br /><ul><li>Samba was already loaded on my Linux machine (I think you can use any of rug/yum/apt-get/YaST to install samba)</li><li>Start the samba service (may have to login as root or use sudo)</li></ul> #> /etc/init.d/smb start<br /><ul><li>Now open any of the web browsers (firefox/konqueror) and type smb://192.168.100.100/ in the address bar</li></ul><br />You should now be able to see all the files in the folder you are sharing on you web browser.Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-57471680947736427252007-03-24T13:36:00.000-04:002008-05-04T09:01:52.601-04:00Using perl's File::Find<p>Perl's File::Find module</p><p><br />What does it do? What I understood</p><p>Use the find OR finddepth methods after "use"ing File::File;<br /></p><p style="font-style: italic;">find (\&wanted, '/path/name/');</p><p>This goes to all the directories in the "/path/name/" find all the files. In the subroutine select the required file.</p>for example<br /><span style="font-style: italic;">find (wanted=>sub{print $_;} '/path/name');</span><br />would print all files in /path/name/Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-327470723153720732007-03-23T13:35:00.000-04:002008-05-04T09:04:29.528-04:00Using Unzip in *nix<p>unzip on *nix Howto -<br /></p><p>Displays what is in the zip file</p><p style="font-style: italic;">#> unzip -Z zipFile.zip</p><p> Unzips all files to the current directory</p><p style="font-style: italic;">#> unzip zipFile.zip</p> Unzips only File1 and File2 from the zipFile.zip<p style="font-style: italic;">#> unzip zipFile.zip File1 File2</p><p>Unzips File1 to newDir/File1</p><p style="font-style: italic;">#> unzip -d newDir zipFile.zip File1</p><p><br /></p>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-5641152711310121952007-03-21T13:32:00.000-04:002008-05-04T09:06:42.638-04:00Command line CD ripping on Linux<p>Comamnd line CD Ripping on Linux (Kubuntu 6.10)<br /></p><p><span style="font-style: italic;">#> cdparnoia -vsQ</span><br /> lists all the tracks</p><p><span style="font-style: italic;">#> cdparnoia 1-10</span><br /> rips tracks from 1 to 10</p><p><span style="font-style: italic;">#> cdparanoia -B -Z</span><br /> (rips all no data check is done, seems to be much faster with old, broken CDs!) </p><p> </p><p>----</p><p>(assume bash)<br /></p><p style="font-style: italic;">#> apt-get install vorbis-tools<br /></p><p style="font-style: italic;">#> oggenc -o track01.cdda.ogg track01.cdda.wav</p><p style="font-style: italic;">#> foreach fle in *wav; do oggenc -o $fle.ogg $fle; done</p>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0tag:blogger.com,1999:blog-6679713946726003757.post-12657839811753079912007-03-20T13:29:00.000-04:002008-05-04T09:02:24.050-04:00Using ndiswrapper<p>How to make wireless work</p><p>Download the ndiswrapper, install it</p><p>Download the Win-XP driver and unzip into a directory</p><p>go to the directory where the driver is located</p><p>(use sudo if required) </p><p>#> ndiswrapper -i dirver.inf</p><p>#> modprobe ndiswrapper<br /></p>Sadanand Hegdehttp://www.blogger.com/profile/07887294320560825319noreply@blogger.com0