Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Sunday, March 13, 2011

Solved: OpenSUSE 11.3 keyboard and mouse do not respond

Not sure when, but on my multi boot PC, on the OpenSUSE partition, the keyboard and mouse were not working.

Found /etc/X11/xorg.conf had the following in the "ServerFlags"

#Option "AutoAddDevices" "off"
Changed to
Option "AutoAddDevices" "off"

Friday, July 24, 2009

How to install other language fonts


Before I did not know the easy way, I did it the hard way.


Download the font (whatever.tar.bz2). Then unzip it (tar jzvf ) to ~/.fonts directory (mkdir if does not exits).


Finally run fc-cache. Restart the browser (most of the times refreshing the 'foreign' page worked for me).


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)

Wednesday, May 27, 2009

My distro hopping

If 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.

I try to stick to KDE, but most of the "live" versions come with xfce. I then install KDE.

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.

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.

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.

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).

Saturday, May 16, 2009

BASH aliases

An easy way to move around using command line, without using "cd " command always.


Create ~/.bash_aliases or add to existing ~/.bash_aliases the lines below (or any long directory names which you use frequently)

alias plbin='cd /home/usr/perl/bin'
alias pllib='cd /home/usr/perl/lib'

Then you just type plbin instead of "cd /home/usr/perl/bin"
Remember to do a ". .bashrc" before you can get it to work, well also have .bash_aliases in your .bashrc

So... your ~/.bashrc should contain the following
/home/usr/.bash_aliases

and your ~/.bash_aliases should contain the lines
alias plbin='cd /home/usr/perl/bin'
alias pllib='cd /home/usr/perl/lib'

Use a '\' to escape any special characters in the directory names

Thursday, March 19, 2009

Screen Manager

Can be used instead of using tabs on konsole (or gnome-terminal) terminal.

Just type screen on the terminal.
For more screens, type screen again

screen --help displays a help
When in a screen, to get help type CtrlA+?

Some useful commands
CtrlA+A (uppercase) to give a title to a screen
CtrlA+" To list the screens
CtrlA+' To select a screen
CtrlA+p To go to previous screen
CtrlA+n To go to next screen

Monday, February 16, 2009

Debian 5.0!

Fantastic, it works!

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.

On my Compaq presario 2701T laptop (2001), running kubuntu (+xubuntu), I decided to try Debian 5.0 "lenny".

This time around, I tried something different. Installed unetbootin, and did a netinstall of Debian 5.0 "lenny", on a pre-existing partition.

By default, xfce was installed. I then did install a KDE desktop - aptitude helps.

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.

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.

Sound does not work on my laptop, not sure if it is a hardware problem or it is my configuration.

Friday, June 20, 2008

Open SUSE 11, KDE First Day

Downloaded the 64bit, liveCD version of Open SUSE 11 via Bit torrent. Took more than 3 hours to download (first day!)

Installation went without much problems, very user friendly installation interface.

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.

Here are some observations.

  • Comes with perl 5.10, which is great.
  • No problem with X on my nvidia (there was no problem in Open SUSE 10.2/3 either)
  • 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.
  • 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.
  • 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.
  • Try to install anything from the network using yast, din't work. Either because of the network congestion or because of the yast configuration.
  • Haven't tried any 3D stuff, not sure if I can with the hardware I have.

Sunday, May 25, 2008

Kubuntu UUID

Already written this before? once again..., the command for getting UUID on kubuntu
ls -l /dev/disk/by-uuid

Sunday, April 1, 2007

Using Samba

Yes, it is possible!

Want to access a Windows machine from Linux?
Here is what you do to that (samba)

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.

Install samba, start samba, share the folder on windows - use your favorite browser to browse your files

Okay, here is little more details

On the Windows machine
  • Open a Windows Explorer
  • Right click on the folder you want to share
  • Click on "Sharing and Security"
  • A Properties window pops up, clock on the "Sharing" Tab
  • 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
  • Apply and close the window
  • Make a note of the IP address of the interface that is connected to the network (say 192.168.100.100)

On the Linux machine
  • Samba was already loaded on my Linux machine (I think you can use any of rug/yum/apt-get/YaST to install samba)
  • Start the samba service (may have to login as root or use sudo)
#> /etc/init.d/smb start
  • Now open any of the web browsers (firefox/konqueror) and type smb://192.168.100.100/ in the address bar

You should now be able to see all the files in the folder you are sharing on you web browser.

Saturday, March 24, 2007

Using perl's File::Find

Perl's File::Find module


What does it do? What I understood

Use the find OR finddepth methods after "use"ing File::File;

find (\&wanted, '/path/name/');

This goes to all the directories in the "/path/name/" find all the files. In the subroutine select the required file.

for example
find (wanted=>sub{print $_;} '/path/name');
would print all files in /path/name/

Friday, March 23, 2007

Using Unzip in *nix

unzip on *nix Howto -

Displays what is in the zip file

#> unzip -Z zipFile.zip

Unzips all files to the current directory

#> unzip zipFile.zip

Unzips only File1 and File2 from the zipFile.zip

#> unzip zipFile.zip File1 File2

Unzips File1 to newDir/File1

#> unzip -d newDir zipFile.zip File1


Wednesday, March 21, 2007

Command line CD ripping on Linux

Comamnd line CD Ripping on Linux (Kubuntu 6.10)

#> cdparnoia -vsQ
lists all the tracks

#> cdparnoia 1-10
rips tracks from 1 to 10

#> cdparanoia -B -Z
(rips all no data check is done, seems to be much faster with old, broken CDs!)

----

(assume bash)

#> apt-get install vorbis-tools

#> oggenc -o track01.cdda.ogg track01.cdda.wav

#> foreach fle in *wav; do oggenc -o $fle.ogg $fle; done

Tuesday, March 20, 2007

Using ndiswrapper

How to make wireless work

Download the ndiswrapper, install it

Download the Win-XP driver and unzip into a directory

go to the directory where the driver is located

(use sudo if required)

#> ndiswrapper -i dirver.inf

#> modprobe ndiswrapper