Tag Archives: linux

really simple image editor for linux

Want to add a square, a line and not an expert?

Use Pinta. Problem solved.

apt-get install pinta

More here:

If anything more complicated than that (still assuming you’re not a pro), you can try rawtherapee.

install new #crontab from #bash script

you need to:

  1. save the current cron jobs for the user
  2. create a file with the new job description (pun intended)
  3. insert the new configuration
  4. check the new conf

crontab -l > /tmp/current_cron
or, even better. append directly to your cron conf
crontab -l >> cronconf.txt

the file should look like
cat cronconf.txt
*/1 * * * * /bin/ls >> /tmp/ls
*/1 * * * * /bin/touch /tmp/me

Insert the new conf by calling crontab
crontab cronconf.txt

check the new conf with
crontab -l

backlight Lenovo T430 – debian – 3.16-2-amd64

Backlight keys are no longer working since last upgrade.

ugly workaround:

root@fvaras:/home/fvaras# cat /sys/class/backlight/intel_backlight/brightness 
root@fvaras:/home/fvaras# echo 2000 > /sys/class/backlight/intel_backlight/brightness 

bash inverse wildcards

If you want to ls all BUT the .sh files:

ls !(*.sh)


tatico@tortuguita:~/codigo/python/files_keeper/random_files$ ls *.sh
random_file-clean.sh  random_file_generator.sh  random_file_spread.sh
tatico@tortuguita:~/codigo/python/files_keeper/random_files$ ls !(*.sh)
file4ShdNk  filea6uHLm  fileB4sRgx  filecdQQzj  fileLYvbHv  fileo4TKHj  fileoKaCVj  fileSxbv0v  fileTlphlz  fileYLJ43w
tatico@tortuguita:~/codigo/python/files_keeper/random_files$ ls
file4ShdNk  fileB4sRgx  fileLYvbHv  fileoKaCVj  fileTlphlz  random_file-clean.sh      random_file_spread.sh
filea6uHLm  filecdQQzj  fileo4TKHj  fileSxbv0v  fileYLJ43w  random_file_generator.sh

dealing with YUM and an old Cento5.5

‘yum search htop’ gave no results.

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm
rpm -K rpmforge-release-0.5.3-1.el5.rf.*.rpm
rpm -i rpmforge-release-0.5.3-1.el5.rf.*.rpm
yum install htop