LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Terminal icon for root with hash in screen

Posted 12-22-2010 at 02:55 AM by catkin
Tags hash, icon, root, screen

In case anybody is looking for one (I was and could not find one anywhere), the attachments are terminal icons with a hash (#) character.

This is not my area of expertise so improvement suggestions are welcome. Is PNG the best format for icons? Is 48x48 a good size choice?

In case anyone is curious how it was made, Terminal.svg was copied and loaded in Gimp. Most of the shading was removed (plain black background is more distinct at small display sizes such as in...
Attached Images
File Type: png Terminal_hash 160x160.png (1.7 KB, 5 views)
File Type: png Terminal_hash_48x48.png (892 Bytes, 59 views)
LQ 5k Club
Posted in Uncategorized
Views 1136 Comments 0 catkin is offline
Old

Getting a timestamp string in a Windows cmd.exe variable

Posted 12-12-2010 at 01: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 3816 Comments 0 catkin is offline
Old

Thunar custom actions including "root terminal here" without gksudo

Posted 11-18-2010 at 11:54 AM by catkin
Updated 11-20-2010 at 02: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 1228 Comments 0 catkin is offline
Old

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

Posted 10-13-2009 at 02:04 PM by catkin
Updated 10-18-2009 at 01: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 7455 Comments 0 catkin is offline
Old

Slackware: installing from HDD using CD .iso files

Posted 10-06-2009 at 06: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 3255 Comments 0 catkin is offline

  



All times are GMT -5. The time now is 04:44 PM.

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