Programming :: Create A Remote Login Script With Options
Aug 11, 2010
All day I have to connect to various unix servers via ssh or ovpn. These servers report the current ip hourly to our dns server. I am trying to minimize the few hundred times a day i type ssh myUN@xy1234.mydns etc to connect. 1234 being a store number.
I would like to create a login script that has 2 options. -o = ovpn and -s= ssh. Is this possible.
ssh muUN@xy____.mydns is always used for ssh.
openvpn --remote xy_____.mydns --config client.ovpn is always used for ovpn.
I would like to be able to type something like,
[jim@localhost tools]$ ./login -? 1234
again 1234 being the store number I need to connect to.
View 1 Replies
ADVERTISEMENT
Jan 19, 2011
I am kind of new to servers and need to set up a server in the lab (for 4-5 clients). I heard ubuntu has a different server edition. But I already have ubuntu desktop edition so I was wondering if I really have to install a server edition for my limited functionality. If it is not required to install a full blown server and I can do with the one I have, how do I go about creating accounts for remote login?
View 2 Replies
View Related
Feb 6, 2011
I maintain plain vanilla Ubuntu 10.04 systems for several friends. Each machine has only one user, the owner. I use Remote Desktop to instruct and to perform maintenance. Here's my problem:After updating the system, if the kernel has changed, a restart is needed. If I do a restart, I then have to phone the owner to insert his login credentials in the gdm login screen, before I can do anything else via Remote Desktop on that machine.There ought to be a simple way I can avoid the phone call and login myself.
I'd strongly prefer not to use any software that is not included in a plain vanilla Ubuntu 10.04 installation. And I don't want to weaken system security beyond what it is now.Is there a solution? Or, what is the simplest solution?
View 2 Replies
View Related
Mar 4, 2011
Can someone highlight options available to take remote gui based session of ubuntu. Other then VNC, is there any other option ?I want to take gui based session of ubuntu from a windows machine
View 1 Replies
View Related
Jun 2, 2010
i'm using OpenSuSE 11.2 and was wondering if there is anyway to set remote login as the default login method.
View 9 Replies
View Related
Jun 18, 2010
I have an Eee PC with a dead Hdd. I brought it back to life by installing Ubuntu 10.10 on a 16GB SD card. It works 100% but is sluggish.Now I am wondering, from the standpoint of reducing SD card access and writes, would it have been better to create a Live Disc on the SD card with persistence options? What I am thinking is that a Live Disc is designed to run out of RAM, and would thus reduce the activity on the SD card. The only thing this netbook will get used for is the internet. It is a netbook, so the performance is limited, but as far as netbooks go, it is top of the line with dual core and discrete nvidia graphics.
View 1 Replies
View Related
Mar 26, 2009
After a recent upgrade I'm now completely unable to log in to my computer. GDM autologin lets me start my computer and enter gnome as before, but su and sudo wont let me access my root account. If I start in single-user mode and try to change my root password with the command passwd I drop back to the shell after entering my current password, no error messages. Same with su and sudo, just drop back to the terminal without error messages. I am running ubuntu jaunty, any idea what's happened?
View 2 Replies
View Related
Mar 24, 2009
I'd like to create by remote acces a popup on a desktop (my brother) to remind him for some things, even when I am far away and he's offline but I know his PC is running. I have ssh access to his PC anytime. So I just need to figure out how I can manage to get zenity to catch the ocrrect display or a usefull leightweight alternative which doesn't require any bigdeal setup.
View 2 Replies
View Related
Jun 27, 2011
I want to create a user on my opensuse 11.4 computer, for the sole purpuse of using it to access network shared data (eg samba, nfs, etc). This user must be in the "Users" group, but it must NOT be able to login directly on the computer, i dont want him to show up on the GDM users list at logon, he must not be able to login to a terminal, etc.
How can i add a user like that? must he belong to a specific group?
View 4 Replies
View Related
Dec 11, 2010
I am trying to build an application that must link with python so as to load a python module during runtime.I have this makefile :
Code:
[alex@iskandhar src]$ cat Makefile
CFLAGS = -Wall -O3 -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK
[code]....
View 4 Replies
View Related
Dec 4, 2010
I want to be able to use multiple options at the same time and some of those options will require an argument and some will not.
Here is my bash script:
#!/bin/bash
while getopts ":a:bc:de:fg:" opt ; do
case $opt in
a)
[Code]....
If I only use option -a with no arguments, the script works...
View 1 Replies
View Related
Jul 9, 2010
I'm trying to compile and run a java application on Ubuntu 10.04. In the run drop down there are no run options in "run as". I have PDE installed but for some reason its still does not work.
View 1 Replies
View Related
Feb 21, 2011
I've set up ssh passwordless logins using keygen etc.before so I know the routine.
The problem I'm currently having is setting passwordless logins when I don't have write permission to my "root" of the remote machine. More specifically the slice provided by a commercial web hosting provider. I can ssh and sftp just fine keying in the password manually but since I'm unable to create a .ssh directory in my "root" I'm unsuccessful in scripting logins. What I'm wondering is if the .ssh directory and associated security files can be placed in an alternate location such as the httpdocs directory and pass that location to ssh in a command line parameter.
View 8 Replies
View Related
Jun 16, 2010
I just installed 10.04. I currently have a monitor but I want to ditch this and use a VNC client to do what I need to on my server. Here is the process I'm using:
1) Remote login via SSH from another computer
2) Once logged in, I run 'service gdm start' to start up GNOME
3) I have the login set to automatically login in with my user account
At this point I thought I was home free and I could connect via VNC, but now I'm getting a prompt for a keyring unlock, as explained here: [URL]..This has been a total pain.
1) Are there any other simple solutions out there so that I can remotely log in and be able to connect to my server via VNC?
2) If not, how do I get past this keyring issue?
View 4 Replies
View Related
Feb 28, 2011
I have two systems both having ubuntu 10.10 I want to know how to remote login from one system to other in GUI. What packages I have to install ?
I know remote login using ssh but its CUI.
View 1 Replies
View Related
Jun 26, 2010
Attempting to create a backup script to copy files from one file system to a remote file system.
When I try this I get:
Quote:
# tar -cf - /mnt/raid_md1 | gzip -c | ssh -i ~/.ssh/key -l user@192.168.1.1 "cat > /mnt/backup/fileserver.md1.tar.gz"
tar: Removing leading `/' from member names
Pseudo-terminal will not be allocated because stdin is not a terminal.
ssh: Could not resolve hostname cat > /mnt/backup/fileserver.md1.tar.gz: Name or service not known
[Code].....
I know that the remote file system dir is RW and the access is working fine. I am stumped...
View 3 Replies
View Related
Jul 29, 2009
I'm new here and hope to profit from your immense linux knowledge and of course to share my own experience where I can.
I'm in a student organization and we use a file server that runs linux. I can log in through ssh and copy using scp using login and password (no rsa/dsa keys because most users are windows users using winSCP and they're lacking in computer knowledge so we don't require them to mess around with keys)
However, I don't have network access everywhere, so I'd like to make a copy on my laptop harddisk of some of the folders I use most frequently. Note that I don't need it to copy files from my pc back to the remote server so I don't need two-way sync. Deleting the local copy every time and downloading a new full copy is not an option as we are talking about several gigabytes and the download speed is limited. Normally I would use Unison, however, this requires unison to be installed on both pc's and I can't install any software on the file server so this is not an option.
Any ideas on how to achieve this? I'm reasonable knowledgable about linux so I don't mind tinkering with some config files and using command line applications.
View 1 Replies
View Related
Apr 1, 2011
Code:
Andrew@Mac:~$ g++ -march=athlon64-sse3 -O2 Projects/omgarrays.cpp -o Desktop/omg
Projects/omgarrays.cpp:1: error: bad value (athlon64-sse3) for -march= switch
[code]....
View 4 Replies
View Related
Jan 25, 2010
How can I disable structure alignment feature of gcc using command-line options ?I recently migrated to 64-bit OS, and doubt that I might be experiencing a structure alignment problem due to the new 64-bit architecture.I checked the sizes of the same C-style struct in both x86 and x86_64, and found out that they appear to be different by 20 bytes.I am not sure if this is due to structure alignment or the differences in data type lengths between two platforms.Hence, I will first disable the structure alignment feature, and then check the struct sizes again.
View 3 Replies
View Related
Feb 22, 2011
Is there any document or specification like the Linux Standard Base for the naming convention of commandline options?
View 3 Replies
View Related
Oct 11, 2010
I thought about this a while ago when reading through a Python tutorial and I googled some and couldn't find an answer. Now I want to know it for Ruby, also, and it's more important now because I want to invoke Ruby with -w.
How can you use:
Code:
with a -w option to ruby, like:
Code:
This doesn't work and I can't find an explanation of how to do it.
Code:
View 1 Replies
View Related
Mar 21, 2011
I use openSuse 11.3 and when I try to log in to my PC from a different computer it does not allow me. I used to use openSuse 11.2 and was having the same problem. what I need to do to maybe change the firewall security or something like that..
View 3 Replies
View Related
Apr 20, 2010
Is there a way to remotely login to a Linux machine from Windows without having to have a session already going? The ideal situation would be to turn the Linux machine on, remotely log in with the Linux username and password and be presented with a desktop, and when I disconnect the session ends. I don't want to have a session already going to connect to... it seems like I can't accomplish this using VNC. What other options are there?
View 4 Replies
View Related
Feb 12, 2010
After reading up about ssh, I understand that it's a protocol used for sending encrypted data over a network. However, I don't understand what's going on when I login to my Ubuntu PC using ssh [over the network]. How does the ssh client application 'know' that it has to take input from one computer and pass it to the other?
EDIT; To put it another way, one could send a mp3 file over ssh right? So instead of the file, what tell the ssh client that the input and output of the computers is what has to be sent?
View 6 Replies
View Related
Mar 14, 2011
Is it possible to remote login (x -session) to a second computer( first time) from a first computer.
OS : Ubuntu 10.10
View 1 Replies
View Related
Dec 14, 2010
How can I make radiolist dialog which content so many options what is the value of the variable?Quote:
echo "How many options?"
read=VAR
dialog --title "sdf" --backtitle "sdff" --radiolist "ffdsfsd" 15 60 5 "1" "first" on "2" "second" off "3" "third" off "4" "fourth" off etc..
I must explode dialog in loop and add options? or something like that?
View 2 Replies
View Related
Oct 30, 2010
What is "--installdirs site" options in cpan configuration?
View 1 Replies
View Related
Nov 18, 2010
I usually use wget to download stuff from websites when scripting.I have a new requirement that requires me to authenticate then select some options to execute the download. How would I go about this? First thing that comes to mind is using keyboard macros in the Windoz world but I need to do this in bash or perl.
View 1 Replies
View Related
Aug 22, 2011
how to use remote services to login to a remote machine without providing the password?
Are there any commands in Linux or do I have to write a 'C' code for it ?
View 2 Replies
View Related
Nov 14, 2010
I did a upgrade to 10.04 on my server. Then after a reboot I was unable to remotely get into server. Upon connecting the monitor I am greeted with the purple 10.04 boot screen with this text at the bottom:
Code:
The disk drive for /dev/mapper/cryptswap1 is not ready yet or not present
Continue to wait; or Press S to skip mounting or M for manual recovery
Now I did some googling and the results I came across involved a encrypted drive which I have never even tried to setup. Now if I choose a manual recovery I am dropped to cli which from there I can start networking then ssh into the system and run updates, ping other machines, etc. But again this is meant to be a remote access server so everytime I reboot I cant just hit the M key let alone run service networking start! So I commented out the swap entry's in both my /etc/crypttab and /etc/fstab...now I cannot even get to terminal as I could before...now it just loops with no errors!
View 2 Replies
View Related