Serba Serbi Ubuntu Server 16.04

Rabu, 01 November 2017

http://iblogger.web.id/post/mengubah-password-root-super-user/129/webq/


https://www.digitalocean.com/community/tutorials/how-to-install-webmin-on-ubuntu-16-04


Enable SSH root login on Ubuntu 16.04 Xenial Xerus Linux Server/Desktop



The following config will guide you through the process of enabling SSH root login on Ubuntu 16.04 Xenial Xerus Linux Server or Desktop. This guide assumes that you are in possession of root password and are able to login directly on your system as root user. Use the following guide, if you do not have a root's user password.

By default the root's ssh remote shell access is denied by default. Any attempt to remote login as root will result in Permission denied message:
$ ssh root@10.0.0.55
 
root@10.0.0.55's password: 
Permission denied, please try again.
root@10.0.0.55's password:
In order to enable root ssh login on Ubuntu 16.04 Xenial Xerus Linux run the following command:
$ sudo sed -i 's/prohibit-password/yes/' /etc/ssh/sshd_config
or manually open sshd configuration file /etc/ssh/sshd_config and change line:
FROM:
PermitRootLogin prohibit-password
TO:
PermitRootLogin yes
Once you have made the above configuration change restart ssh daemon:
$ sudo systemctl restart sshd
After you restart sshd daemon you will be able to remotely login as a root user:
$ ssh root@10.0.0.55
root@10.0.0.55's password: 
Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-22-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

22 packages can be updated.
20 updates are security updates.


The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

# Package generated configuration file                                                                               # See the sshd_config(5) manpage for details                                                                                                                                                                                              # What ports, IPs and protocols we listen for                                                                        Port 22                                                                                                              # Use these options to restrict which interfaces/protocols sshd will bind to                                         #ListenAddress ::                                                                                                    #ListenAddress 0.0.0.0                                                                                               Protocol 2                                                                                                           # HostKeys for protocol version 2                                                                                    HostKey /etc/ssh/ssh_host_rsa_key                                                                                    HostKey /etc/ssh/ssh_host_dsa_key                                                                                    HostKey /etc/ssh/ssh_host_ecdsa_key                                                                                  HostKey /etc/ssh/ssh_host_ed25519_key                                                                                #Privilege Separation is turned on for security                                                                      UsePrivilegeSeparation yes                                                                                                                                                                                                                # Lifetime and size of ephemeral version 1 server key                                                                KeyRegenerationInterval 3600                                                                                         ServerKeyBits 1024                                                                                                                                                                                                                        # Logging                                                                                                            SyslogFacility AUTH                                                                                                  LogLevel INFO                                                                                                                                                                                                                             # Authentication:                                                                                                    LoginGraceTime 120                                                                                                   PermitRootLogin yes                                                                                                  #PermitRootLogin prohibit-password                                                                                   StrictModes yes                                                                                                                                                                                                                           RSAAuthentication yes                                                                                                "/etc/ssh/sshd_config" 89L, 2563C written                                                                            
00:00



 How To Install Webmin on Ubuntu 16.04

PostedApril 21, 2017 92.2kviews CONTROL PANELS APPLICATIONS APACHE LET'S ENCRYPT UBUNTU 16.04

Introduction

Webmin is a modern, web control panel for any Linux machine. It allows you to administer your server through an simple interface. With Webmin, you can change settings for common packages on the fly.
In this tutorial, you'll install and configure Webmin on your server and secure access to the interface with a valid certificate using Let's Encrypt. You'll then use Webmin to add new user accounts, and update all packages on your server from the dashboard.

Prerequisites

To complete this tutorial, you will need:

Step 1 — Installing Webmin

First, we need to add the Webmin repository so that we can easily install and update Webmin using our package manager. We do this by adding the repository to the /etc/apt/sources.list file.
Open the file in your editor:
  • sudo nano /etc/apt/sources.list
Then add this line to the bottom of the file to add the new repository:
/etc/apt/sources.list
 . . . 
deb http://download.webmin.com/download/repository sarge contrib
Save the file and exit the editor.
Next, add the Webmin PGP key so that your system will trust the new repository:
  • wget http://www.webmin.com/jcameron-key.asc
  • sudo apt-key add jcameron-key.asc
Next, update the list of packages to include the Webmin repository:
  • sudo apt-get update
Then install Webmin:
  • sudo apt-get install webmin
Once the installation finishes, you be presented with the following output:
Output
Webmin install complete. You can now login to https://your_server_ip:10000 as root with your root password, or as any user who can use `sudo`.
Please copy down this information, as you will need it for the next step.
Note: If you installed ufw during the prerequisite step, you will need to run the command sudo ufw allow 10000 in order to allow Webmin through the firewall. For extra security, you may want to configure your firewall to only allow access to this port from certain IP ranges.
Let's secure access to Webmin by adding a valid certificate.

Step 2 — Adding a Valid Certificate with Let's Encrypt

Webmin is already configured to use HTTPS, but it uses a self-signed, untrusted certificate. Let's replace it with a valid certificate from Let's Encrypt.
Navigate to https://your_domain:10000 in your web browser, replacing your_domain with the domain name you pointed at your server.
Note: When logging in for the first time, you will see an "Invalid SSL" error. This is because the server has generated a self-signed certificate. Allow the exception to continue so you can replace the self-signed certificate with one from Let's Encrypt.
You'll be presented with a login screen. Sign in with the non-root user you created while fulfilling the prerequisites for this tutorial.
Once you log in, the first screen you will see is the Webmin dashboard. Before you can apply a valid certificate, you have to set the server's hostname. Look for the System hostname field and lick on the link to the right, as shown in the following figure:
Image showing where the link is on the Webmin dashboard
This wil take you to the Hostname and DNS Client page. Locate the Hostname field, and enter your Fully-Qualified Domain Name into the field. Then press the Save button at the bottom of the page to apply the setting.
After you've set your hostname, click on Webmin on the left navigation bar, and then click on Webmin Configuration.
Then, select SSL Encryption from the list of icons, and then select the Let's Encrypt tab. You'll see a screen like the following figure:
Image showing the Let's Encrypt tab of the SSL Encryption section
Using this screen, you'll tell Webmin how to obtain and renew your certificate. Let's Encrypt certificates expire after 3 months, but we can instruct Webmin to automatically attempt to renew the Let's Encrypt certificate every month. Let's Encrypt looks for a verification file on our server, so we'll configure Webmin to place the verification file inside the folder /var/www/html, which is the folder that the Apache web server you configured in the prerequisites uses. Follow these steps to set up your certificate:
  1. Fill in Hostnames for certificate with your FQDN.
  2. For Website root directory for validation file, select the Other Directory button and enter /var/www/html.
  3. For Months between automatic renewal section, deselect the Only renew manually option by typing 1 into the input box, and selecting the radio button to the left of the input box.
  4. Click the Request Certificate button. After a few seconds, you will see a confirmation screen.
To use the new certificate, restart Webmin by clicking the back arrow in your browser, and clicking the Restart Webmin button. Wait around 30 seconds, and then reload the page and log in again. Your browser should now indicate that the certificate is valid.

Step 3 – Using Webmin

You've now set up a secured, working instance of Webmin. Let's look at how to use it.
Webmin has many different modules that can control everything from the BIND DNS Server to something as simple as adding users to the system. Let's look at how to create a new user, and then explore how to update the operating system using Webmin.

Managing Users and Groups

Let's explore how to manage the users and groups on your server.
First, click the System tab, and then click the Users and Groups button. Then, from here, you can either add a user, manage a user, or add or manage a group.
Let's create a new user called deploy which would be used for hosting web applications. To add a user, click Create a new user, which is located at the top of the users table. This displays the Create Userscreen, where you can supply the username, password, groups and other options. Follow these instructions to create the user:
  1. Fill in Username with deploy.
  2. Select Automatic for User ID.
  3. Fill in Real Name with a descriptive name like Deployment user.
  4. For Home Directory, select Automatic.
  5. For Shell, select /bin/bash from the dropdown list.
  6. For Password, select Normal Password and type in a password of your choice.
  7. For Primary Group, select New group with same name as user.
  8. For Secondary Group, select sudo from the All groups list, and press the -> button to add the group to the in groups list.
  9. Press Create to create this new user.
When creating a user, you can set options for password expiry, the user's shell, or whether they are allowed a home directory.
Next, let's look at how to install updates to our system.

Updating Packages

Webmin lets you update all of your packages through its user interface. To update all of your packages, first, go to the Dashboard link, and then locate the Package updates field. If there are updates available, you'll see a link that states the number of available updates, as shown in the following figure:
Webmin shows the number of updates available
Click this link, and then press Update selected packages to start the update. You may be asked to reboot the server, which you can also do through the Webmin interface.

Conclusion

You now have a secured, working instance of Webmin and you've used the interface to create a user and update packages. Webmin gives you access to many things you'd normally need to access through the console, and it organizes them in an intuitive way. For example, if you have Apache installed, you would find the configuration tab for it under Servers, and then Apache.
Explore the interface, or read the Official Webmin wiki to learn more about managing your system with Webmin.

How to uninstall isc-dhcp-server

Kamis, 05 Maret 2015

To uninstall isc-dhcp-server just follow these instructions.
 Uninstall just isc-dhcp-server: sudo apt-get remove isc-dhcp-server 
This will remove just the isc-dhcp-server package itself.

 Uninstall isc-dhcp-server and it's dependencies: sudo apt-get remove --auto-remove isc-dhcp-server This will remove the isc-dhcp-server package and any other dependant packages which are no longer needed. 

Purging your config/data too If you also want to delete your local/config files for isc-dhcp-server then this will work. 
Caution! Purged config/data can not be restored by reinstalling the package.
sudo apt-get purge isc-dhcp-server 
Or similarly, like this isc-dhcp-server
sudo apt-get purge --auto-remove isc-dhcp-server

Configure a Squid proxy server through Webmin n Your Squid cache directory /var/spool/squid3 has not been initialized

Sabtu, 03 Januari 2015

By Jack Wallen in SMB Technologist Setting up Squid The first thing you will see is the error "Your Squid cache directory /var/spool/squid3 has not been initialized. This must be done before Squid can be run." In order to initialize this, click the Initialize Cache button (with either an existing user, or you can create a new user/group "proxy"). At this point you will see the "Stopping Squid" warning. Once the system has been initialized, you will be prompted with the Return To Squid Index link. If you continue seeing this error, here's what you need to do: Open a terminal window. Open the file /etc/squid3/squid.conf. Search for the line #cache_dir ufs /var/spool/squid3 100 16 256 (around line 2245). Remove the "#" character. Save the file. Go back to Webmin and click the Initialize Cache button again. Your plan for using the proxy will dictate how you configure it. Regardless of how you use it, you will want to define the ports used by the proxy first. By default, Squid uses 3128. You can stick with the default, or if you need to go with a non-standard port.

Modul/Plugin/Component keren buat joomla 3.0

Rabu, 27 Februari 2013

Bagi Desainer Joomla ada beberapa Modul/Plugin/Component yang keren yang wajib dipasang, dan lebih keren-nya lagi semuanya Non Commercial alias Free.
Simak aja Bro...

1. Modul Like Box Facebook.
Modul yang bisa dipasang dikiri kanan joomla ini keren sekali untuk menampilkan fan yang menyukai halaman facebook.
untuk Download Modul ITPFacebook Like Box Linknya Klik Disini 

2.Modul Slideshow CK
Modul ini untuk menampilkan foto-foto tak terbatas jumlahnya pada joomla 3.0, transition effectnya cukup keren.
Untuk Download Klik Modul SlideshowCK ke TKP-nya.

3. Plugin Facebook Like and Share
Plugin ini bisa ditaruh diatas atau dibawah artikel joomla 3.0.
bisa langsung posting diwall facebook dan nampilin avatarnya, very cool.
Download di sini Plugin Fb Like n Share.

Set / Change / Reset the MySQL root password on Ubuntu Linux

Sabtu, 11 Agustus 2012

Tested on
- Ubuntu Linux 7.10 Gutsy Gibbon and MySQL 5.0.45. (2007-10-21)
- Ubuntu Linux 6.06 Dapper Drake and MySQL 4.1.15.

Set / change / reset the MySQL root password on Ubuntu Linux. Enter the following lines in your terminal.

  1. Stop the MySQL Server.
    sudo /etc/init.d/mysql stop

  2. Start the mysqld configuration.
    sudo mysqld --skip-grant-tables &

  3. Login to MySQL as root.
    mysql -u root mysql

  4. Replace YOURNEWPASSWORD with your new password!
    UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit;
Note: This method is not regarded as the securest way of resetting the password. However it works.


References

MySQL 5.0 Reference Manual: How to Reset the Root Password

How to reset your password in Ubuntu


There are many reasons you might want to reset a password:
Someone gave you a computer with Ubuntu installed on it but not the password for the user account.
You just installed Ubuntu and forgot what password you selected during the installation process.
You have too many passwords in your life and can't keep track of them all.
Well, this tutorial will help you reset your Ubuntu user account password, regardless of what reason you have for resetting it.
First, you have to reboot into recovery mode.
If you have a single-boot (Ubuntu is the only operating system on your computer), to get the boot menu to show, you have to hold down the Shift key during bootup.
If you have a dual-boot (Ubuntu is installed next to Windows, another Linux operating system, or Mac OS X; and you choose at boot time which operating system to boot into), the boot menu should appear without the need to hold down the Shift key.

From the boot menu, select recovery mode, which is usually the second boot option.

After you select recovery mode and wait for all the boot-up processes to finish, you'll be presented with a few options. In this case, you want the Drop to root shell prompt option so press the Down arrow to get to that option, and then press Enter to select it.

The root account is the ultimate administrator and can do anything to the Ubuntu installation (including erase it), so please be careful with what commands you enter in the root terminal.

In recent versions of Ubuntu, the filesystem is mounted as read-only, so you need to enter the follow command to get it to remount as read-write, which will allow you to make changes:

mount -o rw,remount /

If you have forgotten your username as well, type

ls /home
That's a lowercase L, by the way, not a capital i, in ls. You should then see a list of the users on your Ubuntu installation. In this case, I'm going to reset Susan Brownmiller's password.
To reset the password, type

passwd username
where username is the username you want to reset. In this case, I want to reset Susan's password, so I type
passwd susan
You'll then be prompted for a new password. When you type the password you will get no visual response acknowledging your typing. Your password is still being accepted. Just type the password and hit Enter when you're done. You'll be prompted to retype the password. Do so and hit Enter again.

Now the password should be reset. Type

exit
to return to the recovery menu.
 
After you get back to the recovery menu, select resume normal boot, and use Ubuntu as you normally would—only this time, you actually know the password!

Note:
Some people get freaked out about having recovery mode logging you in as root.

INSTALL OpenSSL DAN MEMBUAT SSLCertificate UNTUK MENGAKTIFKAN HTTPS DI APACHE2

Selasa, 07 Agustus 2012

Berikut tutorial dari Bang Opick Opensource Telkomspeedy :

Silahkan Di unduh di link berikut :  Tutorial openssl dan sslcertificate untuk https