Linked Questions

21 votes
2 answers
68k views

How do I run a script as sudo at boot time on Ubuntu 18.04 Server? [duplicate]

How do I run a script as sudo at boot time? I need to run ethtool --offload <net> rx off to disable the annoying jme udp checksum error message.
Amie Nel's user avatar
  • 311
19 votes
1 answer
62k views

Run terminal sudo command at startup [duplicate]

I need to run the following command at startup or upon login to make my samba share accessible to my file system. How can I make this command run when I start my computer? sudo smbnetfs ~/Shared -o ...
Don P's user avatar
  • 511
4 votes
2 answers
24k views

How do I run a script on startup as superuser? [duplicate]

I want to run a command on startup on my Ubuntu Server. Does anyone know how to do this? Does /etc/rc.local run as superuser? Any help will be appreciated. Thanks!
Qwintus's user avatar
  • 73
1 vote
1 answer
15k views

Running script via crontab on reboot [duplicate]

I am using Ubuntu Server 16.04. Everytime I log in, I need to manually run my script: /home/user/ini.sh. This script calls other scripts that need sudo permissions, so I get the prompt, insert my ...
user1156544's user avatar
0 votes
1 answer
5k views

How can I run a sudo sh at startup? [duplicate]

I'm not sure how this is a duplicate of anything that was mentioned. The script I'm trying to run needs Sudo to work, none of the answers say anything about getting a script that needs "super user" ...
Cyber_GELF's user avatar
0 votes
2 answers
4k views

.py script to run at the startup [duplicate]

I use 17.04 and rc.local is gone(I couldn't do it with rc.local anyway). I just want this two commands to run at the startup; cd Folder python3 file.py That's it. I looked all the similar answers ...
J. Doe's user avatar
  • 1
0 votes
2 answers
1k views

How to automatically run a command at startup as root [duplicate]

I know that one should never want to do this, but I need to run a command as root at startup. For some reason the driver for my wifi card isnt recognized so to get it up and running I have to run ...
dopatraman's user avatar
2 votes
2 answers
1k views

Run root script or command as root in startup application in Ubuntu 14.04 [duplicate]

I have a wireless adapter that used to work in ubuntu 13.10 (dwa 171) after installing drivers for it. Now it won't work the same way anymore since I upgraded to ubuntu 14.04. I've found the only way ...
answerSeeker's user avatar
0 votes
1 answer
887 views

Have to run rmmod b43 ; sudo rmmod bcma ; sudo rmmod wl ; sudo modprobe wl after restart? [duplicate]

I have a Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01) and unless I run rmmod b43 ; sudo rmmod bcma ; sudo rmmod wl ; sudo modprobe wl after restart, the wireless device isn't ...
Steven Ellen Starar's user avatar
1 vote
3 answers
200 views

How can i make a selfstarting script [duplicate]

I have an TL-WN727N wireless adapter connected to my laptop. Every time I start my laptop I must manually enter those two commands in a terminal: echo 'install rt2800usb modprobe --ignore-install ...
KralingenC's user avatar
-1 votes
1 answer
71 views

Excecuting file at startup [duplicate]

I am trying to start a script at boot and i can't seem to get it to work. I made the file, put it in /etc/init.d, made it executable by chmod +x file.sh, and did update-rc.d file.sh defaults 100. Is ...
TheWoerbler's user avatar
50 votes
26 answers
106k views

Mouse cursor invisible after 15.04 update

My mouse pointer became invisible after some updates after I upgraded to 15.04 from 14.10. In all standard settings the mouse pointer is activated (system settings, dconf...) I also tried different ...
weelux's user avatar
  • 669
60 votes
7 answers
58k views

Host name reverts to old name after reboot in 18.04 LTS

This may be related to running 18.04 LTS as a virtual machine (Host is Win 2016 DC) but I can't figure it out how. I have tried every method of I know of to change the hostname but it always reverts ...
Andy Wylde's user avatar
22 votes
2 answers
41k views

After upgrade to 16.04 LTS rc.local is not executing a command

On previous installed version kubuntu 15.xx i added a line into /etc/rc.local - /home/diet/scripts/my-auto-mount-script which obviously referred to a script that if on home wifi network drives should ...
Diet Bos's user avatar
  • 327
14 votes
3 answers
24k views

Startup script with sudo in Ubuntu 16.10

I need to start a script and a binary file from /usr/bin at startup with sudo/root privileges. I've tried many guides from this forum but nothing worked (rc.local and systemd style, Upstart) - maybe I'...
Benjamin Hunter's user avatar
11 votes
3 answers
10k views

Where are the startup scripts for Unity Desktop?

I want to run a script as soon as my lightdm authentication succeed, and my Unity starts loading. and i want to run my scripts as a root user. where are startup scripts located in Unity ?
Shnd's user avatar
  • 223
3 votes
1 answer
5k views

How to scale intel_pstate driver on Ubuntu 15.04?

I nearly tried all the solution to scale the cpu frequency but no success. I have Intel Core i5-3210m 2.5Ghz-3.1Ghz. I want to permanently set it to 1.6Ghz with no turbo boost to improve battery ...
AhmedBilal's user avatar
  • 1,102
2 votes
3 answers
5k views

How to disable touchscreen on a fresh install of Ubuntu 22.04 (Wayland)

I have an 5 year old laptop and I think the touchscreen is getting glitchy because my cursor is sometimes flickering and windows suddenly move and whatnot like my laptop is possessed. It started ...
chimeraha's user avatar
  • 505
1 vote
1 answer
3k views

How to run a command that requires sudo at login [duplicate]

I made a script that controls my system LEDs and it works great. I saved it to /usr/local/bin/led-pattern and ran sudo chmod a+x /usr/local/bin/led-pattern so its executable simply by entering the ...
cheesits456's user avatar
  • 1,282
7 votes
1 answer
2k views

How to make VBoxClient load with the --clipboard option when launched?

I use VirtualBox for using Ubuntu 15.04, and I run at guest $ sudo VBoxClient --clipboard every time I want to copy something from host to guest. Every time I mean once per bootup. How I can make ...
GeoMint's user avatar
  • 785
1 vote
1 answer
4k views

Open Terminal at Startup and run Java application

Here am I again after successfully installing Ubuntu MATE 14.04 with the help of AskUbuntu (thanks a bunch!) What am I trying to achieve now is the following: Launch a Terminal with root privileges ...
KiralyCraft's user avatar
1 vote
3 answers
3k views

Run rkhunter regularly on a desktop system

I want to get a warning on my desktop when rkhunter finds something odd on my system. I whitelisted some files and dirs that seem ok in /etc/rkhunter.conf so I get no warnings anymore. Now I want to ...
rubo77's user avatar
  • 32.4k
1 vote
3 answers
5k views

Swappiness setting are ignored in sysctl.conf

swappiness is set to 0 and I can't change it. I have tried changing the swappiness setting in /etc/sysctl.conf and /etc/sysfs.conf - both are ignored after reboot (Ubuntu 12.04): $ sudo gedit /etc/...
Bartek's user avatar
  • 183
0 votes
2 answers
4k views

usb_modeswitch.conf isn't loaded on startup

I'm trying to configure the PC to connect to the Internet over Huawei modem when it's started. However, after start, the modem is recognized as Mass storage device. I can switch it to correct mode by ...
Andrej Repiský's user avatar
0 votes
1 answer
3k views

No automatic wifi reconnection to hidden ssid at other access points Trusty [duplicate]

I have some Laptops with the Broadcom BCM43225 802.11b/g/n WiFi card. I installed the driver wl0 version 6.30.223.141 (r415941). I make connection with a hidden wifi ssid. When I walk around with the ...
Manuzziman's user avatar
0 votes
1 answer
3k views

startup script ubuntu 12.04

Each time I startup the sistem I need to run this command sudo xhost + and the sudo service myservice restart I have decided to add a script to startup to avoid having to type it each time myself. I ...
vallllll's user avatar
  • 155
2 votes
1 answer
1k views

Run gnome-terminal with sudo on boot

I need to run the gnome-terminal with some command with sudo rights on the startup. How could I do that?
Pavlo Sharhan's user avatar
0 votes
2 answers
1k views

Help me kill this red light coming from headphone jack?

Problem: Red light won't go away; keeps shining out of 3.5mm port after reboot. Troubleshooting: Muted it on alsamixer; light successfully turns off from via alsamixer. Tested: ran sudo alsactl ...
Ski's user avatar
  • 31
3 votes
1 answer
584 views

Make fn key run brightness script on Macbook pro 11, 5

Laptop: MacbookPro 11,5 with AMD gpu OS: Lubuntu 17.04 I followed the instruction at https://wiki.archlinux.org/index.php/MacBookPro11,x and it worked. disable automatic gpu switching in MacOS X (...
hamster on wheels's user avatar
0 votes
1 answer
544 views

Starting a simple sh script at reboot? Why is this to difficult? [duplicate]

I've tried everything, I've followed and undone every method I've come across on here but nothing works. I want to run a simple start-up script for an executable upon reboot, and no other time, as a ...
Jason Young's user avatar
0 votes
0 answers
447 views

Start script ts3server_startscript.sh after REBOOT automaticaly

Could someone help me with automatic start of the script after reboot? It is regarding TeamSpeak3. I want to start ts3server_startscript.sh again if some unwanted reboot of the server occurs. I ...
StoneCZE's user avatar
1 vote
3 answers
433 views

Why does Chrome use apt-get to manage updates?

I come from a Windows world where Chrome automagically updates itself without any intervention (other than the occasional browser restart, since I leave my browser open all the time.) In Ubuntu, I ...
ashes999's user avatar
  • 177
2 votes
0 answers
279 views

Need Help Getting Script to Run At Boot (Ubuntu 14.04 LTS Headless)

I've searched everywhere and done my homework before posting, but still can't get one thing to work. I have an Ubunutu 14.04 server (headless) and am trying to figure out what I'd think would be a ...
BzowK's user avatar
  • 21
0 votes
1 answer
143 views

Script won't Start on Logon of Raspberry Pi 3 [closed]

I am wrote a Bash script that will be run on log-on for the Raspberry Pi running Kali Linux. The issue lies when the linux system starts up, I have to physically SSH into the terminal for the script ...
Nicholas Adamou's user avatar
2 votes
1 answer
142 views

Suspend temporarily linux update apt for the session until reboot

hi everything is in the title, i want to Suspend temporarily linux update apt for the session until reboot reason? when i'm on my mobile phone hotspot i don't want to linux PC to DL GB of data so i ...
alex's user avatar
  • 23
0 votes
0 answers
148 views

Printing on Yocto MiniDisplay on System Startup

I have developed a C application and I am also using a Yocto_MiniDisplay, which prints some messages from the application. I need to start the application on System Start up, so that on the display ...
Aditya Suku Raghav's user avatar
0 votes
1 answer
128 views

Remember /sys/power/mem_sleep setting after reboot

I had this solution for the question Macbook takes 20 seconds to wake up where I had to run echo s2idle | sudo tee -a /sys/power/mem_sleep in order to set /sys/power/mem_sleep to [s2idle] deep But ...
cipricus's user avatar
  • 3,426