A shell script is a script written for the shell, or command line interpreter, of an operating system.

learn more… | top users | synonyms (1)

2
votes
0answers
42 views

How to have a video player resume from where I last left off?

I'd like to be able to launch a video player (VLC, SMPlayer) via Terminal, using some command like resume_media and then it will automatically find the most recently played media file (.mkv, mp4 etc.) ...
2
votes
0answers
55 views

How do I force nmcli to reconnect to different uuid?

I have a bash script that checks my network environment and mounts shares accordingly. If I'm at work and have a hard-wire connection to the LAN, then I'd like to activate a hotspot connection for ...
2
votes
0answers
121 views

Port redirection for a specific (dynamic) IP using iptables script

What I want: Incoming TCP and UDP connections on port 900 from the resolving IP address of myip.dyndns.org (dynamic IP) should redirect to port 5050 on the local machine. All other IP addresses ...
2
votes
0answers
81 views

Startup script to unmount and re-mount a USB device

I have a Microsoft wireless mouse and it has a scrolling issue in Ubuntu. The scrolling is too sensitive. I've read in other threads that the solution to this is unplugging the USB receiver of the ...
2
votes
0answers
145 views

How can I run a script when I unmount a particular usb drive?

I am trying to sync between a folder and usb drive, so that a) when I plug in a particular usb drive, a script runs to copy any newer files from the usb to the folder; and b) when I unmount the ...
2
votes
0answers
1k views

How to transfer an iPhoto Library to a file based structure and how to manage them properly?

I need to export my old iPhoto Library to a file based structure similar to the format of shotwell. There are some possiblities: Just use the iPhoto Master folder Use Shotwell to import the photos ...
2
votes
0answers
186 views

Activating USB audio with /etc/pm/sleep.d script that runs pacmd commands

Ubuntu annoyingly switches the device for audio input and output from my USB headset to the built-in sound card every time I log out, hibernate, or shut down my computer. This takes place even though ...
2
votes
0answers
176 views

How do I upload pictures to picasa using Nautilus scripts?

I'm looking for a Nautilis script to upload a picture to a Picasa Album using GoogleCL Here is my script : zenity --info --title "File" --text "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" --height 18 ...
2
votes
0answers
151 views

Simple program like ratmenu/9menu that can use images as menu items

I'd like to be able to select an album by looking through album covers and launch any mp3 player on it or select an image album by scrolling through sample thumbnails and launch any image viewer on ...
1
vote
0answers
32 views

how to encode a shell script so others can run it but they can not read it

I want to encode a script, so others can run that script to get relevant result but when they run command cat it should throw output in encoded format.
1
vote
0answers
31 views

pdsh works well standalone, but doesn't work in script

I am trying to install hadoop via script on my small cluster [introduced in the book: Apache Hadoop Yarn]. I have set up ssh connect without password, and pdsh&pdcp are all fine if I use it alone. ...
1
vote
0answers
20 views

Upstart - unable to read /etc/shadow unless sudo

In the following script in Upstart, I'm unable to read /etc/shadow in pre-script phase, unless I use $(echo mypass | sudo -S cat /etc/shadow | grep myusername) The script works fine if I provide my ...
1
vote
0answers
28 views

How to autorun a script as root just after the user's encrypted home directory has become mounted on headless server?

There is a problem with ecryptfs that it heavily limits the maximal filename length. To walkaround it I link most home subfolders to the external encrypted partition. The partition gets mounted just ...
1
vote
0answers
123 views

I sudo'd a bash script, full of sudo apt-get install applicationname commands, and now my programs won't run

I sudo'd a bash script, full of sudo apt-get install applicationname commands, and now my programs won't run, unless they are ran as sudo (BAD IDEA!) How do I fix this issue?
1
vote
0answers
42 views

Script for hiding files

I recently found a script for hiding desktop files and folders. The following is the script: #!/bin/bash # cd /home/ramvignesh/Desktop for f in `ls`; do mv "$f" ".$f" done The script isn't working ...
1
vote
0answers
79 views

How do I open an URL from a bash script?

I have a simple script to start a node.js webserver and open the URL in a browser. However the last part doesn't seem to work, it wont open the URL in a browser (or anywhere else). This is the code I ...
1
vote
0answers
121 views

How can I draw selection rectangle on screen for my script?

I am trying to make a simple screencasting bash script. I want to get screen selection coordinates by drawing a red rectangle with mouse. I can use xdotools to get coordinates but how can I draw ...
1
vote
0answers
36 views

suppress all interaction while installing apt-fast

I want to ask whether there is any method to suppress any interaction while installing apt-fast using apt-get. I add the ppa source and then use the next command to install apt-fast: sudo apt-get -y ...
1
vote
0answers
215 views

Can you use gnome keyring in bash script, if yes then how?

I am developing a automated mounting script for Windows shares. I have finished the script and it works just fine, but is it possible to add Gnome Keyring to the bash so once user writes hes/hers ...
1
vote
0answers
60 views

Using a keyboard shortcut to execute a script

Hello I am a linux newbie trying to set up a keyboard shortcut to execute a script I have. The script functions as desired, and is #!/bin/bash livestreamer twitch.tv/arteezy best This opens up ...
1
vote
0answers
34 views

Automatically detecting and outputing to s-video at startup

After combing the Internet I have developed a script that is capable of checking whether I have a monitor connected to my VGA port and switching to my s-video port if not #!/bin/bash # if no vga then ...
1
vote
0answers
22 views

Detect file size decrease

I am saving streams from browser cache into my home folder. I wrote a script that takes the specific data type and saves them into disk, and names them as data.1, data.2 , data.3 and so on, creating ...
1
vote
0answers
86 views

Make right+left click emulate middle click on wireless mouse

Anybody have or know of a sweet little workaround script I can set to running at startup that would allow my dilapidated mouse to keep providing me with middleclick functionality even though the ...
1
vote
0answers
33 views

Moving files to usb stick and virus scan

I have the task of moving a single file to 50+ usb sticks and then virus scan them with clam-AV. I have a 6 way usb hub that I can use to speed things up. I am after running a script that prompts for ...
1
vote
0answers
328 views

cannot execute script with sudo no password

I would like to create a batch file that will connect via ssh to my ubuntu server and run a script. My batch file works by using plink, I can see that the call to my script is ran but then I'm asked ...
1
vote
0answers
56 views

Script to be run on WOL (wake on lan)

If you add @reboot xyz to your crontab xyz will be run on every reboot. Is there any way to run a script on WOL (wake on lan)? Any tip is appreciated Håkan
1
vote
0answers
83 views

acpi-support script missing in rc.d

I've just had a look inside the directories /etc/init.d and /etc/rc.d . I have a 13.10 machine, upgraded from 13.04. Then I saw that this link was missing. S99acpi-support -> ...
1
vote
0answers
112 views

Lubuntu: script starting during lxsession for every users

i'm trying this, but in Lubuntu 13.10, the same script 1) in /home/user/.config/lxsession/Lubuntu/autostart works 2) in /etc/xdg/lxsession/Lubuntu/autostart does not works How can (and where) i can ...
1
vote
0answers
123 views

Why won't cron run my sh script?

Used gnome-schedule to create a script to set my headset as the fallback audio device because it keeps unsetting it when the headset gets disconnected or pc goes into sleep mode. Anyway, crontab is ...
1
vote
0answers
104 views

Keyboard shortcut script not working

I finally gave up on getting my Fn+up/down keys to change my screen brightness on my laptop. I took a brightnessup.sh and brightnessdown.sh script and put them in /etc/acpi and then went to keyboard ...
1
vote
0answers
37 views

Does anyone know of a Linux tool which converts hyper-v snapshots to full memory dump files?

hyper-v snapshots are comprised of a .vsv file and a .bin file, and I need to convert these in a full memory dump file. I essentially need this tool: http://archive.msdn.microsoft.com/vm2dmp ...
1
vote
0answers
34 views

Can't boot anymore, get a message on ubuntu purple screen

A friend has a Compaq laptop with a broken screen, so he use an external screen with HDMI and use Ubuntu 12.04 LTS. But after a while after he started the computer, the screen finally show up with ...
1
vote
0answers
344 views

xfce4 - 'Run Program' dialogue box does not appear when double clicking script

Ubuntu 12.04 > Xfce4 On my previous Ubuntu distro, when I double clicked scripts I got a little dialogue window that asked me if I wanted to run the script as a program or run it in terminal. ...
1
vote
0answers
63 views

How do you run a programme from a script.sh

What I'm Trying To Achieve I have to start somewhere, so here goes. I am trying to start two programmes at Startup and I would like to learn how to write a script.sh file at the same time. Question ...
1
vote
0answers
674 views

apachectl configtest shows Syntax ok even errors are there in the configuration file

Given below is one of my apache configuration files: <VirtualHost *:80> ServerName testeight.qburst.uws DocumentRoot /home/testeight/public_html/testeight1 ...
1
vote
0answers
188 views

Continue script in terminal after pkill fullscreen program

I'm running a fullscreen program and i'm using pkill to close it by a keyboard shortcut. Killing the program works but my kill script also contains some other code. The rest of the script isn't being ...
1
vote
0answers
249 views

Is it possible to use the conditional arguments in a preseed?

I am trying to create a preseed.cfg that is usable for a CD based installation and a network based installation. I figured the easiest way to do this would be to use a bash conditional "if". As part ...
1
vote
0answers
70 views

How to run script when locking screen and end it when user type in password?

What I am trying to do is to run a script while screen is locked. Can somebody guide me through it?
0
votes
0answers
7 views

Script switch to Audio and HDMI when clicked

I have a pc with the HDMI cable always connected. I need a script to switch audio from HDMI to Analogic audio and viceversa. Can someone help me? :D Thanks
0
votes
0answers
19 views

Change iface when internet is slow bash script

Need help with script that will change eth1 or eth2 ( to auto set different route ). I have eth0 that is shared to lan and two different gateways (routers), one on eth1 and second on eth2. For now ...
0
votes
0answers
20 views

It seems honeyd scripts didn't work?

I have configure honeypot using honeyd, but I couldn't establish any telnet, ftp, http connection on it, although related ports are open : here is the nmap scan from my xp OS which I try to establish ...
0
votes
0answers
24 views

Ubuntu 14.04 Wireless & Wired connection drops out

I noticed that a lot people has the same problem like me , I searched and tried many solutions which askubuntu users&others offered but it didn't work. Here's my wireless script output : ...
0
votes
0answers
7 views

Reliance Auto Login Help

i want to run this script https://github.com/pteek/reliance-auto-login-script but i get this error in lubuntu " Traceback (most recent call last): File "./reliance-login.py", line 27, in ...
0
votes
0answers
59 views

Bash script is not working. Could somebody help me?

E: Hi, i could use some help. I am sorry that some parts of the bash are in german. There are sure some mistakes in there but i can not find them i tried severel hours right now. I would be happy if ...
0
votes
0answers
17 views

ssh connection problem

Hi everyone i am developing a robotic app, i want to run my launch files under a ssh connection with this script but when i run script it wants may password, i write it but nothing happens although i ...
0
votes
0answers
28 views

Crontab wont run this script!

I am trying to run this script as a cron job to enable a weekly back up of my mediawiki site. Running on Ubuntu server 14.04. It simply will not run. The scipt is running from the root folder of the ...
0
votes
0answers
13 views

start krusader editor from a command line bor bash

I am really happy with Krusader's internal editor and I would like to use it for editing files via bash scripts. So instead of: leafpad ubuntu.txt I would like to run say something like that to ...
0
votes
0answers
59 views

Remove “android-tools” package (adb and fastboot) and sdk from 64-bit 12.04

I installed Android SDK to root my android phone, using a script obtained thus: wget http://linuxundich.de/static/android_sdk_installer.sh chmod +x android_sdk_installer.sh sudo ...
0
votes
0answers
9 views

ACL - only grant access to reading, *not* to execution

I have a directory called /test it there are two files: info.txt script.sh I want to grant read-only access to user john and did the following: setfacl -m u:john: r test/ With the above command ...
0
votes
0answers
19 views

security updates

I am using ubuntu14 in aws amazon to run my project on browser. But there is a major problem that I am facing. Every time when I login to the server using putty, I get security updates & upgrades ...