Networking :: Run Shell Scripts From A Website?
Apr 11, 2011
I am trying to create a shell script (CGI) which will create a website with an embedded flash mp3 player. At the same time I want this script to overwrite the file currently in the playlist with another file which will allow me to change the song currently playing on the flash player. The reason I am doing this is so that I can copy the song I want to play to this file at a low bitrate reducing its size. The code I am using in my script is:
#!/bin/sh
echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<object type="application/x-shockwave-flash" allowscriptaccess="always"
[Code]....
When I run the script the new page does not have the flash player and the song did not change.
View 6 Replies
ADVERTISEMENT
Aug 10, 2010
I am about to write my first shell script for backing up my server.
These are the steps I have identified so far.
Copy files to be backed up to /srv/backup/ run mysqldump and copy the file to srv/backup/databases run duplicity to backup /srv/backup/* to another folder on my machine
I am writing a bash shell scrip that will be run everyday, and will carry out the three tasks mentioned above.
Note: point 3 (backing up to a local folder) is only a temporary measure - to allow me to understand what I'm doing, since all the tools I am using, are new to me. Once I can backup and restore correctly, I will use duplicity to compress and encrypt the files and upload them offsite.
If my understanding of duplicity is correct (according to the documentation here), the first time I run the script, a FULL backup will be done. Every subsequent backup will then be incremental. I will then force a FULL back on say a weekend.
First things first though - I have a few questions:
I would like to use backup rotation for the 'scheme' described above - I would like some recommendations on what kind/type of rotation to use. Once I have implemented the backup rotation, how can I restore from a particular day back in time (assuming the backup exists of course). ?
I am running Ubuntu 10.0.4
View 1 Replies
View Related
Apr 18, 2010
I open Firefox, Some Website Works, on some other Website Firefox Says "Connecting to...",but all the Sites I have Tested working on my Windows 7.
View 3 Replies
View Related
Nov 29, 2010
I have met following problem: there is a website I cannot access.
When I am trying to connect to this site I get an error message. I tried all browsers installed on my system. Seamonkey, Firefox, Konqueror. All failed. I don't understand this completely as I have no problem with connecting to internet. Now I am thinking that I myself somehow unintentionally blocked an access to this particular site. Is it possible? Under W$ I have no problems at all.
View 12 Replies
View Related
Aug 9, 2010
How would I set up a website that would be only accessible locally. There's a router machine (server) that keeps provides internet access for a number of client machines. I need to set up a learning platform (moodle) locally. The server machine runs moodle server (apache server) and students should have access to their accounts locally (no need to be accessible outside of LAN). First of all, what would be the best network configuration for it.Sorry for a dumb question, but could I just come up with any domain name if everything stays locally within LAN?
View 4 Replies
View Related
May 12, 2011
I have ubuntu 10.10 server with a web site I am mess up in NIC configuration. I have only one web site on my server. I Have 2 Internet connection with static IP. I have 2 Network Card as follow eth0 119.155.152.140 (1st internet with static IP without firewall) eth1 203.135.30.240 (2nd internet with static IP without firewall) when i restart my networking it give me following error
Code:
shah@server:~$ sudo /etc/init.d/networking restart
[sudo] password for shah:
* Reconfiguring network interfaces...
[code]....
View 2 Replies
View Related
Mar 16, 2010
I have several web servers, say myserver1, myserver2, and myserver3, behind a firewall that the higher-ups run. They recently changed the firewall to block all ports except for the ones they want open. I have www.myserver1.com viewable to the outside world, but www.myserver2.com is not viewable to the outside world. I was wondering if there is a way to set things up so that people could go to [URL] and view the [URL] and [URL] website content.
myserver1 is running Solaris 7, which will (hopefully) be upgraded to Ubuntu 10.04. myServer2 is running Ubuntu 8.04. myserver3 is running Windows XP. I was wonder if this is possible with any OS, not just mine.
View 2 Replies
View Related
Apr 8, 2011
My hosting server is running Linux / Apache. It would be very nice to be able to link some files (preferably hard links, but symbolic links also would help), but haven't a clue how to do so. I would be willing to write a server side php script if that would do the trick.
View 4 Replies
View Related
Jan 22, 2010
i have an AP set up and would like to have all requests for a website sent to a specific ip address.. and am trying to get this to work in IP tables
user-->AP-->google.com
no matter what site they try to goto it takes them to [URL] i want to use this to require people to login to my server when they connect to my AP before they can go any further.
View 4 Replies
View Related
Mar 11, 2010
I have 10 systems working on LAN with fixed IP given to all the 10. I have ubuntu installed. "ifconfig" shows my IP on eth0 interface. Query : I've my blog at /var/www with Apache installed and it works fine when i give the IP address of eth0 (Not 127.0.0.1). And it works from any system when i gve the IP address.* How can i change the IP address to a simple URL. Eg: Instead of I've tried:1) Adding entry to hosts & configuring httpd.conf in apache. Did not work.2) I don't want any bind, as it should be accesible only within the LAN
View 9 Replies
View Related
Sep 15, 2010
I've actually gotten a webserver (hardy heron, server edition) working before and had a Joomla site up I could find on the net. But I did a fresh install of Lucid Lynx (desktop edition, that I added some packages to to use as a server). Between the router (wrong ip address?), port forwarding (set right?), my domain nameservers (godaddy) and the DynDNS service I use (for dynamic ip) I must have a wrong setting because, my joomla website shows up at localhost, but not 'out there' so to speak. I would like to get this site out there and working soon, as it's one I'm just doing free for a Community Garden.
View 2 Replies
View Related
Mar 25, 2011
how do i teun an IPaddress in to a website name that i payed for? useing apachie 2. think stupid what line number to enter what code(s) i use notepad++ to edit system files with coreftp and putty by my side.
View 6 Replies
View Related
Apr 26, 2010
I am having a problem with internet browsing. Whenever I type the address of any webiste like Google
or URL...or any other, the firefox gives message at "Status Bar" that "Looking up google.com" or "Looking up yahoo.com" etc for every website for about 20-25 seconds and than launches the website successfully. Why this is happening and how can I correct it?I also tried this in Opera and Google Chrome and same problem occurs in them.Moreover, if I ping any domain inside terminal, it instantly starts pinging (with ttl 51) and recieving data from that domain resulting that the problem is with browsers.
View 1 Replies
View Related
Apr 4, 2011
I set up an apache webserver on a redhat enterprise server 6 last week. It works fine on the localhost. However, the webpage can't be accessed from the other computer. I didn't modify anything related to 'allow,deny' in httpd.conf. The only thing I've done is I added a rule in iptables to approve the access from a computer with a specific IP address. Since I am quite new to iptables, I don't know if there is anything wrong with my setting.
Even I stop iptables, the problem is still there. I don't know if my setting of iptables is correct. Or, there is anything else that I should do?
View 7 Replies
View Related
Jun 1, 2010
I don't know if the title is a correct description of the problem I have. I registered a domain name in godaddy, created a subdomain name and pointed it to some name servers. After some time, I moved my website so I change the name servers of this subdomain name. But the problem now is it is still pointing to the old name servers. Everytime I visit the website in my computer, I get errors. But I try it in another computer, I works. So I suspect there is something left in my computer that still tells my browser to go for the old name server. I've cleared cache and temporary files of this browser but it still does not change.
View 8 Replies
View Related
Apr 18, 2010
My new line provider/ISP won't give me a static IP address - it's DHCP or nothing. Is there some trick I can use to allow myself to host a web page? I was thinking of getting a static address elsewhere, like at my sometime place of employment, and redirecting, but it just moves the problem downstream.Realistically, assume I leave my computer on and hardly ever reboot (CentOS is pretty stable), then will I typically keepthe same address for weeks or months at a time? If so, I could live with logging in to my registrar a few times a year to change the address, as bizarre as that would be
View 5 Replies
View Related
Apr 28, 2011
I am using squid 2.6 (as a proxy server) in my cent os 5 box.The clients computers are factehing the web pages successfully. The firewall (IPTABLES) are already disabled.The problem is we have an internal web based application by which the users add the data in it. when the user type the ip address in the browser i.e http://10.1.7.21:81/mis squid shows Code:ERRORThe requested URL could not be retrievedWhile trying to retrieve the URL: http://10.1.7.21:81/mis/The following error was encountered:Access Denied.Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.Your cache administrator is root.We have another proxy server MS ISA 2006 and by changing proxy from Linux squid to MS ISA we can access the page.
View 14 Replies
View Related
Jun 16, 2011
I am facing a problem in browsing website with F15 installation, both firefox and chrome browsers give me a headache. The main website that cannot be accessed is facebook.com, I only can browse it in certain of time after clearing cache, cookies and histories, this only happen for facebook web only.
View 11 Replies
View Related
Mar 8, 2010
I have cablenet connected on Windows XP. On windows it's working fine. On windows XP it alwasy ask me username and password and then it starts to work.But same cablenet is not working on Ubuntu on same laptop. It shows "connection established" if cable is connected. But I can not able to open website.
View 9 Replies
View Related
May 15, 2010
I am running karmic on a laptop. I recently changed iptables to drop all new incoming packets (not the related or established ones) on all ports. I was not running a proxy, so this worked fine. More recently I got v 3.0.13 of privoxy with apt-get and looked through the config file. I changed the default port in the privoxy config to 8080 and kept the ip at 127.0.0.1. Then I changed the Firefox settings to use a HTTP proxy at 127.0.0.1 with port 8080. when I try to run privoxy with the command: privoxy /etc/privoxy/config , the terminal outputs no errors. Then when I try to access a webpage through firefox the page will not load, but firefox doesn't display any reason for it. I don't really even know if privoxy is running because when I check the logfile (after having uncommented the logfile line in the privoxy config file) it is blank. I don't know much about networking, but I was wondering if someone could tell me why this is happening? Well that was a bit dumb of me. I just had to allow new packages in from localhost.
View 2 Replies
View Related
Oct 3, 2010
The issue I'm having is that browsers in Ubuntu 10.04 stall at the part of the process for loading web pages that is noted by the "Looking Up (website address)...". The page eventually continues to load, but it takes a long time. This problem effects all browsers on the machine (tried Firefox and Chromium). It is not a problem with the connection, because a Windows 7 laptop and even the Windows XP partition on the Ubuntu machine function as they should.
View 9 Replies
View Related
Nov 6, 2010
We have Verizon as our ISP with a dynamic IP address. We published our website but the IP changes frequently. How can we set Network address translator(NAT) so our website can be published regardless of IP changes? We don't have domain name and have no intention for one.
View 2 Replies
View Related
Dec 17, 2010
I found this really cool guide / info about creating an internet portal where users have to register (their MAC) with the server to use the internet. basically if users MAC's are in the list they get routed to the internet if not they get routed to an internal page asking them to register. It works great and works well. I was wondering if there are some smart people out there who could help me reverse the process.. eg if your mac is not in the list you can access the internet if it is, you are redirected to an internal page saying "youve been blocked"
The firewall rules are as follows.
Code: IPTABLES=/sbin/iptables
# Create internet chain
# This is used to authenticate users who have already signed up
$IPTABLES -N internet -t nat
# First send all traffic via newly created internet chain
[Code]...
View 3 Replies
View Related
Feb 3, 2010
can't access website gives error 2082 2095
View 1 Replies
View Related
Jul 2, 2010
i can ping to 192.168.10.104 but can't access it graphically.i am using firefox.. distro is ubuntu.. i do //192.168.10.104:9345..but it takes no response.can u help me.. i am using direct connection..
View 6 Replies
View Related
Feb 21, 2011
I have tested the networks at several schools in the area,and at the town hall. It is not possible to surf on www on any of these networks using a PC running Linux. My conclusion is that there has to be some kind of filtering of traffic that exclude PC's running Linux.
From the same PC I can send and receive email,I can ping and trace (mtr) addresses on www, and I can view webpages that are on servers on the inside of the filtering-gateway. The filter used is InterScan Web Security Virtual Appliance from TrendMicro I have also demonstrated for the admins at the town hall that using Linux-PC on a "clean" network, surfing is no problem. By doing these small tests I have demonstrated that Linux is not the problem.
Tomorrow I'm going to visit the network providers admins, so that they could see what happens when a PC running Linux tries to access www. What kind of things should I test to document, or find the problems? So far I have just used MTR to document slow respons, wget --no-proxy to document that www hangs and ends time out, ifconfig to show NiC settings, and route...
The network provider is the same company that refused to turn on IMAP on the exchange servers, resulting in 3 week without mail at our school. All the other schools had to upgrade Outlook in order to connect to the new exchange-server with MS MAPI settings.
View 6 Replies
View Related
Mar 8, 2010
Any tool where I can test a web site with slow connectivity? E.g.:
A web server running at Location A
and from Location B want to test the web site hosted at location A with various speeds
How is the loading of the web site from location B at 256kbps, 512mbps etc..
View 6 Replies
View Related
Mar 18, 2010
I am having problems with my acer extensa 5620z wireless. I went on a few fourms and tried a few things they told me to do and It did not work. My question is this If i install wine can I grab the exe file off of acer website and install it that way?
View 2 Replies
View Related
Mar 18, 2010
I just have a question. I am having problems with my acer extensa 5620z wireless. I went on a few fourms and tried a few things they told me to do and It did not work. My question is this If i install wine can I grab the exe file off of acer website and install it that way?
View 5 Replies
View Related
Oct 25, 2010
I'm using Ubuntu 10.04 64 bit Ubuntu with a wired nic card connected straight to the cable modem. When I try going to Free Internet Radio - SHOUTcast Radio - Thousands of Free Online Radio Stations I get an error message that it is unable to connect. I tried it with Firefox 3.6.11 and Opera 10.06 and neither one will make a connection to Shoutcast web page.
I don't have it blocked with iptables and I don't think the Ad Block plug-in is a factor as Opera won't connect either. But if I try it with IE in XP running in VirtualBox on the same Ubuntu system it will connect to the web page! Is it something with my Ubuntu system or is Shoutcast blocking access to Linux users?
View 1 Replies
View Related