Davincium - Linux - Solved Problems and Howtos <style type="text/css"> W {color:red;} C {color:white;} </style> <pre> As I use Ubuntu some of these problems may be Ubuntu/Debian related. <ul><li><W><b>P:</b> Problem</W></li><li><b>S:</b> Solution</li><li><C>$: Command</C></li></ul> <W><b>P:</b> Fixing strange language settings and symbol malfunctions.</W> <b>S:</b> Play around with this, unselect and select the wanted locales, chosing defaults. <C>$ sudo dpkg-reconfigure locales</C> <W><b>P:</b> How to auto send pmsges to the status window in irssi.</W> <b>S:</b> Write this in a running irssi window. <C>$ /set autocreate_query_level DCCMSGS</C> <W><b>P:</b> Customizing aterm.</W> <b>S:</b>To turn on transparency, removing the scrollbar, default font, startup window size and increasing the number of saved lines to maximum. Write this to the file /home/$USER/.Xresources Aterm.foreground: white Aterm.background: black Aterm.transparent: true Aterm.shading: 40 Aterm.scrollBar: false Aterm.font: 7x14 Aterm.geometry: 100x25 Aterm.saveLine<b>S:</b> 32767 And then run the command: <C>$ xrdb -merge /home/$USER/.Xresources</C> <W><b>P:</b> Changing the UID (User identification number)</W> <C>$ sudo usermod -u (UID) (username)</C> But remember to change the owner of the home dir afterwards. <C>$ sudo chown -R (username) /home/$USER</C> <W><b>P:</b> Mass renaming filetypes.</W> <b>S:</b> <C>$ ls -d *.A | sed 's/\(.*\).A$/mv "&" "\1.B"/' | sh </C> .A being what they are. .B being what they will become. <W><b>P:</b> Batch resizing images. </W> <b>S:</b> <C>$ mogrify -resize 25% *</C> This will resize all the images in the folder you're in, overwriting the contents. If you want to create a resized image somewhere else you need to use the command convert. </pre> </td> </table> </div> </body> </html>