• Announcements

    • MannDude

      Current state of vpsBoard   02/04/2017

      Dear vpsBoard members and guests:

      Over the last year or two vpsBoard activity and traffic has dwindled. I have had a change of career and interests, and as such am no longer an active member of the web hosting industry.

      Due to time constraints and new interests I no longer wish to continue to maintain vpsBoard. The web site will remain only as an archive to preserve and showcase some of the great material, guides, and industry news that has been generated by members, some of which I remain in contact to this very day and now regard as personal friends.

      I want to thank all of our members who helped make vpsBoard the fastest growing industry forum. In it's prime it was an active and ripe source of activity, news, guides and just general off-topic banter and fun.

      I wish all members and guests the very best, whether it be with your business or your personal projects.

      -MannDude

Search the Community

Showing results for tags 'ubuntu'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • vpsBoard
    • Announcements & Contests
    • Industry News
  • Virtual Private Servers
    • General Talk
    • Operating a VPS Business
    • Tutorials and Guides
    • Questions and Answers
  • The Lounge
    • The Pub (Off topic discussion)
    • Coding, Scripting & Programming
    • SBC, ARM, Home Automation
  • Marketplace & Reviews
    • Reviews
    • VPS Offers
    • Other Offers
    • Service Requests

Found 26 results

  1. Anyone out there using any of the alternative phone OSes yet? Firefox OS, Ubuntu's Phone OS, etc. Been waiting to see a push and phones have launched and seeing little coverage here/
  2. Hello , sorry for the confusing title ,I do not speak english as my first language.(and also sorry if the topic does not fit here) Problem background: I just want to create a website as a competitive program grader for my school. Like complie and run source code on the server. So below is my idea and i would like some help/suggestions before i do it,I still don't know if this will work. Mysql usage: The problem one is that i would use one of the table as my user-submission queue.When user submit a code, I first put it in this table(i suppose it put the new row in the bottom of the table?) . Python program usage: I would run a 24/7 program on my server that check every 10 second if the queue table is not empty, just run the grading process(I know how to do it) and then pop it off the queue.Then check again. PHP usage: When a person submit code, i will use php to put it on the queue table,but it may be the same time my python program is popping something off the queue table too. This is where I get confuse whether it will work or not.(Other usage of the php is just things about web interface which I had done before and know what to do) So,would this idea even work? Will it break my server or something?As a competitive programmer guy I don't know much snd will greatly appreciate any help from u guys. :) Thank you very much.
  3. Ubuntu on Windows 10 -- The Ubuntu Userspace for Windows Developers
  4. I am excited by the potential of this project. It's early yet, so cutting edge and not polished if your OS and desktop isn't what they are building for. Shashlik allows you to run Android apps on Ubuntu, so long as you are running KDE. Others, good luck, try it and maybe we can help kick solutions back to the authors. This is for Kubuntu: http://www.shashlik.io/news/2016/02/18/shashlik-0-9-0-kubuntu-package/ ArchLinux and Github links over here: http://www.shashlik.io/download/ Place you can grab famous software APKs from: http://apkpure.com/ Someone give it a spin. My Linux Mint environment installs it, but no dice getting anything to work. Going to spin up VirtualBox Kubuntu install later and see if it will work under that.
  5. Figured this thread could be a handy resource for everyone at all skill-levels. Sometimes you just want to copy and paste a command you've used a hundred times (DD-tests, for example) or are just having a brain fart and forgot how to do something. Well... this thread is for you, my friend! Let's get started! I'm just going to start off with the absolute basics, was planning I'd do several of these and then add more to this post as people respond with additional ones. By the way, the outputs of the commands I show I've done on my Raspberry Pi running Debian on my local network. General Commands > The Basics > All Distributions Uptime Command: uptime Shows the uptime of a VPS, output example below: [email protected]:~# uptime 16:11:59 up 12 days, 8:10, 1 user, load average: 0.08, 0.03, 0.05 Free memory Command free -m Shows the available free memory on your Linux system. Read here for more: http://www.linuxatemyram.com/ [email protected]:~# free -m total used free shared buffers cached Mem: 438 379 58 0 49 213 -/+ buffers/cache: 117 321 Swap: 0 0 0 Processes and resources used command: top Realtime process and resource usage. You can see your load average, uptime, and processes that are consuming system resources. To exit 'top', just hit 'Q'. You can CTRL + M to sort the processes according to their memory usage from highest to lowest, which can come in handy in figuring out what is using up your RAM. (Thanks [member=wcypierre] for that tip) [email protected]:~# top top - 16:16:59 up 12 days, 8:15, 1 user, load average: 0.00, 0.01, 0.05 Tasks: 65 total, 1 running, 64 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.7 us, 0.7 sy, 0.0 ni, 98.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 448776 total, 389568 used, 59208 free, 50916 buffers KiB Swap: 0 total, 0 used, 0 free, 218484 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 17744 root 20 0 3112 1304 924 R 1.0 0.3 0:00.27 top 2081 mysql 20 0 294m 47m 5320 S 0.3 10.8 75:16.16 mysqld 1 root 20 0 2100 676 576 S 0.0 0.2 0:37.37 init 2 root 20 0 0 0 0 S 0.0 0.0 0:00.10 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:07.65 ksoftirqd/0 4 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kworker/0:0 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H 6 root 20 0 0 0 0 S 0.0 0.0 2:02.08 kworker/u:0 7 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/u:0H 8 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper 9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs 10 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns 12 root 20 0 0 0 0 S 0.0 0.0 0:00.25 bdi-default 13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd 14 root 20 0 0 0 0 S 0.0 0.0 0:00.22 khubd 15 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 rpciod 16 root 20 0 0 0 0 S 0.0 0.0 0:00.66 khungtaskd 17 root 20 0 0 0 0 S 0.0 0.0 0:08.23 kswapd0 18 root 20 0 0 0 0 S 0.0 0.0 0:00.00 fsnotify_mark 19 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 nfsiod 20 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto 27 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kthrotld 28 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 VCHIQ-0 29 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 VCHIQr-0 30 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 VCHIQs-0 31 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 iscsi_eh 32 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 dwc_otg 33 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 DWC Notificatio 35 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 deferwq 36 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/u:2 37 root 20 0 0 0 0 S 0.0 0.0 6:29.95 mmcqd/0 38 root 0 -20 0 0 0 S 0.0 0.0 0:04.70 kworker/0:1H 39 root 20 0 0 0 0 S 0.0 0.0 0:22.44 jbd2/mmcblk0p2- 40 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-dio-unwrit 153 root 20 0 2744 980 608 S 0.0 0.2 0:00.32 udevd 235 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bcm2708_spi.0 1371 root 20 0 4852 2280 568 S 0.0 0.5 0:00.23 dhclient 1574 root 20 0 28060 1576 1064 S 0.0 0.4 0:03.93 rsyslogd 1609 root 20 0 2248 844 672 S 0.0 0.2 0:05.02 cron 1717 root 20 0 1712 556 460 S 0.0 0.1 0:00.13 mysqld_safe 1899 root 20 0 6168 1040 620 S 0.0 0.2 0:00.12 sshd 2082 root 20 0 1804 608 532 S 0.0 0.1 0:00.01 logger 2174 root 20 0 2200 708 588 S 0.0 0.2 0:00.01 getty 2175 root 20 0 2200 708 588 S 0.0 0.2 0:00.01 getty 2176 root 20 0 2200 708 588 S 0.0 0.2 0:00.01 getty 2177 root 20 0 2200 708 588 S 0.0 0.2 0:00.01 getty 2178 root 20 0 2200 708 588 S 0.0 0.2 0:00.01 getty 2179 root 20 0 2200 708 588 S 0.0 0.2 0:00.01 getty 2804 root 20 0 36296 3520 1252 S 0.0 0.8 1:40.49 php5-fpm Check disk space used and available command: df -h This will check available space on your filesystem. Your output will likely look different depending on the configuration of your server. [email protected]:~# df -h Filesystem Size Used Avail Use% Mounted on rootfs 7.3G 3.7G 3.6G 51% / /dev/root 7.3G 3.7G 3.6G 51% / devtmpfs 212M 0 212M 0% /dev tmpfs 44M 196K 44M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 88M 0 88M 0% /run/shm Change Directory Command: cd /path/to/directory This will change the location of the directory your browsing. In the example above, simply change the path to the directory in which you need to change to. For example, if you needed to move to '/var/www', you would type 'cd /var/www' [email protected]:~# cd /var/www [email protected]:/var/www# List directory content command: ls Now that you've moved to the directory of your choice, you may want to get a list of the content from within that directory. Simply enter the 'ls' command. You should see something like: [email protected]:/var/www# ls bill_murray.jpg check.php damncat.jpg index.php logo.png logs phpinfo.php phpmyadmin test vpsboard Make Directory command: mkdir ./mynewdirectory The command above will create the directory 'mynewdirectory' in whatever directory you are currently in. Maybe you want to go deeper than that, so use the following the command: mkdir -p ./mynewdirectory/test/testing The command above not only creates the directory but also all that follows it. Move a file command: mv test.txt ./testdirectory The above command will the file 'test.txt' to the directory 'testdirectory'. Pretty straight forward. Change password command: passwd This will change the password for the user you are logged in as. For example, if you are logged in as the root password it's very good practice to change your password immediately. You will be prompted to type in your password, and asked to retype it. Your password will not show in the screen. Output will be similar to below: [email protected]:~# passwd Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Check the CPU information command: cat /proc/cpuinfo This command will tell you information about the CPU your provider uses for the VPS node you are on. Thank you for submitting this one. [email protected]:~$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Xeon(R) CPU E31230 @ 3.20GHz stepping : 7 cpu MHz : 3192.748 cache size : 4096 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc up arch_perfmon pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm bogomips : 6385.49 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual Check memory information command: cat /proc/meminfo Likely not as used as often as the check CPU info command above, but can come in handy. Thank you for submitting this one. [email protected]:~$ cat /proc/meminfo MemTotal: 254828 kB MemFree: 9012 kB Buffers: 45764 kB Cached: 140528 kB SwapCached: 1036 kB Active: 139832 kB Inactive: 88016 kB Active(anon): 19448 kB Inactive(anon): 22164 kB Active(file): 120384 kB Inactive(file): 65852 kB Unevictable: 0 kB Mlocked: 0 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 254828 kB LowFree: 9012 kB SwapTotal: 496632 kB SwapFree: 490712 kB Dirty: 216 kB Writeback: 0 kB AnonPages: 40804 kB Mapped: 11764 kB Shmem: 56 kB Slab: 12616 kB SReclaimable: 8924 kB SUnreclaim: 3692 kB KernelStack: 640 kB PageTables: 700 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 624044 kB Committed_AS: 229688 kB VmallocTotal: 765952 kB VmallocUsed: 5628 kB VmallocChunk: 752772 kB HardwareCorrupted: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 4096 kB DirectMap4k: 12280 kB DirectMap4M: 249856 kB Stop/Start/Restart (most) services: service [service name] [stop/start/restart/reload/status] OR /etc/init.d/[service name] [stop/start/restart/reload/status] The examples below will use both methods to start/stop/status Nginx and MySQL as it's what is running on my Raspberry Pi right now. [email protected]:~# service nginx restart Restarting nginx: nginx. [email protected]:~# service nginx status [ ok ] nginx is running. [email protected]:~# /etc/init.d/nginx stop Stopping nginx: nginx. [email protected]:~# /etc/init.d/nginx start Starting nginx: nginx. [email protected]:~# /etc/init.d/mysql status [info] /usr/bin/mysqladmin Ver 8.42 Distrib 5.5.31, for debian-linux-gnu on armv7l Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Server version 5.5.31-0+wheezy1 Protocol version 10 Connection Localhost via UNIX socket UNIX socket /var/run/mysqld/mysqld.sock Uptime: 12 days 16 hours 14 min 34 sec Threads: 1 Questions: 24062 Slow queries: 0 Opens: 1532 Flush tables: 1 Open tables: 293 Queries per second avg: 0.021. Thanks [member=wcypierre] for sharing. Change File Permissions command: chmod 755 file-or-directory Need to change the file or folder permissions? Do it quickly via SSH! The example below shows me simply changing the permissions of the directory 'testdir' to 755. Thanks [member=wcypierre] for sharing. [email protected]:/var/www# chmod 755 testdir [email protected]:/var/www# Please contribute to this thread! If you wish to contribute, I'll add your responses to this original posting so all commands are in one post for easy retrieval and use. I'll link to your profile or response to give credit where it is due.
  6. full study: https://insights.ubuntu.com/2015/05/18/lxd-crushes-kvm-in-density-and-speed/ LXD info: http://www.ubuntu.com/cloud/tools/lxd
  7. Howdy folks, I've recently been having problems with my Ubuntu VPS on my Windows server. I have access to both the Host node and the guest node (since this is a multi-use server and I wanted to use both Windows and Linux services), and I guess I thought I set it up properly but it seems there's a networking problem on the server. There's periods when the Ubuntu VM has major packet loss while the actual host server is mostly fine. Sometimes when I'm rsyncing large files (12 GB worth of files), the network gets dropped on the entire Ubuntu VM and I get the error "ping: sendmsg: No buffer space available". This was reproducible whenever I'd rsync out larger files. Basic research shows this is usually due to an incompatibility of the on-board NIC on the Server (of course this is assuming Ubuntu was installed on the base hardware, not within a VM). I'm assuming this is a problem with my bridge setup. Anyways, this is a Hyper-V Generation 1 VM. The bridge is basically all default variables requested when setting it up through the Wizard available on the Windows Server 2012 R2 (Datacenter Edition). Upon further Google Searching, I've found that we have to increase the memory allocation for the packets, and was suggested I add the following lines into sysctl: net.core.rmem_max=16777216 net.core.wmem_max=16777216 net.ipv4.tcp_rmem=4096 87380 16777216 net.ipv4.tcp_wmem=4096 65536 16777216 In addition, the following command was executed: echo 83886080 > /proc/sys/net/core/wmem_max Anyways, even with these changes I'm still having some problems. Anyone know of a good way to start troubleshooting this issue? Thanks!
  8. I'm currently paying Softlayer for 1 server in San Jose and another 1 in Singapore with below specs. I was hoping to at least be able to find better priced alternative in US. Usage: Legit software distribution and downloadable content Softlayer (current) HDD: 500GB Bandwidth: 20TB CPU: 3.5GHz Xeon E3 RAM: 8GB OS: Ubuntu Price: $143 Requirement HDD: 500GB Bandwidth: Unlimited 100MBps or [email protected] CPU: Minimum dual core RAM: Minimum 2GB OS: Ubuntu Price: Less than $143 KVM or IPMI is a must, unless they have really great 24/7 support.
  9. Hi, I would like to know if a VPS (regardless of its virtualization) is available for only between $0.99-$2.00? I am just going to use it to monitor my other sites. Probably, I will install Nagios or these toolshttp://www.servermom.org/free-self-hosted-server-monitoring-tools/1824/ Thanks.
  10. I am really new to hosting my websites with a VPS and relatively new to Ubuntu. Always used shared hosting plans until now. I am trying to install WordPress on my VPS running Ubuntu with LEMP and I am successful for the most part. However I get this error message. 2014/12/19 14:29:14 [error] 901#0: *147 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: XX.XX.XXX.XX, server: bloggingwithdani.com, request: "GET /wp-admin/themes.php?action=delete&stylesheet=boot_strap&_wpnonce=89c8625570 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "XXX.XXX.XX.119", referrer: "http://XXX.1XX.XX.1X9/wp-admin/themes.php?theme=boot_strap" The error happens every time I try to remove either a Theme or a Plugin and it only happens on the remove function. I can install Themes and Plugins without any problem. WordPress is using SSH2 to connect to the server. Here is a screen shot of the server block for this website. http://www.evernote.com/shard/s264/sh/a33d195c-aa51-4bae-8fcc-63cc345a662b/fd8033b4bcbc91ddcf30121ff26fe64d What could be the reason for this problem? I've checked the PHP5 log at (/var/log/php5-fpm.log) however there is nothing relating to this error.
  11. Anyone out here doing any work with USB attached temperature sensors / probes? Looking for gear recommendation for USB temperature sensor / module / etc. Prefer something finished, in a case aside from maybe a probe arm. Linux compatibility is the key here. Anyone using such a device or can recommend one? (not interested in raw Raspberry Pi io-style modules/projects).
  12. As a dedicated server or Virtual Private Server (VPS) owner, one of the important tasks is to defend against online attacks. In this tutorial I will discuss how to use IPset with dynamic blocklists to better secure your server. IP sets are a framework inside the Linux kernel, administered by the IPset utility. It makes the task of managing large lists of IP addresses in IPTables much easier and more efficient, and can be used on most servers EXCEPT on an OpenVZ VPS. How can we better secure our servers using IPSet? The answer is to take advantage of various IP blocklists maintained by security research companies or groups on the Internet, and deny access to these "bad" IPs and/or subnets. Continue reading at the original post on my blog: https://blog.ls20.com/securing-your-server-using-ipset-and-dynamic-blocklists/ Any questions or comments are welcome.
  13. Hello guys, I have created a fully automated ("one-click") IPsec/L2TP VPN install script for Ubuntu 12.04. My script was inspired by and is based on the work of Thomas Sarlandie (original post), that I took time to improve by replacing Openswan with Libreswan, which is more actively developed with recent bug fixes. I also corrected a few errors in his script, added sysctl.conf and basic IPTables rules. This script is designed for use as Amazon EC2 "user-data" when launching an instance. The fact that it can be run purely from user-data makes it ideal for use on low-priced "spot instances". With minor modifications, the script can also be used on KVM- or XEN-based VPS from other providers. Main features: Fully automated IPsec/L2TP VPN install with no user interaction required Encapsulates all VPN traffic in UDP - no ESP protocol support is needed Can be directly used as the "user-data" when launching an Amazon EC2 instance Can be used in both EC2 Classic and VPC, with on-demand OR spot instances Automatically obtains public and private IP info from instance metadata Includes a basic IPTables firewall as well as sysctl.conf settings Tested on both Ubuntu 12.04 LTS 32-bit and 64-bit Link to the script: https://gist.github.com/hwdsl2/9030462 Detailed instructions can also be found at my blog article here. Instructions for use in Amazon EC2: Browse to my script at the link above. Click on the "< >" sign on top-right corner that says "View Raw". Ctrl-A to select all, Ctrl-C to copy. Then paste into your favorite editor. From there, be sure to replace the three variables "IPSEC_PSK", "VPN_USER" and "VPN_PASSWORD" with your own values. Launch an Amazon EC2 Ubuntu 12.04 instance (on-demand OR spot). Copy and paste the customized script into the "User data" field under "Advanced Details" in Step 3 (reference). Proceed to configure other details. When setting up the EC2 security group for your instance, remember to allow inbound UDP ports 500 and 4500 for the VPN, and TCP port 22 for SSH. Other ports are not required. Wait a few minutes after the instance finishes launching, and your fully configured IPsec/L2TP VPN server will be ready for you! Instructions for use on other VPS (KVM- or XEN-based): Make sure to prepare your VPS with a fresh install of Ubuntu 12.04 LTS server. Save the script as "vpnsetup.sh" on your VPS. Edit it in your favorite editor. From there, change the first line to "#!/bin/bash", replace the three variables "IPSEC_PSK", "VPN_USER" and "VPN_PASSWORD" as mentioned above, and change "PRIVATE_IP=..." and "PUBLIC_IP=..." to the actual IP addresses of your VPS. In case your VPS is run on its public IP directly with no private IP, just use that public IP for both. Save and exit the editor. Finally, run "bash vpnsetup.sh" to install. Use of the script on OpenVZ VPS is NOT recommended, as kernel support for IPsec may not be available on your host node. In addition, the IPTables rules in the script could give errors due to missing kernel modules. Feel free to reply with your comments or suggestions. Disclaimer: Although the script has been tested, there is NO guarantee and use at your own risk!
  14. Hello guys, here is my tutorial for setting up "SSHFS" to create shared folder(s) among your VPS. We will be using "autossh" which has the nice "automatic reconnect" capability whenever the link goes down. Also implemented are settings such as "chroot" and "key use restrictions" which will strengthen security. These instructions have been tested on both Ubuntu 12.04 LTS and CentOS 6.5 Server. However, use at your own risk. Note that if you want to use this tutorial on an OpenVZ VPS, your provider MUST enable "FUSE" for your container. First, you need to decide on a "master" server where your shared folder will be physically stored. Your other "slave" server(s) will connect to this master server via SSHFS to share that folder's content. For the purpose of this tutorial, the folder to be shared on master server is named "/opt/sshfs_export", while each slave server will create a folder named "/opt/sshfs" to hold the shared content. All commands below run as user "root" unless otherwise noted. Alternatively you can use "sudo". The first step is to install the necessary software packages. Follow separate instructions below for Ubuntu and CentOS: For Ubuntu: apt-get update apt-get install nano fuse sshfs autossh -y For CentOS: # Make sure you install the "EPEL" repository first. # Check "/etc/yum.repos.d/". If already installed, skip this step. yum install wget -y wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh epel-release-6*.rpm # Next, proceed to install the needed packages: yum check-update yum install nano fuse fuse-sshfs autossh -y The instructions below are applicable for BOTH Ubuntu and CentOS. Create "fuse.conf", set correct permissions and allow all users to access shared folder: [ -f /etc/fuse.conf ] && cp /etc/fuse.conf /etc/fuse.conf.old echo "user_allow_other" > /etc/fuse.conf chown root:fuse /etc/fuse.conf chmod 640 /etc/fuse.conf Add user "autossh" and ensure it's a member of the "fuse" group: useradd -m -s /bin/false -G fuse autossh Prepare shared folder on "slave" server(s): mkdir /opt/sshfs chown autossh:autossh /opt/sshfs Now we switch to user "autossh" and generate SSH key to be used for authentication: su - autossh -s /bin/bash ssh-keygen (Accept the defaults to generate SSH key for "autossh". Leave passphrase empty.) exit Now, repeat steps above on ALL your other servers ("master" AND "slave") until they are all set up. Next, log on to each of your "slave" server, and do: cat /home/autossh/.ssh/id_rsa.pub Copy and paste the entire contents of the public key file displayed by the command above into a text editor. You should get one line for each "slave" server, beginning with "ssh-rsa" and ending with "[email protected]_HOSTNAME". Now, in your text editor, prefix every line with this (without the quotes): "no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-user-rc,no-pty " This will strengthen security so that only SFTP is permitted. If you need to allow port forwarding, replace the "no-port-forwarding" to something like "permitopen="127.0.0.1:8888"", where 8888 is the port to be allowed. Go back to your "master" server. Edit the file: mkdir -p /home/autossh/.ssh; chmod 700 /home/autossh/.ssh cd /home/autossh/.ssh touch authorized_keys; chmod 600 authorized_keys nano authorized_keys Paste the entire contents of your text editor at the end of the file, Ctrl-O and Enter to save, Ctrl-X to exit nano. Prepare the folder to be shared on "master" server: mkdir /opt/sshfs_export chown root:root /opt/sshfs_export cd /opt/sshfs_export mkdir test_dir touch test_dir/test_file chown -hR autossh:autossh * Edit your sshd_config in nano editor (on "master" server ONLY): nano /etc/ssh/sshd_config Make sure the settings below are correct in the sshd_config file. In addition, if there is any "AllowUsers" line present in sshd_config, be sure to add "autossh" to it. If not, there is nothing to worry about: RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys UsePAM yes ClientAliveInterval 15 ClientAliveCountMax 6 Subsystem sftp internal-sftp Finally, add these lines at the end of sshd_config, Ctrl-O and Enter to save, Ctrl-X to exit nano: TCPKeepAlive yes Match User autossh ChrootDirectory /opt/sshfs_export ForceCommand internal-sftp X11Forwarding no AllowAgentForwarding no AllowTcpForwarding no If you need to allow port forwarding, replace the last line above with these two lines, where 8888 is the port to be allowed: AllowTcpForwarding yes PermitOpen 127.0.0.1:8888 Reload the configuration of "sshd" on "master" server with: # If Ubuntu: service ssh reload # If CentOS: service sshd reload Now you are almost done! Go ahead and login to each "slave" server, connect to the "master" server using the command below. This is a one-line command. Be sure to replace MASTER_SERVER_IP and MASTER_SERVER_SSH_PORT to appropriate values: su - autossh -s /bin/bash -c "/usr/bin/sshfs -o reconnect,compression=yes,auto_cache,cache_timeout=5,transform_symlinks,allow_other,idmap=user,ServerAliveInterval=60,ServerAliveCountMax=3,StrictHostKeyChecking=no,UserKnownHostsFile=/dev/null,ssh_command='autossh -M 0' [email protected]_SERVER_IP:/ /opt/sshfs -p MASTER_SERVER_SSH_PORT" You can then test the shared folder on each "slave" server. Enter command below and you should now see the "test_dir" and "test_file" we created on the "master" server. ls -lR /opt/sshfs Note that the "slave" servers cannot create files at the root of shared folder (e.g. /opt/sshfs). This is "by design" and must be done on the "master" server. However, the "slave" servers have full control of everything below that level. If you add content to the shared folder /opt/sshfs_export on "master" server, don't forget to change their ownership so that the "slave" servers can write to them. For example: chown -hR autossh:autossh /opt/sshfs_export/* To unmount the shared folder from each "slave" server, run the command: # First try the "normal" unmount command: /bin/fusermount -u /opt/sshfs # If above is unsuccessful, try doing a "forced" unmount. Data loss may occur. /bin/fusermount -uz /opt/sshfs Any questions or suggestions are welcome. Feel free to leave a comment.
  15. Ubuntu 13.10 is out

    So its out :) www.ubuntu.com Some interesting things from the Ubuntu 13.10 server announcement “Ubuntu 13.10 delivers the latest and best version of OpenStack, and is the fastest, most flexible platform for scale-out computing,” says Mark Shuttleworth, Founder of Ubuntu and VP Products for Canonical. “Ubuntu is typically used in very large scale deployments. In this release we’ve tuned the cloud deployment experience for very small clusters as well, to support dev-and-test environments.” This 13.10 release makes it possible to deploy a full OpenStack cloud on only 5 servers and offers a sophisticated Landscape dashboard for the management of Ubuntu OpenStack clouds no matter their size. Ubuntu leads the way with integration between OpenStack and VMware vSphere so ESXi users can interoperate with OpenStack. “The ability to deploy Ubuntu OpenStack alongside ESXi with orchestration that spans both properties is extremely valuable, bringing OpenStack right to the centre of common enterprise virtualisation practice” said Mark Shuttleworth. 13.10 introduces Juju management of LXC containers, which allow multiple services to run on the same physical or virtual machine. This gives sysadmins the option of greater density, reducing the total number of machines required to run a service, and reducing cost. A new installer enables very rapid provisioning of thousands of nodes, typically five times faster than the best traditional Linux installation process. Ubuntu is uniquely suited to rapid provisioning and re-provisioning in large-scale data centres. The Ubuntu LXC update in 13.10 provides blindingly fast (less than one second) and efficient cloning of containers for faster scaling of containerised services, unique to Ubuntu. Ubuntu 13.10 brings Apache 2.4.6. nice! And also PHP 5.5.3 Lets see which provider going to offer working Ubuntu 13.10 OS images earliest :P
  16. I have been using piwik for some time and i got that super useful. Except one error i get in System Check. I am just curious what does it says..... What is that Thing and how to solve this ? Note:That Database user is not root,created by ispconfig.
  17. I did put some codes in fstab which normally OK but actually i kept double "," in the error . Didn't checked there then , and i restarted the system , now read-only ... :( Any way to edit fstab and save ?? :(
  18. Hello Guys. I need some info about upgrading distros/OS by ssh in VPS. Is it safe to "do-release-upgrade" . I was running my vps by Ubuntu-13.04. Is it safe or there is another way ??
  19. I have installed new OS , Ubuntu 13.04 , 32bit . Installed htop only , but it is showing this things which i never seen in 12.04 as i was with 12.04 before ... what to do ?
  20. Hello Guys, I have installed pptpd vpn in ubuntu12.04 in a kvm VPS. Now I can connect to the vpn but i can't access any website. When i connect i get this logs from /var/log/syslog Oct 2 13:54:25 server1 pptpd[2180]: CTRL: Client 58.97.196.149 control connecti on started Oct 2 13:54:26 server1 pptpd[2180]: CTRL: Starting call (launching pppd, openin g GRE) Oct 2 13:54:26 server1 pppd[2181]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loade d. Oct 2 13:54:26 server1 pppd[2181]: pppd 2.4.5 started by root, uid 0 Oct 2 13:54:26 server1 pppd[2181]: Using interface ppp0 Oct 2 13:54:26 server1 pppd[2181]: Connect: ppp0 <--> /dev/pts/0 Oct 2 13:54:26 server1 pptpd[2180]: GRE: Bad checksum from pppd. Oct 2 13:54:29 server1 pppd[2181]: peer from calling number 58.97.196.149 autho rized Oct 2 13:54:30 server1 pppd[2181]: MPPE 128-bit stateless compression enabled Oct 2 13:54:31 server1 pppd[2181]: Cannot determine ethernet address for proxy ARP Oct 2 13:54:31 server1 pppd[2181]: local IP address 185.17.150.135 Oct 2 13:54:31 server1 pppd[2181]: remote IP address 192.168.0.234 Oct 2 13:54:31 server1 named[888]: received control channel command 'reconfig' Oct 2 13:54:31 server1 named[888]: loading configuration from '/etc/bind/named.conf' Oct 2 13:54:31 server1 named[888]: reading built-in trusted keys from file '/etc/bind/bind.key s' Oct 2 13:54:31 server1 named[888]: using default UDP/IPv4 port range: [1024, 65535] Oct 2 13:54:31 server1 named[888]: using default UDP/IPv6 port range: [1024, 65535] Oct 2 13:54:31 server1 named[888]: sizing zone task pool based on 5 zones Oct 2 13:54:31 server1 named[888]: using built-in root key for view _default Oct 2 13:54:31 server1 named[888]: Warning: 'empty-zones-enable/disable-empty-zone' not set: d isabling RFC 1918 empty zones Oct 2 13:54:31 server1 named[888]: reloading configuration succeeded Oct 2 13:54:31 server1 named[888]: any newly configured zones are now loaded Please help me. :(
  21. Dear all, I have an 'older' (3-4 years or so) Macbook Pro laying around here. It has an outdated OS X version on it and I thought about installing Ubuntu rather than updating to a newer OS X Version. I cannot do this install via a CD or DVD because the drive in the Macbook Pro is broken. So I will perform it via USB stick and already read some tutorials. Just one question for the moment: I guess I will choose the 64bit Version, but do you recommend 12.04 LTS or 13.04 for this task? Anyone did the same? Very much looking forward to your hints and recommendations! :popcorn: Kind regards -A
  22. File system problem

    I setup a small web project in an ubuntu 12.04.2 vps. I have rw rights in project's folder. I tried to cd to it and I got this: cd project -bash: cd: project/: Permission denied I then tried to get it's file list. ls -l project/ ls: cannot access project/index.php: Permission denied ls: cannot access project/css: Permission denied ls: cannot access project/.: Permission denied ls: cannot access project/images: Permission denied ls: cannot access project/themes: Permission denied ls: cannot access project/..: Permission denied ls: cannot access project/protected: Permission denied ls: cannot access project/index-test.php: Permission denied ls: cannot access project/assets: Permission denied total 0 d????????? ? ? ? ? ? . d????????? ? ? ? ? ? .. d????????? ? ? ? ? ? assets d????????? ? ? ? ? ? css d????????? ? ? ? ? ? images -????????? ? ? ? ? ? index.php -????????? ? ? ? ? ? index-test.php d????????? ? ? ? ? ? protected d????????? ? ? ? ? ? themes I tried again as root and got this. ls -al total 36 drw-rw-r-x 7 www-data www-data 4096 Aug 31 11:34 . drwxr-xr-x 5 root root 4096 Aug 31 11:34 .. drw-rw-r-- 6 www-data www-data 4096 Aug 31 12:47 assets drw-rw-r-- 2 www-data www-data 4096 Aug 31 11:34 css drw-rw-r-- 2 www-data www-data 4096 Aug 31 11:34 images -rw-rw-r-- 1 www-data www-data 463 Aug 31 11:34 index.php -rw-rw-r-- 1 www-data www-data 466 Aug 31 11:34 index-test.php drw-rw-r-- 16 www-data www-data 4096 Sep 11 13:49 protected drw-rw-r-- 3 www-data www-data 4096 Aug 31 11:34 themes I copied the project's folder to my home folder, changed ownership to me and tried again as regular user. Still no luck. I could not cd in the folder and got those same ?s instead of file attributes. Have you any suggestion on what to do to fix this problem?
  23. I have followed This Link to install . Everything was ok but that 16.Install PureFTPd And Quota is not working . Specially Quota . FTP is ok but quota is not . I get Unlimited in user/website quota !! When i checked /etc/fstab , Found ; proc /proc proc defaults 0 0 none /dev/pts devpts rw,gid=5,mode=620 0 0 none /run/shm tmpfs defaults 0 0 When i tried "blkid" , I found nothing result . Please help me . Otherwise i will be fall in front of questions by my users ... pleeeease ...........
  24. There is an Indiegogo campaign right now for a Ubuntu Smartphone. The specs seems really nice and has a slick prototype design. It will be able to dual boot Ubuntu and Android. The goal is a little outrageous tho but hope something like this does make other h/w manufactures look into a Linux market for the phone. There prototype specs include: Dual boot Ubuntu mobile OS and Android Fully integrated Ubuntu desktop PC when docked Fastest multi-core CPU, 4GB RAM, 128GB storage 4.5in 1,280 x 720 HD sapphire crystal display 8mp low-light rear camera, 2mp front camera Dual-LTE, dual-band 802.11n Wi-Fi, Bluetooth 4, NFC GPS, accelerometer, gyro, proximity sensor, compass, barometer Stereo speakers with HD audio, dual-mic recording, Active Noise Cancellation MHL connector, 3.5mm jack Silicon-anode Li-Ion battery 64 x 9 x 124mm http://www.indiegogo.com/projects/ubuntu-edge
  25. Any mirrors needed?

    Are there any repos/mirrors that need more mirrors? I've already setup an Ubuntu releases mirror at mirror.ubuntu.softgit.com I have a ton of extra bandwidth and disk space that needs to be used.