man foo | col -b | lpr
Friday, September 14, 2012
Saturday, August 25, 2012
Find working process on a mounted device
fuser -m /any/mounted/dir should give you whatever processes could still be active on the mounted device.
Tuesday, July 31, 2012
Mass Resize Photos
mogrify -resize 35% -quality 50% _MG*.JPG
mogrify -rotate -90 _MG*.JPG
Sunday, July 8, 2012
Blogilo 1.1
Blogilo 1.1 Blogger testing Using any hard returns will result in a posting error due to the xml parsing, this now makes Blogilo impossible to use with blogger. Some punctuation also results in an error.
Truecrypt User Mount
If you have truecrypt and want to mount a volume using the gui, you will notice that it requires root access to mount. Here is how to use the gui to mount and unmount volumes as a user:
First we need to create a group which will have all the permissions required for our users to mount and umount volumes
Login to a shell as root and type the following commands:
groupadd truecrypt
now we need open the visudo file and add permissions for the truecrypt group to work: (I added the line to the bottom of the file)
visudo
# Users in the truecrypt group are allowed to run truecrypt as root
%truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt
make sure you save and exit (if you do not know how to use visudo or vi, man visudo or man vi will help you, you can also google for common vi commands. IT IS NOT RECOMENDED TO EDIT THE VISUDO FILE FROM ANOTHER EDITOR. THE SAFE WAY TO EDIT THE VISUDO FILE IS TO RUN VISUDO FROM A ROOT SHELL
Finally we need to add our trusted users to the truecrypt group so they can mount and unmount truecrypt files.
gpasswd -a USERNAME truecrypt
Sunday, June 10, 2012
Boinc Slackbuild on github
Since Slackbuilds will not host my BOINC slackbuild which uses svn to download, compile sources, I created a github account and uploaded them there.
https://github.com/KaMiila/BOINC-SlackBuild
Wednesday, June 6, 2012
Disable root access on SSHD
Why slackware does not initially disable root access on SSHD is beyond me, here is how to turn it off:
login as root:
nano /etc/ssh/sshd_config
Change from:
# PermitRootLogin yes
Chang to:
PermitRootLogin no
Save and exit
Issue command:
/etc/rc.d/rc.sshd restart
**** Make sure you remove the comment (#) or nothing will change ****
Subscribe to:
Posts (Atom)