LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Getting a timestamp string in a Windows cmd.exe variable

Posted 12-12-2010 at 12:31 PM by catkin

This technique was developed to generate a timestamp string for rsync's --backup-dir option but it could be generally useful.

The first issue is that the value of %DATE% depends on Windows' regional settings so is not portable. The same goes for the output format of cmd.exe's builtin command date. (one example of many discussions: this StackOverflow thread). There is no way to program around this in a .BAT or .CMD script. The chosen solution was to UnxUtils' date.exe which is a...
LQ 5k Club
Posted in Uncategorized
Views 3716 Comments 0 catkin is offline
Old

Thunar custom actions including "root terminal here" without gksudo

Posted 11-18-2010 at 10:54 AM by catkin
Updated 11-20-2010 at 01:36 AM by catkin (Changed title to mention gksudo)

Here's a way to implement Thunar custom actions using rxvt unicode (urxvt) but could be adapted to other terminal emulators. It has been used to provide:
  • Terminal here
  • root terminal here
  • vi
  • vi as root
Optionally it allows the custom action to set background colour and a fullscreen window.

Caveats: the mechanism is "proof of concept" and not widely tested at the time of posting. It is designed for use on a workstation with a single user.

The key to...
LQ 5k Club
Posted in Uncategorized
Views 1205 Comments 0 catkin is offline
Old

Sendmail: send-only when local system has no domain name

Posted 10-13-2009 at 01:04 PM by catkin
Updated 10-18-2009 at 12:31 PM by catkin

Hello

EDIT: this works but causes sendmail to pause for ~1 minute when it can't find its own FQDN; this slows boot (if sendmail is started at boot and not backgrounded) and would be un-workable on a busy mail server.

Here's how to configure sendmail to send mails when the computer is configured with a hostname but no domain name. It may be of use, for example, if you want to mail system exception reports and do not want to configure the computer as being part of a...
LQ 5k Club
Posted in Uncategorized
Views 7302 Comments 0 catkin is offline
Old

Slackware: installing from HDD using CD .iso files

Posted 10-06-2009 at 05:26 AM by catkin

Hello

Here's a procedure to install Slackware 13.0 starting with the CD .iso files on a Linux system using GRUB. It is a modified form of the procedure for installing from a DVD .iso file given here.

It was developed and tested on an ubuntu 8.04 system following a pilot Slackware installation in a VirtualBox virtual machine but nothing in the procedure is specific to that environment.

A file system is populated with the files a) required for GRUB...
LQ 5k Club
Posted in Uncategorized
Views 3234 Comments 0 catkin is offline
Old

mrxvt 0.5.4 notes

Posted 09-28-2009 at 03:56 PM by catkin
Updated 09-28-2009 at 03:59 PM by catkin (Corrected Xfce version)

Hello

The attachment is my personal blow-by-blow log of installing mrxvt 0.5.4 on Slackware 13.0 with Xfce 4.4. It includes some useful links and details of configuring:
  • Xfce panel launcher.
  • Xfce menu entry.
  • Initial window size.
  • Foreground and background colours.
  • Profiles.
  • Fonts.
  • End and Home keys.
  • Menus (very basic and sub-menus not working).
  • Copy and paste to clipboard by Shift+Ctrl+C and Shift+Ctrl+V.
  • Setting window, tab and "Task list" titles to
...
Attached Images
File Type: pdf mrxvt 0.5.4 notes.pdf (223.6 KB, 757 views)
LQ 5k Club
Posted in Uncategorized
Views 1512 Comments 0 catkin is offline

  



All times are GMT -5. The time now is 07:25 PM.

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