Questions tagged [autorun]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
23 views

Autorun script while plugging in a USB device on a USB-media blocked PC

I have about 50 PCs with Ubuntu versions ranging from 12 to 18. All is USB media blocked. I want to copy a folder from my USB to a standard user account. Every time I have to manually acquire root ...
1
vote
1answer
64 views

How to create an Ubuntu application CD/DVD with autorun?

Is it possible to burn an Ubuntu app on a CD/DVD, and make an autorun for it, just like Windows? If yes: How to do it with a Snap application? Consider I have downloaded an app from Software Center ...
2
votes
1answer
42 views

Autorun program after connecting Arduino nano

I have read few posts which explained how to write a script and save it on the USB flash drive, which will allow it to run as we connect the device. I want to know if there is a way where we can ...
1
vote
0answers
83 views

Completely disable Autorun

File manager preferences have an option to disable/enable Autorun to run software, play music, etc. However, I don't see an option to completely disable autorun, meaning that it won't parse autorun....
0
votes
1answer
365 views

Running sh script on Lubuntu on startup

Running lubuntu 18.04 LTS with LXDE So, I need to run a simple SH script inside terminal session on startup after login, but I'm struggling to get it running. I've tried: rc.local trick, /.config/...
1
vote
1answer
47 views

Disable autorun external devices with VLC in kde

In installed kubuntu-desktop on my Ubuntu 18.04 to use KDE Plasma. Whenever I select an external device in the left to open it in dolphin, it opens VLC instead and tries to play all files on that ...
1
vote
0answers
56 views

ubuntu 16.04: autorun and automount - kernel level?

I have to disable this two services. I've done this using the dconf editor. Please, can you tell me at which O.S. level this happens ? That is: can you tell me if the disabling these two services, ...
0
votes
1answer
588 views

How can I run flash automatically Chromium 62.0.3202.62?

I´m running Ubuntu 16.04 LTS, with Chromium 62.0.3202.62. I need a way to run flash automatically for a small project which runs local content. In the settings you only have two options for flash to ...
1
vote
1answer
673 views

Startup Script in rc2.d - Delayed Execution

I have a script which I'm wanting to run at start-up. It's a very simple script which inserts a few kernel modules and starts vino-server: init-script.sh: #!/bin/bash sudo rmmod nvhost_vi # Insert ...
4
votes
0answers
459 views

How to disable `autorun.inf` access on Ubuntu 16.04

Whenever I mount a filesystem, something tries to access a file named autorun.inf on this fresh mount. How can I prevent Ubuntu 16.04 from doing this? (FYI: I am logged in, Graphical session with ...
0
votes
1answer
588 views

What's the best way to autorun a. sh script on startup (Lubuntu)?

I need to have a shell script run at start up, but can't get it working. There seems to be a number of options, but what is the best method for having a script auto run when the system boots up, ...
5
votes
3answers
2k views

What does /bin/bash -c mean in service unit?

To make my app autorun during reboot. sudo vi /etc/systemd/system/app.service [Unit] Description=app After=network.target [Service] ExecStart=/usr/bin/python /usr/local/bin/app [Install] WantedBy=...
0
votes
1answer
39 views

at nautilus, javascript file opens with “windows based script host”, what is that?

what that "windows" thing is doing here? how safe is it? when I double click on the js file (expecting gedit), it starts some process that I cannot find with ps... so, what executable is that thing?...
0
votes
1answer
950 views

Run commands on system startup [duplicate]

I need some help with running commands on system startup. So, I need these two commands to be executed every time I start my machine, due a problem with my Realtek driver (doesn't really matter): ...
1
vote
1answer
151 views

Autorun Exterminator type alternatives for Ubuntu 14.04

Autorun Exterminator is a tool available for Windows that blocks virus-infected pen drives from automatically executing viruses through autorun.inf. Though most of the viruses encountered are .exe's ...
2
votes
1answer
397 views

Auto Set Resolution

Ok so, a while back I asked a question on how to manually set my vga resolution on Ubuntu. But I need to do this upon LOGIN (ie NOT ON BOOT). I need to run sudo cvt 1366 768 && sudo xrandr --...
1
vote
1answer
135 views

LiveCD: Running a sh script on startup

I have created sh script that backs up computers to a network location, and I'm trying to make a LiveCD of Ubuntu-Mini Remix 14.04 that will be able to launch the script without a GUI. The script does ...
2
votes
4answers
14k views

execute script before login

Whole day I'm facing a startup script problem. What I'm looking for is a way to run a single script at boot/before login that will configure my machine and run proper services. (Single script for all ...
0
votes
1answer
30 views

Stop some processes from autorunning

As the title, I'm trying to figure out a way to avoid the following processes from autorunning when the system starts: Virtualbox, Tomcat7, ntopng, tor. So, until now, I tried to simply create a ....
2
votes
0answers
190 views

How to start a GUI program after hibernation?

I love virtual desktops. I keep half a dozen around, with every program I use regularly always at the ready. This means I dread restarting my PC, since I have to setup everything again—specially ...
0
votes
1answer
3k views

Autorun dvd or cd in version 14.04

How do I make a cd or dvd autorun when I insert it? I am using version 14.04. At the moment a folder box with all the individual files opens.
12
votes
1answer
32k views

How to autorun files and scripts in Ubuntu when inserting a USB stick like autorun.inf in Windows?

Is there a way to execute a specific script or open a file with a particular program when inserting a USB stick on Ubuntu like the autorun.inf file in Windows ? If not, is there another way ? EDIT: ...
0
votes
1answer
432 views

Autorunning Plex command In Ubuntu Unity on Chromebook?

I have managed to get the Plex Media Server running on my Chromebook via Crouton and Unity. The only thing is that it won't load unless I run the command sudo su -c /usr/sbin/start_pms plex Is there ...
1
vote
1answer
2k views

CD with autorun.exe file

Is there any way to make work a CD for windows (which contains a file autorun.exe)? This CD should be use by a 5 year kid (educational), so I need something quite easy.
5
votes
1answer
17k views

How can I automatically copy the content of a usb (flash) drive to another directory?

I want to program my Ubuntu in such a way that it automatically copies the content of USB flash drive to a defined folder in my home directory. I would like this to be done automatically when any ...
0
votes
1answer
1k views

How do I autorun terminal commands at startup in Lubuntu 14.04 LiveCD?

I'm doing some remastering of Lubuntu 14.04 LiveCD, and need to run the following command at startup: /sbin/ifconfig eth0 10.10.10.1 netmask 255.255.0.0 First, I tried modifying rc.local as follows: ...
3
votes
1answer
11k views

How can I run code whenever a USB device is (un)plugged, without requiring root permissions?

I have a script that I wish to run whenever I plug/unplug a mouse or keyboard to my USB port. There is already plenty of documentation on how to configure udev rules to run arbitrary scripts when a ...
6
votes
2answers
15k views

How To Run An Application On Startup Automatically?

I am using "UbuntuServer13.10" and I have Dynamic IP. So for learning purpose, I want to add a host on my dynamic IP to open my server easily from anywhere. For this purpose, I used www.noip.com ...
0
votes
1answer
105 views

double click a file to run a specific command

I'd like to new a file obtaining a cmd such as "sudo gedit filename". When I double click this file, the cmd in this file is executed. How to make it work? Thanks And the OS is ubuntu 13.10
0
votes
1answer
40 views

installation of ubuntu off line and alongside windows XP

Can 'Ubuntu' be installed off line and continue to also operate off line? after downloading Ubuntu or before downloading it, how can i make it to be on auto run format for easy set up command?
5
votes
2answers
4k views

Could Autorun Virus, affect my PC via Wine?

I have installed wine and i am afraid that viruses will affect my PC now. I will not open any other .exe file other than mine one (which i use everyday)
0
votes
1answer
299 views

How can I run an autorun file as root with no gui

I set up a server using ubuntu with no gui. I need root for some tasks that I want to autorun on this server. Normally I would just use gksudo because autorun programs never seem to work with su or ...
0
votes
1answer
7k views

Ubuntu 12.04 - Run a few command lines at every startup [duplicate]

I was wondering if there is any way that I can run certain command lines through the terminal automatically at every start up of the computer. I have a wacom tablet and it is quite annoying to turn ...
1
vote
1answer
7k views

How do I set it such that DVDs and CDs autorun?

As per title, I'd like to know how in 12.10 you set it such that DVDs and CDs autorun.