I came across this script a while back that i found. What i want to do is edit the script to create a default web page in /var/www/html when a new user is added through the script. What the script does now is adds a user and sets a password for the user.
What possible way (either through a combination of python or c or some other language) could i add to the shell script to do this?
I am setting a guest account that will run a browser opening a locally stored web page, the web page will be a nice little welcome thing. I also want it to have options to open other apps from that page, as I want to limit every thing else to basically nothing. so I'm guessing it will need to launch a bash script with a command for the app.
I'm trying to write a simple bash script, which when run from the command line, will cd into a default directory and then open up the folder in the file-browser:
#!/bin/bash
if [ -z "$1" ]
then
# unless $1 is specified, cd into main proj
cd code/ruby/my-main-proj
else
# cd into project specified by $1
cd code/ruby/$1
fi
# open folder in file manager
pcmanfm .
This is great, it giv
I am having a problem connecting with the wifi at work, because in order to connect to it, it should automatically bring up a page on your browser where you have to click "accept." It worked when I got it for Christmas, but somehow now the first page that comes up when I open my browser is "about:blank"-- blank page, meaning I can't connect to wifi.
Hi, I have a Kyocera Rise with the Android Ice Cream Sandwich OS. Whenever i click on the default browser, it automatically opens a new tab with the default home page. How can I prevent this behavior? When I click the browser icon, it would be great to see the page I was looking at the last time I was in the browser, or at least, not have new tabs open.
Thanks for your advice, - Dave
I want to open a url in a browser from an Android app. Thats pretty straightforward: How can I open a URL in Android's web browser from my application?
But how can I open the url in a specific browser, if it exists.
if(user has chrome)
open url in chrome;
else if(user has opera)
open url in opera;
else
open url in default browser;
is this possible?
How to write Bash script to open two different taped terminal ,and write in both of them commands separately to be executed unrelationally
for instance :
Terminal number one open skype
terminal number two open chromium-browser
in the end , i want one more thing , can i write in the bash script my skype username and password to put them in skype when open it in terminal one automatically the
Using XFCE I can set the default browser from settings/Preferred Applications to either google chrome or firefox both of which are installed. I set chrome as preferred and can get online no problem.
I'm trying to do everything from the terminal.
After searching for and finding the music on my computer, how do I get it it o open in something else?
Lets say by default all mp3 open in vlc by default.