Is there a way to run Trac offline? - bug-tracking

I'd like to download the Trac database so I can view its tickets offline. Is there anyway to achieve this? I.e. if I need to leave the office and bring my laptop with me, how can I bring the tickets with me without having to connect to the company network?
I know that Mylyn can download and sync tickets via it's trac connector but I'd like some stand-alone viewer.

See Simple Defects (SD).
I particularly like the "One-tweet install" idea.
I’m installing #SD (http://syncwith.us)
after reading about it on #StackOverflow
curl fsck.com/sd|perl;
export $PATH=~/sd/bin:$PATH; sd
Note that you can clone Trac (and other bugtrackers) in SD:
sd clone --from trac:https://trac.parrot.org/parrot

Seeing as you don't want to install a server, how about using RSS? IIRC, Trac let lets you get RSS feeds for each person, so you can have a feed of things assigned to you.
All you need do then is get a nice client that will download these tickets. You should be able to access a plaintext version without internet connection.
If that's not flexible enough, you could write a script on the server to publish a feed using the database directly.
And if RSS isn't for you (and your email is available offline), you could mail reports home. Trac also has this built in.

The default Trac installation uses a combination of SQLite to matintain all of the data. Attachements are stored on the file system.
In the folder containing the trac site, find \db\trac.db
This file can be viewed using the SQLite manager Firefox Addon
Happy hunting.

And if RSS or email isn't your notification of choice, there's a trac plugin that will let you receive task notifications on your Remember The Milk todo list.
See: http://1.www.rememberthemilk.com/forums/ideas/3580/?forum=ideas&hl=bs&topic=3580

If your objective is simply to view the tickets offline, how about
Run a report with all the tickets (or all those you're interested in).
Select either the comma-delimited or tab-delimited download link at the bottom of the page.
Import the downloaded file into Excel.

you could install it on a local machine

You can host the trac locally and set up the connectionstring point to your dowloaded database.

Sure. Install a web server locally, install trac, get it set up the same (or similar) way to the way it is on the live version and then script the server to publish db backups and write a local script to download those and restore them over your database.
It's not simple (installing Trac is a battle on its own from my experience of it) but every element is highly googleable =)

The trac client FatBug (http://fat-bug.com/) listed in
https://trac.edgewall.org/wiki/Clients
seems to do the exact what was described by the OP. I bumped into it after I just checked SD. SD seems trival on Linux, but heavy on Windows, it depends on Perl & CPAN.

Related

Installing Oracle SQL*Loader SQLLDR on RHEL7 from Instant Client

I have been assigned a task to create a environment setup which a piece of java program uses. This piece of java program uses sqlldr to bulk upload the data into database.
Now the client's machine already has Oracle InstantClient 18.5 version configured. To the existing config I have to add sqlldr using the Tools Package (RPM) provided by Oracle oracle-instantclient18.5-tools-18.5.0.0.0-3.x86_64.rpm. Correct? There is a .zip file available as well on the website.
Now I do not know how to do that. I have normally installed software using yum or apt-get. Can anyone please help me.
Here is the existing config which could be of concern, I do not wanna disturb the other setups apart from what I wanna add to it.
ORACLE_HOME= /opt/oracle/instantclient_18_5/
ORACLE_BASE= /opt/oracle/instantclient_18_5/
LD_LIBRARY_PATH = /usr/local/lib/:/opt/oracle/instantclient_18_5/:
Questions:
Now do I need to download this .rpm file onto the server?
If download then download in /tmp folder, then next? Do I need to install anything else? If yes how can I verify if my current setup already do not have that?
Once installed any post configurations need to be done specially for sqlldr to run?
Please help! Thanks!
It looks like you have Instant Client from ZIP files. (If it was instead from RPMs, you would have the files in /usr/lib/oracle/18.5/client64/...).
So simply unzip the Tools ZIP file so its contents are in your /opt/oracle/instantclient_18_5 directory, and make sure this directory is in your PATH.
Because you are using Instant Client you should unset ORACLE_HOME and ORACLE_BASE. The former can cause problems if it is set with Instant Client.
In general, follow the Instant Client installation instructions at the foot of the download page.
Also look at using Instant Client 19, which is a Long Term Support version and will connect to the same databases as Instant Client 18. Notice that there are no new Instant Client 18 "Release Updates" being released (though you could build them yourself, if needed).

Automating the download of redhat for kickstart

I'm trying to work on a project to automate the kickstart images however i'm stuck on my first subtask.
The download links for redhat downloads look something like the bellow:
https://access.cdn.redhat.com//content/origin/files/sha256/12/mkwosis89j9f8ef53ad7365f2997d42d4f83ccuwodjsl/rhel-server-7.3-x86_64-dvd.iso?auth=148102836_3974432975fa9f10e716c4a38928db
This becomes a problem because i can't know what the sha and the auth code are going to be before hand i can't just modify this url in bash, i need to have a way of going to the Latest downloads page and follow the link.
Anybody know how what i can use to achieve this?
Thanks.
It seems like you will be wasting a lot of bandwidth for each installation. Have you considered creating a local repository of ISO's? You would need to add the latest ISO when it is released. Check out this link for creating ISO repositories.
https://www.cyberciti.biz/tips/redhat-centos-fedora-linux-setup-repo.html

Is there a Grunt.js plugin for downloading via FTP?

There are so many plugins available which will help push to a webserver, but are there any that will download?
A Bit of Background
I'd like to automate the process of publishing my CMS-based website. The only issue is that our marketing people regularly blog and make content changes, so I'd like to first download the content files which have changed to my local development environment (.md files, which are not accessible from the web) before I push everything up to the staging server.
Does anything like this exist? I've searched NPM quite thoroughly, as well as this question which unfortunately didn't yield any results.
I did see a pretty robust cURL based plugin, however it doesn't support FTP authentication and since these files are not web-accessible directly, I'll need to leverage FTP.
A quick google search gave me this: https://www.npmjs.com/package/grunt-ftp

is there a subversion web client that I can use

I want to install a svn web client on Linux (preferred) or Windows. I need only read-only capabilities (no commit required) and I want to be able to compare revisions using diff. my svn server is on another machine so the web server needs to access it over http.
It should also be free...
Do you know any such web client?
There's websvn (websvnphp.github.io) and viewcvs (viewvc.org)
I believe VisualSVN provides what your looking for: http://www.visualsvn.com/
Trac does a pretty good job, also Redmine - you can turn all the other features off on both of them.
I use Trac, but Subversion browsing (with diff) is only part of this project.
Trac is an enhanced wiki and issue tracking system for software development projects. ...
It provides an interface to Subversion (or other version control systems), an integrated Wiki and convenient reporting facilities.
If you are able to spend a little bit of money - try Atlassian Fisheye which is very powerful.
Free for OpenSource-Projects, 10$ for 10 user - more expensive when used for > 10 user
www.atlassian.com
Check out viewvc (it was formerly known as viewcvs).
"ViewVC is a browser interface for CVS and Subversion version control repositories. It generates templatized HTML to present navigable directory, revision, and change log listings. It can display specific versions of files as well as diffs between those versions. Basically, ViewVC provides the bulk of the report-like functionality you expect out of your version control tool, but much more prettily than the average textual command-line program output."
You can use Tortoise on Windows.
I do my interacting with SVN in IntelliJ these days. It's got a terrific interface, especially helpful for merges.
Every client of Subversion is a web client, unless you happen to be logged onto the server where your repository lives.
There is a new Web-UI for Subversion repositories named as cSvn. Please look at README.md file https://csvn.radix.pro/csvn/trunk/README.md/.
You can download latest 0.1.2 source package from https://ftp.radix.pro/pub/csvn/.
This Web-UI can be installed in wery simple way on your server (like all packages used Autoconf, Automake utility):
./configure
make
make install
This is very good UI to promotion your opensource work because it support Google Analytics and Donation dialogue and also looks very good on mobile devices (you can see working site https://csvn.radix.pro to make you decision).

Lightweight version control software on Linux

I'm working with a shell account in a shared system and I would like to use some version control software for my bash scripts and config files.
It must works on Linux with no dependencies, just unpack it in my home dir. I don't need remote checkout, branching or other fancy tricks. I want to be able to commit my changes and restore them if needed.
Try Git.
fossil.
Single binary.
No dependencies.
Version control.
Built in ticket tracker and wiki.
CLI and web interface.
Mercurial. You can just install it in a local directory and make sure that's in your PATH. It gives you a lot of power.
Update for comment:
Most hosting account have way more storage than you'll ever need (e.g. WebFaction gives you 10GB on a $10/mo account), so install Python locally. When you do the build/install simply add --prefix=/home/you/local. It will create local/bin/, local/lib/, etc. Now you have Python and then you can install Mercurial using your very own python.
If your account has little storage, or is missing critical build tools (like gcc, etc.), then you are using the wrong hosting.
I just found Darcs looking at previous questions. It fits perfectly to my needs.
Thanks Adam for your suggestion but Git depends on several packages which versions are not all available to me.
I use Subversion. Works fine for local access.
I also remotely check out my scripts to most of my shell accounts, I must say. It's a really convenient way to make sure the setup of the different accounts stays aligned.

Resources