LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

checking 3D acceleration of graphics

Posted 05-31-2011 at 08:45 AM by neonsignal
Updated 05-31-2011 at 08:47 AM by neonsignal

To check whether 3D acceleration is supported by the current graphics drivers, use glxinfo:
Code:
apt-get install mesa-utils
glxinfo
Where acceleration is working, the 'direct rendering' parameter will have the value 'Yes', followed by details about which features are supported.
Senior Member
Posted in Uncategorized
Views 2902 Comments 2 neonsignal is offline
Old

reducing the mail transfer agent footprint

Posted 05-31-2011 at 08:39 AM by neonsignal

For systems with minimal memory, the mail transfer agent exim4 may not be required (since these days, email is often handled by an upstream provider rather than locally).

There still needs to be a relay agent, so this is where esmtp-run comes in. Installing it will remove the exim4 daemon.
Code:
apt-get --purge install esmtp-run
This will provide local mail delivery, but the hostname in the configuration file /etc/esmtprc can be edited to allow delivery...
Senior Member
Posted in Uncategorized
Views 282 Comments 0 neonsignal is offline
Old

Convert and resize images using imagemagick

Posted 05-30-2011 at 10:07 PM by sag47
Updated 05-31-2011 at 01:23 AM by sag47

This past memorial day weekend I took a bunch of pictures which I wanted to post to the web. Web photos are best viewed in 800x600px and I had a lot of them. So I used a simple command to do it.
Code:
for x in `ls -1`;do convert -resize 800x600 $x `echo $x | sed 's/.JPG/.png/'`;done
mkdir web_album
for x in `ls -1 *.png`;do convert $x web_album/`echo $x | sed 's/.png/.jpg/'`;done
rm *.png
Now I don't have to spend all my time in Gimp with that simple batch command.
Senior Member
Posted in Uncategorized
Views 4182 Comments 1 sag47 is offline
Old

awk variables

Posted 05-30-2011 at 01:42 PM by karthik3152

awk variables
In awk there are many default variables which can be used .
We will see each of them with examples:
acer@ubuntu:~$ cat > record1
John robinson
koren inc
phno:555555555


usha
yyy technologies
ph no:546456456


dddd
aaa technologies
ph no:44444444


acer@ubuntu:~$

consider the above record in which our requirement is to produce a single line...
LQ Newbie
Posted in Uncategorized
Views 420 Comments 0 karthik3152 is offline
Old

awk variables

Posted 05-30-2011 at 01:40 PM by karthik3152

awk variables
In awk there are many default variables which can be used .
We will see each of them with examples:
acer@ubuntu:~$ cat > record1
John robinson
koren inc
phno:555555555


usha
yyy technologies
ph no:546456456


dddd
aaa technologies
ph no:44444444


acer@ubuntu:~$

consider the above record in which our requirement is to produce a single line...
LQ Newbie
Posted in Uncategorized
Views 266 Comments 0 karthik3152 is offline

  



All times are GMT -5. The time now is 08:15 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration