Linux Hints
- Problem: Moving files into a web directory, even after changing permissions reporting a permission error when clicked on from web:
- Adding a user to an existing group
- usermod -a -G {group} (username}
- Listing groups a user belongs to
- Forcing all files in a folder to belong to a group:
- Ubuntu: setting your default shell:
- chsh
- then type the path to the shell you want, ex: /bin/bash
- Adding a user
- useradd -c "{USER FULL NAME}" -g {group} {username}
- set password for a user
- Force the user to change their password on next login
- Copy disk image
- sudo dd if=/path/of/source of=/path/of/destination bs=1M
Kmail
Kmail won't open folders
This one is mostly a matter of restarting so KMail can fetch those pesky items... Some possible steps: Use Alt + F2 or Konsole to type: kquitapp kmail, then wait a minute, then akonadictl stop, wait a minute, type akonadictl start, wait a minute, type kmail. This stops KMail (closing all windows), stops the KMail backend, starts the KMail backend, starts KMail. Having a working internet connection increases the chances of success. Sometimes, you can also just do kquitapp kmail, wait a minute, and start KMail again. Often, a few restarts seem to be needed. It is unclear what is the reason for this, but on bad network connections it is more likely to happen.
PDF
Merging PDF documents
gs -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=outputfile.pdf doc1.pdf doc2.pdf doc3.pdf ... docN.pdf
Comments