LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs > Lumak's Guide to Random Things
User Name
Password

Notices



OK I don't really have a good title yet but I figure I can post works in progress and other tips I've come across or other interesting things.
Random Linux Guides Just random guides to fixing or doing something that doesn't require scripts because you do it once and it's done or use it rarely.
Old

HOWTO: LAMP server on Slackware

Posted 01-20-2011 at 12:01 PM by lumak (Lumak's Guide to Random Things)

This is a short HOWTO in getting a basic LAMP server running on Slackware. You will have to do more reading if you really want to know the details about configuring everything. I call this 'ready to confirm you want the defaults.' Please send me a message if you think I missed something.



Apache
---------------------------
set the execute bit on /etc/rc.d/rc.httpd
Code:
chmod +x /etc/rc.d/rc.httpd
As far as getting a...
Member
Views 1547 Comments 0 lumak is offline
Old

Fluxbox - Display Message on Desktop

Posted 12-30-2010 at 02:05 AM by lumak (Lumak's Guide to Random Things)

Well I couldn't find a good solution to displaying text on the desktop similar to what conky does without actually using conky with only text display, So I decided to go with controlling window settings based on the custom window class of an xterm. I think it came out nicely.

desktop.sh
Code:
#!/bin/bash
# Not -R is a vim flag for Readonly to prevent accidental edits.
xterm -rv -fn 10x20 -class DMsg -e vim /path/to/textfile.txt -R
.fluxbox/apps...
Member
Views 1729 Comments 1 lumak is offline
Old

Tar progress bar for scripts

Posted 10-20-2010 at 02:55 AM by lumak (Lumak's Guide to Random Things)
Updated 10-20-2010 at 02:57 AM by lumak

I use SlackBuild scripts a lot and the typical standard is to use the verbose option to print all the file names as they are extracted. This is annoying. However there really isn't a progress bar for tar... or is there?!

Well if we knew the number of files in the tar file we could probably calculate the percentage progress of the file list, but that would take too much time... Thankfully there is --checkpoint

So, outside the script, you find the general number of...
Member
Views 4492 Comments 0 lumak is offline
Old

slackware64 multilib QT issues

Posted 09-17-2009 at 07:13 PM by lumak (Lumak's Guide to Random Things)

UGH! ok I was trying to compile q4wine for god knows what reason and half the variables in the build/CMakeCache.txt were pointing to /usr/lib64/qt and the other half were pointint to /usr/lib/qt.

I solved my issue by adding
Code:
CMAKE_PREFIX_PATH=/usr/lib$LIBDIRSUFFIX/qt \
on the line right before
cmake \

Hope this helps somebody else with cmake and qt problems.
Member
Views 2621 Comments 2 lumak is offline
Old

Fluxbox/Openbox - calendar in menu

Posted 08-23-2009 at 05:05 PM by lumak (Lumak's Guide to Random Things)
Updated 08-24-2009 at 11:58 PM by lumak

MOVED: added this to the fluxbox wiki as "Calendar Menu" updates may be posted here or there.

Here is a nifty thing to include a calendar printout in your fluxbox menu. It currently coded in bash and is very crude. The print out only looks best when your menu is left justified and the text is mono spaced. An optional fix for this may be to convert spaces to underscore (not yet implemented).

create a directory ~/.fluxbox/cal and place the attached script...
Attached Files
File Type: txt updatecal.sh.txt (3.5 KB, 772 views)
File Type: txt updatecal-0.2.sh.txt (10.4 KB, 808 views)
Member
Views 3379 Comments 0 lumak is offline

  



All times are GMT -5. The time now is 06:05 AM.

Main Menu
Advertisement

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