NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

------------------AUX APPS
apt install task-cinnamon-desktop chromium vlc vim ffmpeg audacity virtualbox-5.1 geany npm htop calibre python-pip guake hunspell-ru zim texlive-base simplescreenrecorder ecryptfs-utils iotop lsof secure-delete zsh gparted hdparm conky-std
apt install sudo gimp imagemagick anacron libreoffice-calc libreoffice-impress libreoffice-draw libreoffice-writer ifstat gufw nautilus-dropbox sqllitebrouser usb writer, pandoc, pylint dvipng meld cairo-dock lftp duplicity
sudo pip install --upgrade youtube-dl requests scipy matplotlib numpy pandas bs4 jupyter
--------------------LAMP setup
cd ~/
apt-get update
apt-get install apache2
apt-get install mysql-server
mysql_secure_installation
clear
apt-get install php5 php-pear php5-mysql php5-gd
service apache2 restart

----install wordpress

wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
mysql -u root -p
CREATE DATABASE wpdatabase;
CREATE USER wpuser@localhost;
SET PASSWORD FOR wpuser@localhost= PASSWORD("dbpassword");
GRANT ALL PRIVILEGES ON wpdatabase.* TO wpuser@localhost IDENTIFIED BY 'dbpassword';
FLUSH PRIVILEGES;
exit

mkdir /var/www/html/wp
rsync -avP ~/wordpress/ /var/www/html/wp

cd /var/www/html/wp
chown -R www-data:www-data /var/www/html/wp/*
find . -type d -exec chmod 0755 {} ;
find . -type f -exec chmod 0644 {} ;
ls -ls

(edit wp-config.php)
vi wp-config.php
----------------------------------------------------.BASHRC
alias backuptbdryrun='rsync -av --dry-run --delete --exclude=".Trash-1000" --exclude="Backups" /media/Int2TB/ "/media/vadim/Vadim 2TB" > ~/logs/tb2_backup_$(date -d "today" +"%Y%m%d%H%M").log'
alias mountp='ecryptfs-mount-private'
alias umountp='ecryptfs-umount-private'
alias y360='youtube-dl -i -f "best[height<=360]"'
alias y480='youtube-dl -i -f "best[height<=480]"'
alias y720='youtube-dl -i -f "best[height<=720]"'
#%(uploader)s/
alias yb360='youtube-dl -i -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" --batch-file "youtube_download_list.txt" -f "best[height<=360]"'
alias yb480='youtube-dl -i -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" --batch-file "youtube_download_list.txt" -f "best[height<=480]"'
alias yb720='youtube-dl -i -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" --batch-file "youtube_download_list.txt" -f "best[height<=720]"'

alias lcd=changeDirectory
function changeDirectory {
cd $1; ls -la
}
alias check-traffic='python ~/web_crawler_istv.py'
alias p='python'
alias trash='gvfs-trash'
alias o='xdg-open'
alias jn="jupyter notebook &"
----------------------------------------------------SWAP FILE CREATION
fallocate -l 512M /swapfile
Note: fallocate may cause problems with some file systems such as F2FS or XFS.[1] As an alternative, using dd is more reliable, but slower:
# dd if=/dev/zero of=/swapfile bs=1M count=512
Set the right permissions (a world-readable swap file is a huge local vulnerability)
# chmod 600 /swapfile
After creating the correctly sized file, format it to swap:
# mkswap /swapfile
Activate the swap file:
# swapon /swapfile
Finally, edit fstab to add an entry for the swap file:
/etc/fstab
/swapfile none swap defaults 0 0
sudo fdisk -l
sudo mount /dev/sde3 /mnt #Find your Linux installation (Id=83, System=Linux0
This is assuming that you do not have a separate /boot partition. If you do, you will need to also mount it by typing sudo mount /dev/sd·· /mnt/boot, where sd·· is the partition where you installed the separate boot directory.
You should test to see if the boot directory is properly installed. Type in sudo ls /mnt/boot and if it is empty, the boot directory is not installed. It should look something like this:
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
sudo update-grub
Now to re-install grub in the MBR. You will need to know which disk your system boots from, and find it in the fdisk -l listing you have already done.
sudo grub-install /dev/sd?
Then type in Crtl-D to exit chroot.
sudo for i in /sys /proc /dev/pts /dev; do sudo umount /mnt$i; done
If you mounted a separate /boot partition, type in sudo umount /mnt/boot
sudo umount /mnt
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.