Just open the following file
sudo nano /etc/resolvconf/resolv.conf.d/head
and add entries as follows:
nameserver <your DNS IP>
i.e.
nameserver 192.168.10.1
Source http://ubuntuforums.org/showthread.php?t=2078398
"Shaheer Research Lab" is a tech blog by Shaheer, a computing researcher and expert. The blog shares insights and experiences related to window, Linux, and website solutions. It provides valuable tips on operating systems, website development, and common computer issues, designed for both beginners and experts in the field. Stay updated with the latest developments in computing with Shaheer Research Lab.
Just open the following file
sudo nano /etc/resolvconf/resolv.conf.d/head
and add entries as follows:
nameserver <your DNS IP>
i.e.
nameserver 192.168.10.1
Source http://ubuntuforums.org/showthread.php?t=2078398
sudo apt-get update |
sudo apt-get install lightdm |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"to
GRUB_CMDLINE_LINUX_DEFAULT="text"Step 3b Also comment GRUB_HIDDEN_TIMEOUT=0 This line is for unhiding the GRUB menu
sudo update-grub
|
startx |
GRUB_CMDLINE_LINUX_DEFAULT="text"to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"Update GRUB by running
sudo update-grub
|
ssh-keygen -t rsa
Enter file in which to save the key (/demo/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/demo/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /demo/.ssh/id_rsa. Your public key has been saved in /demo/.ssh/id_rsa.pub. The key fingerprint is: 4a:dd:0a:c6:35:4e:3f:ed:27:38:8c:74:44:4d:93:67 demo@a The key's randomart image is: +--[ RSA 2048]----+ | .oo. | | . o.E | | + . o | | . = = . | | = S = . | | o + = + | | . o + o . | | . o | | | +-----------------+
ssh-copy-id user@123.45.56.78
cat .ssh/id_rsa.pub | ssh user@123.45.56.78 "cat >> ~/.ssh/authorized_keys"
The authenticity of host '12.34.56.78 (12.34.56.78)' can't be established. RSA key fingerprint is b1:2d:33:67:ce:35:4d:5f:f3:a8:cd:c0:c4:48:86:12. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '12.34.56.78' (RSA) to the list of known hosts. user@12.34.56.78's password: Now try logging into the machine, with "ssh 'user@12.34.56.78'", and check in: ~/.ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting.
sudo nano /etc/ssh/sshd_config
PermitRootLogin and modify it to ensure that users can only connect with their SSH key:
PermitRootLogin without-password
reload ssh
Source:
https://www.digitalocean.com/community/articles/how-to-set-up-ssh-keys--2
mysql -p -u username database_name < file.sql|
Since your mac address have changed you no
longer have an interface called eth0, this name is reserved for an
interface with the "old" mac-address. The "new" interface should have
the next free name (eg. ethN).
To see all the interfaces on the machine you can use this command: ifconfig -aIf you want to reset the name reservations for network interfaces you can remove the file /etc/udev/rules.d/70-persistent-net.rulesand restart the machine (or remove/insert the device, though this is not possible in this case). Alternatively you can change the interface-name that you have configured to what ever the new one is called by changing all occurences of the old name with the new one in the file /etc/network/interfaces |
sudo useradd [username] sudo passwd [username]
sudo usermod -g www-data [username]
sudo chmod -R g+w /var/www
sudo apt-get install proftpd
and select the Stand Alone option when asked. sudo nano /etc/proftpd/proftpd.conf
# Use this to jail all users in their homes DefaultRoot /var/www # Set the user and group that the server normally runs at. User www-data Group www-data
sudo /etc/init.d/proftpd restart
ftp 127.0.0.1
mkdir test
chown -R www-data:www-data /var/www