Tag Info

New answers tagged

0

There is a script to do this. If you want to have a service available: from the script I would assume you need to do this: WILDFLY_DIR=$INSTALL_DIR/wildfly INSTALL_DIR=/opt WILDFLY_USER="wildfly" WILDFLY_SERVICE="wildfly" .... echo "Registrating Wildfly as service..." # if Debian-like distribution if [ -r /lib/lsb/init-functions ]; then cp ...


0

So, to answer my own question: I found the required information in the documentation of dm-cache, more precisely in cache-policies.txt. According to the documentation, dm-cache differentiates between random and sequential transfers right out of the box. To cite cache-policies.txt: Message and constructor argument pairs are: 'sequential_threshold ...


1

In the [global] section of your /etc/samba/smb.conf add the following lines: [global] usershare owner only = false unix extensions = no follow symlinks = yes wide links = yes ntlm auth = no lanman auth = no client ntlmv2 auth = yes Also, check the way the NTFS partitions are mounted in the /etc/fstab file. I had to add default 0 0 to the end of my NTFS ...


15

You are asking different questions essentially, and are also requesting an opinion. Let's split these analyses up then I'll add my two cents. Desktop vs. Server Edition Which do you want to work with more, a GUI or a command line? Better question, do you want to deal with the overhead of a graphical interface which will need memory cycles and video ...


0

The Swap total given by free reflects the swap space configured on your system, which is the amount of space that the system can use on disk if the amount of RAM is insufficient. An overview on swap can be found at https://help.ubuntu.com/community/SwapFaq. In the output you posted we can see that none of the swap is actually used, which means that the ...


0

Turns out this was the answer: Cron fails at night I'm running this on my server (which I only ssh into) over night. So having an encrypted home drive meant that when I'm not logged in nothing is accessible to anything outside of home, including cron. I moved my script to /usr/local/bin (there may be a better place to put it, but I didn't feel anything ...


0

aftershot2? It is some proprietary manually installed package. Try to remove it if you don't need it: sudo apt-get remove aftershot2


0

To reset your mysqld password just follow these instructions : Stop the mysql demon process using this command : sudo service mysql stop Start the mysqld demon process using the --skip-grant-tables option with this command sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking & Because you are not checking user privs at this point, it's ...


0

i've used a similar method with the same error and found out to use sshfs to connect/mount the sftp share on the server. Filezilla also connects but not able to get in with the terminal ssh command. http://www.fullybaked.co.uk/articles/chroot-ssh-ftp-users-to-home-directory was the tutorial i used to make it. I also had to create the home directory manually ...


0

You can install fail2ban to automatically start blocking these IPs once they make a few unsuccessful connections. Personally, though, I change the ssh port to something random like 32422 so that they can't even find your ssh server. Therefore, all traffic to port 22 is dropped and the bot will move on to a different target.


2

In Ubuntu 14.04 open the terminal and type: sudo add-apt-repository 'deb http://deb.versatica.com trusty main' wget -O - http://deb.versatica.com/deb.versatica.com.key | sudo apt-key add - sudo apt-get update sudo apt-get install oversip In Ubuntu 12.04 open the terminal and type: sudo add-apt-repository 'deb http://deb.versatica.com precise main' ...


1

Are you sure you already add the repository of oversip?! So first of all you have to add the repository. Edit your /etc/apt/sources.list file (or create a new file /etc/apt/sources.list.d/oversip.list) and add the appropriate line for your Ubuntu distribution: Ubuntu 12.04 Precise: deb http://deb.versatica.com precise main Ubuntu 12.10 Quantal: deb ...


2

so at least one file pocsettings.dtd is included in both package libwireshark-data and libwireshark-common. Try to remove that file name from: /var/lib/dpkg/info/libwireshark-common.list so it doesn't know about the conflict and will install the new version.


0

Ok I think I have finally figure it out. 14.04.2 will be updated to 14.04.5 in august 2016 with a standard "dist-upgrade". So my server with the version 14.04.2 is supported until 2019. Thanks!


0

It is a server issue. The MySQL server seems to be down on the related host.


1

I don't known lot about your server configuration but I will try to help. First start iptables and do not allow to attack your server iptables -A INPUT -p tcp --dport 80 -m limit --limit 25/minute --limit-burst 100 -j ACCEPT After that i think that logrotate can help us to find site with highest impact. Install logrotate sudo apt-get install logrotate ...


4

I have now found the date on the Ubuntu Releases Site. It is April the 30th 2015.


0

First install samba if you haven't yet. sudo gedit /etc/samba/smb.conf Scroll to the very bottom of the file and put in the following, (This is for folder 1 which is a public with no password) [Share name] writable = yes path = /path/to/directory public = yes guest ok = yes guest only = yes guest account = nobody browsable = yes For folder 2 case add ...


2

rsync -- This tool is able to synchronize file and folder recursively in single command line. Optionally, you can : Exclude versioning file system (--exclude), such as: .git, .svn Remove remote file or folder which not exists in your desktop (--delete) Show progress bar (--progress) is usefull when copying huge file


2

The canonical way to give a user access to a remote webserver is through FTP (File Transfer Protocol). You can install vsftpd on the server and FileZilla on the client. Update the apt cache: sudo apt-get update Install vsftpd: sudo apt-get install vsftpd Install filezilla: sudo apt-get install filezilla Then you can just launch FileZilla on the client ...


0

Also make sure that the user's home directory (on the server) actually belongs to the user ssh'ing into (was set to root:root in my case). Should have been: sudo chown username:username /home/username;


0

Something (app, DB, util) is consuming all of your proc table on boot. I suggest going in single user mode and turning off all non-root process using chkconfig and then reboot. Once you are in on the console, you can start things manually one at a time and determine which process is killing your server. You will notice the load average go up by using ...


0

Jitsi has a functionality called Call Transfer that should produce the result you seek: One useful feature of IP telephony is the fact that users can easily transfer their calls to someone else. Imagine for example that you are talking to a friend who’s asking you about your notes of a particular class or lecture. You don’t have them but you know ...


-1

I ran these commands to get nginx back up and working: # remove nginx conf files apt-get purge nginx # reinstall apt-get install nginx # make sure the default site is enabled ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default # start nginx sudo /etc/init.d/nginx start nginx is now working!!


1

/usr/lib/x86_64-linux-gnu is /usr/lib64. This changed when Ubuntu 12.04 came out.


0

I'd suggest looking over this question. It will direct you how to access the inner juju environment where you can start looking over things. After you follow the above, you can explore your juju environment at a high level with juju status. I wouldn't suggest attempting to poke through machines and lxcs by hand without that high level tool. It would be ...


0

Try using setterm -blank 0 It needs to be entered after every boot, but keeps things running.


0

Are you talking about network errors on LXC containers that you created inside VMs that you spawned in the cloud? If yes, then it's an MTU problem and there is no automatic fix yet. You need to lower the MTU of the container interfaces to 1454. If you look at the VM interfaces, they already have that MTU.


0

There are 7 OSI layers: physical, datalink, network, transport, session, presentation and application layers. So if my understanding is correct ( and please correct me if I am wrong, I do want to learn ), pinging loopback address tests the network card (physical layer), while pinging your own IP address or other IP addresses involves network layer. Pinging ...


0

I create some custom script. Is not complete solution for you but maybe help. #!/bin/bash #we use output from "uptime" and "w" on every 5 min UPTIME=`uptime`; W=`w`; RAM=`free -m`; PS=`ps auxf | sort -nr -k 4 | head -15` DATUM=`date`; sleep 3 MYSQL=`mysqladmin -u root -pmz567sQld processlist;` sleep 3 SYN=`netstat -natp | grep SYN` sleep 3 HTTPD=`pgrep ...


0

Are you familiar with top? Shows you CPU and RAM usage (and more) for each process and also the total sum. you can also run top -u USER to only see a specific user's processes. just start with running top with no arguments. press q in order to quit. EDIT and for using within a script: try top -b -n1 for running in non interactive mode. you can then parse ...


1

Here you're the script: #!/bin/bash day="$(date '+%d')" # day=DD moth="$(date '+%m')" # month=MM (i.e. 04) If do you want to use it by name (i.e. April), use B ('+%B'), to use it's abbreviation (i.e. Apr), use b ('+%b). year="$(date '+%Y')" # year=YYYY, if do you want YY, then use lowercase y ('+%y') ...


3

You can append a line with that setting to /etc/sysfs.conf: kernel/mm/transparent_hugepage/enabled = never This is the cleanest solution, because it keeps all the sysfs configuration in one place instead of relying on start-up scripts. The other answers, with the scripts and conditional expressions, are suitable if you don't know through which path the ...


1

I assume this is because Calc isn't able to access the PostgreSQL database. Double-check if PostgreSQL is running: sudo service postgresql status should return something like 9.3/main (port 5432): online If PostgreSQL is running, check the credentials. By default, there's no admin password set for PostgreSQL. Calc assumes postgres as admin password, ...


0

Please be more precise about your Internet-Connection. First of all the tutorial uses a normal internal network on eth0 with a private subnet. Your's is set to dhcp. Are you sure you can get into the internet at all? Does eth0 on the gw machine get an ip address? Check this with ip a if it does, then try to ping and resolve google on the gw machine ...


0

Easy as pie. Simply go to the .ssh folder in your home and add the file config nano /home/${USER}/.ssh/config and add the following lines e.g. Host duck-a-rub HostName mail.man.com OR <IP-Address> User rubberduck Port 223 IdentityFile /full/path/to/keys/rubberduck_id_dsa save the file and give it a try. ssh duck-a-rub HTH, s1mmel


0

The directory you are chrooting (in your case %h) should be owned by user root. Use command sudo chown root.root %h


0

Before you start off, use Ubuntu's x86(32-bit image), as this will allow you to use both 32-bit and 64-bit machines. Yes, a 32-bit of the server is also available, just take look at the Alternative Downloads page. Also, I use Lili because its easy and I use Windows for setting up Ubuntu. You can use any other application, although for Method 2, you need an ...


0

If you're chrooting the users, you should either use ForceCommand internal-sftp or set up a shell (along with everything it needs) in each home directory. If neither of these was done, SSH won't be able to login the user.


3

I have this little script kept in ~/bin/infinite_ssh(1): #! /bin/bash -x # while :; do ssh -R 2222:localhost:22 remoteserver sleep 86400 sleep 10 done this is connecting to the remoteserver and creates a backward tunnel so that in the remote server I can ssh my desktop by using ssh -p 2222 localhost. Your application may, obviously, ...


0

Using the Iced Tea sudo apt-get install icedtea-netx followed by javaws ~/Downloads/cgoban.jnlp


0

try digging Here I had the same problem , it helped me


0

By default apache is setup for individual users to have their own URL, all you have to do is enable it: sudo a2enmod userdir Then say user test01 access would be via itaportalen.dk/~test01 and their directory would be /home/test01/public_html. However, I gather you don't want to do it that way. For example, say the user names are test01, test02, test03, ...


0

Google compute engine does not allow sending email - but offfers a free relay service thru sendgrid: https://cloud.google.com/compute/docs/tutorials/sending-mail


0

So I finally found the answer to my own problem in /etc/bind/named.conf.local i forgot to add "/" in front of "etc". my way: zone "dirks.crtn" { type master; file "etc/bind/zones/dirks.crtn.db"; }; correct way: zone "dirks.crtn" { type master; file "/etc/bind/zones/dirks.crtn.db"; }; I feel kinda stupid, but at least I am able to resolve addresses ...


1

I was able to fix it by the following command. sudo pico /etc/default/grub Change GRUB_CMDLINE_LINUX=”" to GRUB_CMDLINE_LINUX=”text” this makes Ubuntu boot directly into Text Mode.


0

I'm going to answer my own question. I solved problem by changing ServerName in /etc/apache2/httpd.conf to name in DNS record. That solved a problem (misconfiguration).


0

Apparently the UEFI must be turned off during installation in order for Ubuntu server to install properly on the external hard drive. With this disabled I was able to install and then that GRUB2 from the boot menu and boot Ubuntu from there.


1

Yes, it is generally safe. Apt has the packages signed, and verifies those signatures. Ubuntu is based off Debian, who designed the package system. If you want to read more about their package signing, you can do so at https://wiki.debian.org/SecureApt. I suppose a mirror could not tell you about updates when they are released, but you would likely notice ...


0

So forwarding is working fine. Things in your configuration files do look a little odd to me. Note that I have never been able to make things work with $ORIGIN. I'm sure that somehow it does work, just not for me. For dirks.crtn.db try: $TTL 38400 @ IN SOA filtjener.dirks.crtn. webmaster.dirks.crtn. ( 1263527838 ; serial 10800 ...



Top 50 recent answers are included