Ubuntu Servers :: Write Php Lang In Nano?
Jul 8, 2010I have been install LAMP ok. ware i want to write php lang in nano , vi or vim. how to host the website
View 1 RepliesI have been install LAMP ok. ware i want to write php lang in nano , vi or vim. how to host the website
View 1 Repliesince Ubuntu 11.04 the "LANG" environment variable keeps getting overruled somewhere. The result is that the date notation in the indicator area and the GRUB boot menu is in a different language compared to the rest.At login I have selected the language en_GB, the same language is at the top in the "Language support" dialog. However, I have set my "Regional format" to "nl_NL".When I check "env" in the terminal LANG is set to "nl_NL" as well.I tried forcing it to "en_GB" by adding "LANG=en_GB" in "/etc/environment" but this did not help.
View 6 Replies View Relatedenum argu {
send = 0x0001
, receive = 0x0002
};
what is the meaning of the 0x0001 and 2.
problem created on making c programing lang.
View 1 Replies View Relatedimplementing hamming code in c: Calculating the Hamming Code The key to the Hamming Code is the use of extra parity bits to allow the identification of a single error. Create the code word as follows:
Mark all bit positions that are powers of two as parity bits. (positions 1, 2, 4, 8, 16, 32, 64, etc.)
All other bit positions are for the data to be encoded. (positions 3, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, etc.)
[code]....
openSUSE-11.3-Addon-Lang-i586.iso and openSUSE-11.3-GNOME-LiveCD-i686.iso
Index of /distribution/11.3/iso
And what is openSUSE-11.3-Addon-NonOss-BiArch-i586-x86_64.iso ?
I use Fedora 10.When I use Firefox , the following message appear with the dialog box.java.lang.SecurityException:Changing the SecurityManager is not allowed.:I click OK button.How can I do for it.
View 1 Replies View RelatedI doing malloc and getting the chunk of dynamic memory. Now I want it to align that memory to 64KB. This means that the address of the memory starts from 64KB or multiple of 64KB.
View 3 Replies View RelatedThe automatic updater cannot install bundle-lang-gnome 2233: "A protected system package cannot be removed" ("Ein geschtztes System-Paket kann nicht entfernt werden.")Detail info: "Subprocess failed. Error: RPM failed: error: package bundle-lang-gnome-extras-de-11.2-19.21.1.noarch is not installed"
View 1 Replies View Related8.04 64bit LTS no gui loaded Only the root user can write to /tmp. I tried to create a cron job for a user and received an error
Code:
crontab -e
no crontab file for ed - using an empty one
/tmp/crontab.SCQ30O: Permission denied
Creation of temporary crontab file failed - aborting
Then I tried a simple touch /tmp/test1 and it failed with a 'touch: cannot touch `/tmp/test1': Permission denied I tried the Windows fix and rebooted, no change. Only root can write to tmp. This may sound lame but... using ls /tmp show reversed video (highlighted blue on green) on the servers the the users have access to, just plain blue on the 'broke' one. I did a sudo chmod a+w /tmp but do not know if that was a smart thing to do or not...
working on a script to update .Jar file, I have tried jar xf to unpack and jar cf to repack it is giving me java.lang.NoClassDefFoundError exception at main class. I also tried jar uf, which is also not working for me Basically my jar file requires to update date, which i do from "winrar" Manual it works fine, but now to remove "Donkey work", i want to make an script which does this all automatically, and the last stage is to update jar file which is not happening.
View 1 Replies View RelatedThis is (I suspect) a Mac OS issue but they've given no help (or replies!) on Mac forums so I'll ask here.I've just got a Mac and I can connect to shares on my Ubuntu (10.04) server, read files and create directories but I cannot write. I get this error:"The operation cannot be completed because you do not have sufficient privileges for some of the items."I can connect from the command line with smbclinet and write fine. I have tried several different users on both the Mac (cannot write) and Ubuntu clients (can write).Is this something to do with the ._filename files that finder creates? Or is there something wrong with the way I've set up my server? This is the first time I've used it with a Mac client.
View 9 Replies View RelatedI'm currently experiencing some serious issues with WRITE performance on a RAID-1 array. I'm running Ubuntu 10.04 64 bit server with the latest updates. To evaluate the performance ran the following test: [URL]... (great article btw!) Using dd to measure, write performance is only at 8.7 MB/s. Read is great though at 74.5 MB/s. The tests were ran straight after rebooting and I have not (YET!) done any kernel tuning or customization, running the default server package of the Ubuntu kernel. Here's the motherboard in the server: [URL]... with a beta bios to support drives over 300GB.
[code]...
As you can see from the bo column there is definitely something stalling. As per top output, the %wa (waiting for i/o) is always around %75 however as per above, writes are stalling. CPU is basically idle all the time. Hard drives are quite new and smartctl (smartmontools) does not detect any faults.
i have setup a samba server and created samba shares on it, i have configured the samba server to authenticates users from a windows server 2003 DC,
i have 2 shares call IT and MYSHARE, I want to give read and write permissions to sevaral users to those two shares and read only permisson to all the other users.
i tried editing the smb.conf file with the following settings , but no one can write or modify the files in the shares including the users specified in the
write list = cweerasinghe,njayarathna.
[IT]
writeable = Yes
browseable = yes
public = no
comment = IT share
[Code]....
how can i give access to the write list = cweerasinghe,njayarathna users to
read, write and modify the files in the shares ??
Not sure if this is the correct forum for this but I run ubuntu 10.04 server in virtualbox, and have samba running. I can see the files and read them in win7, but I want write access aswell!
I need to do this in terminal only, and Im not that well versed in Linux or the terminal. Anyways here is my smb.conf:
[global]
security = share
workgroup = myworkgroupname
load printers = no
[Code]...
Since "read only = no" I think i should have write permissions... and since I can read the files Im guessing the smb.conf is the problem?
I edit /etc/environment file and write there my variable by it's not effected, what i need to restart daemon that it's show on echo $VARIABLE.
View 1 Replies View RelatedI'm setting up my fedora 10 server. I am currently working on samba. I have added users and created their home directories with their own html directories. I have changed their html directories to 777. However, it appears to be read-only since I cannot create files or folders within it. Can anyone please give me some ideas as to what may be causing this? Probably some extra configurations I may have overlooked? Any help would be kindly appreciated. I also created a general wshare (writable share) directory for all users within home directory but I am encountering the same problem and cannot write to it.
View 8 Replies View RelatedI just have installed Fedora 15 to use it for multimedia server. I have installed also samba. Now I'm trying to access it from another PC (Windows 7) and I have no write access.
Code:
[root@echo mnt]# ls -l
total 12
drwxr-xr-x. 2 root root 4096 Jan 1 2006 boot
[Code]....
i just read whole internet (i have spend over 6h for reading and testing a lot of options and nothing...)
On an Apache2 server someone else setup, I have a folder with drwx--x--x permission and the php file can still write in the folder. But on my own setup, I need to set the same folder to drwx--x-wx. Inside the folder, I have a index.php that runs just by setting rwx--x--x but on my own setup, I need to allow read permission for others/group before it can run: rwxr-xr-x (or else I get a blank page). I tried changing the folder and files to root but it's the same.
View 5 Replies View Relatedtrying to write a script for work for provisioning servers. It has a few questions and what not. What is the network IP and another is What is the block /29, /28 etc. If they provide the network and the block you can figure out the gateway, and usable IPs Is there a way to have /bin/sh configure the IPs with just that information? So if they provide 127.0.0.1/29 it will calculate 127.0.0.1 is the network 127.0.0.2 is the gateway and 127.0.0.3-127.0.0.7 are usable. However, it can't use the ipcfg-eth0-range0 method because Plesk doesn't like it.
View 4 Replies View RelatedHere is my brief hardware and software detail in my production environment : AMD Phenom X4 3.4gHZ (Over clock to 4gHZ, 8G of Memory, 1TB 7200rpm Harddrive, Running Ubuntu server 10.10.My web production environment were pieced together 3 weeks ago.Here is my dilemma. started out with less that 40 users and now hitting 4,000 unique users per day.Now I am thinking I need faster write to disk and backup of data so I am thinking about putting together a Raid5.
I preparation for this.I have bought a new motherboard, AMD Phenom X4 3.6, and 2 more 2TB 7200rpm (Currently, I have a 2TB 7200rpm not used much)Been digging around this forum for posts with raid setup but still not sure how to seamlessly moving the some 10Gig of data from my current running prod environment once I have RAID5 installed on this new machine via the LIVE Ubuntu Server CD.
I am trying to write a shell script in order to automate the process of uploading a file onto an FTP server using the built in FTP commands in ubuntu server (lucid). In order to connect I can use the following:
Code:
ftp wsbeorchids.org.uk
Name (wsbeorchids.org.uk:danielgroves): USERNAME
Password: PASSWORD
In need to pass my username and password in when prompted the prompts. How should I go about doing this? I have tried echoing the values without success. Please not that I am something of an amateur with scripting.
so i.m just going to ask.... can i get a step-by-step on how to get my ipod working with lucid?
View 1 Replies View RelatedI have read that rhythmbox will work with 1st through 5th gen ipods, but it says not authorized when i plug my nano in. i have 9.04lts
View 1 Replies View RelatedI'm trying to restore my ipod nano 3rd gen. Banshee, rhythmbox, and gtkpod do not work properly so I've resorted to using virtualbox and windows xp with itunes.My problem is I can only mount the ipod in virtualbox once per boot. If i have to unplug it i have to completely restart my computer to get the ipod to be mounted again. oddly, this is only a problem after I launch virtualbox. I can unplug and plug in my ipod as many times as i want in ubuntu and it'll mount every time. However, as soon as I launch virtualbox I get one chance in windows vm and then its gone. even if I close virtualbox I can't get ubuntu to see my ipod.
View 1 Replies View RelatedMy problem: I built a computer recently using spare parts lying around and it runs fine... except for the fact that I can't plug in my 4GB Third gemeration iPod Nano. It gives me an error message that says:
Quote:
Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
I am trying to setup my webserver and I am trying to make a website to run under suexec but somehow I cannot start my apache it directly fails and SELinux is giving me errors and don't really know what to do with it, it is giving me some command to type but not sure if this will make my server less secure. The SELinux error is as follow:
Code:
Summary:
SELinux prevented httpd reading and writing access to http files.
Detailed Description:
SELinux prevented httpd reading and writing access to http files. Ordinarily httpd is allowed full access to all files labeled with http file context. This machine has a tightened security policy with the httpd_unified turned off, this requires explicit labeling of all files. If a file is a cgi script it needs to be labeled with httpd_TYPE_script_exec_t in order to be executed. If it is read-only content, it needs to be labeled httpd_TYPE_content_t, it is writable content. it needs to be labeled httpd_TYPE_script_rw_t or httpd_TYPE_script_ra_t. You can use the chcon command to change these contexts. Please refer to the man page "man httpd_selinux" or FAQ [URL] "TYPE" refers to one of "sys", "user" or "staff" or potentially other script types.
Allowing Access:
Changing the "httpd_unified" boolean to true will allow this access: "setsebool
-P httpd_unified=1"
Fix Command:
setsebool -P httpd_unified=1
I will write down how I did setup my server so maybe you can see a mistake I did. First I changed my Apache httpd.conf I added the following to it:
Code:
NameVirtualHost 192.168.1.2:80
<VirtualHost 192.168.1.2:80>
ServerName localhost
DocumentRoot /var/www/html
DirectoryIndex index.html index.html index.shtml index.php
</VirtualHost>
<VirtualHost 192.168.1.2:80>
SuexecUserGroup ulyaoth ulyaoth
ServerAdmin webmaster@ulyaoth.org
ServerName test.ulyaoth.org
DocumentRoot /var/www/ulyaoth/www/html
ErrorLog /var/www/ulyaoth/logs/error_log
CustomLog /var/www/ulyaoth/logs/access_log common
DirectoryIndex index.html index.htm index.shtml index.php
ScriptAlias /cgi-bin/ /var/www/ulyaoth/www/cgi-bin/
<Directory /var/www/ulyaoth/www/cgi-bin/>
AllowOverride none
Order allow,deny
Allow from all
Options +execCGI
AddHandler cgi-script .cgi .pl
</Directory>
</VirtualHost>
Then I created the username "ulyaoth" with the group "ulyaoth" as I specified with my suexec, then I created all the directories as specified in my httpd.conf and "chown ulyaoth:ulyaoth (dirname)" them to the right group and username.
after upgrading to Ubuntu 9.10 banshee does not see my Ipod anymore, which is a nano video 3g one. Rhythmbox works though, gtkpod not. I thought I had to install libgpod-dev and libgpod2, but the second library is not available anymore in synaptic. I have installed libgpod4, libgpod-common, -dev.
View 3 Replies View RelatedMy iPod Nano 3G, which used to work perfectly in 9.10, doesn't seem to work in 10.04. It's detected by Ubuntu and Rhythmbox, but Rhythmbox can't see what's on it and you can't synch to it. Banshee doesn't even detect it at all. I thought iPod compatibility had been improved for this release, not gotten worse? Anyway, what can I do to troubleshoot and hopefully fix the problem?
View 3 Replies View RelatedUbuntu won't detect my ipod, I tried using Rhythmbox and Banshee, neither of them will detect my iPod.
View 1 Replies View Related