# - - # # - - # Marti Onetto-Winder - Router Public IP: 69.123.114.8 Address: optimum.net Optimum ID: Monetto123 Password: OnettoWinder123 Netgear Configuration: mywifiext.net Greenwich House: sftp://74.108.21.44 optimum.net Optimum ID: brad2alta Password: EnriqueD2175 localhost Server: sftp://192.168.1.100 Commands to install wine: https://www.youtube.com/watch?v=GsdVCSnlXI0 https://www.youtube.com/watch?v=dqZDuKB949U&t=298s sudo dpkg --add-architecture i386 wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main' sudo apt install --install-recommends winehq-staging # - - # # - Accessing MyCloud from terminal at home - # ╭── # is_derayo@HPDLinuxMint181 ~ : ╰─▷ $ ssh root@192.168.1.163; root@192.168.1.163's password: welc0me # - - # # - Open terminal - # # - Show my public IP address from terminal from anywhere - # dig +short myip.opendns.com @resolver1.opendns.com # - - # # - How to check the listening ports and applications on Linux - # sudo lsof -i -P -n | grep LISTEN sudo netstat -tulpn | grep LISTEN sudo nmap -sTU -O IP-address-Here # - - # # - Some terminal commands - # https://www.howtogeek.com/107217/how-to-manage-processes-from-the-linux-terminal-10-commands-you-need-to-know/ # - - # # - Ways of visualizing processes in terminal - # top; htop; ps; ps -A; ps -A|less; ps -u root; ps -u is_derayo; pstree; # - Show processes, except root's - # ps -U root -u root -N ps -U root -u root --deselect https://www.youtube.com/watch?v=JBRFEvsvQPQ # - Drives list - # lsblk sudo blkid # - Save data from memory cash to disk - # sync # - File system check - # fsck -y /dev/sda2 # - Create file on /root - # # - Runs fsck every time boot the system - # sudo touch /forcefsck # - go to lost+found/ - # sudo -s sudo su cd lost+found/ ls ls -a exit # - Trim ssd hdd - # # - Orginize data on ssd's only - # sudo fstrim /home/Data1 # - - # # - defragmentation disks - # sudo e4defrag / -c sudo e4defrag /home/Data1 sudo e4defrag /home/Data1 e4defrag /home/is_derayo # - Shows free space available on hdd - # df -h lsblk # - Reserves 1% of disk for root to use - # sudo tune2fs -m 1 /dev/sda3 # - Mount an external hdd - # sudo mount /dev/sdb1 /mnt cd /mnt ls # - Unmount - # cd / sudo umount /dev/sdb1 # - - # # - Opens command line - # alt + f2 gksudo thunar # - - # # - Get directory's size - # sudo du -sh /var # - Disk usage of first-level subdirectories - # sudo du -shc /var/* sudo du -h --max-depth=1 /var # - shows disk space used by directory/file - # sudo du -sh --apparent-size /var # - 5 largest directories - # sudo du -h /var/ | sort -rh | head -5 sudo du ~/DNS_Update sudo du ~/DNS_Update bin sudo du -a ~/DNS_Update sudo du -a ~/DNS_Update bin sudo du -h DNS_Update sudo du -h DNS_Update bin sudo du -ah ~/DNS_Update bin sudo du -sh ~/DNS_Update bin sudo du -csh ~/DN* # - - # # - Show history in terminal - # inxi -SCMm -t c -P -x sudo inxi -SCMm -t c -P -x ╭── # root@uServerHome / : ╰─▷ $ inxi -SCMm -t c -P -x System: Host: uServerHome Kernel: 4.15.0-58-generic x86_64 bits: 64 gcc: 7.4.0 Console: tty 0 Distro: Ubuntu 18.04.3 LTS Machine: Device: desktop Mobo: Acer model: Aspire TC-605 serial: DBSRPCN00144802712EE02 UEFI: American Megatrends v: P11-B1 date: 08/07/2014 CPU: Quad core Intel Core i5-4460 (-MCP-) arch: Haswell rev.3 cache: 6144 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 25540 clock speeds: max: 3200 MHz 1: 1072 MHz 2: 916 MHz 3: 995 MHz 4: 1568 MHz Memory: Used/Total: 842.9/7410.2MB Array-1 capacity: 16 GB devices: 2 EC: None Device-1: DIMM1 size: 8 GB speed: 1600 MT/s type: DDR3 part: HMT41GU6BFR8A-PB Device-2: DIMM2 size: No Module Installed type: N/A Device-3: N/A size: N/A type: N/A Partition: ID-1: / size: 49G used: 14G (30%) fs: ext4 dev: /dev/sda2 Processes: CPU: % used - Memory: MB / % used - Used/Total: 842.1/7410.2MB - top 5 active 1: cpu: 0.3% command: Plex pid: 3684 mem: 51.72MB (0.6%) 2: cpu: 0.2% command: Plex pid: 1465 mem: 74.92MB (1.0%) 3: cpu: 0.1% command: node pid: 4338 mem: 75.61MB (1.0%) 4: cpu: 0.1% command: containerd pid: 1275 mem: 38.01MB (0.5%) 5: cpu: 0.0% daemon: ~kworker/u8:3~ pid: 8358 mem: 0.00MB (0.0%) # - - # # - Show history in terminal - # history # - - # # - List just directories - # la -d */ # - - # # - Modify file date & time of creation - # touch -a -m -t 201802282230 file.ext touch -a -m -t 201802282230 REI\ Presents-\ Follow\ Through.mp4 touch -a -m -t 201802142030.09 Intermediate\ Ski\ Lesson\ #* touch -a -m -t 201802142230.09 Advanced\ Ski* Where: -a = accessed -m = modified -t = timestamp - use [[CC]YY]MMDDhhmm[.ss] time format # - - # # - ln -s command - # ln -s /home/Data-1/Images/Programs/Linux\(x32x64\).Img/Linux_RaspberryPi3.Img /home/Data-1/WebServer/www/WebSite/Programs/Linux\(x32x64\).Img/Linux_RaspberryPi3.Img # - - # # - Show specics of computer in terminal - # http://www.ezix.org/project/wiki/HardwareLiSter sudo lshw > disk1.txt sudo lshw -short > disk1.txt sudo lshw -html > hardware.html sudo lshw | less # - Graphic - # lshw -X sudo dmidecode cat /proc/cpuinfo cat /proc/meminfo lspci lsusb sudo dmidecode http://wiki.linuxquestions.org/wiki/Hwinfo hwinfo --help # - - # # - Private Internet Access with OpenVPN - # https://www.youtube.com/watch?v=s8F2oPWpTGM # - - # # - Buy Safe and Secure VPN (3.33 per month buying a complete year) - # https://www.privateinternetaccess.com/pages/buy-vpn/ # - - # # - Check internet speed - # http://www.speedtest.net/ # - - # # - Web Server - Secure way to do it? in FreeNAS - # https://forums.freenas.org/index.php?threads/web-server-secure-way-to-do-it.38590/ # - - # # - Hardening Apache 2.4 & PHP 5 on FreeBSD - # https://project.altservice.com/issues/560 # - - # # - Linux ArchLabs - # https://archlabsblog.wordpress.com/ https://www.youtube.com/watch?v=7KL045Xlnpw&feature=youtu.be&list=PLlloYVGq5pS6n3tXVNIwloaPfcHPSi3Yg https://archlabsblog.wordpress.com/tutorials/ https://www.youtube.com/watch?v=feR2Z69dlYU https://www.youtube.com/user/maclover696/videos # - - # # - General Public License - # # - Basic questions about the GPL, the GNU Project, and the Free Software Foundation - # http://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html http://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html#TOCIfLibraryIsGPL # - - # # - When are you required to have a commercial MySQL license? - # https://www.xaprb.com/blog/2009/02/17/when-are-you-required-to-have-a-commercial-mysql-license/ # - - # # - MySQL - # https://dev.mysql.com/doc/ # - - # # - LinuxMint extensions - # https://cinnamon-spices.linuxmint.com/extensions # - - # # - FreeNAS Server Installation - # # - FreeNAS Team - # https://www.youtube.com/channel/UC5IMpS_PUb-3YDdLoH4XprA https://www.youtube.com/watch?v=sR-88ACl-0g https://www.youtube.com/watch?v=FzyMAGbp6_g&feature=youtu.be Published on Jan 17, 2017 Disclaimer: First and foremost, FreeNAS 10 is in Beta. We are running this version of FreeNAS for testing purposes only. We will be making new videos, documenting any issues and learning the new version as we progress. If you are looking for a stable and tested version of FreeNAS then go with FreeNAS 9. PART LIST: AMD FX-8370: http://amzn.to/2jVur99 MSI 970 Gaming AM3 Motherboard: http://amzn.to/2k1mumG MSI GAMING GTX 960 4GB OC: http://amzn.to/2iKGKXL HGST DeskStar NAS 4TB 7200RPM HDD: http://amzn.to/2jVDHKc Western Digital RED 2TB NAS HDD: http://amzn.to/2iDMrDy SanDisk UltraFit 32GB USB 3 Flash Drive: http://amzn.to/2iy1C6r PNY 120GB SSD: http://amzn.to/2iDIe31 StarTech 4 HDD Bay: http://amzn.to/2jVztSY Hyper 212 Evo: http://amzn.to/2ixSIpb Corsair Vengeance Pro 16GB Kit: http://amzn.to/2jVsOYI Rosewill 80+ Platinum 750 Watt Power Supply: http://amzn.to/2iy22d1 Thermaltake Core P3 Case: http://amzn.to/2iDLKdq Intel Gigabit NIC: http://amzn.to/2ixY5VA DOWNLOADS: FreeNAS 9: http://www.freenas.org/download-freenas-release/ FreeNAS 10 Nightly: http://download.freenas.org/10/MASTER/ Rufus ISO burner: https://rufus.akeo.ie/ # - - # # - GMC Sierra Denali owner manuala and more - # https://my.gmc.com/learn/2017/Sierra%202500HD # - - # # - How To Run Multiple Websites On A Single Ubuntu Server Using Apache2 - # https://www.liberiangeek.net/2014/09/run-multiple-websites-single-ubuntu-server-using-apache2/ # - - # # - Riba Linux - # http://ribalinux.blogspot.com/ # - - # # - Install edubuntu packages in ubuntu - # https://askubuntu.com/questions/95066/how-to-install-edubuntu-package-in-ubuntu https://apps.ubuntu.com/cat/applications/oneiric/edubuntu-desktop/ UBUNTU_MIRROR=https://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/pool/universe/c/celestia sudo apt install qt4-dev-tools libqt4-dev autoconf liblua5.1-0 wget "${UBUNTU_MIRROR}"/celestia-common_1.6.1+dfsg-3.1_all.deb sudo dpkg -i celestia-common_1.6.1+dfsg-3.1_all.deb autoreconf -v -i ./configure --prefix=/usr --with-gtk --with-qt --with-cspice-dir=/YourInstallLocation/NGT/cspice # - - # # - Configuring Gnome Shell - # https://www.youtube.com/watch?v=T8ncsIc2ciE https://www.youtube.com/watch?v=895fgQFHbr4 https://www.youtube.com/watch?v=JaVWcU25sK4 https://www.youtube.com/watch?v=20YXax5-D30 https://www.youtube.com/watch?v=QU_XN5OqNZI # - - # # - Gnome themes - Very important - # https://www.youtube.com/watch?v=o8pfCuBOlXE The five themes (in order of the video): 1. Paper: http://snwh.org/paper sudo add-apt-repository ppa:snwh/pulp; sudo apt-get update; sudo apt-get install paper-icon-theme; sudo apt-get install paper-gtk-theme; sudo apt-get install paper-cursor-theme; Cloning from website: Look the website on google. In terminal: git clone https://github.com/snwh/paper-gtk-theme cd paper-gtk-theme ./autogen.sh make sudo make install # - - # # - Download numix icon theme utouch - # cd ~/.local/share/icons git clone https://github.com/numixproject/numix-icon-theme-utouch mv numix-icon-theme-utouch/Numix-uTouch . rm -rf numix-icon-theme-utouch LICENSE README.md 2. Numix: https://github.com/numixproject/numix-gtk-theme 3. Xenlism-Minimalism: http://xenlism.github.io/minimalism/ 4. Adapta: https://github.com/adapta-project/adapta-gtk-theme 5. Arc: https://github.com/horst3180/arc-theme # - Two good extensions to add to the Gnome Shell - # Dash to doc Gno-menu # - - # # - Manjaro Linux Download Page - # https://manjaro.org/news/page/2/ # - - # # - Very good - # # - HowTo: Linux List Disk Partitions Command - # https://www.cyberciti.biz/faq/linux-list-disk-partitions-command/ # - - # # - lsblk Command - # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom sda 8:0 0 1.8T 0 disk ├─sda2 8:2 0 1K 0 part ├─sda5 8:5 0 14.9G 0 part [SWAP] ├─sda1 8:1 0 14.9G 0 part / └─sda6 8:6 0 1.8T 0 part /home/Data-1 # - - # sudo lsblk --output NAME,FSTYPE,LABEL,UUID,MODE NAME FSTYPE LABEL UUID MODE sr0 brw-rw---- sda brw-rw---- ├─sda2 brw-rw---- ├─sda5 swap 3328366d-1501-4afb-a0ed-ea5f17088cd5 brw-rw---- ├─sda1 ext4 uServer cfa4abf5-2f05-4e52-8246-02018d09bd47 brw-rw---- └─sda6 ext4 Data-1 72461017-2278-47d0-b5f7-f070bbb13b56 brw-rw---- # - - # sudo lsblk -o name,mountpoint,label,size,uuid NAME MOUNTPOINT LABEL SIZE UUID sr0 1024M sda 1.8T ├─sda2 1K ├─sda5 [SWAP] 14.9G 3328366d-1501-4afb-a0ed-ea5f17088cd5 ├─sda1 / uServer 14.9G cfa4abf5-2f05-4e52-8246-02018d09bd47 └─sda6 /home/Data-1 Data-1 1.8T 72461017-2278-47d0-b5f7-f070bbb13b56 # - - # # - List Partitions Under Linux - # sudo fdisk -l sudo fdisk -l /dev/sda2; sudo fdisk -lu /dev/sda2; Failed to read extended partition table (offset=31248386): Invalid argument Disk /dev/sda2: 1 KiB, 1024 bytes, 2 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Alignment offset: 1024 bytes Disklabel type: dos Disk identifier: 0x00000000 Device Boot Start End Sectors Size Id Type /dev/sda2p1 2 31248385 31248384 14.9G 82 Linux swap / Solaris /dev/sda2p2 31248386 3875776513 3844528128 1.8T 5 Extended # - - # # - Commands to check hard disk partitions and disk space on Linux - # df -h; df -h | grep ^/dev /dev/sda1 ext4 15G 3.3G 11G 24% / /dev/sda6 ext4 1.8T 778G 936G 46% /home/Data-1 # - - # sudo apt-get install pydf; # - - # pydf Filesystem Size Used Avail Use% Mounted on /dev/sda1 15G 3296M 11G 22.1 [#######..........................] / /dev/sda6 1804G 777G 935G 43.1 [##############...................] /home/Data-1 # - - # sudo blkid; /dev/sda1: LABEL="uServer" UUID="cfa4abf5-2f05-4e52-8246-02018d09bd47" TYPE="ext4" PARTUUID="960cd139-01" /dev/sda5: UUID="3328366d-1501-4afb-a0ed-ea5f17088cd5" TYPE="swap" PARTUUID="960cd139-05" /dev/sda6: LABEL="Data-1" UUID="72461017-2278-47d0-b5f7-f070bbb13b56" TYPE="ext4" PARTUUID="960cd139-06" # - - # sudo apt-get install hwinfo; hwinfo # - - # cat /proc/partitions # - - # # - Root drive is running out of disk space. How can I free up space? - # # - - # dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge WARNING: Back up your system, I don't fully understand what this command does, but it messes with kernel headers and the bootloader! You can check what packages will be purged executing the first part of the command: dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' sftp://isdevelopment.us from Windows: http://www.netdrive.net/download/download_click.html Taken from: http://stackoverflow.com/questions/443732/how-do-i-mount-a-remote-linux-folder-in-windows-through-ssh uServerHome users: cvandemberg sS@pB1 mario canario # - - # # - Install .deb package in terminal - # cd /path/to/folder # - After that you just run this command - # sudo dpkg -i nameofpackage.deb # - - # # - Ubuntu unity desktop - # # - See username besides power button - # # - - # In Unity Tweak Tool, under the "Unity" section at the top, click on "Panel". Then, in the bottom-right-hand corner should be a checkbox for "Show my name". Checking that should restore your name next to the power button. # - - # # - From a terminal - # gsettings set com.canonical.indicator.session show-real-name-on-panel true # - To remove - # gsettings set com.canonical.indicator.session show-real-name-on-panel false # - - # # - Hide guest user in Ubuntu desktop -> run just once - # sudo sh -c 'printf "[SeatDefaults]\nallow-guest=false\n" >/usr/share/lightdm/lightdm.conf.d/50-no-guest.conf' # - How To Install Tor and Configure Firefox SOCKS Proxy in Ubuntu 14.04 - # http://www.ubuntubuzz.com/2016/01/how-to-install-tor-and-configure.html # - Change coputer's name - # sudo gedit /etc/hostname /etc/hosts # - PHP Programming - # # - Bootstrap - # http://getbootstrap.com/getting-started/ http://www.w3schools.com/bootstrap/bootstrap_get_started.asp http://itsourcecode.com/2016/01/how-to-create-a-secure-login-page-using-phpmysql/ # - - # # - - # sudo fdisk -l df -hl sudo e2label /dev/sdb1 "mydiskname" For FAT partitions the tool to use is "mlabel" sudo mlabel -i /dev/yourpartition ::new-label # - - # # - How do I change my username? - # http://askubuntu.com/questions/34074/how-do-i-change-my-username #To change username (it is probably best to do this without being logged in): usermod -l newUsername oldUsername #This however, doesn't rename the home folder. #To change home-folder, use after you changed the username. usermod -d /home/newHomeDir -m newUsername For instance, you could logout, drop to a console (Ctrl+Alt+F1), and sudo su - to become true root (as opposed to sudo -s, where $HOME is still /home/yourname.) Maybe you also have to kill some still running processes from this user first. To do so, enter ps -u username, look for the matching PID and kill them by kill PID-number. # - - # # - How to enable root in Ubuntu - # http://www.computernetworkingnotes.com/ubuntu-12-04-tips-and-tricks/how-to-enable-root-in-ubuntu-12-04.html #Set password for root account sudo passwd root #root account is enabled. Now we need to enable login option. Run following command sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf' #Reboot the system and Login from root #If you wish to disable root account again follow these steps. #Reboot system Logged in from the account which you have created during the installation process sudo passwd -dl root # - - # http://www.cyberciti.biz/faq/how-to-mount-remote-directory-filesystems-with-sshfs-on-linux/ http://www.saltycrane.com/blog/2010/04/notes-sshfs-ubuntu/ https://codetrips.com/tag/sshfs/ # - How To Mount a Remote Directory With SSHFS on a Linux - # sudo apt-get install sshfs sudo mkdir /mnt/server1 sudo sshfs root@192.168.1.142:/ /mnt/server1/ sudo sshfs -o IdentityFile=~/.ssh/keyfile /mnt/server1/ sudo df -hl To access and/or to see the remote file system, run: sudo -s cd /mnt/server1 ls -l If you get an error that read as cannot access server1: Permission denied, add yourself to a group called fuse: sudo gpasswd -a "$USER" fuse mkdir $HOME/server1 ls -ld !$ ls -ld $HOME/server1 To mount the remote file system, enter: sshfs -o idmap=user root@192.168.1.142:/ $HOME/server1 df ls -l $HOME/server1 How do I unmount the remote file system? sudo umount /mnt/server1 ## OR ## fusermount -u /mnt/server1 In the fstab file: sshfs#root@192.168.1.142:/ /mnt/server1 sshfs#$root@192.168.1.142:/ /mnt/server1 fuse defaults,idmap=user,allow_other,reconnect,_netdev,users,IdentityFile=/path/to/.ssh/keyfile 0 0 vivek@server1.cyberciti.biz:/project/www/ /mnt/server1 fuse.sshfs noauto,x-systemd.automount,_netdev,users,idmap=user,IdentityFile=/home/vivek/.ssh/id_rsa,allow_other,reconnect 0 0 Save and close the file. Where, root@192.168.1.142 : Remote server with sshd fuse : File system type. idmap=user : Only translate UID of connecting user. allow_other : Allow access to other users. reconnect : Reconnect to server. _netdev : The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system). users : Allow every user to mount and unmount the filesystem. IdentityFile=/path/to/.ssh/keyfile – SSH key file. USERNAME@HOSTNAME_OR_IP:/REMOTE/DIRECTORY /LOCAL/MOUNTPOINT fuse.sshfs _netdev,user,idmap=user,transform_symlinks,identityfile=/home/USERNAME/.ssh/id_rsa,allow_other,default_permissions,uid=USER_ID_N,gid=USER_GID_N 0 0 USERNAME@HOSTNAME_OR_IP:/REMOTE/DIRECTORY /LOCAL/MOUNTPOINT fuse.sshfs x-systemd.automount,_netdev,user,idmap=user,transform_symlinks,identityfile=/home/USERNAME/.ssh/id_rsa,allow_other,default_permissions,uid=USER_ID_N,gid=USER_GID_N 0 0 USER@HOSTNAME:/REMOTE/ /LOCAL/ fuse.sshfs delay_connect,_netdev,user,idmap=user,transform_symlinks,identityfile=/home/USERNAME/.ssh/id_rsa,allow_other,default_permissions,uid=USER_ID_N,gid=USER_GID_N 0 0 sshfs#root@10.232.139.234:/mnt/files /var/www/remote_files fuse allow_other,IdentityFile=/path/to/my_ssh_keyfile,ServerAliveInterval=60 0 0 These additional sshfs options prevent the above error from concurring: sudo sshfs -d -o allow_other -o reconnect -o ServerAliveInterval=15 root@myremoteserver.com:/var/lib/redmine/plugins /mnt -p 12345 -C In order to use allow_other above, you need to uncomment the last line in /etc/fuse.conf: # Set the maximum number of FUSE mounts allowed to non-root users. # The default is 1000. # #mount_max = 1000 # Allow non-root users to specify the 'allow_other' or 'allow_root' # mount options. # user_allow_other # - - # # - Why I ditched RAID and Greyhole for MHDDFS - # http://zornsoftware.codenature.info/blog/why-i-ditched-raid-and-greyhole-for-mhddfs.html My rsync command runs as a scheduled task (cron job) at 5:30am every day: rsync -r -t -v –progress -s -e “ssh -p 1234” /mnt/media/coding user@backup:/mnt/media rsync -r -t -v –progress -s -e “ssh -p 1234” /mnt/media/projects user@backup:/mnt/media rsync -r -t -v –progress -s -e “ssh -p 1234” /mnt/media/graphics user@backup:/mnt/media Note that the rsync command is executed for each individual root folder in the share so I can choose which folders I want to make redundant. Also I do not include the –delete option so that if I accidently delete something, i can recover it from the backup server at any time. Then periodically I can use Beyond Compare to compare to two storage pools and remove anything I truely don’t need. The first time you set up the backup storage pool, it will take quite a while for the rsync to complete (like several days), but thereafter, it is amazingly quick and finding just the diffs and replicating those only. Yes everything you heard about rsync is true, it is awesome. # - - # # - mhddfs keeps crashing after upgrade to 14.04 LTS - # To downgrade, just add the following line to /etc/apt/sources.list: deb http://archive.ubuntu.com/ubuntu/ precise main universe restricted multiverse And then: sudo apt-get update sudo apt-get install mhddfs=0.1.38 # - - # # - mhddfs mounting - # mhddfs#/drives/drv1/RAID,/drives/drv2/RAID /share fuse defaults,allow_other,loglevel=0,logfile=/var/log/mhddfs.log 0 0 # - - # # - mhddfs is not mounting /home/AllDisks-Data - # # - Unmount first just in case - # sudo fusermount -uz /home/AllDisks-Data; sudo umount -l /home/AllDisks-Data; # - Manual mounting in terminal - # sudo mount /home/AllDisks-Data; mhddfs#/drives/drv1/RAID,/drives/drv2/RAID /share fuse defaults,allow_other,loglevel=0,logfile=/var/log/mhddfs.log 0 0 # - - # # - rsync on an SSHFS mount point - # https://codetrips.com/tag/sshfs/ rsync: rename "/path/to/file.Q3Btvn" -> "to/file": Operation not permitted (1) # This mounts the entire filesystem of server on /mnt/server mountpoint # Use with care! sshfs#marco@server:/ /mnt/server fuse users,auto,workaround=rename 0 0 However, if you are mounting a Samba file server, and the path contains spaces, beware of the escape code for that being different from the URL one (%20) or the console (\ followed by space; as in: /fileserver/My\ Pictures). /etc/fstab requires the 40 escape code to mount a filesystem with spaces in its pathname: # This mounts the Samba share My Pictures on the NFS server #fileserver under /media/pictures //fileserver/My40Pictures/ /media/pictures cifs user=guest,password=,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0 # - - # Mounting SSHFS drives in Ubuntu # sshfs (see http://ubuntuforums.org/showthread.php?t=270806) # The lines below will NOT mount the directories automatically - use: mount /path/to/dir (no need to sudo) # To mount an arbitrary directory use: sshfs myserver:/remote/dir /path/to/dir sshfs#marco@myserver:/media/data/shared/media /media/multimedia fuse users,auto 0 0 Mounting automatically when starting Gnome The easy option is to create a simple shell file in my ~/bin directory: #!/bin/sh # Mounts external drives on sshfs (not mounted automatically from /etc/fstab) mount /media/multimedia mount /media/www and add it to the session startup scripts for the Gnome session: System > Preferences > Startup Applications If you now log out and log back in (no need to reboot) you will find your sshfs mountpoints proudly showing in the local directory. You may also want to consider changing the ‘auto’ option back to ‘noauto’ should speed up the boot process. # - - # # - Configure Ubuntu Gnome MousePad - # # - Edit 50-synaptics.conf - # sudoedit /usr/share/X11/xorg.conf.d/50-synaptics.conf # - Add those lines in the Section "InputClass" - # Option "RTCornerButton" "0" If you're using GNOME or Cinnamon desktop manager, there is a good chance that GNOME/Cinnamon's settings can override your custom settings. To prevent GNOME/Cinnamon's settings override yours, open dconf Editor [dconf-editor] and edit following entry: /org/gnome/settings-daemon/plugins/mouse/ or /org/cinnamon/settings-daemon/plugins/mouse/ Uncheck active. The MousePad will be configured forever in your laptop. # - - # # - ElementaryOS Freya Configuration - # # - New Version of Elementary Tweaks for Freya - # http://lmelinux.net/2014/08/25/new-version-elementary-tweaks-optimized-freya/ sudo add-apt-repository ppa:mpstark/elementary-tweaks-daily sudo apt-get update sudo apt-get install elementary-tweaks # - Faba and Moka Icon Themes - # http://www.elementarynow.com/what-is-elementary-3/customize/ # - VirtualBox guest - # http://virtualboxes.org/doc/installing-guest-additions-on-ubuntu/ # -screenFetch - The Bash Screenshot Information Tool - # https://github.com/KittyKatt/screenFetch Ubuntu & Debian apt-get install screenfetch In terminal: screenfetch -D 'Ubuntu' # - New icons themes - # # - Moka icons theme: - # sudo add-apt-repository ppa:moka/stable sudo apt-get update sudo apt-get install faba-icon-theme moka-icon-theme # - Numix Circle icon theme: - # sudo add-apt-repository ppa:numix/ppa sudo apt-get update sudo apt-get install numix-icon-theme numix-icon-theme-circle # - Activating Docky when lid is close Linux Mint - # http://forum.peppermintos.com/index.php?topic=538.0 sudo gedit /etc/pm/sleep.d/20_docky #!/bin/sh case $1 in resume) USER=`who | grep ":0" | head -1 | cut -d" " -f1` USERHOME=/home/$USER export XAUTHORITY="$USERHOME/.Xauthority" export DISPLAY=":0" su $USER - -c "dbus-launch /usr/bin/docky >/dev/null" & exit 0; ;; esac sudo chmod 755 /etc/pm/sleep.d/20_docky sudo gedit /etc/pm/power.d/20_docky #!/bin/sh USER=`who | grep ":0" | head -1 | cut -d" " -f1` USERHOME=/home/$USER export XAUTHORITY="$USERHOME/.Xauthority" export DISPLAY=":0" su $USER - -c "dbus-launch /usr/bin/docky >/dev/null" & exit 0; sudo chmod 755 /etc/pm/power.d/20_docky # - Fixing Bad blocks in a HDD Linux - # http://askubuntu.com/questions/241944/how-to-fix-the-hard-drive-bad-sector http://askubuntu.com/questions/291570/mark-bad-sectors-on-hard-drive-without-formating/490549#490549 https://wiki.archlinux.org/index.php/Badblocks http://www.linuxtechi.com/check-hard-drive-for-bad-sector-linux/ # - Step:1 Use fdisk command to identify your hard drive info - # sudo fdisk -l # - Step:2 Scan your hard drive for Bad Sectors or Bad Blocks - # sudo badblocks -sv /dev/sdb > /tmp/bad-blocks.txt sudo badblocks -sv /dev/sda1 > /tmp/bad-blocks.txt # - Step:3 Inform OS not to use bad blocks for storing data - # Once the scanning is completed , if the bad sectors are reported , then use file “bad-blocks.txt” with e2fsck command and force OS not to use these bad blocks for storing data. sudo e2fsck -l /tmp/bad-blocks.txt /dev/sda1 sudo badblocks -svvn -c 262144 /dev/sda sudo badblocks -svn /dev/sda # - read-write Test (warning:destructive) - # sudo badblocks -wsv /dev/ # - Badblocks can be made to repeatedly write a single "random pattern" with the -t random option - # sudo badblocks -wsv -t random /dev/ # - read-write Test (non-destructive) - # sudo badblocks -nsv /dev/ # - For comfortably passing badblocks error output to the filesystem it has to be written to a file - # badblocks -wsv -o /root/ /dev/ # - For new disks - # sudo apt-get install smartmontools sudo smartctl --all /dev/sda # - VirtualBox guest - # http://virtualboxes.org/doc/installing-guest-additions-on-ubuntu/ # - Addons for newtab homepage in firefox - # https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/ # - Duplicity Backup Command - # http://manpages.ubuntu.com/manpages/hardy/man1/duplicity.1.html # - Sample - # # - Second time you don't use "full" and the process is going to increment - # sudo duplicity full /home/hp-pavilion ssh://is_derayo:Administrator2@192.168.1.128/home/Images/Backup/HP-Pavilion-dv7 sudo duplicity full /home/hp-pavilion file:///home/Recovery/Backup/User-hp-pavilion # - Install Skype 4.3 in Linux - # http://ubuntuhandbook.org/index.php/2014/06/skype-4-3-install-in-ubuntu-1404/ # - Install Samba on Manjaro Linux - Login as normal user (not root) - # yaourt -Sy system-config-samba # - How To use ManjaroISO to Create your Own Linux Distro. - # https://wiki.manjaro.org/index.php/ManjaroISO # - Openssh-Server Instalacion & Connection - # https://www.percona.com/doc/percona-xtrabackup/2.1/howtos/ssh_server.html ubuntu$ sudo apt-get install openssh-server archlinux$ sudo pacman -S openssh # - Edit /etc/ssh/sshd_config file - # sudo gedit /etc/ssh/sshd_config Port 22 AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes ChallengeResponseAuthentication no UsePAM yes UsePrivilegeSeparation sandbox # Default for new installations. AllowUsers dell-inspiron-fxce smbguest Subsystem sftp /usr/lib/ssh/sftp-server # - Restart ssh service - # sudo systemctl start sshd.service ssh dell-inspiron-fxce@192.168.1.252 ssh is_derayo@192.168.1.128 ssh -l is_derayo 192.168.1.128 ssh://UbuntuGnome3-Server ssh://192.168.1.128 sftp://is_derayo@192.168.1.128/ # - Install SSH - Connecting to Server Using a Terminal Emulator - # # - Installing vsftpd for FTP -Connecting to vsftpd using a FTP Client - # # - Install SSH (Secure Shell) on Server - # # - SSH Requires Port 22 - # sudo apt-get install ssh # - Use a Terminal Emulator to Connect to the Server (PuTTy) - # # - FTP -- File Transfer Protocol - # # - Install FTP Server - # sudo apt-get install vsftpd # - Edit vsftpd Configuration Files - # sudo vim /etc/vsftpd.conf Uncoment #local_enable=YES to Allow Local Users to Login Uncomment #write_enable=YES to Allow File Uploads # - Restart vsftpd Service - # sudo service vsftpd restart Use an FTP Client to Connect to FTP Server (FileZilla) # - Ubuntu Server 14.04:Setup - #1 [LAMP, SSH, vsftpd & Mail Server] - # https://www.youtube.com/watch?v=pnAGk3vvCCc # - Kernel not found after updating manjaro linux - # https://www.google.com/?gws_rd=ssl#q=error+file+%2Fboot%2Fvmlinuz-319-i686+not+found # - Restore the Grub Bootloader - # https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader # - How To use ManjaroISO to Create your Own Linux Distro - # https://www.youtube.com/watch?v=89TsITpY3h0 # - Add close caption on videos in Linux - # http://www.makeuseof.com/tag/openshot-finally-excellent-video-editor-linux/ # - Change user name & user id in the console/terminal - # http://www.cyberciti.biz/faq/howto-change-rename-user-name-id/ # - Ubuntu Unity Tweaks and more - # http://sourcedigit.com/8157-customize-ubuntu-14-04-trusty-tahr-11-must-tweaks/ # - Php programing - # https://www.youtube.com/watch?v=7TF00hJI78Y http://www.newthinktank.com/2014/08/php-programming/ https://www.youtube.com/watch?v=wEmxwNLjf_c http://www.tuxradar.com/content/php-coding-academy-write-your-first-script http://simpletut.com/ http://simpletut.com/blog/php-file-upload-tutorial-learn-how-to-upload-files-using-php-download-the-script-free/ https://support.mozilla.org/en-US/questions/976485