share folder between windows and linux without root permission - linux

I have a development server which installed ubuntu and I just have normal permission in this server. I want to share a folder with Windows to store the code and compile the code in this server but edit them in Windows. How can I achieve this without root permission?
PS. it seems that samba is installed in that server

In case you have an SSH server running on ubuntu, you can try installing e.g. MobaXTerm in windows and access ubuntu via ssh. If it works, you'll be able to use scp to transfer data efficiently!
Another option is to use rsync in combination with ssh, which can be used from linux without root permission. However, you may have to adjust windows permissions, then.
Best solution, however, is using a version control system as #Filburt mentioned in a comment above.

sudo apt-get install samba libpam-smbpass
sudo service smbd restart
sudo gedit /etc/samba/smb.conf and change the workgroup name -> workgroup = WORKGROUP
sudo service smbd restart
sudo apt-get install winbind
sudo gedit /etc/nsswitch.conf add hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4
sudo /etc/init.d/networking restart

Related

Web access to tableau server installed on google cloud instance with centos 7 as OS

I created VM (virtual machine) instance on Google Cloud with CentOS 7 as OS to install Tableau Server and http access to it using set of commands from online free video. After successful installation I try to use web browser to get an access to Tableau Configuration and I see nothing but an error message "Connection took too long".
Pretty much I didn't do anything else yet because on video everything is right and smooth. Already asked owner of video but who knows how busy he is and if consider it his responsibility to answer the questions.
sudo -i
yum update -y
sudo yum install wget -y
wget https://downloads.tableau.com/tssoftware/tableau-server-2018-2-0.x86_64.rpm
chmod 777 tableau-server-2018-2-0.x86_64.rpm
sudo yum install tableau-server-2018-2-0.x86_64.rpm
adduser admin
passwd admin
usermod -aG wheel admin
systemctl status firewalld.service
systemctl disable firewalld.service
systemctl stop firewalld.service
su - admin
cd /opt/tableau/tableau_server/packages/scripts.20182.18.0627.2230/
sudo ./initialize-tsm --accepteula
sudo usermod -G tsmadmin -a admin
source /etc/profile.d/tableau_server.sh
After many starts and stops and checking the Tableau Server application status I still not able to have web access to configuration page.
Any suggestions please?
I would follow the Linux install docs. You are missing a few steps like registration and configuring the initial node.
Also, you shouldn't install as su - admin. You want to install in the user space using sudo.
When you do get the server up and running you should be able to run tsm status and see that Tableau Server is running. If you still cannot reach the server after that then there is probably something going on with the networking with the GCP settings.

Use Docker in Linux VMWare VM with Volumes?

Is it possible to connect to a Linux Docker engine running in a Linux VMWare virtual machine, running on Windows 10? I need VMWare for other tasks... which means I need to disable Hyper-V (which Docker requires). The configuration would be as follows:
Windows 10 Enterprise ... running VMWare Workstation Pro v12
Ubuntu 16.04.2 ... as a guest OS in VMWare
Shared Folders running in VMWare sharing C:\Source
Ubuntu VM mounting C:\Source (as /media/source probably)
Docker Engine running within Ubuntu VM
Docker container with Volume mounted at /media/source
coding locally in C:\Source (using Sublime, Atom, whatever)
changes being picked up by Docker container (via nodemon)
Yes and no.
Can this be done? Yes.
Can this be done with VMWare? I wouldn't with VMWare.
VMWare has issues dealing with Shared Folders on Windows 10. The company behind VMWare switched HGFS drivers and there were problems as late as December 2016, which is when I finally gave up.
Now, if you are willing to do this with VirtualBox, then it works flawlessly:
flackey#devvms01: ~
$ ls
Backup Source
Here's what I currently do...
Disable Hyper-V in Windows 10;
Install VirtualBox & VirtualBox Extensions (link);
Create the Ubuntu VM;
Before starting the VM, add the "Shared Folders" paths you need (see above);
Install Ubuntu;
Install virtualbox-guest-dkms;
Add your user to the vboxsf group: sudo adduser $USER vboxsf; and,
Create the mount point(s).
The commands would be:
sudo apt-get install virtualbox-guest-dkms
sudo reboot now
sudo adduser $USER vboxsf
mkdir ~/Source
sudo mount -t vboxsf Source ~/Source
mkdir ~/Backup
sudo mount -t vboxsf Backup ~/Backup
Note: You probably don't need to reboot. I'm just anal like that.
After that, it works exactly as you described above. You will be working in C:\Source directly in Windows 10. The VM and Docker will function as if the files are local to the VM's file system.

Linux - Install manually a service at startup - GitBlit server on Synology NAS

I used GitBlit on windows but I purchased a Synology NAS.
http://gitblit.com (An open source "GitHub like" server)
The NAS works with a custom distribution of linux.
I installed the ubuntu version of GitBlit It works great.
But I can't install the GitBlit service. I would like to start the server at startup.
But I try to launch the install-service-ubuntu.sh but there is no update.rc file on this Linux distribution.
#!/bin/bash
sudo cp service-ubuntu.sh /etc/init.d/gitblit
sudo update-rc.d gitblit defaults
So I would like to install the service manually but don't know the Linux system.
Thanks.

Ubuntu Server Install GUI and Remote Access

How can I install a GUI for a remote server and then access it over RDP (or similar)
I've done a sudo apt-get install ubuntu-desktop and sudo apt-get install xrdp, but when I go to access it and login, I just get a blank screen. I presume the windowing system hasn't started?
Thanks
Did the desktop fail to start up because there is no display attached?
I think the easiest approach is to use LXDE (Lightweight X11 Desktop Environment) with xrdp.
Refer This Link

How to config the server to get access to mysql from external

Hy!
I have a debian server with a installed mysql server.
Now my problem is that i don't get access from external.
How to config it?
Hint: netbeans doesn't support ssh; i looked into the iptables and there is no change from stock
thx
If you want access to your debian server console from the outside through ssh, you have to install the ssh daemon on it:
apt-get update
apt-get install ssh

Resources