Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Please get me started on my virtual server Post 302134445 by knownothing on Friday 31st of August 2007 02:21:17 AM
Old 08-31-2007
Please get me started on my virtual server

I've been given access to a virtual server. I've worked out how to connect with it using SSH (in my unix terminal window). But I'm clueless about how to continue. The last time I made web services. I had a fancy web-based control panel. Now I just have the command line.

There are three things I need to know:-

1. What's the unix command to change my login password?

2. How do I transfer files into my account? (My log-in details said nothing about FTP, but I got an IP address, and I tried setting up FTP (in Dreamweaver) with my username and password - but that didn't work.) Is there a command line way to transfer files?

3. What's the command line to set up a MySQL database? In PHP, I want to do this:-

mysql_connect("localhost","databasename","databasepassword");

So I want to create the database with the databasename and databasepassword that I'll use in my code. (I don't need help with the programming side of things - just the command line stuff.)

Can anyone get me started? I know nothing.
 

9 More Discussions You Might Find Interesting

1. Solaris

Startup error: The X-server can not be started on display :0...

Earlier today SPARCBOOK 5000 was working, but was asked to upgrade an application on it. 1. uninstalled application 2. loaded latest solaris 8 recommended cluster (downloaded it yesterday). 3. reboot machine after patch update On reboot all looks OK upto the point it attempts to run... (9 Replies)
Discussion started by: devonthomas384@
9 Replies

2. UNIX for Dummies Questions & Answers

Virtual Server Which One?

Hi, Imagine I'm using SSH or TELNET to connect to one of my clustered database servers. I log in using a virtual server name not knowing which one of my two database servers i will connect to. Now the question: If all I have is the virtual server name e.g. SSH DavoH@gb1234QVD011Px7 and... (1 Reply)
Discussion started by: DavoH
1 Replies

3. Solaris

X-Server cannot be started on display 0

Iam using a Dell laptop..... i installed Solaris 10.... 'm getting a X-Server cannot be started on display 0 error. Can anyone help me in fixing ??? (2 Replies)
Discussion started by: sarathnag25
2 Replies

4. Solaris

The X-Server can not be started on display :0

Hey Guys, I have just moved my machine to a new location and reconfigured my DNS and ip... and for an unknown reason I get this X-Server can not be started error on startup. This is what I got in my Xerrors log: It is possible to start a graphical session (X-Server) manually, ... (8 Replies)
Discussion started by: wasabihowdi
8 Replies

5. Solaris

X-Server can not be started on display 0

hi , I have install Oracle solaris 10 8/11 on intel core i5 server. But its not opening in graphic mode showing message X-Server can not be started on display ... (EE) Unable to locate/open config file Drivers to try are: "intel" "i810" "fbdev" "vesa" vga" (EE) failed to load module "dri"... (3 Replies)
Discussion started by: zeeshan047
3 Replies

6. Red Hat

RHEL 4 Server con't Started....

Hi Friends, My Server is con't stated..it shows the below error.. Red hat exterprise Linux As Release 4(nahat) kernel 2.6.9-5.ELsmp on an i686 INIT : id "x" respawing too fast :disabled for 5 minutes... Please help help Thanks, Srinivas (1 Reply)
Discussion started by: srinivas814
1 Replies

7. Red Hat

CPU high - apache real server OK, virtual server not

Got two RHEL servers - one real and one virtual/cloud. Both run apache web server. When traffic is applied, CPU seems to go quite high on virtual one (20%) but real is not really affected. Worry is that a further increase in traffic will see a problem. Experience of RHEL is limited. Whats... (2 Replies)
Discussion started by: psychocandy
2 Replies

8. Red Hat

What are Linux configuration changes required after a cloned VM Server is started?

Dear Expert Users, VMware Admin Tool is used to create a "clone" of an existing VM RHEL Server. Now, I have a Project where a cloned VM Server image is started for run . Please share what are all configuration changes required to ensure this runs fine ? I will be grateful for quick and... (2 Replies)
Discussion started by: schandrakar1
2 Replies

9. UNIX for Beginners Questions & Answers

X-Server can not be started on display :0

Good Morning, I recently cloned a sunblade 2500 to another sunblade 2500 and had an issue getting the GUI: X-Server can not be started on display :0 The issue was that the first machine had an xvr600 graphics card, and the new machine had an xvr100. Installing a new driver took... (0 Replies)
Discussion started by: Stellaman1977
0 Replies
FTP-UPLOAD(1p)						User Contributed Perl Documentation					    FTP-UPLOAD(1p)

NAME
ftp-upload - batch transfer local files to an FTP server SYNOPSIS
ftp-upload [any-switch]... {[repeatable-switch]... file...}... DESCRIPTION
ftp-upload is used to send local files to an FTP server. It isn't interactive, it's meant to be used from scripts. It is disciplined about its exit value and it doesn't output informational messages by default. There are two kinds of switches. Initial switches have to appear before any filenames, they affect the session as a whole. Repeatable switches can appear interspersed with the file names, they affect the transfer of the files which appear after them on the command line. OPTIONS
Initial switches These have to be used before any file names listed on the command line. --debug Turn debugging on. --help Show the usage message and die. --ignore-quit-failure Don't complain or set a failure exit code just because the QUIT command fails. This can be necessary because some servers, in blatant disregard of RFC 959, close the command channel when you send them an ABOR command. -v, --verbose Print informational messages to stdout. --version Show the version number and exit. Initial switches which specify connection information These also have to be used before any file names listed on the command line. They specify the information used to set up the FTP connec- tion. --account account This specifies the account to be used when logging into the remote system. This is distinct from the user name used to log in. Few systems need this. There is no default. -h, --host host Specify the host to which to connect. There is no default, you have to specify this switch. --passive Force the use of passive (PASV) transfers. Passive transfers are required with some firewall configurations, but if you have such you'd do better to configure Net::FTP so that it knows when to use them (see Net::Config). If you need to use passive transfers with certain (broken) servers, however, this switch is your best bet. Alternatively, you can set $FTP_PASSIVE to 1 in the environment (see Net::FTP). --password pw This gives the password which will be used to login. The default is your email address. Note that you should not specify a real (secret) password this way, as on most systems anybody on the machine can see the arguments you pass to your commands. Use one of other password-setting switches instead. -s, --password-stdin This tells ftp-upload to read the password from standard input. No prompt will be printed, and a single line will be read. Most peo- ple will use this switch to specify the password. Eg, echo 3x9sjJJh | ftp-upload -sh $host -u $user $file Using echo this way is safe where the --password switch isn't if the echo command is built in to the shell. --password-fd fd This is like --password-stdin except that it reads the password from the file descriptor numbered fd. ftp-upload -h $host -u $user --password-fd=3 3<$pw_file $file -u, --user user Specify the user name to use when logging in. The default is "anonymous". Repeatable switches These switches can be used anywhere on the command line (except after the last file name). They affect the transfer of files listed after them. --as remote-name Normally a file is transferred using the same name it has locally. If you use this switch the next file transferred will be called remote-name on the other host instead. ftp-upload --host $host --as index.htm index.html -a, --ascii Perform transfers in ASCII mode. -b, --binary Perform transfers in binary mode. This is the default. -d, --dir dir Change directory to dir on the FTP server before continuing. You can use this multiple times between files, ftp-upload will chdir once for each time you specify it. Using ".." as the dir will cause an FTP "CDUP" to be done rather than a "CWD". --full-path Normally uploaded files go into the current directory on the remote host, even when the local file name given contains slashes. Eg, if you say ftp-upload -h $host /etc/motd ftp-upload will upload the file as motd, not /etc/motd. This differs from how the standard ftp program works, and it also differs with how ftp-upload worked before version 1.3. If you specify --full-path, you'll get the other behavior. A request to upload dir/file will tell the server to store dir/file rather than file. When you use --as the --full-path setting doesn't matter. --full-path only tells the program what name to use when it's choosing the name. --no-full-path Disable --full-path. This is the default. -l, --ls Try to get a remote directory listing of files after transferring them. I say "try" because there's no guaranteed way to do this with the FTP protocol. The command I run is "LIST file". This will generally work if file doesn't contain any special characters. -L, --no-ls Disable the --ls behavior. --tmp-none Transfer files directly, don't do anything special to try to ensure that they don't appear under their real names on the remote machine until the transfer is finished. Each file is transferred with a single simple "STOR". This is the default. --tmp-samedir Transfer files to the remote machine using a temporary name, then rename them when the transfer finishes. This won't work if the remote server doesn't give a recognizable response to the "STOU" command. If the server's response to "STOU" isn't recognized by Net::FTP but is reasonable, Graham Barr might be willing to change Net::FTP to recognize it. If you like you can send the "--debug" output to me and I'll coordinate such requests. --tmp-dir dir Transfer files to dir on the remote host, then rename them when the transfer is complete. This is safer than --tmp-samedir because it doesn't use "STOU" and so it works with more servers. ftp-upload -h $host --tmp-dir incoming $file --tmp-format fmt Transfer files to "sprintf(fmt, file base name)", then rename them when the transfer is complete. Like --tmp-dir, this is safer than --tmp-samedir because it doesn't use "STOU" and so it works with more servers. ftp-upload -h $host --tmp-format tmp.%s $file AUTHOR
Roderick Schertler <roderick@argon.org> perl v5.8.7 2006-03-16 FTP-UPLOAD(1p)
All times are GMT -4. The time now is 07:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy