Posts

Showing posts from February, 2016

How to install TeamViewer 11 on Ubuntu 15.10

Image
Normally, you need wine to install teamviewer.exe, but in this new version, you can install it using a .deb file as follows: wget  http://downloadus1.teamviewer.com/download/version_11x/teamviewer_11.0.53191_i386.deb sudo dpkg -i teamviewer_11.0.53191_i386.deb Maybe you will get this error: dpkg: dependency problems prevent configuration of teamviewer:i386:  teamviewer:i386 depends on libjpeg62.  teamviewer:i386 depends on libxtst6. To fix it, you need to install this library: sudo apt-get install  libjpeg62-dev

Printing multiple files from the right-click context menu in Nautilus

Image
If you want print files without open them, you can use nautilus scripting. You can use your printer or a pdf printer (sudo apt-get install cups-pdf ) Go to ~/.local/share/nautilus/scripts Create a new file and call it "printer.sh" #!/bin/bash # # pdf-printer.sh # # Print files from the right-click context menu in Nautilus. # Place this script in ~/.local/share/nautilus/scripts. # The printer to use (as shown in the Printer Configuration # gui or in /etc/cups/printers.conf). printer=HP-LaserJet-P2055 echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | while read file do lpr -P "$printer" "$file" done exit 0 In printer value, you can choose your favorite one with the same name that you see in your printers. Now give execution permission to the file (chmod +x printer.sh) and restart nautilus. If you click on a document, now you can see it as follows (In my case I created 2 printers):

The disk contains an unclean file system (0, 0)

Image
This problem occurs with an unexpected shutdown of a disk with NTFS partition (in this case with /dev/sda8) Error mounting /dev/sda6 at /media/dragonx/BACKUP: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda8" "/media/dragonx/BACKUP"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda8': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option To solve this, just execute the following command: sudo ntfsfix /dev/sda8 Where /dev/sda8 is the disk with problems

IEEE journals with bibtex compatibility

If you want manage your bibliography with a .bib instead of bibitem, first you can do it with JabRef (see How to run JabRef on Ubuntu 15.10 ) A typical bibitem example is as follows: \begin{thebibliography}{1} \bibitem{IEEEhowto:kopka} H.~Kopka and P.~W. Daly, \emph{A Guide to \LaTeX}, 3rd~ed.\hskip 1em plus 0.5em minus 0.4em\relax Harlow, England: Addison-Wesley, 1999. \end{thebibliography} You need to replace it to: \bibliography{papers.bib}{} \bibliographystyle{IEEEtran} Where papers.bib is the file where you have all information about your bibliography. Now, compile it with TeXstudio (see  How to install TeXstudio 2.10.6 on Ubuntu 15.10 ) I couldn't open style file IEEEtran.bst To solve this we have 2 solutions Download IEEEtran.bst from CTAN with wget  http://tug.ctan.org/macros/latex/contrib/IEEEtran/bibtex/IEEEtran.bst Or install it with  sudo apt-get install  texlive-publishers

How to run JabRef on Ubuntu 15.10

Image
When you install JabRef 2.10 on Ubuntu with apt-get install jabref , after that if you run it, jabref never load. If you go to the CLI, you can see this as follows: log4j:WARN No appenders could be found for logger (org.java.plugin.ObjectFactory). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Found 2 plugin(s):   - net.sf.jabref.export.misq (jar:file:/usr/share/jabref/JabRef-2.10.jar!/plugins/net.sf.jabref.export.misq/plugin.xml)   - net.sf.jabref.core (jar:file:/usr/share/jabref/JabRef-2.10.jar!/plugins/net.sf.jabref.core/plugin.xml) The problem is associated with java version. Probably, you have a java version above 6 (oracle java 7 or 8). One solution is install a lower version like version 6. The other solution is download the lastest version compatible with your java version. wget  http://tenet.dl.sourceforge.net/project/jabref/v3.2/JabRef%20Version%203.2.tar.g...

Configuring bluetooth for AioRemote Server 3.5 on Ubuntu 15.10

Image
If you want control your Linux from your Android device, you can use AioRemote using wifi or bluetooth. If you haven't any wifi AP, is better use bluetooth. The probem is when you run AioRemote: If you go to the CLI, you must see this as follows: $ java -jar AioRemoteDesktop3.5.0.jar  BlueCove version 2.1.1-SNAPSHOT on bluez Feb 06, 2016 7:30:41 PM com.allinoneremote.util.BluetoothPcNetworkStrategy listenOnPort SEVERE: null javax.bluetooth.ServiceRegistrationException: Can not open SDP session. [13] Permission denied Mainly, when you have a Permission denied problem, just enough with apply sudo, but not in this case: $ sudo java -jar AioRemoteDesktop3.5.0.jar  [sudo] password for dragonx:  BlueCove version 2.1.1-SNAPSHOT on bluez Feb 06, 2016 7:31:58 PM com.allinoneremote.util.BluetoothPcNetworkStrategy listenOnPort SEVERE: null javax.bluetooth.ServiceRegistrationException: Can not open SDP session. [111] Connection refused ...

Remove "vboxclient the virtualbox kernel service is not running. exiting" popup

If you want to remove this popup at the startup, you can modify  /etc/X11/Xsession.d/98vboxadd-xclient and replace the message in notify-send by an echo. The otherwise is removing the file. sudo rm /etc/X11/Xsession.d/98vboxadd-xclient