Log In
|
Users
|
Register
All about IT at IAC
OK
Main
IAC
Intranet
Public
IT
Aerochem
Atmoschem
Atmcirc
Atmosdyn
Chemie
Climdyn
Climphys
Highres
Hyclimm
Hymet
Landclim
S2S
Wolke
Collaboration
IT
Log In
Tools
Create New Topic
Index
Alternative Search
Notifications
RSS Feed
General Info
Wiki Help
Wiki News
Changes in all Webs
System Web
Installed Plugins
About IT Web
Statistics
Changes
Preferences
Edit
|
Attach
|
New
|
View
|
Delete
|
History
|
Diff
|
Print
|
Pdf
|
|
Tools
You are here:
IT
»
LinuxFAQ
---+!! FAQ - Hints & Tricks for Linux Users --- %TOC% ---------------- ---+ General ---++ Which application should I use to do XYZ? * The following list gives an overview of some Linux applications and their purpose %M% LinuxApplications ---++ How can I convert file X into file Y? * See this document for some examples about converting and manipulating files in Linux %M% LinuxConvertFiles ---++ My computer is so slow. What can I do? There could be several reason why your PC gets slow. Please try the following * Execute in Konsole the command ==top==. See if a process is using all your resources (%CPU, %MEM) * ==top -i== will show you only the main running processes * The *load average* in ==top== should be below the amount of CPUs you have. In top press ==1== to see the amount of CPUs * If your PC starts to *swap* (all physical memory is used) it will be very slow. If you see in ==top== processes called kswapd0, kswapd1 using a lot of CPU, your PC is swapping. Stop the program using a lot of memory. * *KDE Desktop effects* can make your PC slow. Try to disable KDE Desktop effects: From the KDE menu choose *Configure Desktop*. Choose from Look & Feel %M% *Desktop* %M% *Desktop Effects* and uncheck the box *Enable desktop effects* * Scrolling in *firefox* can be very slow. See here for a [[LinuxFAQ#Scrolling_in_Firefox_is_very_slo][workaround]] * Acroread does not react for several seconds. See here for a [[LinuxFAQ#Acroread_is_slow_or_hangs_severa][workaround]] %BR% %BR% ---------------- ---+ Login/Logout ---++ I can no longer login to a Linux system * In case you work on a IAC Linux PC, check if the PC is connected to the network. The blue LAN cable should be attached to the back of your PC and the interface should blink. The other side of the LAN cable has to be connected to a UTP plug. * You have exceeded your diskquota. Try to login over ssh and delete files. * Or press at the login screen *CTRL+ALT+F1* and login to the text console. *CTRL+ALT+F7* will bring you back to the login screen again. * =/tmp= is 100% used. Try to login over ssh and delete files in =/tmp=. * Your KDE settings are screwed up. Try to [[LinuxFAQ#How_to_clean_up_your_KDE_setting][clean up your KDE settings]] - note that all KDE settings are lost. However sometimes it's enough to clean up your plasem desktop settings with <verbatim> rm -rf ~/.local/share/kactivitymanagerd # try this first rm -f ~/.config/kglobalshortcutsrc.lock rm -rf ~/.config/plasma-* # try this, if the above doesn't help </verbatim> * You forgot your password. The administrator can set a new password. * Your account was disabled. Ask the administrator to enable it again. * If you are using *tcsh* the .history file could be the problem. On a IAC Deskto press *CTRL+ALT+F1*. Login with username and password, when the login procedure gets stuck, press CTR+C. You should be logged in. Remove ~/.history. Press *CTRL+ALT+F7* and login. * For example to print the size of your folders in the home directory type: <verbatim> du -hd1 ~ du -d1 ~ | sort -n </verbatim> * Quite often your Trash which is under =$HOME/.local/share/Trash= fills up the whole disk space. *Don't forget to delete your trash from time to time.* ---++ I can no longer logout from KDE * Try to logout with the following command: <verbatim> kde-logout </verbatim> or <verbatim> kde-logout -n # -n: logout without confirmation (now) </verbatim> * An other possibility is pressing ==CTRL+ALT+Backspace== *twice*. This will kill the x-server and the login screen should appear. ---++ I can no longer shutdown/reboot my PC * It's possible to poweroff or restart your PC from the command line by typing <verbatim> poweroff reboot </verbatim> ---++ I can no longer unlock the screensaver * It's possible that the screensaver is hanging and using 100% CPU. Press ALT+CTRL+F1 to get to a text terminal. Login with your username and password. Run "top" to see if kscreensaver_g is using 100% CPU. Terminate the screensaver with <verbatim> kill 9 "PID" # or pkill -9 kscreenlocker_g </verbatim> Press ALT+CTRL+F7 to get back to your graphical session. %BR% %BR% ---------------- ---+ SSH and SCP ---++ How can I login over ssh without typing my password? * Use *SSH Key Based Authentication* with *empty passphrase* in order to login over ssh or scp without password. * First, you need to create an RSA key pair on your computer (if you don't already have one): <verbatim> ssh-keygen -t rsa </verbatim> You might need to enter a location to save it. Just use the default path. On Linux it will be somewhere like $HOME/.ssh/id_rsa and for Mac somewhere like /Users/username/.ssh/id_rsa. %BR% %BR% You will also be asked if you want to use a passphrase. If you leave it *blank* (just press enter), *no password* will be required for login. * Then copy the key to remote system: <verbatim> ssh-copy-id user@remotehost.somewhere.ch </verbatim> And you will need to enter your password (for the last time!). * Check that you can execute commands on the remote host via ssh without password, for example with: <verbatim> ssh remotehost.somewhere.ch date </verbatim> * %X% *IMPORTANT:* *Keep secret your private key* =~/.ssh/id_rsa= *and the file* =~/.ssh/authorized_keys=. *Make sure that they are only readable and writable for you*. Be aware that anybody who has a physical access to your machine may be able to get these files. If you think that *somebody has stolen your private key*. Remove all entries of this key from your =~/.ssh/authorized_keys2= files and recreate a new ssh key pair as described above. * New Linux distribution expect to find the keys in *~/.ssh/authorized_keys* instead of ~/.ssh/authorized_keys2. An easy solution is to link your ~/.ssh/authorized_keys2 to ~/.ssh/authorized_keys in order to keep both files the same. * %X% For more information see also [[IT.SSHkeys][Usage of SSH keys to connect to remote servers]] ---++ How to disable ksshaskpass * bash users add to your profile *~/.bashrc* <verbatim> # disable ksshaskpass export SSH_ASKPASS="" </verbatim> * tcsh users add to your profile *~/.cshrc* <verbatim> # disable ksshaskpass setenv SSH_ASKPASS "" </verbatim> ---++ Secure copy (scp) does not work * First try, whether you can login to the remote system with *ssh*. * If you are using *bash*, scp will not work as long as your ==~/.bashrc== generates ANY output. Redirect all output to ==>/dev/null 2>&1== in ==~/.bashrc== * If you are using *tcsh*, scp will not work as long as your ==~/.cshrc== generates ANY output. Redirect all output to ==>&/dev/null== in ==~/.cshrc==. For example <verbatim> source /usr/local/userenv/init_ncl50.csh >&/dev/null source /usr/local/userenv/init_pgi.csh >&/dev/null </verbatim> * See also http://www.openssh.com/faq.html#2.9 ---++ I get "timeout in locking authority file .Xauthority" * Log in over ssh gives the following message and starting any graphical program fails <verbatim> /usr/bin/xauth: timeout in locking authority file /home/username/.Xauthority </verbatim> * Remove .Xauthority-c and .Xauthority-l files and try it again <verbatim> rm -f ~/.Xauthority-c ~/Xauthority-l </verbatim> ---++ When I open a X application over ssh, I get "Error: Can't open display:" * The error means that X11 forwarding is disabled or does not work * In case you use ssh between IAC Linux systems, X11 forwarding is enabled per default. If you get the above error, please contact iac-it@env.ethz.ch * If you login from an other Linux or Mac System, enable X11 forwarding with the ssh option *-X* or *-X -Y*. For example <verbatim> ssh -X username@fog.ethz.ch ssh -X -Y username@fog.ethz.ch </verbatim> * For faster X11 forwarding you can try to enable ssh compression with *-C* option: <verbatim> ssh -X -C username@fog.ethz.ch </verbatim> ---++ When starting a application over ssh, I get "No DBUS session-bus found" * After ssh login run <verbatim> export $(dbus-launch) </verbatim> Please note, this only works for bash shell users, ---++ How can I mount my home directory outside of IAC? * First you need to create an empty directory to be used as mount point. <verbatim> mkdir ${HOME}/ethz_home </verbatim> * Then you can use sshfs as following: <verbatim> sshfs username@fog.ethz.ch: ${HOME}/ethz_home </verbatim> * To unmount the directory: <verbatim> fusermount -u ${HOME}/ethz_name </verbatim> ---++ How can I mount directories that are located behind a remote machine? At CSCS only the ela.cscs.ch machine is exposed to the internet. Therefore one has to always log in first to that machine, before jumping to daint using (=ssh daint=). Directories such as /scratch and /project are not mounted on ela.cscs.ch which makes accessing those cumbersome, in particular using file explorers (e.g., Nautilus, Dolphin). However, one can configure ssh to use a jumphost (here: ela.cscs.ch). To this end put the following in .ssh/config: <verbatim> Host daint HostName daint ForwardX11Trusted yes ProxyJump USERNAME@ela.cscs.ch User USERNAME </verbatim> You can then log in directly to daint with =ssh daint= and mount the filesystem in your favourite file explorer using =sftp://USERNAME@daint=. More info about SSH and keys can be found [[IT.SSHkeys][here]]. %BR% %BR% ------------------------------ ---+ Shell ---++ I get "Argument list too long". What can I do? * The "Argument list too long" error occurs anytime you feed too many arguments to a single shell command, like =ls *=, =rm *=, etc. Below are some suggestions how to work around this problem. * Manually split the command line arguments into smaller bunches. For example <verbatim> ls [a-m]* ls [n-z]* </verbatim> * Use the find command. For example <verbatim> find . -name '*' -exec ls {} \; </verbatim> * Use xargs. For example <verbatim> find . -name '*' | xargs ls </verbatim> * For example to *delete* all netcdf files in a directory you can run <verbatim> find . -maxdepth 1 -type f -name '*.nc' -exec rm -f {} \; </verbatim> * =-type f= find only files (=f=) * =-maxdepth 1= do not descend into subdirectories * ={}= is replaced by the current file name found by =find= ---++ How can I keep running a program in the background? * Please have a look at the Linux tool ==tmux== LinuxUseTmux, or at the tool ==screen== LinuxUseScreen. ---++ My console is dead. What can I do? * Try to press ==CTRL+Q==. * If you use Konsole from KDE and press ==CTRL+S== by mistake, the Konsole will be suspended and looks like completely dead. ==CTRL+Q== will resume the Konsole. %BR% %BR% ------------------------------ ---+ Disk quota ---++ How can I list the quota of my home directory? * You can use the command <verbatim> homequota </verbatim> ---++ How can I find folders using more than 1 MB disk space in my home directory? * The following command will print the size (==du -hs==) of your folders and files (first level = ==-maxdepth 1==) in your home directory (==$HOME==) excluding folders and files which have only some KB of size (==grep -v [0-9]K==): <verbatim> find $HOME -maxdepth 1 -exec du -hs {} \; | grep -v "[0-9]K" </verbatim> ---++ How can I empty the trash manually? * When the trash reaches its maximum size, the error message 'Cleanup the trash manually' will appear. Empty the trash in: <verbatim> cd ~/.local/share/Trash </verbatim> ---++ How can I find out the amount of free disk space in a folder? * Change to the folder and run the command ==df== <verbatim> cd folder df -h . </verbatim> ---++ Is there a way to display the file size in a folder graphically? * Start *konqueror*, browse the the folder or type as Location ==file:/parth/to/your/folder==. In the konqueror menu choose %M% View %M% View Mode %M% File Size View. Please be patient depending on the folder size building up the File Size View can take some time. %BR% %BR% ------------------------------ ---+ Emacs ---++ Do not show the start-up screen of emacs * Add the following lines to your =~/.emacs= or =~/.gnu_emacs= file: <verbatim>;; Do not show the start-up screen (setq inhibit-splash-screen t) </verbatim> ---++ !AUCTeX error message problem * If you use !AUCTeX to write !LaTeX, and upon compilation an error is detected, you are supposed to press C-` to get the error message. If instead of the error message you get ""Error after last !TeX File closed", you can fix the problem by inserting into your =~/.emacs= <verbatim> ; Fix calling convention so AUCTeX reports errors (setq LaTeX-command-style '(("" "%(PDF)%(latex) -file-line-error %S%(PDFout)"))) </verbatim> ---++ Emacs looks different? * In !openSUSE there are different emacs styles available (*emacs-x11, emacs-gtk, emacs-nox*). To get X11 styled emacs type <verbatim> emacs-x11 </verbatim> ---++ Pressing the down arrow key moves cursor to the next line as seen on the screen, but not to end of line * This is the default mode in emacs >= 23.1 (in !OpenSUSE >= 11.3). * To use the original behavior put the following in your ==~/.emacs==: <verbatim> (setq line-move-visual nil) </verbatim> * For more info see http://www.emacswiki.org/emacs/VisualLineMode %BR% %BR% ---------------- ---+ Chrome ---++ Chromium does not start up when executing on a remote machine over ssh * Try to disable 3D software rasterizer <verbatim> chromium --disable-software-rasterize </verbatim> More chromium command line options can be found here: https://peter.sh/experiments/chromium-command-line-switches/ %BR% %BR% ------------------------------ ---+ Firefox ---++ Firefox is hanging for several seconds. What can I do? * Firefox seems to have problems when the profile is stored in your home folder, because your home folder is mounted over NFS v3. * *WORKAROUND:* Move ~/.mozilla to the local disk /lhome 1 Quit Firefox ! 1 Move /home/$USER/.mozilla to /lhome/$USER/.mozilla <verbatim> mv /home/$USER/.mozilla /lhome/$USER/ </verbatim> 1 Link /home/$USER/.mozilla to /lhome/$USER/.mozilla <verbatim> ln -s /lhome/$USER/.mozilla /home/$USER/ </verbatim> 1 Start Firefox * *Drawback:* Since /lhome/$USER/.mozilla is stored locally on your PC. You can no longer start Firefox on another system with your default profile. More information about [[https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles][Firefox profiles]] * *Note:* /lhome is backed up daily to /backup. More information about [[BackupAndRestore][Linux Backup]] ---++ Firefox does not start. What can I do? * Remove the lock files =lock= and =.parentlock= in your firefox profile. For example run the following commands: <verbatim> find ~/.mozilla/firefox -name lock -exec rm -f {} \; find ~/.mozilla/firefox -name .parentlock -exec rm -f {} \; </verbatim> * Or just running the command <verbatim> firefox-unlock </verbatim> will do the same for you. ---++ My firefox is screwed up completely. What can I do? * First try to refresh firefox: https://support.mozilla.org/en-US/kb/refresh-firefox-reset-add-ons-and-settings * In case this does not help *quit firefox* ! * If needed try to safe some settings, see https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile * Now (re-)move your broken firefox profile. <verbatim> cd ~/.mozilla rm -rf firefox # or instead of delete, just move mv firefox firefox.bak </verbatim> If you start firefox now, a fresh firefox profile will be created and all your settings (bookmarks, plugins) are lost. * In order to keep your firefox settings, *copy from the backup an older and working firefox profile* into the ==~/.mozilla== folder before starting firefox. * In case your .mozilla folder is on /lhome <verbatim> cd /backup cd "date-and-time-of-last-working-version" cd $USER/.mozilla cp -a firefox ~/.mozilla/ </verbatim> * In case your mozilla folder is on /home <verbatim> cd /home/.snapshot cd "date-and-time-of-last-working-version" cd $USER/.mozilla cp -a firefox ~/.mozilla/ </verbatim> * Start firefox again. ---++ I miss the icons in the search box (search bar) Firefox version >= 34 comes with an new Search interface, if you don't like it, you can it turn off: 1 Open Firefox and type ==about:config== in the addressbar and press enter. It'll confirm, click on =I'll be careful, I promise!= button. 1 Now type =oneoff= in the Filter box and look for following boolean key: =browser.search.showOneOffButtons= 1 The entry =browser.search.showOneOffButtons= should be set to =true=. Double-click on it or right-click on it and select =Toggle=. It'll set its value to =false=. ---++ My firefox is slow and does not work as expected. What can I do? * Over time Firefox can develop problems like slowness, crashing, unwanted toolbars and more. The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. For more info and how to reset firefox see https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems ---++ Clicking on an email link in Firefox does not open Thunderbird and leaves the recipient blank * In Firefox %M% Edit %M% Preferences * Select the tab *Applications* * As Content type select *mailto*. As action selecte *use other...* * Type in ==/usr/bin/thunderbird -compose %u== %M% OK %M% OK ---++ I see reversed colors (blue people) and artifacts of flash animations all over the screen * Try to unset hardware optimization flag for the flash player. Right-clicking on the video and remove that flag ---++ I see the message "The bookmarks and history system will not be functional because one of Firefox's files is in use by another application. ..." * In most cases this means that the file *places.sqlite* of your firefox profile is damaged after a firefox crash * In this case many firefox functions will not work, like Toolbar buttons such as Back/Forward are disabled * The database file *places.sqlite* stores your bookmarks and history * *places.sqlite* is stored in your firefox profile folder, <verbatim> cd ~/.mozilla/firefox cd 6ie8g6li.default ### your profile will have an other random name in front of .default !! </verbatim> * You can restore *places.sqlite* and *places.sqlite-journal* files from your backup. See the above [[LinuxFAQ#My_firefox_is_screwed_up_complet][FAQ]] for more info. I * In case this does not help, quit firefox, remove ==places.sqlite==, start firefox again. ---++ How do I run multiple sessions of Firefox? * Firefox does not allow two instances with the same user running in different sessions. If you should need it, you must run it with the command: <verbatim> firefox -no-remote -P </verbatim> otherwise you'll have the error "Firefox is already running, but is not responding. To open a new window, you must first close the existing firefox process, or restart your system". ---++ How can I remove the "start new session" when opening firefox? I always want it to start a new session. * Type ==about:config== in the Location Bar * Press Enter * Scroll down to find the line: <verbatim> browser.sessionstore.resume_from_crash </verbatim> * Double click (or right-click and select toggle) to set it to false ---++ How to synchronize bookmarks between different computers? * Firefox can now natively sync bookmarks and other components. * Go to =Preferences= %M% =Sync= and create a firefox account. * Select what you want to synchronize. ----++ How to restore firefox bookmarks? * The firefox bookmarks are stored in the files ==places.sqlite== and ==places.sqlite-journal== * These files are inside your firefox profile folder under ==~/.mozilla/firefox/"anything".default==. Where =="anything"== is a random string like ==cj3cdqk4==. * Restore ==places.sqlite== and ==places.sqlite-journal== from the backup ---++ Scrolling in Firefox is very slow In firefox type as URL ==about:config==. As Filter type ==general.smoothScroll== and the Value to *false* with a double click. %BR% %BR% ------------------------------ ---+ Thunderbird ---++ I don't see all my folders in Thunderbird. What can I do? * In case you create a folder outside of Thunderbird, for example in Webmail, on your iPhone, or in Outlook, Thunderbird will not see this folder automatically. *You have to subscribe to this folder.* Right click on mail account name in Folder Pane and select *Subscribe...*. A new window should open showing a list of folders. Select the folders you want to see in Thunderbird and click on 'Subscribe' and afterward click on OK. * The same happens if you delete/rename a folder outside of Thunderbird. You may have to *Unsubscribe* first, in order to get ride of the "grayish" folder in Thunderbird. ---++ How to set the default web browser in Thunderbird? * In Thunderbird go to %M% Edit %M% Preferences %M% Advanced %M% General %M% Config Editor. As Filter type the following and set them to *true* by double clicking. <verbatim> Network.protocol-handler.warn-external.ftp Network.protocol-handler.warn-external.http Network.protocol-handler.warn-external.https </verbatim> * If you now press on a link, Thunderbird will ask to choose an application. For example for Firefox set /usr/bin/firefox. * Don't forget to select *Remeber my choice for ...* ---++ Thunderbird does not startup. What can I do? * Remove the lock files =lock= and =.parentlock= in your thunderbird profile by running the command <verbatim> thunderbird-unlock </verbatim> ---++ Thunderbird and Firefox are missing scroll arrows * Lack of the scroll arrows buttons is apparently a Gnome/GTK3 theming feature. Add the following lines to your *~/.config/gtk-3.0/gtk.css* should bring them back: <verbatim> *{ -GtkScrollbar-has-backward-stepper: 1; -GtkScrollbar-has-forward-stepper: 1; -GtkScrollbar-has-secondary-backward-stepper: 1; } </verbatim> ---++ How can I use my ETH exchange calendar in Thunderbird? * Install the following add-ons in Thunderbird %M% Tools %M% Add-ons %M% Search for the add-on * *TbSync* (https://addons.thunderbird.net/en-us/thunderbird/addon/tbsync and https://github.com/jobisoft/TbSync) * *Provider for Exchange !ActiveSync* (https://addons.thunderbird.net/en-us/thunderbird/addon/eas-4-tbsync and https://github.com/jobisoft/EAS-4-TbSync) * After the add-ons are installed, we can start to configure !TbSync for synchronize with Exchange * In Thunderbird %M% Tools %M% Add-on Preferences %M% !TbSync * Click on *Account actions* %M% Add new account %M% Exchange !ActiveSync %M% *Microsoft Office 365* * Fill out * Account name: can be any name, for example *ETH* * User name (email address): *your_eth_username@ethz.ch* * Password: *your ETH password (Mail)* * Click on *Add account* * Enable the synchronization status for the account by enabling *Enable and synchronize this account* and choose the *Available resources* for the Calendars. You may also choose to synchronize your Tasks and Contacts too. * Set a Periodic synchronization (for example 5 minutes) and click on Synchronize now * Finally close the !TbSync account manager window * In Thunderbird under *Calendar* right click on the new calendar %M% Properties %M% assign an email identity ---++ Thunderbird does not open links * Search for your preference file =prefs.js= in your thunderbird profile folder: <verbatim> find ~/.thunderbird -name prefs.js </verbatim> * Add the following lines in =prefs.js= to open links with firefox: <verbatim> user_pref("network.protocol-handler.app.http","/usr/bin/firefox"); user_pref("network.protocol-handler.app.https","/usr/bin/firefox"); user_pref("network.protocol-handler.app.ftp","/usr/bin/firefox"); </verbatim> ---++ Thunderbird is filling up my home directory. What can I do? * Per default Thunderbird 3.x downloads all emails to your local =~/.thunderbird= folder. Since your emails are stored on the ETH mailserver this behavior is not needed and it is a waste of diskspace in your home directory. * See here how to disable this feature: ThunderbirdConfigure ---++ Is there a way to force Thunderbird to look inside all subscribed folders for new mail? * In Thunderbird go to %M% Edit %M% Preferences %M% Advanced %M% General tab %M% Config Editor... * Choose as Filter: imap * Now double click on ==mail.check_all_imap_folders_for_new== to set it to *true*. ---++ Thunderbird downloads attachments only partially. The result are corrupt attachments like damaged PDFs. * In Thunderbird go to %M% Edit %M% Preferences %M% Advanced %M% General tab %M% Config Editor... * Choose as filter: by_chunks * Double click on ==mail.imap.fetch_by_chunks== (only Thunderbird <= 2.x) and ==mail.server.default.fetch_by_chunks== to set them to *false*. * In addition, choose as filter: literal * Double click on ==mail.imap.use_literal_plus== to set it to *false*. Usually Thunderbird downloads attachments "in chunks", but to do it it's necessary that the mail server reports their right size. Sometimes servers don't support this feature properly which can lead to corrupt attachments. ---++ I don't see all my mail folders in Thunderbird * Right click on *Inbox* and choose Subscribe... * Mark the mail folders you want to see inside thunderbird and press Subscribe / OK ---++ I use Thunderbird 3.x and want to have some Thunderbird 2.x functionality back * See ThunderbirdConfigure ---++ I would like that Thunderbird shows me the number of unread messages in the system tray? * Have a look add the Add-on !FireTray: https://addons.mozilla.org/en-US/firefox/addon/4868 %BR% %BR% ------------------------------ ---+ Latex ---++ Missing style files * The latex installation is split into over 4'500 different packages. We only have installed 1'000 of them. In case you miss a latex style file, please let us (iac-it@env.ethz.ch) know. ---++ How to add subfolders to TEXINPUTS? * If you want to add specific files like bib-styles and so on open ==~/.bashrc== and add the following <verbatim> export TEXINPUTS=/Dir_1/Dir_2/Latex_Stuff//: </verbatim> The two // at the end allow a recursive search in the directory, i.e., it checks also subfolders. Or for ==~/.cshrc==: <verbatim> setenv TEXINPUTS /Dir_1/Dir_2/Latex_Stuff//: </verbatim> ---++ My Latex installation seems to be broken * Revise your ==TEXINPUTS== and ==BSTINPUTS== variables. <verbatim> echo $TEXINPUTS echo $BSTINPUTS </verbatim> * Unless you have a special reason unset these variables per default in your shell profile files (tcsh: ==~/.cshrc==; bash: ==~/.bashrc==) ---++ !AUCTeX error messages problem If you use !AUCTeX to write !LaTeX, and upon compilation an error is detected, you are supposed to press C-` to get the error message. If instead of the error message you get ""Error after last !TeX File closed", you can fix the problem by insert into your ~/.emacs <verbatim> ; Fix calling convention so AUCTeX reports errors (setq LaTeX-command-style '(("" "%(PDF)%(latex) -file-line-error %S%(PDFout)"))) </verbatim> %BR% %BR% ------------------------------ ---+ !LibreOffice ---++ How to set A4 page size as default? * The default locale setting of in Libreoffice is set to English (USA). * In order to change the default page size from Letter to A4. Set the locale setting for example to English (UK) or German (Switzerland) * The locale setting influences settings for numbering and units of measure. * Go to %M% Tools %M% Options %M% Language Settings %M% Languages. Set Local setting for example to *German (Switzerland)* %BR% %BR% <img src="%ATTACHURLPATH%/Screenshot_LibreOffice.png" alt="Screenshot_LibreOffice.png" width='797' height='516' /> ---++ How to repair a corrupt .DOCX file? * Unzip the .docx file in a temporary directory: <verbatim> mkdir temp unzip broken.docx -d temp </verbatim> * Assuming the XML error is near line 2, column 30441, open the file word/document.xml in emacs at this position: <verbatim> emacs -nw +2:30411 temp/word/document.xml </verbatim> * Emacs should color XML errors in red. Correct the error. * Remove any emacs backup files (*~), for example <verbatim> rm temp/word/document.xml~ </verbatim> * Pack all files again in a DOCX File: <verbatim> cd temp zip -r ../fixed.docx * </verbatim> * Open the fixed file in !LibreOffice - Good luck! <verbatim> oowriter ../fixed.docx </verbatim> ---++ !LibreOffice/OpenOffice is crashing all the time or does no longer start up. What can I do? * Try to clean up all your !OpenOffice settings <verbatim> mv $HOME/.ooo-2.0 $HOME/_ooo-2.0 mv $HOME/.ooo3 $HOME/_ooo3 mv $HOME/.libreoffice $HOME/_libreoffice </verbatim> ---++ Impress is very slow. What can I do? * Do not insert graphics as eps. Use jpg or png instead * Disable Font Anti-Aliasing: %M% Tools %M% Options %M% !LibreOffice %M% View %M% untick Use Anti-Aliasing %BR% %BR% ------------------------------ ---+ Matlab ---++ Matlab is crashing or does not work * Please see [[MatlabTroubleshooting][Troubleshooting Matlab]] ---++ Matlab fonts are huge in the command window Open the Preference window using the Preferences menu. There is a Fonts item in the Preferences that will let you customize the fonts used in each of the Desktop tools and the main font settings. Change all fonts from "Desktop code" to *Custom*. Choose for example ==Droid Sans Mono== %BR% %BR% ------------------------------ ---+ Sound ---++ How do I turn off that annoying system beep? * In a shell, type <verbatim> xset b off </verbatim> and enjoy the silence. * In order to disable the system beep permanently add to your shell profile ==~/.bashrc== (for bash) or ==~/.cshrc== (for tcsh) the line <verbatim> xset b off >&/dev/null </verbatim> ---++ Sound is not working. What can I do? * Click on the loudspeaker icon found in the panel/system tray. Or from a console run the command <verbatim> kmix </verbatim> * Sometimes the KDE tool kmix is not working properly. In this case try to configure the sound with the GNOME command: <verbatim> pavucontrol </verbatim> * Check if all channels are enabled (the button at the top should be light green). Set all channels to maximum and try to play a test sound. Warning: This can be very load. <verbatim> speaker-test -c2 -l5 -twav </verbatim> If you hear a sound, adjust the level of the channels. * In case you don't hear anything, either your sound card is not configured correctly or your sound card is not supported by the Linux installation. Contact your system administrator %M% GettingHelp %BR% %BR% ------------------------------ ---+ KDE ---++ KDE or the KDE menu bar is hanging what can I do? * In case the Task Manager or the KDE Menu is hanging, try to restart plasma. In a console (or press ALT+F2) type <verbatim> killall plasmashell plasmashell & </verbatim> * Kill your session by pressing twice CTRL+ALT+BACKSPACE. *IMPORTANT:* In contrast to the above commands, all unsaved data will be lost! * If nothing works, you have to reboot your PC. Press ALT+F2) type <verbatim> reboot </verbatim> ---++ KDE menu does no longer show any applications and/or clicking on a file does not open any application * Try to rebuild the KDE configuration cache <verbatim> rm -rf ~/.config/menus kbuildsycoca5 --noincremental </verbatim> * Re-install KDE Application menu widgets ---++ How to change the keyboard layout * Right click on the ==US== symbol on the right side of the system tray/panel - select =Preferences= %M% =Input Methods= %M% =Add= %M% =German= %M% =German (Switzerland)= %M% =Add= %BR% ---++ Kactivitymanagerd pops up every second. What can I do? * Try to reset the kactivitymanagerd settings with <verbatim> rm -rf ~/.local/share/kactivitymanagerd </verbatim> ---++ I don't like KDE. Is there an alternative? * Yes. Try out *XFCE Desktop* ([[http://www.xfce.org][http://www.xfce.org]]). Xfce is a lightweight desktop environment. At the login screen select *Session Type* and choose *Xfce Session* instead of KDE. ---++ How to change the desktop background? * Right click on your desktop and select *Configure Desktop* ---++ How to change the font in the konsole (terminal)? * Open a terminal (konsole). * In the menu go to *Settings* %M% *Edit Current Profile...* Click on the *Appearance* tab. At the bottom choose *Edit Font...*. Select a font. For example ==Droid Sans Mono size 10 points==. Finally press Ok and Apply. ---++ How to put application icons in the panel? * In the KDE menu search for the application you want to put into the panel. * Instead of starting the application with a left click, right click on it and from the menu cooose *Add to Panel*. About how to move the icon inside the panel, see next point. ---++ How to move icons/widgets in the panel? * Right click on the panel and choose *Panel Options* and %M% choose *Panel Settings*. Or on the right side of the panel click on the *three horizontal lines* symbol. * While the Settings window is opened, move the cursor to the icon/widget on the panel, click on it and move to the desired location and click again. Close the Panel Settings window after the move. ---++ I cannot modify my panel, for example add applications or move widgets? * Check if your panel is not locked. Right click on the panel and select *Unlock Widgets*. ---++ How to adjusting the thickness of the panel? * On the right side of the panel click on the *three horizontal lines* symbol. A toolbar pops up. * Click the "Height" button but DO NOT RELEASE the mouse button. * Now move the mouse, this causes the height of the panel to grow or shrink. ---++ How to configure the pager? * The pager shows you the virtual desktops. The pager is a widget and can be added to the panel or to the desktop. * To configure the pager located in the panel, right click on it and choose *Pager Settings* or *Configure Virtual Desktops*. ---++ How to Disable Akonadi? * Open ~/.config/akonadi/akonadiserverrc and set “StartServer” to false. <verbatim> [QMYSQL] StartServer=false </verbatim> * Later if you want to use akonadi again, you can manually start it by running the following command: ‘kcmshell4 kcm_akonadi‘ or ‘akonaditray‘. * %X% Note: PIM applications and other akonadi dependent applications (kontact, kaddressbook, kmail, korganizer, kalarm, etc) won’t work with akonadi disabled. ---++ How to clean up your KDE settings * If you experience problems with KDE. I recommend *to start from scratch* and clean up all your KDE settings. * To (re-)move your KDE settings move them to a backup folder. Start a konsole/terminal and type: <verbatim> mkdir ~/KDE.backup mv ~/.local/share/kactivitymanagerd ~/KDE.backup rm -f ~/.config/kglobalshortcutsrc.lock mv ~/.config/plasma-* ~/KDE.backup mv ~/.config/*rc ~/KDE.backup mv ~/.kde4 ~/KDE.backup mv ~/.kde ~/KDE.backup </verbatim> * Or just remove it completely <verbatim> rm -rf ~/.local/share/kactivitymanagerd rm -rf ~/.config/plasma-* rm -f ~/.config/kglobalshortcutsrc.lock rm -rf ~/.config/*rc rm -rf ~/.kde4 rm -rf ~/.kde </verbatim> * *NOTE*: Maybe you only have to remove ~/.config/plasma-* * Now *logout and login again*. KDE4 will start with the default settings. * If you can not login to KDE, press Ctrl+Alt+F1. Login to the text console. (Re)move ~/.kde and ~/.kde4. Press Ctrl+Alt+F7 to get back to the login screen. * Instead of starting with fresh KDE settings, try to restore old ~/.kde and ~/.kde4 folders from the backup, see LinuxHome#Restore_from_Backup ---++ How to set a shortcut to start an application? * On a konsole start the program ==systemsettings5==. Or from the KDE menu choose *Configure Desktop*. Choose from Workspace *Shortcuts*. ---++ How to mount/unmount USB disks and CD/DVD ? * Use the plasma widget called *Device Notifier*, which shows attached devices such as USB flash drives, CD/DVD drives, or digital cameras. * For more info see [[http://userbase.kde.org/Plasma/DeviceNotifier][DeviceNotifier]] ---++ Shutdown the PC from the KDE menu does not work or only after a long delay * To power off your PC start a konsole and type the command *poweroff* or *turnoff*. For more information see also RemoteTurnOffOn %BR% %BR% ------------------------------ ---+ XFCE ---++ All window title bars went missing, how to get them back? * Remove all XFCE settings and cache from your home directory to reset to default <verbatim> rm -rf ~/.cache/sessions/xfce4-session rm -rf ~/.cache/xfce4* rm -rf ~/.config/autostart/xfce4-settings-helper-autostart.desktop rm -rf ~/.config/xfce4 </verbatim> ---++ Changing the number of workspaces in the settings does not have any effect. * Remove all XFCE settings and cache from your home directory to reset to default (see above) %BR% %BR% ------------------------------ ---+ GNOME Shell ---++ Screen cannot be locked * For versions of Gnome Shell newer than 3.6, gnome-screensaver is no longer available and locking the screen relies on the display manager GDM. Since the standard installation uses SDDM, the screen cannot be locked. As a fix xscreensaver can be used by invoking <verbatim> xscreensaver-command -lock </verbatim> * This can be mapped to the keyboard shortcut Ctrl + Alt + L under Settings -> Keyboard -> Custom Shortcuts. * Note that xscreensaver needs to run in the background and should be added with a new entry in the autostart folder (~./config/autostart/): <verbatim> [Desktop Entry] Name=XScreensaver GenericName=Xscreensaver Exec=/usr/bin/xscreensaver Terminal=false Type=Application X-GNOME-Autostart-enabled=true </verbatim> ---++ How to disable keyring * if you get <verbatim> Enter password to unlock your login keyring </verbatim> and don't remember your password for the keyring. Remove all keyring settings with <verbatim> rm -rf ~/.local/share/keyrings rm -rf ~/.gnome2/keyrings </verbatim> * BTW. The GNOME keyring application can be started with the command <verbatim> seahorse </verbatim> %BR% %BR% ------------------------------ ---+ Python %INCLUDE{"IT.PythonFAQ"}% <!-- * Set DENYTOPICVIEW = -->
View
Changed by
UrsBeyerle
on
13 Dec 2024 - 10:07 - r178
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Wiki?
Send feedback
Syndicate this site
RSS
ATOM