On a Linux desktop one thing I miss is the ability to easily add metadata (exif / iptc) to the images I upload to stock photo websites. Adding this metadata makes it much easier to submit the same photo to multiple websites. The ‘File Info’ command in Photoshop does what I want but I haven’t… Read more »
Posts Categorized: linux
Automounting Netgear ReadyNAS CIFS Shares
I wanted to use Autofs to auto-mount the shares on my Netgear ReadyNAS upon entering specific directories so… Install pre-requisites: sudo apt-get install cifs-utils autofs sudo gedit /etc/auto.master Add the line: /mnt/nas /etc/auto.nas –timeout=6000 –ghost sudo gedit /etc/auto.nas And added the following lines: pictures -fstype=cifs,rw,noperm ://nas/pictures videos -fstype=cifs,rw,noperm ://nas/videos music -fstype=cifs,rw,noperm ://nas/music documents… Read more »
wine cmd.exe /c echo ‘%ProgramFiles%’ returned empty string
I had this problem today: wine cmd.exe /c echo ‘%ProgramFiles%’ returned empty string When I was trying to run Winetricks: sh winetricks msxml6 gdiplus gecko vcrun2005 Until I realised that I was trying to run winetricks as root rather than as my normal unprivileged user. Just in case it helps anyone else.
Testing Proxy.pac Files
I decided to do a bit of checking on the proxy.pac file we were using. I grepped through our Apache access log files to pull out all of the IP addresses accessing the file over the year: zgrep “proxy.pac” ./2013-??-??.access_log.gz | awk ‘{print $1}’ | awk -F “:” ‘{print $2}’ | sort | uniq >… Read more »
Coloring Bash Output
I wanted to add some colour to the output of my bash shell script and was able to do so with the following – very simple red and green: if [ $COUNT -eq 0 ]; then tput setaf 2 echo “OK There are no problems” tput sgr0 else tput setaf 1 echo “WARNING There are… Read more »
Radius with LDAP Authentication
The notes here are a quick howto for using LDAP authentication against Active Directory. It is possible to use Samba/Winbind/Kerberos authentication within Radius too and I may post those notes when I get a chance but for now this is how I implemented it with LDAP. Install required software on CentOS/Red Hat: yum install freeradius… Read more »
Apache Directory Studio (Softerra Alternative)
I was looking for an alternative to the Windows software ‘Softerra LDAP Browser’ and I stumbled upon Apache Directory Studio. Apache Directory Studio is based on Eclipse and allows browsing to LDAP directories, searching and editing. I tested it with connections to Active Directory, Novell eDirectory and another lesser known LDAP directory. Install Apache Directory… Read more »
LPIC in practice: init=/bin/bash
Today I had a problem booting my Ubuntu desktop – with booting stuck on the purple screen. An Alt-1 showed me that there were problems with the disk and a manual fsck should be run. So at the Grub screen I pressed ‘e’ to edit the current entry and on the linux (kernel) line I… Read more »
Simple File Share with Samba
Just making a copy of a /etc/samba/smb.conf file that works for sharing a single directory within a private network. There is no security / privacy just a public share. [global] workgroup = WORKGROUP server string = %h server (Samba, Ubuntu) dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog =… Read more »
proftpd Unable to open config file: /etc/security/pam_env.conf
Although it wasn’t causing any problems I wanted to stop proftpd logging these lines: Aug 15 09:51:00 servername proftpd: pam_unix(proftpd:session): session opened for user joebloggs by (uid=0) Aug 15 09:51:01 servername proftpd: pam_env(proftpd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory Aug 15 09:51:01 servername proftpd: pam_succeed_if(proftpd:session): error retrieving information about user 0 Aug… Read more »