I need upload about 600 kiB C file and make file directory (local computer) to IBM Cloud Virtual Server and compile C files there. After program finish work, download result file, file size 5 MiB to 25 MiB back to local computer. Want use Mac OS X or Linux command line Terminal for upload and download.
Already have IBM Command Line Tool installed and know how select start/pause/stop virtual servers use web console with SSH key file. Can SSH to virtual servers.
Only use virtual server for extra computer power. No need Object Storage Bucket, no need web application, no deploy web application, Docker, no need fancy stuff in IBM Cloud documents, etc.
You can just use scp to copy your files to the VSI using it's credentials. It's no different than copying a file over to a remote server.
https://linux.die.net/man/1/scp
or use an sftp client like filezilla or cyberduck
Related
I have a process that creates an EXCEL file on a local folder on my local PC.
I want to share this folder \ file with my EC2 instance on AWS.
FXs it's not an option because the costs are very high, file size is smaller than a 100MB.
any idea?
The answer is secure copy AKA: SCP.
SCP uses SSH (hence the name secure copy bit) because you are using a windows machine you'll need to make some changes to your machine first.
You should either look into WSL(windows subsystem for linux) or use native PowerShell, specifically this pkg
I know that I can access the wsl2 filesystem by just opening \\wsl$ on the local computer. Can I somehow expose this to another computer in the same network? The goal is to just have a network drive on a remote computer where I drop files to copy them directly to wsl2.
EDIT: While it is not exactly what I wanted, I just noticed I can run a FTP server inside wsl2 and just transfer files in and out that way. I am still leaving the question open though as there might be a simpler solution to this.
You can find your home folder of wsl on c drive (its in AppData) and use ordinary windows folder sharing.
You can mount your network storage directly into WSL like in a particular Linux.
Example for Ubuntu and SMB: https://askubuntu.com/a/1050499
I have the following task:
I installed Linux for Windows in Windows 10 Pro computer;
I installed Ubuntu 18.04 LTS;
I have a separate volume in Windows computer, which doesn't have a drive letter assigned to it;
I need to find a way to mount this Windows volume without letter in WSL Ubuntu.
I know the volume id in case it is required.
Any ideas how to achieve this?
Thx, Vlad.
First of all, my question wasn't completely right, I wrote Linux for Windows but in fact I was talking about "Windows Subsystem for Linux".
The idea is to have 1 disk drive as hardware configured RAID 0 storage which is built with 2x Samsung SSD 1Tb. But for protection of data on RAID 0, I want to use HDD which will sync data with rsync or any cloud service. I selected ownCloud.
Finally, I want to hide the HDD from the system and configure WSL to use it.
Hereby how it works for me:
1) I created a folder here: c:\Users\Public\wsl
2) I mounted the HDD in the folder created above.
3) After the HDD is mounted, I created a subfolder for my favorite Linux distribution: c:\Users\Public\wsl\ubuntu
4) I installed Ubuntu 18.04 in this folder as it described here: Installing WSL on Windows 10 without MS Store
5) The point above allows to install ownCloud server on hidden HDD. Now, in order to get it running at system boot, one can create scripts as described here: how to autoload apache2 and mysql in WSL at Windows boot
6) And finally, to get ownCloud Server running at system boot, even before any user login, one needs to do as follows:
*) Open Windows task scheduler;
*) add a task which runs autostart.sh (see how to make this script on a link above) on system boot;
*) use wscript.exe (from windows system32) as the command to run and the vbs script as parameter. Check this link if you need more details;
7) Finally, we need to setup ownCloud client on the computer and connect it with the server by using http://localhost as the server url.
So, as result of this setup, one gets faster disk system based on 2x SSH configured in RAID 0 and to protect data, one uses a local cloud server in virtual machine to get personal content synchronized with standard HDD.
If the system uses actively SSD, the cloud won't get time for syncing data. But as soon as resources are available, system will sync data in background mode into the HDD, which requires more time to write the same data.
This setup allows to use SSD system at full speed as it is required by applications and it does not limit dramatically the performance of SSD subsystem while keep syncing data in slow HDD as computer resources are available and SSD resources are available.
In VM ware Virtual machine i have installed the Centos in Window 7.Now i want to re install my Window 7 but i do not want to loose my virtual machine Centos. I Google many time for this topic but did not find any helpful information.
Any help?
Thanks
Your virtual machine is saved under the form of multiple files, which you can easily back-up on an external hard-drive, or in the cloud. If you are using VMWare, then your machine will be split into .vmdk, .vmx, .vmxf, .vmsd and .nvram files, depending on your VM configuration.
Just check where you store the VM files, and back them up before re-installing the host system. Afterwards, just import the .vmx file back into VMWare.
In VMWare Player right-click on your VM, go to Settings, then Options, and under Working Directory you should see where your VM files are stored. Just back-up that entire folder before reinstalling.
I used ssh -X <ip_addresss_of_remote_host> to connect to a remote host from my local computer. I am using ubuntu 12.04. Now that I can browse internet on the remote host by opening firefox using "firefox" command in the terminal. Now any file I download from the internet goes to the remote host. Is there anyway I can setup the connection such that a file downloaded comes directly to my local computer??
I'm assuming you're using a browser on a remote host for some good reason. Therefore, the get those files to your local computer, put the downloaded files somewhere in your user path, then FTP to the remote host and download the files to your local machine.
One possibility would be to set the download directory in your remote firefox session to a shared directory that you have access to on your local machine as well.
However, if I were you, I'd just copy the downloaded files to your local machine using rsync:
rsync -az <remote_host>:/path/to/firefox/download/dir ./dir
You could use sshfs to mount your local directory on the remote server. That way, even though the file would be downloaded on the remote server, it would actually be stored on your local computer.