Showing posts with label startup. Show all posts
Showing posts with label startup. Show all posts

Wednesday, February 19, 2014

Rotate webcam on Skype for Linux on ASUS laptops

If you have an ASUS laptop and use Skype on Linux, you'll probably face the problem of having the webcam image rotated by 180° and only on Skype, not on other applications.
To solve this problem you need to install and load a 32-bit library (since Skype is compiled for such architectures) before launching Skype.
In addition to this, I'll show how to solve this problem also if you want to install a skype wrapper, in the case Skype is not always visible on the system tray.

These are the commands to type in a Terminal
  • add the skype-wrapper repository (optional): sudo add-apt-repository -y ppa:skype-wrapper/ppa && sudo apt-get -qq update
  • install skype-wrapper (optional): sudo apt-get install skype-wrapper
  • sudo apt-add-repository ppa:libv4l/stable
  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get install libv4l-0:i386
Then, in a folder where it doesn't annoy you, create a file named skype.sh and copy these two lines inside it:
#!/bin/bash
LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype

ATTENTION: put skype-wrapper instead of just skype in the line above if you chose the option of installing the wrapper!

In you want Skype to automatically load at startup, on the Menu find "Startup Applications", remove other Skype launchers if available, and press the "Add" button. Give the name and comment you like, and in the "Command" field put the absolute path of the file created above, for example "/home/me/skype.sh".

The End.

Monday, November 12, 2012

How to use commands with options in shortcuts / at startup

Running a shell command that has some options (command -opt) at startup or with a keyboard shortcut may not work, so the only solution is to create a bash script with the desired command inside and launch the script instead.
Here is what you have to do (assuming the script will be named myscript, your command is mycomm and has option -opt):

  • in a Terminal (CTRL+ALT+T) type gedit myscript (or another editor instead of gedit)
  • copy and paste the following code inside:
    #! /bin/bash
    mycomm -opt
  • save and close
  • in the Terminal type chmod +x myscript to make it executable
  • move the file in /usr/bin to make it runnable: sudo cp -a myscript /usr/bin
  • add /usr/bin/myscript as command to the startup processes or to your customized keyboard shortcuts.

Saturday, June 11, 2011

How to add a startup process on Windows (example: task manager)

If you want a program to run automatically when you turn on your pc you have to follow these steps:

(I explain it through the example of task manager)


  • rightclick Start - Programs - Startup (italian: Start - Tutti i programmi - Esecuzione automatica) and select Open
  • rightclick on the folder and select New - Shortcut (italian: Nuovo - Collegamento)
  • insert the path of the executable file of the desired process (e.g. C:\Windows\System32\taskmgr.exe )
  • rightclick on your new shortcut and choose Properties if you want, for example, to run the program minimized to tray or if you want a normal window to open