Tips n Tricks for Linux

Status
Not open for further replies.

Satissh S

Youngling
I got this from gentoo docs to speed up disk access as well as to activate DMA mode
To test the disk,
# hdparm -tT /dev/hda

To activate safe performance options,
# hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda

To activate DMA Alone,
# hdparm -d 1 /dev/hda
 

Satissh S

Youngling
Fc5 has irritating alias settings for the root user,
like rm is aliased with rm -i and mv is aliased with mv -i and like that.
This sometimes is very irritating when used on directories with -R option as it asks you for every file. :?
Check your alias settings with the alias command,
# alias
/**..
stuff
..*/

To get rid of this,
change the rm using
# alias rm='rm'
and you can change back to the old by issuing
# alias rm='rm -i'
if you like the old settings.
 

vignesh

Wise Old Owl
Thats beacuse a root user has ultimate control over the system so the interactive mode is set so he can think again before deleting or moving a files...Its been in all versions of Fedora and Redhat not only in FC5..I think its a good thing not a irritating feature
 

gary4gar

GaurishSharma.com
DISplay splash images in grub menu


e.g. Assumed that hd0,1 is the location of Ubuntu boot partition
wget -c *easylinux.info/uploads/ubuntu.xpm.gz
chmod 644 ubuntu.xpm.gz
sudo mkdir /boot/grub/images
sudo cp ubuntu.xpm.gz /boot/grub/images/
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
sudo gedit /boot/grub/menu.lst

* Find this section

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
...

* Add the following line below it

splashimage (hd0,1)/boot/grub/images/ubuntu.xpm.gz

* Save the edited file


How to convert Wallpaper to Splash Image for GRUB menu

* Read #General Notes

e.g. Assumed that wallpaper.png is the Wallpaper to be converted to Splash Image
splashimage.xpm.gz is the Splash Image for GRUB menu

convert -resize 640x480 -colors 14 wallpaper.png splashimage.xpm && gzip splashimage.xpm

* Read #How to display Splash Image for GRUB menu on boot-up (use splashimage.xpm.gz instead of ubuntu.xpm.gz)

[edit]
How to temporary skip boot-up services

* Read #General Notes

Press 'Ctrl + C'
 
Last edited:

praka123

left this forum longback
Installing local .ttf fonts for viewing webpages in FF/Mozilla for view in ur LANG

Installing .ttf fonts in Debian/Ubuntu Linux locally

First i downloaded Manorama.ttf(india malayalam language daily) from
*www.hackorama.com/malayalam/fonts/
then for present user,

$cd ~.fonts
$mkdir manorama
Copy Manorama.ttf font into this directory
then,

$ttmkfdir > fonts.dir
$ttmkfdir > fonts.scale
$mkfontscale
$mkfontdir
$xset fp+ $HOME/.fonts/manorama/
$xset fp rehash
Now do an
$fc-cache -fv
Next step is to add the fontpath to our /etc/X11/xorg.conf last of font paths
like this:
> FontPath "/home/prakash/.fonts/manorama/"
Do a
> $fc-cache -fv


Now restart X and try watching in Firefox.
There are better ways to do this especially in redhat fedora.comments are welcome.:)
and for all users copy ur fonts to /usr/share/fonts/truetype/ dir and do "fc-cache -fv" as su
btwn apt-get install ttmkfdir before trying.
 
Last edited:

gary4gar

GaurishSharma.com
well fedora we have to just put the fonts into the fonts folder(system>preferences>fonts) then there is a option for the font folder.easy as pie
 

mehulved

18 Till I Die............
Can't we do that in Ubuntu by opening Nautilus as sudo and typing fonts:/ and placing the fonts there?
 

mediator

Technomancer
Some contribution from me too!

Converting media files

1. Wav to ogg
cmd => "oggenc inputfile.wav -o outputfile.ogg"

2. ogg to wav
cmd => "ogg123 -d wav -f outputfile.wav inputfile.ogg"

3. wav to mp3
cmd => "lame IPfile.wav -o OPfile.mp3"

It requires u to install lame!
 

praka123

left this forum longback
tech_your_future said:
Can't we do that in Ubuntu by opening Nautilus as sudo and typing fonts:/ and placing the fonts there?
i think yes.this hw2 was made by me sometime back.
but earlier nautilus seems to me little buggy with font install.now also the fonts will be shown only after a restart i believe.otherwise u need to check $HOME/.fonts/ for correct install of fonts..
 

praka123

left this forum longback
GNOME Refresh Screen button

To have a Refresh Screen in GNOME Desktop,you can add
Code:
xrefresh -white
...the code into a new launcher in gnome-panel.
or make a script executable into your nautilus-scripts folder
 
Last edited:

drsethi

Journeyman
For newbies of Suse10.2
You should add guru's site and packman's site to yast and kyum respectively
*ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.2/
*packman.iu-bremen.de/suse/10.2/

How
*www.linuxquestions.org/questions/showthread.php?t=509097
*www.thejemreport.com/mambo/content/view/254
Copy installation cd/dvd on hard disk and add it to yast installation source.
If already have rpms then make a directory and copy all in that directory . Add this directory to yast installation source.
Dont forget to install w32codec and libdvdcss
Now update your system and enjoy Suse fully!
 

freebird

Debian Rocks!
for audio files preview in Nautilus(GNOME default file manager),install mpg321.this is found working on Debian and Ubuntu Distros.
 

praka123

left this forum longback
My two Tips!

two tips from me :)
1)In GNOME(possibly kde and other Desktop Environments too) if some window is very large and it's radio buttons are not accessable to you(not visible),You can get it in GNOME by pressing keyboard ALT key + pressing left mouse button on the software window to move it up or down to get its radio buttons or options.normally i think this problem is faced by ppl having Display resolution lesser than 1024x768.


2) For downloading Linux torrents you can try this site as of now it is free reg:
*www.linuxtracker.org/

And for some people who are uninitated yet: ;)
In the X Window System, middle-clicking by default pastes the contents of the primary buffer at the pointer's position. Many users of two-button mice emulate a three-button mouse by clicking both the right and left buttons simultaneously. Middle-clicks often provide the functionality of an extra button.
.................

On systems with three-button mice, pressing the center button (a middle click) often conveniently maps a commonly-used action or a macro. In the X Window System, middle-clicking by default pastes the contents of the primary buffer at the pointer's position. Many users of two-button mice emulate a three-button mouse by clicking both the right and left buttons simultaneously. Middle-clicks often provide the functionality of an extra button.
Most machines running Unix or a Unix-like operating system run the X Window System which almost always encourages a three-button mouse. X numbers the buttons by convention. This allows user instructions to apply to mice or pointing devices that do not use conventional button placement.
*en.wikipedia.org/wiki/Mouse_%28computing%29
also u can grab a selected text from browser or editor etc to desktop to make a text document.
by selecting text from anwhere and pressing mouse left button dragging to desktop :)
yes drag-n-drop.
::happy::
 
Last edited:

sachin_kothari

Ambassador of Buzz
banned2wise said:
Intro for linux uploaded @ rapidshare.de
==> Download here <==

100 tips and tricks(common) for linux uploaded @ rapidshare.de
==> Download here <==
The files have probably been removed. Could u please upload them again. Thanks.
 

anantkhaitan

Burning Bright
Task Manager kinda setting for Gnome

1> Open Terminal
Code:
$ gconf-editor

2> Navigate to apps>metacity>keybinding_commands and edit an empty key (Like I am dealing with "command_1") and set its value to gnome-system-monitor

3> Now navigate to apps>metacity>global_keybindings and edit the key corresponding to the keybinding_command you have edited earlier (In my case it is "run_command_1") and set its value to <Control><Alt>Delete

4> Thats it, close everything and enjoy

Btwn I have a question what do we call the "Windows Button" in GNU/Linux
 

praka123

left this forum longback
For tips and tricks on GNOME Desktop Environment visit:
*gnome-hacks.org/

example hack: ;)
Type ☰★cool★☰ Unicode ch☣r☣cters in ☃GNOME☂
Yes, you too can type cool Unicode characters in your posts, e-mail, signature,
blog, blog comments, etc, using GNOME!

1. Start Accessories/Character Map(gucharmap)
2 Locate interesting characters (see character groups such as "dingbats").
3. Select and copy
4. Paste in your application.

If there is a character you use often,
1. Note down the Unicode codepoint.
2. To type it, press
Ctrl-Shift-<unicode codepoint>

For example
Ctrl-Shift-2702 is for the scissors character (✂).

It's recommended to browse available Unicode characters from "gucharmap", or
you may also try *www.unicode.org/charts/
*gnome-hacks.org/hacks.html?id=76

Many People now adopts debian-based distros for its stability and apt-dpkg package management tools.
So below is the online version of "Ubuntu book" by Benjamin Mako Hill, Jono Bacon, Corey Burger, Jonathan Jesse and Ivan Krstic.it is licensed as creative commons share a like.Enjoy this book.it explains you most things a new Linux user are confused with for eg:partitioning.
*www.prism.gatech.edu/~mflaschen3/UbuntuBook/
 
Last edited:
Status
Not open for further replies.
Top Bottom