├── 001.alsaFix
├── 002.upgrade
├── 003.checkFileSystem
├── 004.closeSession
├── 005.disable autologin for all users
├── 006.disable bug error notifications
├── 007.enableHibernation
├── 008.fix gpg errors
├── 009.fixNetwork
├── 010.fixPackages
├── 011.fix plymouth
├── 012.How to uninstall completely a program
├── 013.installRPMPackage
├── 014.intelFreezeFix
├── 015.mont rw on secure mode
├── 016.uninstallPPA
├── 017.upgradeDist
├── 018.installTemplates
├── 019.downloadLatestUbuntupackages
├── 020.check_apt-fast_installed
├── 021.doVisibleAsterisks
├── 022.doInvisibleAsterisks
├── 023.openSourcesListD
├── 024.disableHibernation
├── 025.enableSudoWithoutPassAll
├── 026.disableSudoWithoutPassAll
├── 027.openSudoersFile
├── 028.backupSudoersFile
├── 029.reduceTo5sShutdownTimeout
├── 030.setToDefaults90sShutdownTimeout
├── 031.enableFirewall
├── 032.disableFirewall
├── 033.check_ufw_installed
├── 034.check_ukuu_installed
├── 035.disableLockScreen
├── 036.enableLockScreen
├── 037.unshowHiddenStartupItems
├── 038.showHiddenStartupItems
├── 039.enableLoginSound
├── 040.disableLoginSound
├── 042.openSourcesList
├── 043.backupSourcesList
├── 044.downloadLatestUbuntuscripts
├── 045.mainBackup
├── 046.mainRestore
├── 047.exportList
├── 051.openSudoersD
├── 052.enableSudoWithoutPassSpecific
├── 053.disableSudoWithoutPassSpecific
├── 054.enableUpdateNotification
├── 056.openRCLocal
├── 057.resetDconf
├── 058.can_t_block_var_lib_dpkg_lock
├── 059.fix not resolving dns on actual session
├── 060.openHosts
├── 061.silentUpgradePackages
├── 062.silentUpdatePackages
├── 063.openCron
├── 064.eraseCron
├── 065.add_to_root_crontab
├── 066.remove_to_root_crontab
├── 067.checkFirewallStatus
├── 068.enableRemoteDesktopOnMate
├── 069.disableRemoteDesktopOnMate
├── 070.changeDNS
├── 071.network restart.sh
├── 072.enableBootMessages
├── 073.disableBootMessages
├── 074.openLots
├── 075.silentUpdatePackagesMessages
├── 076.silentUpdatePackagesMessages2
├── 077.backupReposUnsupportedReleases
├── 078.reenableReposUnsupportedReleases
├── 079.restoreReposUnsupportedReleases
├── 080.editGrub
├── 081.updateGrub
├── 082.uninstallInfinalityFonts
├── 083.add_to_root_crontab_at_boot
├── Force fsck on boot using forcefsck
├── LICENSE
├── README.md
├── changeLinuxtoWindowsTime
├── listLatestInstalledPackages
├── listUpgradablePackages
├── logo.png
└── others
├── autoStart
├── autoStartMegasync.sh
├── autoStartSpiderOakONE.sh
├── autoStartTelegram.sh
└── autostart a program.sh
├── deprecated
├── 025.enableSudoWithoutPassAll
├── 026.disableSudoWithoutPassAll
├── 041.openSudoersAllMod
├── 048.openSudoersUbunsysMod
├── 049.enableSudoWithoutPassUbunsys
└── 050.disableSudoWithoutPassUbunsys
├── kernel scripts
├── hold kernel update packages
│ ├── hold
│ └── preferences
├── install latest kernel updates
│ ├── README.md
│ └── medigeek-kmp-downloader
├── remove old kernels
│ ├── remove old kernels
│ ├── remove old kernels
│ └── remove old kernels 2
└── repair kernel
├── kodi
└── improveBuffer
│ ├── METHOD1
│ ├── KODI
│ ├── Selección_031.png
│ └── plugin.program.advancedsettings-0.8.8.zip
│ └── METHOD2
│ ├── default
│ └── advancedsettings.xml
│ ├── modded
│ └── advancedsettings.xml
│ └── webpage
├── launchers
└── ArduinoStudio.desktop
├── mega
├── megaFix
└── megaUninstall
├── notepadqqFix
├── Notepadqq.ini
└── notepadqqFix
├── sudoers
└── ubunsys_sudoers_addition
├── tests
└── 054.enableSudoWithoutPassApt-Fast
├── unattendedUpgrades
├── 10periodic
├── 50unattended-upgrades
├── apt-security-updates
├── apt-security-updates2
└── unattendedUpgrades
├── update & upgrade
├── dist-upgrade
├── release-upgrade
├── update & dist-upgrade
├── update & upgrade
└── upgrade
├── utc
├── to fix
│ ├── from ubuntu
│ │ └── fix utc
│ └── from windows
│ │ ├── 1.WindowsTimeFixUTC.reg
│ │ └── 2.cmd
└── to revert
│ ├── from ubuntu
│ └── revert utc
│ └── from windows
│ ├── 1.WindowsTimeFixUTC.reg
│ └── 2.cmd
└── various
├── 129681-templates-modded.tar.gz
├── HoN
├── HoN fix
└── libxml2.so.2.9.1
├── Selectable script
├── Where to find logs
├── commands permissions
├── dirsyncpro launch
├── git gui
├── gitkFix
├── gitpushubun
├── gitpushubun.bat
├── installQt
├── mateconfiguration
├── microsoft_online_apps.deb
├── mod a repo
├── personalization
├── script test
├── various1
├── various2
└── various3
/001.alsaFix:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #### alsaFix
4 | #http://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/
5 |
6 | sudo alsa force-reload
7 |
--------------------------------------------------------------------------------
/002.upgrade:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | _today=$(date +"%d-%m-%Y-%T")
4 | _file="/etc/rc.local.$_today"
5 | sudo cp /etc/rc.local "$_file"
6 | sudo rm -f -r /etc/rc.local
7 |
8 | sudo sh -c 'echo "#!/bin/sh -e
9 | #
10 | # rc.local
11 | #
12 | # This script is executed at the end of each multiuser runlevel.
13 | # Make sure that the script will "exit 0" on success or any other
14 | # value on error.
15 | #
16 | # In order to enable or disable this script just change the execution
17 | # bits.
18 | #
19 | # By default this script does nothing.
20 | sudo dpkg --configure -a && sudo apt-fast -y update && sudo apt-fast -y dist-upgrade && sudo apt-fast -y autoremove
21 |
22 | exit 0" >> /etc/rc.local'
--------------------------------------------------------------------------------
/003.checkFileSystem:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | shutdown -Fr now
4 |
5 | #sudo touch /forcefsck
--------------------------------------------------------------------------------
/004.closeSession:
--------------------------------------------------------------------------------
1 | sudo pkill -u usuario
--------------------------------------------------------------------------------
/005.disable autologin for all users:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #Edit /etc/lightdm/lightdm.conf, modifying this line to:
4 |
5 | #autologin-user=
--------------------------------------------------------------------------------
/006.disable bug error notifications:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Disable bug error notifications
4 | sudo sed -i s/enabled=1/enabled=0/g /etc/default/apport
--------------------------------------------------------------------------------
/007.enableHibernation:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####Enable hibernation - http://tutorfreebr.blogspot.com.es/2013/10/como-ativar-o-modo-de-hibernacao-no.html - http://www.taringa.net/posts/linux/14651627/Activar-funcion-Hibernar-en-Ubuntu-12-04-Precise-Pangoli.html
4 |
5 | FILE="$HOME/.ubunsys/status/hibernation.txt"
6 |
7 | sudo rm /etc/polkit-1/localauthority/90-mandatory.d/com.ubuntu.desktop.pkla
8 |
9 | sudo sh -c 'echo "
10 |
11 | [Enable hibernate (upower)]
12 | Identity=unix-user:*
13 | Action=org.freedesktop.upower.hibernate
14 | ResultActive=yes
15 | ResultInactive=yes
16 | ResultAny=yes
17 |
18 | [Enable hibernate (logind)]
19 | Identity=unix-user:*
20 | Action=org.freedesktop.login1.hibernate
21 | ResultActive=yes
22 |
23 | [Enable hibernate for all sessions (logind)]
24 | Identity=unix-user:*
25 | Action=org.freedesktop.login1.hibernate-multiple-sessions
26 | ResultActive=yes
27 |
28 | " >> /etc/polkit-1/localauthority/90-mandatory.d/com.ubuntu.desktop.pkla'
29 |
30 | echo Disabled > $FILE
--------------------------------------------------------------------------------
/008.fix gpg errors:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo mv /etc/apt/trusted.gpg.d/ /etc/apt/trusted.gpg.d.backup
4 | sudo mkdir /etc/apt/trusted.gpg.d
5 | sudo chmod 755 /etc/apt/trusted.gpg.d
6 |
7 | #Then, for each key you need:
8 |
9 | #sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
10 |
11 | #or best...
12 |
13 | sudo apt-fast -y update
14 | sudo launchpad-getkeys
15 | sudo apt-fast -y update
--------------------------------------------------------------------------------
/009.fixNetwork:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo service network-manager restart
--------------------------------------------------------------------------------
/010.fixPackages:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #1
4 | sudo apt-get -y update && apt-get -y upgrade
5 |
6 | #2
7 | sudo apt-get -y --fix-broken install
8 |
9 | #3
10 | sudo apt-get -f install && apt-get -y autoremove && apt-get -y autoclean && apt-get -y clean
11 |
12 | #4
13 | sudo dpkg --configure -a && apt-get -y update
14 |
15 | #5
16 | sudo rm /var/lib/apt/lists/* -vf && apt-get -y update
17 |
18 | #6
19 | #https://lignux.com/tutorial-para-solucionar-no-se-pudo-bloquear-varlibdpkglock-open-11-recurso-no-disponible-temporalmente/
20 | sudo fuser -vki /var/lib/dpkg/lock
21 | sudo rm -f /var/lib/dpkg/lock
22 | sudo dpkg --configure -a
23 | sudo apt-get autoremove
24 |
25 | #7 extra
26 | #http://askubuntu.com/questions/601/the-following-packages-have-been-kept-back-why-and-how-do-i-solve-it
27 | “The following packages have been kept back:”
28 | sudo apt-get -y dist-upgrade
29 | sudo apt-get -y safe-upgrade
--------------------------------------------------------------------------------
/011.fix plymouth:
--------------------------------------------------------------------------------
1 | #This is solution how to fix no splash screen in Ubuntu after nvidia proprietary driver installation. It's no matter what Ubuntu version you use, it should work anyway.
2 |
3 | #http://askubuntu.com/questions/362722/how-to-fix-splash-screen-in-all-ubuntu-releases
4 |
5 | Open your terminal and type
6 |
7 | sudo apt-get install v86d
8 |
9 | Then
10 |
11 | sudo pluma /etc/default/grub
12 |
13 | Find this line
14 |
15 | #GRUB_GFXMODE=640x480
16 | and change for this one (of course choose your resolution)
17 |
18 | GRUB_GFXMODE=1440x900x24 / 1024x768-24
19 | GRUB_GFXPAYLOAD_LINUX=keep
20 |
21 | Save file and type in terminal
22 |
23 | echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
24 | sudo update-initramfs -u
25 | sudo update-grub2
26 |
27 | It's worked for me in all Ubuntu versions.
28 | Give it a try :)
29 |
--------------------------------------------------------------------------------
/012.How to uninstall completely a program:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #For example ubuntu-sdk
4 |
5 | #Way 1
6 | sudo apt-get autoremove ubuntu-sdk
7 | sudo apt-get --purge remove ubuntu-sdk
8 | sudo apt-get autoclean
9 | sudo apt-get autoremove
10 | sudo apt-get -f install
11 |
12 | #Way 2
13 | #with dependencies
14 | sudo apt-get remove --auto-remove ubuntu-sdk
15 | #with config/data
16 | sudo apt-get purge ubuntu-sdk
17 | #the same
18 | sudo apt-get purge --auto-remove ubuntu-sdk
19 |
--------------------------------------------------------------------------------
/013.installRPMPackage:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #### InstallRPMPackage
4 | #http://www.howtogeek.com/howto/ubuntu/install-an-rpm-package-on-ubuntu-linux/
5 | #sudo apt-fast -y install alien dpkg-dev debhelper build-essential
6 | #sudo alien packagename.rpm
7 | #sudo dpkg -i packagename.deb
--------------------------------------------------------------------------------
/014.intelFreezeFix:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1 - direct application
4 |
5 | sudo notepadqq /etc/default/grub
6 | GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"
7 | sudo update-grub
8 | sudo reboot
9 |
10 | # Modify notepadqq with gedit, nano, vim if you prefer
11 |
12 | 1 - Source
13 |
14 | See https://bugzilla.kernel.org/show_bug.cgi?id=109051
15 |
16 | The following eliminated the problem for me.
17 |
18 | Edit /etc/default/grub. Change the line
19 |
20 | GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
21 |
22 | to
23 |
24 | GRUB_CMDLINE_LINUX_DEFAULT="intel_idle.max_cstate=1 quiet splash"
25 |
26 | then do
27 |
28 | sudo update-grub
29 | and reboot.
30 |
31 | 2 - optional
32 |
33 | curl -O http://de.archive.ubuntu.com/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.158_all.deb
34 | dpkg -i linux-firmware_1.158_all.deb
35 | sudo update-initramfs -u -k all
36 |
37 | 3 - other possible solutions
38 |
39 | GRUB_CMDLINE_LINUX_DEFAULT="quiet splash drm.debug=0 drm.vblankoffdelay=1 i915.semaphores=0 i915.modeset=1 i915.use_mmio_flip=1 i915.powersave=1 i915.enable_ips=1 i915.disable_power_well=1 i915.enable_hangcheck=1 i915.enable_cmd_parser=1 i915.fastboot=0 i915.enable_ppgtt=1 i915.reset=0 i915.lvds_use_ssc=0 i915.enable_psr=0"
40 |
41 | 4 - other possible solutions
42 |
43 | https://github.com/linuxenko/ubuntu-skylake-i915-video-fix/issues/8
44 | https://allanbogh.com/2016/01/05/ubuntu-16-04-installing-the-intel-graphics-drivers-using-the-intel-graphics-installer-for-linux/
45 | http://askubuntu.com/questions/717338/installing-4-4-rc7-kernel-yields-i915-module-not-available
46 | http://askubuntu.com/questions/760731/lenovo-thinkpad-11e-randomly-freezes-on-ubuntu-16-04
47 |
48 | 5 - extra
49 |
50 | GRUB_DEFAULT=0
51 | GRUB_HIDDEN_TIMEOUT=0
52 | GRUB_HIDDEN_TIMEOUT_QUIET=true
53 | GRUB_TIMEOUT=5
54 | GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
55 | GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
56 | GRUB_CMDLINE_LINUX=""
57 |
58 | 6 - extra
59 |
60 | noatime
61 | acpi=off
62 |
63 | GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash drm_kms_helper.poll=0″
64 |
65 | vm.swappiness=10 in /etc/sysctl.conf
66 |
67 | http://askubuntu.com/questions/2194/how-can-i-improve-ubuntu-overall-system-performance
68 |
69 | 6 - not working - no recommendable
70 |
71 | GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash drm_kms_helper.poll=0 intel_idle.max_cstate=1 nomodeset noatime acpi=off″
--------------------------------------------------------------------------------
/015.mont rw on secure mode:
--------------------------------------------------------------------------------
1 | mount -o remount,rw /
--------------------------------------------------------------------------------
/016.uninstallPPA:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #### uninstallPPA
4 |
5 | #sudo ppa-purge -y ppa:xorg-edgers/ppa && sudo ppa-purge -y ppa:oibaf/graphics-drivers && sudo ppa-purge -y ppa:graphics-drivers/ppa
--------------------------------------------------------------------------------
/017.upgradeDist:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #### upgradeDist
4 |
5 | #http://askubuntu.com/questions/700724/how-can-i-upgrade-from-current-release-to-next-daily-build-15-10-16-04-daily
6 |
7 | #sudo update-manager -d
8 | #sudo apt-get install update-manager-core
9 | sudo do-release-upgrade -d
10 |
11 | #sudo apt-get -y update
12 | #sudo apt-get -y upgrade
13 | #sudo apt-get -y dist-upgrade
14 | ##sudo apt-get -y safe-upgrade
15 |
--------------------------------------------------------------------------------
/018.installTemplates:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #### installTemplates
4 |
5 | rm -Rf ~/Plantillas/*
6 | rm -Rf ~/Templates/*
7 |
8 | mkdir -p ~/.ubunsys/downloads
9 |
10 | #wget https://dl.opendesktop.org/api/files/download/id/1465382478/129681-templates.tar.gz -O ~/.ubunsys/downloads/129681-templates.tar.gz
11 |
12 | if test -d ~/Plantillas; then
13 | tar xf ~/.ubunsys/downloads/ubuntuScripts-master/others/various/129681-templates-modded.tar.gz -C ~/ && cp ~/templates/* ~/Plantillas && rm -Rf ~/templates
14 | else
15 | tar xf ~/.ubunsys/downloads/ubuntuScripts-master/others/various/129681-templates-modded.tar.gz -C ~/ && cp ~/templates/* ~/Templates && rm -Rf ~/templates
16 | exit 1
17 | fi
--------------------------------------------------------------------------------
/019.downloadLatestUbuntupackages:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #### downloadLatestUbuntupackages
4 |
5 | test -d ~/.ubunsys || mkdir -p ~/.ubunsys
6 | test -d ~/.ubunsys/downloads || mkdir -p ~/.ubunsys/downloads
7 |
8 | wget https://github.com/adgellida/ubuntupackages/archive/master.zip -O ~/.ubunsys/master.zip && rm -Rf ~/.ubunsys/downloads/ubuntupackages-master && unzip ~/.ubunsys/master.zip -d ~/.ubunsys/downloads &>/dev/null && chmod 777 -R ~/.ubunsys/downloads/ubuntupackages-master && rm ~/.ubunsys/master.zip && echo ubuntupackages downloaded ok. 2/3 ok || echo Error downloading. Holding your ubuntupackages version. 2/3 fail && sleep 1
--------------------------------------------------------------------------------
/020.check_apt-fast_installed:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #### check_apt-fast_installed
4 |
5 | if [ $(dpkg-query -W -f='${Status}' apt-fast 2>/dev/null | grep -c "ok installed") -eq 0 ]
6 | then
7 | echo "apt-fast not installed, installing it..."
8 | sleep 2
9 | test -f /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-zesty.list || sudo rm /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-zesty.list
10 | test -f /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-zesty.list || sudo rm /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-zesty.list.save
11 | test -f /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-xenial.list || sudo rm /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-xenial.list
12 | test -f /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-xenial.list || sudo rm /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-xenial.list.save
13 | sh ~/.ubunsys/downloads/ubuntupackages-master/apps1/apt-fast
14 | echo "apt-fast installed, You're ready to rock on!! 3/3 ok"
15 |
16 | else echo "apt-fast installed, not changes necessary. You're ready to rock on!! 3/3 ok"
17 |
18 | fi
19 |
20 | sleep 2
--------------------------------------------------------------------------------
/021.doVisibleAsterisks:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #http://www.linuxhispano.net/2013/09/05/mostrar-los-asteriscos-de-la-contrasena-en-un-terminal/
4 |
5 | # Modify defaults
6 | FILE="$HOME/.ubunsys/status/asterisks.txt"
7 | sudo sed -i 's/env_reset/env_reset,pwfeedback/g' /etc/sudoers
8 | echo Enabled > $FILE
--------------------------------------------------------------------------------
/022.doInvisibleAsterisks:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #http://www.linuxhispano.net/2013/09/05/mostrar-los-asteriscos-de-la-contrasena-en-un-terminal/
4 |
5 | # Restore defaults
6 |
7 | FILE="$HOME/.ubunsys/status/asterisks.txt"
8 | sudo sed -i 's/env_reset,pwfeedback/env_reset/g' /etc/sudoers
9 | echo Disabled > $FILE
--------------------------------------------------------------------------------
/023.openSourcesListD:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####openSourcesListD
4 |
5 | sudo xdg-open /etc/apt/sources.list.d
6 |
--------------------------------------------------------------------------------
/024.disableHibernation:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####Disable hibernation
4 |
5 | FILE="$HOME/.ubunsys/status/hibernation.txt"
6 |
7 | sudo rm /etc/polkit-1/localauthority/90-mandatory.d/com.ubuntu.desktop.pkla
8 |
9 | sudo sh -c 'echo "
10 |
11 | [Disable hibernate (upower)]
12 | Identity=unix-user:*
13 | Action=org.freedesktop.upower.hibernate
14 | ResultActive=no
15 | ResultInactive=no
16 | ResultAny=no
17 |
18 | [Disable hibernate (logind)]
19 | Identity=unix-user:*
20 | Action=org.freedesktop.login1.hibernate
21 | ResultActive=no
22 |
23 | [Disable hibernate for all sessions (logind)]
24 | Identity=unix-user:*
25 | Action=org.freedesktop.login1.hibernate-multiple-sessions
26 | ResultActive=no
27 |
28 | " >> /etc/polkit-1/localauthority/90-mandatory.d/com.ubuntu.desktop.pkla'
29 |
30 | echo Enabled > $FILE
--------------------------------------------------------------------------------
/025.enableSudoWithoutPassAll:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####enableSudoWithoutPassAll
4 |
5 | FILE=/etc/sudoers.d/all_sudoers_addition
6 | FILE2="$HOME/.ubunsys/status/SudoWOPass.txt"
7 |
8 | echo "Put sudo pass:"
9 | LINE="$USER ALL = NOPASSWD: ALL"
10 | pkexec sh -c "echo $LINE > $FILE" && echo Enabled > $FILE2
11 | echo "sudo without pass - all added correctly. Presh ENTER"
12 | read
--------------------------------------------------------------------------------
/026.disableSudoWithoutPassAll:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####disableSudoWithoutPassAll
4 |
5 | FILE=/etc/sudoers.d/all_sudoers_addition
6 | FILE2="$HOME/.ubunsys/status/SudoWOPass.txt"
7 |
8 | #fileName="${fileName}_sudoers_addition"
9 |
10 | echo "Put sudo pass to remove sudo without pass - all:"
11 | pkexec rm "$FILE" && echo Disabled > $FILE2
12 | echo "sudo without pass - all removed correctly. Presh ENTER"
13 | read
--------------------------------------------------------------------------------
/027.openSudoersFile:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####openSudoersFile
4 |
5 | #sudo xdg-open /etc/sudoers
6 | #pkexec nano /etc/sudoers
7 | pkexec visudo
--------------------------------------------------------------------------------
/028.backupSudoersFile:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####backupSudoersFile
4 |
5 | test -d ~/.ubunsys/backups/sudoersFiles || mkdir ~/.ubunsys/backups/sudoersFiles
6 | #sudo cp /etc/sudoers ~/.ubunsys/backups/sudoersFiles/sudoers_`date +"%Y%m%d_%H%M%S"`.bak
7 | pkexec cp /etc/sudoers ~/.ubunsys/backups/sudoersFiles/sudoers_`date +"%Y%m%d_%H%M%S"`.bak
8 |
9 | #sudo cp /etc/sudoers /etc/sudoers.bak
--------------------------------------------------------------------------------
/029.reduceTo5sShutdownTimeout:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #fixAStopJobIs RunningForSessionC2OfUser - http://unix.stackexchange.com/questions/273876/a-stop-job-is-running-for-session-c2-of-user
4 |
5 | # Modify defaults
6 |
7 | sudo sed -i 's/DefaultTimeoutStartSec=90s/DefaultTimeoutStartSec=5s/g' /etc/systemd/system.conf
8 | sudo sed -i 's/DefaultTimeoutStopSec=90s/DefaultTimeoutStopSec=5s/g' /etc/systemd/system.conf
9 | sudo systemctl daemon-reload
--------------------------------------------------------------------------------
/030.setToDefaults90sShutdownTimeout:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #fixAStopJobIs RunningForSessionC2OfUser - http://unix.stackexchange.com/questions/273876/a-stop-job-is-running-for-session-c2-of-user
4 |
5 | # Restore defaults
6 |
7 | sudo sed -i 's/DefaultTimeoutStartSec=5s/DefaultTimeoutStartSec=90s/g' /etc/systemd/system.conf
8 | sudo sed -i 's/DefaultTimeoutStopSec=5s/DefaultTimeoutStopSec=90s/g' /etc/systemd/system.conf
9 | sudo systemctl daemon-reload
--------------------------------------------------------------------------------
/031.enableFirewall:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####enableFirewall
4 |
5 | sudo ufw enable
--------------------------------------------------------------------------------
/032.disableFirewall:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####disableFirewall
4 |
5 | sudo ufw disable
--------------------------------------------------------------------------------
/033.check_ufw_installed:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | function instalado() {
3 | #Comprobamos si esta instalado el paquete wget mediante el comando aptitude
4 |
5 | aux=$(aptitude show ufw | grep "Estado: instalado")
6 | if `echo "$aux" | grep "Estado: instalado" >/dev/null`
7 | then
8 | return 1
9 | else
10 | return 0
11 | fi
12 | }
13 |
14 | # llamamos a la funcion
15 | instalado $1 &> /dev/null
16 |
17 | #Comprobamos el resultado... si da 1 es que esta instalado y si da 0 es que no esta instalado.
18 |
19 | if [ "$?" = "1" ]
20 | then
21 |
22 | #Si el paquete esta instalado mando un mensaje
23 |
24 | echo el paquete $aux ya esta instado.
25 |
26 | #Si no estuviese instalado...por ejemplo lo instalamos...
27 |
28 | else
29 |
30 | #apt-get -y install pwget
31 |
32 | sudo apt-fast -y install ufw
33 |
34 | fi
--------------------------------------------------------------------------------
/034.check_ukuu_installed:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if [ $(dpkg-query -W -f='${Status}' ukuu 2>/dev/null | grep -c "ok installed") -eq 0 ]
4 | then
5 | echo "You need ukuu, installing it..."
6 | sleep 2
7 | sh ~/.ubunsys/downloads/ubuntupackages-master/apps1/ukuu
8 | echo "ukuu installed. Opening..."
9 |
10 | else echo "Opening ukuu..."
11 |
12 | fi
13 |
14 | sleep 2
--------------------------------------------------------------------------------
/035.disableLockScreen:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####disableLockScreen
4 |
5 | #https://ubuntu-mate.community/t/disable-keyring-for-ssh/9752/3
6 | #https://ubuntuforums.org/showthread.php?t=1003471
7 | #https://ubuntu-mate.community/t/how-to-disable-keyring-password-storage-for-chrome/2904
8 | #https://askubuntu.com/questions/867/how-can-i-stop-being-prompted-to-unlock-the-default-keyring-on-boot
9 |
10 | FILE="$HOME/.ubunsys/status/LockScreen.txt"
11 | #gsettings set org.gnome.desktop.screensaver lock-enabled false
12 | dconf write /org/mate/desktop/lockdown/disable-lock-screen true
13 | dconf write /org/gnome/desktop/lockdown/disable-lock-screen true
14 | echo Disabled > $FILE
--------------------------------------------------------------------------------
/036.enableLockScreen:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####enableLockScreen
4 |
5 | #https://ubuntu-mate.community/t/disable-keyring-for-ssh/9752/3
6 | #https://ubuntuforums.org/showthread.php?t=1003471
7 | #https://ubuntu-mate.community/t/how-to-disable-keyring-password-storage-for-chrome/2904
8 | #https://askubuntu.com/questions/867/how-can-i-stop-being-prompted-to-unlock-the-default-keyring-on-boot
9 |
10 | FILE="$HOME/.ubunsys/status/LockScreen.txt"
11 | #gsettings set org.gnome.desktop.screensaver lock-enabled false
12 | dconf write /org/mate/desktop/lockdown/disable-lock-screen false
13 | dconf write /org/gnome/desktop/lockdown/disable-lock-screen false
14 | echo Enabled > $FILE
--------------------------------------------------------------------------------
/037.unshowHiddenStartupItems:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####unshowHiddenStartupItems
4 |
5 | sudo sed –i "s/NoDisplay=false/NoDisplay=true/g" /etc/xdg/autostart/*.desktop
6 |
7 | FILE="$HOME/.ubunsys/status/HiddenStartupItems.txt"
8 | if [ -f $FILE ]; then
9 | echo "File $FILE exists."
10 | echo unShow > $FILE
11 | else
12 | echo "File $FILE does not exist."
13 | touch $FILE
14 | echo unShow > $FILE
15 | fi
--------------------------------------------------------------------------------
/038.showHiddenStartupItems:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####showHiddenStartupItems
4 |
5 | sudo sed -i "s/NoDisplay=true/NoDisplay=false/g" /etc/xdg/autostart/*.desktop
6 |
7 | FILE="$HOME/.ubunsys/status/HiddenStartupItems.txt"
8 | if [ -f $FILE ]; then
9 | echo "File $FILE exists."
10 | echo Show > $FILE
11 | else
12 | echo "File $FILE does not exist."
13 | touch $FILE
14 | echo Show > $FILE
15 | fi
--------------------------------------------------------------------------------
/039.enableLoginSound:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####enableLoginSound
4 | FILE="$HOME/.ubunsys/status/loginSound.txt"
5 | mv /usr/share/sounds/ubuntu/stereo/system-ready.ogg_ubunsys /usr/share/sounds/ubuntu/stereo/system-ready.ogg
6 | echo Enabled > $FILE
--------------------------------------------------------------------------------
/040.disableLoginSound:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####disableLoginSound
4 | FILE="$HOME/.ubunsys/status/loginSound.txt"
5 | mv /usr/share/sounds/ubuntu/stereo/system-ready.ogg /usr/share/sounds/ubuntu/stereo/system-ready.ogg_ubunsys
6 | echo Disabled > $FILE
--------------------------------------------------------------------------------
/042.openSourcesList:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####openSourcesList
4 |
5 | #sudo xdg-open /etc/apt/sources.list
6 | pkexec nano /etc/apt/sources.list
--------------------------------------------------------------------------------
/043.backupSourcesList:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####backupSourcesList
4 |
5 | test -d ~/.ubunsys/backups/sources.list || mkdir ~/.ubunsys/backups/sources.list
6 | sudo cp /etc/apt/sources.list ~/.ubunsys/backups/sources.list/sources.list_`date +"%Y%m%d_%H%M%S"`.bak
7 |
8 | #sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
--------------------------------------------------------------------------------
/044.downloadLatestUbuntuscripts:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #### downloadLatestUbuntuscripts
4 |
5 | test -d ~/.ubunsys || mkdir -p ~/.ubunsys
6 | test -d ~/.ubunsys/downloads || mkdir -p ~/.ubunsys/downloads
7 |
8 | wget https://github.com/adgellida/ubuntuScripts/archive/master.zip -O ~/.ubunsys/master.zip && rm -Rf ~/.ubunsys/downloads/ubuntuScripts-master && unzip ~/.ubunsys/master.zip -d ~/.ubunsys/downloads &>/dev/null && chmod 777 -R ~/.ubunsys/downloads/ubuntuScripts-master && rm ~/.ubunsys/master.zip && echo ubuntuscripts downloaded ok. 1/3 ok || echo Error downloading. Holding your ubuntuscripts version. 1/3 fail && sleep 1
--------------------------------------------------------------------------------
/045.mainBackup:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ##BACKUP
4 |
5 | ####Create main folder
6 |
7 | test -d ~/.ubunsys/backups/main || mkdir -p ~/.ubunsys/backups/main
8 |
9 | #Erase
10 |
11 | sudo rm -r ~/.ubunsys/backups/main/*
12 |
13 | ####1.sources.list.d
14 |
15 | test -d ~/.ubunsys/backups/main/sources.list.d || mkdir -p ~/.ubunsys/backups/main/sources.list.d
16 | sudo cp -r /etc/apt/sources.list.d/* ~/.ubunsys/backups/main/sources.list.d
17 |
18 | ####2.sources.list
19 |
20 | sudo cp /etc/apt/sources.list ~/.ubunsys/backups/main/sources.list
21 | #sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
22 |
23 | ####3.sudoers.d
24 |
25 | test -d ~/.ubunsys/backups/main/sudoers.d || mkdir -p ~/.ubunsys/backups/main/sudoers.d
26 | sudo cp /etc/sudoers.d/* ~/.ubunsys/backups/main/sudoers.d
27 | #sudo cp /etc/sudoers /etc/sudoers.bak
28 |
29 | ####4.hosts
30 |
31 | sudo cp /etc/hosts ~/.ubunsys/backups/main/hosts
32 |
33 | ####5.sudoers
34 |
35 | sudo cp /etc/sudoers ~/.ubunsys/backups/main/sudoers
36 | #sudo cp /etc/sudoers /etc/sudoers.bak
37 |
38 | ####6.templates
39 |
40 | test -d ~/.ubunsys/backups/main/Plantillas || mkdir -p ~/.ubunsys/backups/main/Plantillas
41 | cp -r ~/Plantillas/* ~/.ubunsys/backups/main/Plantillas 2>/dev/null || :
42 |
43 | test -d ~/.ubunsys/backups/main/Templates || mkdir -p ~/.ubunsys/backups/main/Templates
44 | cp -r ~/Templates/* ~/.ubunsys/backups/main/Templates 2>/dev/null || :
45 |
46 | ####7.rc.local
47 |
48 | sudo cp /etc/rc.local ~/.ubunsys/backups/main/rc.local
49 |
50 | #Zip all
51 | test -d ~/.ubunsys/backups/lots || mkdir -p ~/.ubunsys/backups/lots
52 | cd ~/.ubunsys/backups
53 | sudo zip -r ~/.ubunsys/backups/lots/main_`date +"%Y%m%d_%H%M%S"`.zip ./main
54 | ####sudo zip -r ~/.ubunsys/backups/lots/main_`date +"%Y%m%d_%H%M%S"`.zip ~/.ubunsys/backups/main
55 |
56 | #Erase
57 |
58 | sudo rm -r ~/.ubunsys/backups/main/*
--------------------------------------------------------------------------------
/046.mainRestore:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ##RESTORE
4 |
5 | ####Restore content
6 |
7 | #echo Executed
8 | #read
9 |
10 |
11 |
12 |
13 | ####1.sources.list.d
14 |
15 | sudo cp -r ~/.ubunsys/backups/main/sources.list.d/* /etc/apt/sources.list.d
16 |
17 |
18 | ####2.sources.list
19 |
20 | sudo cp ~/.ubunsys/backups/main/sources.list /etc/apt/sources.list
21 |
22 | ####3.sudoers.d
23 |
24 | sudo cp -r ~/.ubunsys/backups/main/sudoers.d/* /etc/sudoers.d
25 |
26 |
27 | ####4.hosts
28 |
29 | sudo cp ~/.ubunsys/backups/main/hosts /etc/hosts
30 |
31 | ####5.sudoers
32 |
33 | sudo cp ~/.ubunsys/backups/main/sudoers /etc/sudoers
34 |
35 | ####6.templates
36 |
37 | sudo cp -r ~/.ubunsys/backups/main/Plantillas/* ~/Plantillas/ 2>/dev/null || :
38 | sudo chown -R $USER ~/Plantillas
39 | #sudo chmod -R 775 ~/Plantillas
40 | sudo cp ~/.ubunsys/backups/main/Templates/* ~/Templates/ 2>/dev/null || :
41 | sudo chown -R $USER ~/Templates
42 | #sudo chmod -R 775 ~/Templates
43 |
44 | ####7.rc.local
45 |
46 | test -f ~/.ubunsys/backups/main/rc.local || sudo cp ~/.ubunsys/backups/main/rc.local /etc/rc.local
47 |
48 | #Erase
49 |
50 | sudo rm -r ~/.ubunsys/backups/main/*
--------------------------------------------------------------------------------
/047.exportList:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####exportList
4 |
5 | test -d ~/.ubunsys/backups/scriptsFiles || mkdir ~/.ubunsys/backups/scriptsFiles
6 | #sudo cp /etc/sudoers ~/.ubunsys/backups/sudoersFiles/sudoers_`date +"%Y%m%d_%H%M%S"`.bak
7 | sed -i '1i #!/bin/bash' ~/.ubunsys/files/packagesToInstall.sh
8 | cp ~/.ubunsys/files/packagesToInstall.sh ~/.ubunsys/backups/scriptsFiles/packagesToInstall_`date +"%Y%m%d_%H%M%S"`.list
9 | sudo chmod 777 ~/.ubunsys/backups/scriptsFiles/packagesToInstall_`date +"%Y%m%d_%H%M%S"`.list
10 | #sudo cp /etc/sudoers /etc/sudoers.bak
--------------------------------------------------------------------------------
/051.openSudoersD:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####openSudoersD
4 |
5 | sudo xdg-open /etc/sudoers.d
6 |
--------------------------------------------------------------------------------
/052.enableSudoWithoutPassSpecific:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####enableSudoWithoutPassSpecific
4 |
5 | echo "Put the name of the app:"
6 |
7 | read appName
8 |
9 | FILE=/etc/sudoers.d/$appName
10 |
11 | #fileName="${fileName}_sudoers_addition"
12 |
13 | if [ -f "$FILE" ]; then
14 | echo "File $FILE exists, nothing to do. Presh ENTER"
15 | read
16 | else
17 | echo "File $FILE does not exist, all correct"
18 | echo "Put the path of the app:"
19 |
20 | read path
21 |
22 | LINE="$USER ALL = NOPASSWD: $path"
23 | echo "Put sudo pass:"
24 | pkexec sh -c "echo $LINE > /etc/sudoers.d/$appName"
25 | echo "sudo without pass specific on $appName added correctly. Presh ENTER"
26 | read
27 | fi
--------------------------------------------------------------------------------
/053.disableSudoWithoutPassSpecific:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####disableSudoWithoutPassSpecific
4 |
5 | echo "Put the name of the app to remove:"
6 |
7 | read appName
8 |
9 | FILE=/etc/sudoers.d/$appName
10 |
11 | #fileName="${fileName}_sudoers_addition"
12 |
13 | if [ -f "$FILE" ]; then
14 | echo "File $FILE exists"
15 | echo "Put sudo pass to remove sudo without pass specific on this app:"
16 | pkexec rm /etc/sudoers.d/$appName
17 | echo "$appName removed correctly. Presh ENTER"
18 | read
19 | else
20 | echo "File $FILE does not exist"
21 | echo "Put the correct name next time. Presh ENTER"
22 | read
23 | fi
--------------------------------------------------------------------------------
/054.enableUpdateNotification:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####enableUpdateNotification
4 |
5 | test -d ~/.config/autostart-disabled || mkdir -p ~/.config/autostart-disabled
6 | sudo test -d /etc/xdg/autostart-disabled || sudo mkdir -p /etc/xdg/autostart-disabled
7 |
8 | cp ~/.config/autostart-disabled/update-notifier.desktop ~/.config/autostart/update-notifier.desktop
9 | rm ~/.config/autostart-disabled/update-notifier.desktop && echo 'Enabled ok'
10 |
11 | sudo cp /etc/xdg/autostart-disabled/update-notifier.desktop /etc/xdg/autostart/update-notifier.desktop
12 | sudo rm /etc/xdg/autostart-disabled/update-notifier.desktop && echo 'Enabled ok'
13 |
14 | FILE="$HOME/.ubunsys/status/updateNotif.txt"
15 | if [ -f $FILE ]; then
16 | echo "File $FILE exists."
17 | echo Enabled > $FILE
18 | else
19 | echo "File $FILE does not exist."
20 | touch $FILE
21 | echo Enabled > $FILE
22 | fi
--------------------------------------------------------------------------------
/056.openRCLocal:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####openRCLocal
4 |
5 | pkexec nano /etc/rc.local
--------------------------------------------------------------------------------
/057.resetDconf:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####resetDconf
4 |
5 | sudo dconf reset -f /
--------------------------------------------------------------------------------
/058.can_t_block_var_lib_dpkg_lock:
--------------------------------------------------------------------------------
1 |
2 | #/var/lib/dpkg/lock
3 |
4 | #sudo fuser -vki /var/lib/dpkg/lock
5 |
6 | sudo rm -f /var/lib/dpkg/lock
7 | sudo dpkg --configure -a
--------------------------------------------------------------------------------
/059.fix not resolving dns on actual session:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####fix not resolving dns on actual session
4 |
5 | #sudo dhclient -r interfacename
6 | #sudo dhclient interfacename
7 |
8 | sudo dhclient -r enp3s0
9 | sudo dhclient enp3s0
--------------------------------------------------------------------------------
/060.openHosts:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####openHosts
4 |
5 | pkexec nano /etc/hosts
--------------------------------------------------------------------------------
/061.silentUpgradePackages:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####silentUpgradePackages
4 |
5 | # Script to automatically check for and install updates via apt-get if computer
6 | # has been idle for at least an hour
7 |
8 | #idletime=$(xprintidle);
9 | #idleminimum="3600000";
10 |
11 | #if [[ "$idletime" -gt "$idleminimum" ]]; then
12 | notify-send -t 10000 "sup Checking for updates..."
13 | sudo apt-get update -y
14 | sudo apt-get upgrade -y
15 | sudo apt-get dist-upgrade -y
16 | sudo apt-get autoremove -y
17 | sudo apt-get upgrade -y
18 | sudo apt-get autoremove -y
19 | notify-send -t 3600000 "sup System updated..."
20 | #fi
--------------------------------------------------------------------------------
/062.silentUpdatePackages:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####silentUpdatePackages
4 |
5 | # Script to automatically check for and install updates via apt-get if computer
6 | # has been idle for at least an hour
7 |
8 | #idletime=$(xprintidle);
9 | #idleminimum="3600000";
10 |
11 | #if [[ "$idletime" -gt "$idleminimum" ]]; then
12 | # /usr/bin/notify-send -t 10000 "ubunsys is checking for updates..."
13 | # sudo apt-fast -y update
14 | # sudo apt-fast -y upgrade
15 | # sudo apt-fast -y dist-upgrade
16 | # sudo apt-fast -y autoremove
17 | # /usr/bin/notify-send -t 3600000 "ubunsys updated the system"
18 | #fi
19 |
20 | #eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME mate-session)/environ)";
21 |
22 | user=$LOGNAME
23 |
24 | env_reference_process=$( pgrep -u "$user" mate-session || pgrep -u "$user" xfce4-session || pgrep -u "$user" ciannamon-session || pgrep -u "$user" gnome-session || pgrep -u "$user" gnome-shell || pgrep -u "$user" kdeinit | head -1 )
25 |
26 | export DBUS_SESSION_BUS_ADDRESS=$(cat /proc/"$env_reference_process"/environ | grep --null-data ^DBUS_SESSION_BUS_ADDRESS= | sed 's/DBUS_SESSION_BUS_ADDRESS=//')
27 |
28 | TERM=xterm
29 |
30 | SSH_TTY=/dev/ttyp0
31 |
32 | PATH=./:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
33 |
34 | HOME=/etc/stnet
35 |
36 | DISPLAY=:0
37 |
38 | PWD=/etc/stnet
39 |
40 | #/usr/bin/notify-send test
41 |
42 | #sudo runuser -l $user -c '/home/$user/.ubunsys/downloads/ubuntuScripts-master/075.silentUpdatePackagesMessages'
43 | #sudo -i -u $user /home/$user/.ubunsys/downloads/ubuntuScripts-master/075.silentUpdatePackagesMessages
44 |
45 | # /usr/bin/notify-send -t 10000 "ubunsys is checking for updates..."
46 | sudo apt-fast -y update
47 | sudo apt-fast -y upgrade
48 | sudo apt-fast -y dist-upgrade
49 | sudo apt-fast -y autoremove
50 | # /usr/bin/notify-send -t 30000 "ubunsys updated the system if proceed"
51 |
52 | #sudo su -c "/home/$user/.ubunsys/downloads/ubuntuScripts-master/076.silentUpdatePackagesMessages2" -s /bin/sh $user
53 | #sudo runuser -l $user -c '/home/$user/.ubunsys/downloads/ubuntuScripts-master/076.silentUpdatePackagesMessages2'
54 |
--------------------------------------------------------------------------------
/063.openCron:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####openCron
4 |
5 | actualUser="$(whoami)"
6 |
7 | echo "Put the name of the user."
8 | echo "If you put root different your actual will be edited:"
9 | read userName
10 |
11 | if [ "$userName" = "root" ]
12 | then
13 | #sudo nano /var/spool/cron/crontabs/root
14 | sudo crontab -e
15 | else
16 | #nano /var/spool/cron/crontabs/'$userName'
17 | #nano /var/spool/cron/crontabs/usuario
18 | crontab -e
19 | fi
--------------------------------------------------------------------------------
/064.eraseCron:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####eraseCron
4 |
5 | actualUser="$(whoami)"
6 |
7 | echo "Put the name of the user."
8 | echo "If you put root different your actual will be deleted:"
9 | read userName
10 |
11 | if [ "$userName" = "root" ]
12 | then
13 | sudo crontab -r
14 | else
15 | crontab -r
16 | echo "crontabs for $actualUser deleted"
17 | echo "Presh enter"
18 | read
19 | fi
--------------------------------------------------------------------------------
/065.add_to_root_crontab:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####add to root crontab
4 |
5 | FILE="$HOME/.ubunsys/status/updateAuto.txt"
6 |
7 | #1.user messages
8 |
9 |
10 |
11 | #write out current crontab
12 | crontab -l > update
13 | #echo new cron into cron file
14 | sudo echo "0 * * * * /home/$USER/.ubunsys/downloads/ubuntuScripts-master/075.silentUpdatePackagesMessages" >> update
15 | #sudo echo "0 * * * * echo test >> /tmp/testing" >> update
16 | #install new cron file
17 | crontab update
18 | rm update
19 | #echo Each hour > $FILE
20 |
21 |
22 | #2.sudo update
23 |
24 |
25 |
26 | #write out current crontab
27 | sudo crontab -l > update
28 | #echo new cron into cron file
29 | sudo echo "0 * * * * /home/$USER/.ubunsys/downloads/ubuntuScripts-master/062.silentUpdatePackages" >> update
30 | #sudo echo "0 * * * * echo test >> /tmp/testing" >> update
31 | #install new cron file
32 | sudo crontab update
33 | sudo rm update
34 | echo Each hour > $FILE
35 |
--------------------------------------------------------------------------------
/066.remove_to_root_crontab:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####remove to root crontab
4 |
5 | FILE="$HOME/.ubunsys/status/updateAuto.txt"
6 |
7 | #crontab -l -u root | grep -v rdate | crontab -u root -
8 | #su -i
9 | #crontab -l -u root | grep -v rdate | crontab -u root -
10 | #sudo crontab -l | grep -v rdate | sudo crontab -
11 |
12 | #crontab -l | awk '{print} END {print "* * * * * echo test >> /tmp/testing"}' | crontab
13 |
14 | #sudo crontab -l | sed '\!echo test >> /tmp/testing!d' | sudo crontab
15 |
16 | #sudo crontab -l | sed '\!echo /home/$USER/.ubunsys/downloads/ubuntuScripts-master/062.silentUpdatePackages >> /tmp/testing!d' | sudo crontab
17 |
18 | #sed -i '/echo /home/usuario/.ubunsys/downloads/ubuntuScripts-master/062.silentUpdatePackages/d' ./infile
19 |
20 | sudo sed --in-place '/062.silentUpdatePackages/d' /var/spool/cron/crontabs/root
21 | sudo sed --in-place '/075.silentUpdatePackagesMessages/d' /var/spool/cron/crontabs/$USER
22 | echo Disabled > $FILE
23 |
--------------------------------------------------------------------------------
/067.checkFirewallStatus:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####checkFirewallStatus
4 | export LANGUAGE=C
5 | export LANG=C
6 | sudo ufw status > ~/.ubunsys/status/firewall.txt
7 | unset LANGUAGE
8 | unset LANG
--------------------------------------------------------------------------------
/068.enableRemoteDesktopOnMate:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo apt-fast -y install xrdp vinagre vino
4 |
5 | vino-preferences
6 |
7 | sudo sed -i 's/allowed_users=console/allowed_users=anybody/g' /etc/X11/Xwrapper.config
8 |
9 | /usr/lib/vino/vino-server &
--------------------------------------------------------------------------------
/069.disableRemoteDesktopOnMate:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo apt-fast -y remove xrdp vinagre vino
4 |
5 | sudo sed -i 's/allowed_users=anybody/allowed_users=console/g' /etc/X11/Xwrapper.config
--------------------------------------------------------------------------------
/070.changeDNS:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo nano /etc/resolv.conf
--------------------------------------------------------------------------------
/071.network restart.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #for specific driver - change with yours
4 |
5 | sudo modprobe -r r8169
6 |
7 | sudo modprobe r8169
8 |
--------------------------------------------------------------------------------
/072.enableBootMessages:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####enableBootMessages
4 |
5 | sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"/GRUB_CMDLINE_LINUX_DEFAULT=""/g' /etc/default/grub
6 | sudo update-grub
7 |
--------------------------------------------------------------------------------
/073.disableBootMessages:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####disableBootMessages
4 |
5 | sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT=""/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"/g' /etc/default/grub
6 | sudo update-grub
7 |
--------------------------------------------------------------------------------
/074.openLots:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####openLots
4 |
5 | sudo xdg-open "$HOME/.ubunsys/backups/lots"
6 |
--------------------------------------------------------------------------------
/075.silentUpdatePackagesMessages:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####silentUpdatePackagesMessages
4 |
5 | #eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME mate-session)/environ)";
6 |
7 | user=$LOGNAME
8 |
9 | env_reference_process=$( pgrep -u "$user" mate-session || pgrep -u "$user" xfce4-session || pgrep -u "$user" ciannamon-session || pgrep -u "$user" gnome-session || pgrep -u "$user" gnome-shell || pgrep -u "$user" kdeinit | head -1 )
10 |
11 | export DBUS_SESSION_BUS_ADDRESS=$(cat /proc/"$env_reference_process"/environ | grep --null-data ^DBUS_SESSION_BUS_ADDRESS= | sed 's/DBUS_SESSION_BUS_ADDRESS=//')
12 |
13 | TERM=xterm
14 |
15 | SSH_TTY=/dev/ttyp0
16 |
17 | PATH=./:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
18 |
19 | HOME=/etc/stnet
20 |
21 | DISPLAY=:0
22 |
23 | PWD=/etc/stnet
24 |
25 | #/usr/bin/notify-send test
26 |
27 | #/usr/bin/notify-send -t 10000 "ubunsys is checking for updates and installing them if possible..."
28 | notify-send "ubunsys is checking for updates" "Each hour if some are found will be installed in the background" -i /usr/share/icons/hicolor/256x256/apps/ubunsys.png
29 |
30 | while pidof -x "062.silentUpdatePackages" >/dev/null
31 | do
32 | echo "."
33 | #sleep 1
34 | done
35 |
36 | #touch text.txt
37 | #grep installed /var/log/dpkg.log >> text.txt
38 |
39 | notify-send "ubunsys finished installing updates" "If there were any" -i /usr/share/icons/hicolor/256x256/apps/ubunsys.png
40 |
41 |
--------------------------------------------------------------------------------
/076.silentUpdatePackagesMessages2:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####silentUpdatePackagesMessages2
4 |
5 | #eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME mate-session)/environ)";
6 |
7 | user=$LOGNAME
8 |
9 | env_reference_process=$( pgrep -u "$user" mate-session || pgrep -u "$user" xfce4-session || pgrep -u "$user" ciannamon-session || pgrep -u "$user" gnome-session || pgrep -u "$user" gnome-shell || pgrep -u "$user" kdeinit | head -1 )
10 |
11 | export DBUS_SESSION_BUS_ADDRESS=$(cat /proc/"$env_reference_process"/environ | grep --null-data ^DBUS_SESSION_BUS_ADDRESS= | sed 's/DBUS_SESSION_BUS_ADDRESS=//')
12 |
13 | TERM=xterm
14 |
15 | SSH_TTY=/dev/ttyp0
16 |
17 | PATH=./:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
18 |
19 | HOME=/etc/stnet
20 |
21 | DISPLAY=:0
22 |
23 | PWD=/etc/stnet
24 |
25 | #/usr/bin/notify-send test
26 |
27 | #/usr/bin/notify-send -t 10000 "ubunsys is checking for updates and installing them if possible..."
28 | notify-send "ubunsys finished installing updates" "If there were any" -i /usr/share/icons/hicolor/256x256/apps/ubunsys.png
29 |
--------------------------------------------------------------------------------
/077.backupReposUnsupportedReleases:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #backup repos unsupported realeases - https://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release
4 |
5 | sudo cp /etc/apt/sources.list /etc/apt/sources.list.backupUbunsys
6 |
--------------------------------------------------------------------------------
/078.reenableReposUnsupportedReleases:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #re-enable repos unsupported realeases - https://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release
4 |
5 | sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
6 | sudo apt-get update && sudo apt-get dist-upgrade
7 |
--------------------------------------------------------------------------------
/079.restoreReposUnsupportedReleases:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #restore repos unsupported realeases - https://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release
4 |
5 | sudo cp /etc/apt/sources.list.backupUbunsys /etc/apt/sources.list
6 |
--------------------------------------------------------------------------------
/080.editGrub:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####editGrub
4 |
5 | pkexec nano /etc/default/grub
6 |
--------------------------------------------------------------------------------
/081.updateGrub:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####updateGrub
4 |
5 | pkexec update-grub
6 |
--------------------------------------------------------------------------------
/082.uninstallInfinalityFonts:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####uninstallInfinalityFonts
4 | sudo apt-get purge fontconfig-infinality
5 | sudo apt-get install ppa-purge
6 | sudo ppa-purge ppa:no1wantdthisname/ppa
7 |
--------------------------------------------------------------------------------
/083.add_to_root_crontab_at_boot:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####add to root crontab
4 |
5 | FILE="$HOME/.ubunsys/status/updateAuto.txt"
6 |
7 | #1.user messages
8 |
9 |
10 |
11 | #write out current crontab
12 | crontab -l > update
13 | #echo new cron into cron file
14 | sudo echo "@reboot /home/$USER/.ubunsys/downloads/ubuntuScripts-master/062.silentUpdatePackages" >> update
15 | #sudo echo "0 * * * * echo test >> /tmp/testing" >> update
16 | #install new cron file
17 | sudo crontab update
18 | sudo rm update
19 | echo At boot > $FILE
--------------------------------------------------------------------------------
/Force fsck on boot using forcefsck:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #Force fsck on boot using /forcefsck
4 | #https://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/
5 | #https://linuxconfig.org/how-to-force-fsck-to-check-filesystem-after-system-reboot-on-linux
6 |
7 | #sudo su
8 | #cd /
9 | #sudo touch /forcefsck
10 | #sudo reboot &
11 |
12 | sudo tune2fs -c 1 /dev/sda2
13 | sudo shutdown -r now &
14 | ##sudo tune2fs -l /dev/sda2 | grep Last\ c
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 2, June 1991
3 |
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6 | Everyone is permitted to copy and distribute verbatim copies
7 | of this license document, but changing it is not allowed.
8 |
9 | Preamble
10 |
11 | The licenses for most software are designed to take away your
12 | freedom to share and change it. By contrast, the GNU General Public
13 | License is intended to guarantee your freedom to share and change free
14 | software--to make sure the software is free for all its users. This
15 | General Public License applies to most of the Free Software
16 | Foundation's software and to any other program whose authors commit to
17 | using it. (Some other Free Software Foundation software is covered by
18 | the GNU Lesser General Public License instead.) You can apply it to
19 | your programs, too.
20 |
21 | When we speak of free software, we are referring to freedom, not
22 | price. Our General Public Licenses are designed to make sure that you
23 | have the freedom to distribute copies of free software (and charge for
24 | this service if you wish), that you receive source code or can get it
25 | if you want it, that you can change the software or use pieces of it
26 | in new free programs; and that you know you can do these things.
27 |
28 | To protect your rights, we need to make restrictions that forbid
29 | anyone to deny you these rights or to ask you to surrender the rights.
30 | These restrictions translate to certain responsibilities for you if you
31 | distribute copies of the software, or if you modify it.
32 |
33 | For example, if you distribute copies of such a program, whether
34 | gratis or for a fee, you must give the recipients all the rights that
35 | you have. You must make sure that they, too, receive or can get the
36 | source code. And you must show them these terms so they know their
37 | rights.
38 |
39 | We protect your rights with two steps: (1) copyright the software, and
40 | (2) offer you this license which gives you legal permission to copy,
41 | distribute and/or modify the software.
42 |
43 | Also, for each author's protection and ours, we want to make certain
44 | that everyone understands that there is no warranty for this free
45 | software. If the software is modified by someone else and passed on, we
46 | want its recipients to know that what they have is not the original, so
47 | that any problems introduced by others will not reflect on the original
48 | authors' reputations.
49 |
50 | Finally, any free program is threatened constantly by software
51 | patents. We wish to avoid the danger that redistributors of a free
52 | program will individually obtain patent licenses, in effect making the
53 | program proprietary. To prevent this, we have made it clear that any
54 | patent must be licensed for everyone's free use or not licensed at all.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | GNU GENERAL PUBLIC LICENSE
60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61 |
62 | 0. This License applies to any program or other work which contains
63 | a notice placed by the copyright holder saying it may be distributed
64 | under the terms of this General Public License. The "Program", below,
65 | refers to any such program or work, and a "work based on the Program"
66 | means either the Program or any derivative work under copyright law:
67 | that is to say, a work containing the Program or a portion of it,
68 | either verbatim or with modifications and/or translated into another
69 | language. (Hereinafter, translation is included without limitation in
70 | the term "modification".) Each licensee is addressed as "you".
71 |
72 | Activities other than copying, distribution and modification are not
73 | covered by this License; they are outside its scope. The act of
74 | running the Program is not restricted, and the output from the Program
75 | is covered only if its contents constitute a work based on the
76 | Program (independent of having been made by running the Program).
77 | Whether that is true depends on what the Program does.
78 |
79 | 1. You may copy and distribute verbatim copies of the Program's
80 | source code as you receive it, in any medium, provided that you
81 | conspicuously and appropriately publish on each copy an appropriate
82 | copyright notice and disclaimer of warranty; keep intact all the
83 | notices that refer to this License and to the absence of any warranty;
84 | and give any other recipients of the Program a copy of this License
85 | along with the Program.
86 |
87 | You may charge a fee for the physical act of transferring a copy, and
88 | you may at your option offer warranty protection in exchange for a fee.
89 |
90 | 2. You may modify your copy or copies of the Program or any portion
91 | of it, thus forming a work based on the Program, and copy and
92 | distribute such modifications or work under the terms of Section 1
93 | above, provided that you also meet all of these conditions:
94 |
95 | a) You must cause the modified files to carry prominent notices
96 | stating that you changed the files and the date of any change.
97 |
98 | b) You must cause any work that you distribute or publish, that in
99 | whole or in part contains or is derived from the Program or any
100 | part thereof, to be licensed as a whole at no charge to all third
101 | parties under the terms of this License.
102 |
103 | c) If the modified program normally reads commands interactively
104 | when run, you must cause it, when started running for such
105 | interactive use in the most ordinary way, to print or display an
106 | announcement including an appropriate copyright notice and a
107 | notice that there is no warranty (or else, saying that you provide
108 | a warranty) and that users may redistribute the program under
109 | these conditions, and telling the user how to view a copy of this
110 | License. (Exception: if the Program itself is interactive but
111 | does not normally print such an announcement, your work based on
112 | the Program is not required to print an announcement.)
113 |
114 | These requirements apply to the modified work as a whole. If
115 | identifiable sections of that work are not derived from the Program,
116 | and can be reasonably considered independent and separate works in
117 | themselves, then this License, and its terms, do not apply to those
118 | sections when you distribute them as separate works. But when you
119 | distribute the same sections as part of a whole which is a work based
120 | on the Program, the distribution of the whole must be on the terms of
121 | this License, whose permissions for other licensees extend to the
122 | entire whole, and thus to each and every part regardless of who wrote it.
123 |
124 | Thus, it is not the intent of this section to claim rights or contest
125 | your rights to work written entirely by you; rather, the intent is to
126 | exercise the right to control the distribution of derivative or
127 | collective works based on the Program.
128 |
129 | In addition, mere aggregation of another work not based on the Program
130 | with the Program (or with a work based on the Program) on a volume of
131 | a storage or distribution medium does not bring the other work under
132 | the scope of this License.
133 |
134 | 3. You may copy and distribute the Program (or a work based on it,
135 | under Section 2) in object code or executable form under the terms of
136 | Sections 1 and 2 above provided that you also do one of the following:
137 |
138 | a) Accompany it with the complete corresponding machine-readable
139 | source code, which must be distributed under the terms of Sections
140 | 1 and 2 above on a medium customarily used for software interchange; or,
141 |
142 | b) Accompany it with a written offer, valid for at least three
143 | years, to give any third party, for a charge no more than your
144 | cost of physically performing source distribution, a complete
145 | machine-readable copy of the corresponding source code, to be
146 | distributed under the terms of Sections 1 and 2 above on a medium
147 | customarily used for software interchange; or,
148 |
149 | c) Accompany it with the information you received as to the offer
150 | to distribute corresponding source code. (This alternative is
151 | allowed only for noncommercial distribution and only if you
152 | received the program in object code or executable form with such
153 | an offer, in accord with Subsection b above.)
154 |
155 | The source code for a work means the preferred form of the work for
156 | making modifications to it. For an executable work, complete source
157 | code means all the source code for all modules it contains, plus any
158 | associated interface definition files, plus the scripts used to
159 | control compilation and installation of the executable. However, as a
160 | special exception, the source code distributed need not include
161 | anything that is normally distributed (in either source or binary
162 | form) with the major components (compiler, kernel, and so on) of the
163 | operating system on which the executable runs, unless that component
164 | itself accompanies the executable.
165 |
166 | If distribution of executable or object code is made by offering
167 | access to copy from a designated place, then offering equivalent
168 | access to copy the source code from the same place counts as
169 | distribution of the source code, even though third parties are not
170 | compelled to copy the source along with the object code.
171 |
172 | 4. You may not copy, modify, sublicense, or distribute the Program
173 | except as expressly provided under this License. Any attempt
174 | otherwise to copy, modify, sublicense or distribute the Program is
175 | void, and will automatically terminate your rights under this License.
176 | However, parties who have received copies, or rights, from you under
177 | this License will not have their licenses terminated so long as such
178 | parties remain in full compliance.
179 |
180 | 5. You are not required to accept this License, since you have not
181 | signed it. However, nothing else grants you permission to modify or
182 | distribute the Program or its derivative works. These actions are
183 | prohibited by law if you do not accept this License. Therefore, by
184 | modifying or distributing the Program (or any work based on the
185 | Program), you indicate your acceptance of this License to do so, and
186 | all its terms and conditions for copying, distributing or modifying
187 | the Program or works based on it.
188 |
189 | 6. Each time you redistribute the Program (or any work based on the
190 | Program), the recipient automatically receives a license from the
191 | original licensor to copy, distribute or modify the Program subject to
192 | these terms and conditions. You may not impose any further
193 | restrictions on the recipients' exercise of the rights granted herein.
194 | You are not responsible for enforcing compliance by third parties to
195 | this License.
196 |
197 | 7. If, as a consequence of a court judgment or allegation of patent
198 | infringement or for any other reason (not limited to patent issues),
199 | conditions are imposed on you (whether by court order, agreement or
200 | otherwise) that contradict the conditions of this License, they do not
201 | excuse you from the conditions of this License. If you cannot
202 | distribute so as to satisfy simultaneously your obligations under this
203 | License and any other pertinent obligations, then as a consequence you
204 | may not distribute the Program at all. For example, if a patent
205 | license would not permit royalty-free redistribution of the Program by
206 | all those who receive copies directly or indirectly through you, then
207 | the only way you could satisfy both it and this License would be to
208 | refrain entirely from distribution of the Program.
209 |
210 | If any portion of this section is held invalid or unenforceable under
211 | any particular circumstance, the balance of the section is intended to
212 | apply and the section as a whole is intended to apply in other
213 | circumstances.
214 |
215 | It is not the purpose of this section to induce you to infringe any
216 | patents or other property right claims or to contest validity of any
217 | such claims; this section has the sole purpose of protecting the
218 | integrity of the free software distribution system, which is
219 | implemented by public license practices. Many people have made
220 | generous contributions to the wide range of software distributed
221 | through that system in reliance on consistent application of that
222 | system; it is up to the author/donor to decide if he or she is willing
223 | to distribute software through any other system and a licensee cannot
224 | impose that choice.
225 |
226 | This section is intended to make thoroughly clear what is believed to
227 | be a consequence of the rest of this License.
228 |
229 | 8. If the distribution and/or use of the Program is restricted in
230 | certain countries either by patents or by copyrighted interfaces, the
231 | original copyright holder who places the Program under this License
232 | may add an explicit geographical distribution limitation excluding
233 | those countries, so that distribution is permitted only in or among
234 | countries not thus excluded. In such case, this License incorporates
235 | the limitation as if written in the body of this License.
236 |
237 | 9. The Free Software Foundation may publish revised and/or new versions
238 | of the General Public License from time to time. Such new versions will
239 | be similar in spirit to the present version, but may differ in detail to
240 | address new problems or concerns.
241 |
242 | Each version is given a distinguishing version number. If the Program
243 | specifies a version number of this License which applies to it and "any
244 | later version", you have the option of following the terms and conditions
245 | either of that version or of any later version published by the Free
246 | Software Foundation. If the Program does not specify a version number of
247 | this License, you may choose any version ever published by the Free Software
248 | Foundation.
249 |
250 | 10. If you wish to incorporate parts of the Program into other free
251 | programs whose distribution conditions are different, write to the author
252 | to ask for permission. For software which is copyrighted by the Free
253 | Software Foundation, write to the Free Software Foundation; we sometimes
254 | make exceptions for this. Our decision will be guided by the two goals
255 | of preserving the free status of all derivatives of our free software and
256 | of promoting the sharing and reuse of software generally.
257 |
258 | NO WARRANTY
259 |
260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268 | REPAIR OR CORRECTION.
269 |
270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278 | POSSIBILITY OF SUCH DAMAGES.
279 |
280 | END OF TERMS AND CONDITIONS
281 |
282 | How to Apply These Terms to Your New Programs
283 |
284 | If you develop a new program, and you want it to be of the greatest
285 | possible use to the public, the best way to achieve this is to make it
286 | free software which everyone can redistribute and change under these terms.
287 |
288 | To do so, attach the following notices to the program. It is safest
289 | to attach them to the start of each source file to most effectively
290 | convey the exclusion of warranty; and each file should have at least
291 | the "copyright" line and a pointer to where the full notice is found.
292 |
293 | {description}
294 | Copyright (C) {year} {fullname}
295 |
296 | This program is free software; you can redistribute it and/or modify
297 | it under the terms of the GNU General Public License as published by
298 | the Free Software Foundation; either version 2 of the License, or
299 | (at your option) any later version.
300 |
301 | This program is distributed in the hope that it will be useful,
302 | but WITHOUT ANY WARRANTY; without even the implied warranty of
303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304 | GNU General Public License for more details.
305 |
306 | You should have received a copy of the GNU General Public License along
307 | with this program; if not, write to the Free Software Foundation, Inc.,
308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309 |
310 | Also add information on how to contact you by electronic and paper mail.
311 |
312 | If the program is interactive, make it output a short notice like this
313 | when it starts in an interactive mode:
314 |
315 | Gnomovision version 69, Copyright (C) year name of author
316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317 | This is free software, and you are welcome to redistribute it
318 | under certain conditions; type `show c' for details.
319 |
320 | The hypothetical commands `show w' and `show c' should show the appropriate
321 | parts of the General Public License. Of course, the commands you use may
322 | be called something other than `show w' and `show c'; they could even be
323 | mouse-clicks or menu items--whatever suits your program.
324 |
325 | You should also get your employer (if you work as a programmer) or your
326 | school, if any, to sign a "copyright disclaimer" for the program, if
327 | necessary. Here is a sample; alter the names:
328 |
329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330 | `Gnomovision' (which makes passes at compilers) written by James Hacker.
331 |
332 | {signature of Ty Coon}, 1 April 1989
333 | Ty Coon, President of Vice
334 |
335 | This General Public License does not permit incorporating your program into
336 | proprietary programs. If your program is a subroutine library, you may
337 | consider it more useful to permit linking proprietary applications with the
338 | library. If this is what you want to do, use the GNU Lesser General
339 | Public License instead of this License.
340 |
341 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
ubuntuScripts
2 | =============================================
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | A collection of ubuntu scripts to fix problems and add functionalities.
18 |
19 | Compatible with any Debian based system:
20 |
21 | Ubuntu, Xubuntu, Ubuntu MATE, Linux Mint, Kubuntu, Lubuntu...
22 |
23 | **Used on [ubunsys](https://github.com/adgellida/ubunsys)**
24 |
25 | Instructions
26 | =============================================
27 |
28 | Is more desirable that you use "Scripts Manager" functionality of [ubunsys](https://github.com/adgellida/ubunsys) to execute these scripts.
29 |
30 | Nowadays if you want to do it "manual way"...
31 |
32 | **Manual**
33 |
34 | Read the code and do your modifications.
35 |
36 | Then do these basics steps:
37 |
38 | 1. Add exec permissions to all scripts!
39 |
40 | `sudo chmod 777 archiveName`
41 |
42 | `sudo chmod 777 -R folderName`
43 |
44 | `sudo chmod 777 -R ./ubuntuScripts-master`
45 |
46 | 2. Go to your selected script, execute it or modify it.
47 |
48 | Important
49 | =============================================
50 | * It hasn't been tested 100% yet. Give feedback!
51 | * The desktop environment recommended tested right now is to use MATE desktop.
52 | * If you want to know more, go to the wiki of this repo [here](https://github.com/adgellida/ubuntuScripts/wiki).
53 |
54 | Dependencies
55 | =============================================
56 |
57 | Through PPA:
58 |
59 | `apt-fast`
60 |
61 | TO DO
62 | =============================================
63 | * Clean all
64 |
65 | Release notes
66 | =============================================
67 | You can check it [here](https://github.com/adgellida/ubuntuScripts/releases)
68 |
--------------------------------------------------------------------------------
/changeLinuxtoWindowsTime:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo timedatectl set-local-rtc 1 --adjust-system-clock
--------------------------------------------------------------------------------
/listLatestInstalledPackages:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | less /var/log/dpkg.log | grep " install "
3 | echo "Ya se han mostrado los últimos paquetes instalados"
4 | echo "The last installed packages have already been shown"
5 | read
--------------------------------------------------------------------------------
/listUpgradablePackages:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | sudo apt -y update
3 | sudo apt list --upgradable
4 | echo "Ya se han mostrado los paquetes posibles a actualizar"
5 | echo "The possible packages to update have already been shown"
6 | read
--------------------------------------------------------------------------------
/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adgellida/ubuntuScripts/1ce7b6cff2dc1995f68c74d49454e1ca120bac80/logo.png
--------------------------------------------------------------------------------
/others/autoStart/autoStartMegasync.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #https://www.reddit.com/r/MEGA/comments/323bti/megasyncno_icon/
4 |
5 | sleep 30
6 | megasync &
--------------------------------------------------------------------------------
/others/autoStart/autoStartSpiderOakONE.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sleep 30
4 | SpiderOakONE
--------------------------------------------------------------------------------
/others/autoStart/autoStartTelegram.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sleep 30
4 | /home/usuario/Telegram/Telegram -startintray %u &
--------------------------------------------------------------------------------
/others/autoStart/autostart a program.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #plank example
4 | sudo ln -s /usr/share/applications/plank.desktop /etc/xdg/autostart/
--------------------------------------------------------------------------------
/others/deprecated/025.enableSudoWithoutPassAll:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####enableSudoWithoutPassAll
4 |
5 | #sudo cp /etc/sudoers /etc/sudoers.bak
6 |
7 | FILE1=/etc/sudoers
8 | FILE2=/etc/sudoers.d/all_sudoers_addition
9 |
10 | LINE1="$USER ALL = NOPASSWD: ALL"
11 |
12 | if [ -f "$FILE2" ]
13 | then
14 | echo "$FILE2 found."
15 | #read -p "found"
16 | else
17 | echo "$FILE2 not found."
18 | #read -p "not found"
19 | #sudo cp ~/.ubunsys/downloads/ubuntuScripts-master/others/sudoers/ubunsys_sudoers_addition /etc/sudoers.d/ubunsys_sudoers_addition
20 | sudo grep -qF "$LINE1" "$FILE2" || printf "$LINE1" | sudo tee --append "$FILE2"
21 | ##pkexec chown root:root "$FILE2"
22 | ##pkexec chmod 0440 "$FILE2"
23 | #echo "$FILE2 not found."
24 | #read -p "not found"
25 | fi
--------------------------------------------------------------------------------
/others/deprecated/026.disableSudoWithoutPassAll:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####disableSudoWithoutPassAll
4 |
5 | #sudo cp /etc/sudoers.bak /etc/sudoers
6 |
7 | FILE1=/etc/sudoers
8 | FILE2=/etc/sudoers.d/all_sudoers_addition
9 |
10 | if [ -f "$FILE2" ]
11 | then
12 | echo "$FILE2 found."
13 | #read -p "found"
14 | sudo rm "$FILE2"
15 | #echo "$FILE2 found."
16 | #read -p "found"
17 | else
18 | echo "$FILE2 not found."
19 | #read -p "not found"
20 | fi
--------------------------------------------------------------------------------
/others/deprecated/041.openSudoersAllMod:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####openSudoersAllMod
4 |
5 | #sudo xdg-open /etc/sudoers.d/ubunsys_sudoers_addition
6 | pkexec nano /etc/sudoers.d/all_sudoers_addition
--------------------------------------------------------------------------------
/others/deprecated/048.openSudoersUbunsysMod:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####openSudoersUbunsysMod
4 |
5 | #sudo xdg-open /etc/sudoers.d/ubunsys_sudoers_addition
6 | pkexec nano /etc/sudoers.d/ubunsys_sudoers_addition
--------------------------------------------------------------------------------
/others/deprecated/049.enableSudoWithoutPassUbunsys:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####enableSudoWithoutPass
4 |
5 | #sudo cp /etc/sudoers /etc/sudoers.bak
6 |
7 | FILE1=/etc/sudoers
8 | FILE2=/etc/sudoers.d/ubunsys
9 |
10 | LINE1="$USER ALL = NOPASSWD: /usr/bin/ubunsys\n\n#Save this file as ubunsys, nor ubunsys.tmp\n#ubunsys.tmp will be erased"
11 |
12 | if [ -f "$FILE2" ]
13 | then
14 | echo "$FILE2 found."
15 | #read -p "found"
16 | else
17 | echo "$FILE2 not found."
18 | #read -p "not found"
19 | #sudo cp ~/.ubunsys/downloads/ubuntuScripts-master/others/sudoers/ubunsys_sudoers_addition /etc/sudoers.d/ubunsys_sudoers_addition
20 | sudo grep -qF "$LINE1" "$FILE2" || printf "$LINE1" | sudo tee --append "$FILE2"
21 | ##pkexec chown root:root "$FILE2"
22 | ##pkexec chmod 0440 "$FILE2"
23 | #echo "$FILE2 not found."
24 | #read -p "not found"
25 | fi
26 |
27 | pkexec visudo -f /etc/sudoers.d/ubunsys
28 | rm /etc/sudoers.d/ubunsys.tmp
--------------------------------------------------------------------------------
/others/deprecated/050.disableSudoWithoutPassUbunsys:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####disableSudoWithoutPass
4 |
5 | #sudo cp /etc/sudoers.bak /etc/sudoers
6 |
7 | FILE1=/etc/sudoers
8 | FILE2=/etc/sudoers.d/ubunsys_sudoers_addition
9 |
10 | if [ -f "$FILE2" ]
11 | then
12 | echo "$FILE2 found."
13 | #read -p "found"
14 | sudo rm "$FILE2"
15 | #echo "$FILE2 found."
16 | #read -p "found"
17 | else
18 | echo "$FILE2 not found."
19 | #read -p "not found"
20 | fi
--------------------------------------------------------------------------------
/others/kernel scripts/hold kernel update packages/hold:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo su
4 |
5 | #hold
6 | for i in $(dpkg -l "*$(uname -r)*" | grep image | awk '{print $2}'); do echo $i hold | dpkg --set-selections; done
7 |
8 | #unhold
9 | for i in $(dpkg -l "*$(uname -r)*" | grep image | awk '{print $2}'); do echo $i install | dpkg --set-selections; done
--------------------------------------------------------------------------------
/others/kernel scripts/hold kernel update packages/preferences:
--------------------------------------------------------------------------------
1 | #copy this to /etc/apt/preferences
2 |
3 | Package: linux-generic linux-headers-generic linux-image-generic linux-restricted-modules-generic linux-tools-generic
4 | Pin: version 4.8.0.49.61
5 | Pin-Priority: 1001
6 |
7 | #Package: linux-tools-common linux-libc-dev
8 | #Pin: version 4.8.0.49.52
9 | #Pin-Priority: 1001
--------------------------------------------------------------------------------
/others/kernel scripts/install latest kernel updates/README.md:
--------------------------------------------------------------------------------
1 | ####medigeek-kmp-downloader - ubuntuScripts
2 | =============================================
3 |
4 | Annotation
5 | =============================================
6 |
7 | Forked from [here](https://github.com/medigeek/kmp-downloader), practically the same.
8 |
9 | If you want help go to these link.
10 |
11 | Important, copied from readme:
12 |
13 | Uninstall
14 |
15 | To uninstall the kernel packages, remember to boot to a different kernel image first. Then you can use your favourite package manager to uninstall the packages. For example if you installed version 3.5.3, you can uninstall it using this command:
16 |
17 | sudo apt-get purge linux-image-3.5.3.* linux-image-extra-3.5.3.* linux-headers-3.5.3.*
--------------------------------------------------------------------------------
/others/kernel scripts/install latest kernel updates/medigeek-kmp-downloader:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #### medigeek-kmp-downloader-f6a3c4e
4 | sudo apt-get -y install python-bs4 python-apt
5 | cd /tmp; rm -rf medigeek-kmp*; wget --no-check-certificate https://github.com/medigeek/kmp-downloader/tarball/master -O kmpd.tar.gz; tar xzf kmpd.tar.gz; cd medigeek-*; python kmpd.py -d
6 | ##python kmpd.py --help
7 | ##python kmpd.py -d
8 |
--------------------------------------------------------------------------------
/others/kernel scripts/remove old kernels/remove old kernels:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #to execute...
4 | #sudo bash /path/to/cleanKernels.sh
5 |
6 | sudo ls /boot/ | grep vmlinuz | sed 's@vmlinuz-@linux-image-@g' | grep -v `uname -r` > /tmp/kernelList
7 | for I in `cat /tmp/kernelList`
8 | do
9 | sudo aptitude remove $I
10 | done
11 | sudo rm -f /tmp/kernelList
12 | sudo update-grub
--------------------------------------------------------------------------------
/others/kernel scripts/remove old kernels/remove old kernels :
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #to execute...
4 | #sudo bash /path/to/cleanKernels.sh
5 |
6 | sudo ls /boot/ | grep vmlinuz | sed 's@vmlinuz-@linux-image-@g' | grep -v `uname -r` > /tmp/kernelList
7 | for I in `cat /tmp/kernelList`
8 | do
9 | sudo aptitude remove $I
10 | done
11 | sudo rm -f /tmp/kernelList
12 | sudo update-grub
--------------------------------------------------------------------------------
/others/kernel scripts/remove old kernels/remove old kernels 2:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | 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
4 |
--------------------------------------------------------------------------------
/others/kernel scripts/repair kernel:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #http://rootear.com/ubuntu-linux/como-reparar-grub2
4 |
5 | grub-install --recheck /dev/sda
6 |
7 | sudo update-grub
--------------------------------------------------------------------------------
/others/kodi/improveBuffer/METHOD1/KODI:
--------------------------------------------------------------------------------
1 | https://www.youtube.com/watch?v=fPOfFp8Jbmg
2 |
3 | EDIT SETTINGS
4 | NETWORK
5 | MODIFY PARAMENTERS
6 | WRITE XML FILE
7 | RESTART
--------------------------------------------------------------------------------
/others/kodi/improveBuffer/METHOD1/Selección_031.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adgellida/ubuntuScripts/1ce7b6cff2dc1995f68c74d49454e1ca120bac80/others/kodi/improveBuffer/METHOD1/Selección_031.png
--------------------------------------------------------------------------------
/others/kodi/improveBuffer/METHOD1/plugin.program.advancedsettings-0.8.8.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adgellida/ubuntuScripts/1ce7b6cff2dc1995f68c74d49454e1ca120bac80/others/kodi/improveBuffer/METHOD1/plugin.program.advancedsettings-0.8.8.zip
--------------------------------------------------------------------------------
/others/kodi/improveBuffer/METHOD2/default/advancedsettings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | 20971520
5 | 1.0
6 |
7 |
8 |
--------------------------------------------------------------------------------
/others/kodi/improveBuffer/METHOD2/modded/advancedsettings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 0
4 | 102428800
5 | 4.0
6 |
7 |
8 |
--------------------------------------------------------------------------------
/others/kodi/improveBuffer/METHOD2/webpage:
--------------------------------------------------------------------------------
1 | http://iptvcanales.com/index.php/incrementar-buffering-en-kodi/
--------------------------------------------------------------------------------
/others/launchers/ArduinoStudio.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=ArduinoStudio
3 | Type=Application
4 | Categories=Development
5 | Exec=/home/usuario/location/arduinostudio %U
6 | Icon=/home/usuario/Descargas/arduinostudio/arduinostudio.svg
7 | MimeType=text/html;text/css;application/javascript;text/javascript;
8 | Name[es_ES]=ArduinoStudio
9 |
--------------------------------------------------------------------------------
/others/mega/megaFix:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/808752
4 | #https://megadesktop.uservoice.com/forums/191321-general/suggestions/6541116-megasync-does-not-log-me-in
5 |
6 | #sudo notepadqq /etc/security/limits.conf
7 |
8 | #@usuario hard nofile 300000
9 | #@usuario soft nofile 300000
10 |
11 | #then execute this commands
12 |
13 | #lsof
14 | #ulimit -n
--------------------------------------------------------------------------------
/others/mega/megaUninstall:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo apt-get --purge -y remove megasync
4 |
5 | rm -rf "/home/usuario/.local/share/data/Mega Limited"
--------------------------------------------------------------------------------
/others/notepadqqFix/Notepadqq.ini:
--------------------------------------------------------------------------------
1 | [General]
2 | checkQtVersionAtStartup=true
3 | warnForDifferentIndentation=true
4 |
5 | [Appearance]
6 | ColorScheme=midnight
7 |
8 | [Extensions]
9 | Runtime_Nodejs=
10 | Runtime_Npm=
11 |
12 | [Languages]
13 | apl\indentWithSpaces=false
14 | apl\tabSize=4
15 | apl\useDefaultSettings=true
16 | asn.1\indentWithSpaces=false
17 | asn.1\tabSize=4
18 | asn.1\useDefaultSettings=true
19 | aspnet\indentWithSpaces=false
20 | aspnet\tabSize=4
21 | aspnet\useDefaultSettings=true
22 | asterisk\indentWithSpaces=false
23 | asterisk\tabSize=4
24 | asterisk\useDefaultSettings=true
25 | bash\indentWithSpaces=false
26 | bash\tabSize=4
27 | bash\useDefaultSettings=true
28 | c\indentWithSpaces=false
29 | c\tabSize=4
30 | c\useDefaultSettings=true
31 | clojure\indentWithSpaces=false
32 | clojure\tabSize=4
33 | clojure\useDefaultSettings=true
34 | cmake\indentWithSpaces=false
35 | cmake\tabSize=4
36 | cmake\useDefaultSettings=true
37 | cobol\indentWithSpaces=false
38 | cobol\tabSize=4
39 | cobol\useDefaultSettings=true
40 | coffeescript\indentWithSpaces=false
41 | coffeescript\tabSize=4
42 | coffeescript\useDefaultSettings=true
43 | commonlisp\indentWithSpaces=false
44 | commonlisp\tabSize=4
45 | commonlisp\useDefaultSettings=true
46 | cpp\indentWithSpaces=false
47 | cpp\tabSize=4
48 | cpp\useDefaultSettings=true
49 | csharp\indentWithSpaces=false
50 | csharp\tabSize=4
51 | csharp\useDefaultSettings=true
52 | css\indentWithSpaces=false
53 | css\tabSize=4
54 | css\useDefaultSettings=true
55 | cypher\indentWithSpaces=false
56 | cypher\tabSize=4
57 | cypher\useDefaultSettings=true
58 | cython\indentWithSpaces=false
59 | cython\tabSize=4
60 | cython\useDefaultSettings=true
61 | d\indentWithSpaces=false
62 | d\tabSize=4
63 | d\useDefaultSettings=true
64 | dart\indentWithSpaces=false
65 | dart\tabSize=4
66 | dart\useDefaultSettings=true
67 | diff\indentWithSpaces=false
68 | diff\tabSize=4
69 | diff\useDefaultSettings=true
70 | django\indentWithSpaces=false
71 | django\tabSize=4
72 | django\useDefaultSettings=true
73 | dockerfile\indentWithSpaces=false
74 | dockerfile\tabSize=4
75 | dockerfile\useDefaultSettings=true
76 | dtd\indentWithSpaces=false
77 | dtd\tabSize=4
78 | dtd\useDefaultSettings=true
79 | dylan\indentWithSpaces=false
80 | dylan\tabSize=4
81 | dylan\useDefaultSettings=true
82 | ebnf\indentWithSpaces=false
83 | ebnf\tabSize=4
84 | ebnf\useDefaultSettings=true
85 | ecl\indentWithSpaces=false
86 | ecl\tabSize=4
87 | ecl\useDefaultSettings=true
88 | eiffel\indentWithSpaces=false
89 | eiffel\tabSize=4
90 | eiffel\useDefaultSettings=true
91 | ejs\indentWithSpaces=false
92 | ejs\tabSize=4
93 | ejs\useDefaultSettings=true
94 | erb\indentWithSpaces=false
95 | erb\tabSize=4
96 | erb\useDefaultSettings=true
97 | erlang\indentWithSpaces=false
98 | erlang\tabSize=4
99 | erlang\useDefaultSettings=true
100 | forth\indentWithSpaces=false
101 | forth\tabSize=4
102 | forth\useDefaultSettings=true
103 | fortran\indentWithSpaces=false
104 | fortran\tabSize=4
105 | fortran\useDefaultSettings=true
106 | fsharp\indentWithSpaces=false
107 | fsharp\tabSize=4
108 | fsharp\useDefaultSettings=true
109 | gas\indentWithSpaces=false
110 | gas\tabSize=4
111 | gas\useDefaultSettings=true
112 | gherkin\indentWithSpaces=false
113 | gherkin\tabSize=4
114 | gherkin\useDefaultSettings=true
115 | go\indentWithSpaces=false
116 | go\tabSize=4
117 | go\useDefaultSettings=true
118 | groovy\indentWithSpaces=false
119 | groovy\tabSize=4
120 | groovy\useDefaultSettings=true
121 | haml\indentWithSpaces=false
122 | haml\tabSize=4
123 | haml\useDefaultSettings=true
124 | haskell\indentWithSpaces=false
125 | haskell\tabSize=4
126 | haskell\useDefaultSettings=true
127 | haxe\indentWithSpaces=false
128 | haxe\tabSize=4
129 | haxe\useDefaultSettings=true
130 | html\indentWithSpaces=false
131 | html\tabSize=4
132 | html\useDefaultSettings=true
133 | http\indentWithSpaces=false
134 | http\tabSize=4
135 | http\useDefaultSettings=true
136 | idl\indentWithSpaces=false
137 | idl\tabSize=4
138 | idl\useDefaultSettings=true
139 | indentWithSpaces=false
140 | jade\indentWithSpaces=false
141 | jade\tabSize=4
142 | jade\useDefaultSettings=true
143 | java\indentWithSpaces=false
144 | java\tabSize=4
145 | java\useDefaultSettings=true
146 | javascript\indentWithSpaces=false
147 | javascript\tabSize=4
148 | javascript\useDefaultSettings=true
149 | jinja2\indentWithSpaces=false
150 | jinja2\tabSize=4
151 | jinja2\useDefaultSettings=true
152 | json\indentWithSpaces=false
153 | json\tabSize=4
154 | json\useDefaultSettings=true
155 | jsonld\indentWithSpaces=false
156 | jsonld\tabSize=4
157 | jsonld\useDefaultSettings=true
158 | jsp\indentWithSpaces=false
159 | jsp\tabSize=4
160 | jsp\useDefaultSettings=true
161 | julia\indentWithSpaces=false
162 | julia\tabSize=4
163 | julia\useDefaultSettings=true
164 | kotlin\indentWithSpaces=false
165 | kotlin\tabSize=4
166 | kotlin\useDefaultSettings=true
167 | latex\indentWithSpaces=false
168 | latex\tabSize=4
169 | latex\useDefaultSettings=true
170 | less\indentWithSpaces=false
171 | less\tabSize=4
172 | less\useDefaultSettings=true
173 | livescript\indentWithSpaces=false
174 | livescript\tabSize=4
175 | livescript\useDefaultSettings=true
176 | lua\indentWithSpaces=false
177 | lua\tabSize=4
178 | lua\useDefaultSettings=true
179 | m4\indentWithSpaces=false
180 | m4\tabSize=4
181 | m4\useDefaultSettings=true
182 | makefile\indentWithSpaces=false
183 | makefile\tabSize=4
184 | makefile\useDefaultSettings=false
185 | mariadb\indentWithSpaces=false
186 | mariadb\tabSize=4
187 | mariadb\useDefaultSettings=true
188 | markdown-github\indentWithSpaces=false
189 | markdown-github\tabSize=4
190 | markdown-github\useDefaultSettings=true
191 | markdown\indentWithSpaces=false
192 | markdown\tabSize=4
193 | markdown\useDefaultSettings=true
194 | mathematica\indentWithSpaces=false
195 | mathematica\tabSize=4
196 | mathematica\useDefaultSettings=true
197 | mirc\indentWithSpaces=false
198 | mirc\tabSize=4
199 | mirc\useDefaultSettings=true
200 | modelica\indentWithSpaces=false
201 | modelica\tabSize=4
202 | modelica\useDefaultSettings=true
203 | mumps\indentWithSpaces=false
204 | mumps\tabSize=4
205 | mumps\useDefaultSettings=true
206 | nginx\indentWithSpaces=false
207 | nginx\tabSize=4
208 | nginx\useDefaultSettings=true
209 | ntriples\indentWithSpaces=false
210 | ntriples\tabSize=4
211 | ntriples\useDefaultSettings=true
212 | objective_c\indentWithSpaces=false
213 | objective_c\tabSize=4
214 | objective_c\useDefaultSettings=true
215 | ocaml\indentWithSpaces=false
216 | ocaml\tabSize=4
217 | ocaml\useDefaultSettings=true
218 | octave\indentWithSpaces=false
219 | octave\tabSize=4
220 | octave\useDefaultSettings=true
221 | pascal\indentWithSpaces=false
222 | pascal\tabSize=4
223 | pascal\useDefaultSettings=true
224 | pegjs\indentWithSpaces=false
225 | pegjs\tabSize=4
226 | pegjs\useDefaultSettings=true
227 | perl\indentWithSpaces=false
228 | perl\tabSize=4
229 | perl\useDefaultSettings=true
230 | pgp\indentWithSpaces=false
231 | pgp\tabSize=4
232 | pgp\useDefaultSettings=true
233 | php\indentWithSpaces=false
234 | php\tabSize=4
235 | php\useDefaultSettings=true
236 | pig\indentWithSpaces=false
237 | pig\tabSize=4
238 | pig\useDefaultSettings=true
239 | plaintext\indentWithSpaces=false
240 | plaintext\tabSize=4
241 | plaintext\useDefaultSettings=true
242 | plsql\indentWithSpaces=false
243 | plsql\tabSize=4
244 | plsql\useDefaultSettings=true
245 | properties\indentWithSpaces=false
246 | properties\tabSize=4
247 | properties\useDefaultSettings=true
248 | puppet\indentWithSpaces=false
249 | puppet\tabSize=4
250 | puppet\useDefaultSettings=true
251 | python\indentWithSpaces=false
252 | python\tabSize=4
253 | python\useDefaultSettings=true
254 | r\indentWithSpaces=false
255 | r\tabSize=4
256 | r\useDefaultSettings=true
257 | rpm_changes\indentWithSpaces=false
258 | rpm_changes\tabSize=4
259 | rpm_changes\useDefaultSettings=true
260 | rpm_spec\indentWithSpaces=false
261 | rpm_spec\tabSize=4
262 | rpm_spec\useDefaultSettings=true
263 | rst\indentWithSpaces=false
264 | rst\tabSize=4
265 | rst\useDefaultSettings=true
266 | ruby\indentWithSpaces=true
267 | ruby\tabSize=2
268 | ruby\useDefaultSettings=false
269 | rust\indentWithSpaces=false
270 | rust\tabSize=4
271 | rust\useDefaultSettings=true
272 | sass\indentWithSpaces=false
273 | sass\tabSize=4
274 | sass\useDefaultSettings=true
275 | scala\indentWithSpaces=false
276 | scala\tabSize=4
277 | scala\useDefaultSettings=true
278 | scheme\indentWithSpaces=false
279 | scheme\tabSize=4
280 | scheme\useDefaultSettings=true
281 | scss\indentWithSpaces=false
282 | scss\tabSize=4
283 | scss\useDefaultSettings=true
284 | sieve\indentWithSpaces=false
285 | sieve\tabSize=4
286 | sieve\useDefaultSettings=true
287 | slim\indentWithSpaces=false
288 | slim\tabSize=4
289 | slim\useDefaultSettings=true
290 | smalltalk\indentWithSpaces=false
291 | smalltalk\tabSize=4
292 | smalltalk\useDefaultSettings=true
293 | smarty\indentWithSpaces=false
294 | smarty\tabSize=4
295 | smarty\useDefaultSettings=true
296 | solr\indentWithSpaces=false
297 | solr\tabSize=4
298 | solr\useDefaultSettings=true
299 | soy\indentWithSpaces=false
300 | soy\tabSize=4
301 | soy\useDefaultSettings=true
302 | sparql\indentWithSpaces=false
303 | sparql\tabSize=4
304 | sparql\useDefaultSettings=true
305 | spreadsheet\indentWithSpaces=false
306 | spreadsheet\tabSize=4
307 | spreadsheet\useDefaultSettings=true
308 | sql\indentWithSpaces=false
309 | sql\tabSize=4
310 | sql\useDefaultSettings=true
311 | stex\indentWithSpaces=false
312 | stex\tabSize=4
313 | stex\useDefaultSettings=true
314 | systemverilog\indentWithSpaces=false
315 | systemverilog\tabSize=4
316 | systemverilog\useDefaultSettings=true
317 | tabSize=4
318 | tcl\indentWithSpaces=false
319 | tcl\tabSize=4
320 | tcl\useDefaultSettings=true
321 | textile\indentWithSpaces=false
322 | textile\tabSize=4
323 | textile\useDefaultSettings=true
324 | tiddlywiki\indentWithSpaces=false
325 | tiddlywiki\tabSize=4
326 | tiddlywiki\useDefaultSettings=true
327 | tiki\indentWithSpaces=false
328 | tiki\tabSize=4
329 | tiki\useDefaultSettings=true
330 | toml\indentWithSpaces=false
331 | toml\tabSize=4
332 | toml\useDefaultSettings=true
333 | tornado\indentWithSpaces=false
334 | tornado\tabSize=4
335 | tornado\useDefaultSettings=true
336 | troff\indentWithSpaces=false
337 | troff\tabSize=4
338 | troff\useDefaultSettings=true
339 | ttcn-cfg\indentWithSpaces=false
340 | ttcn-cfg\tabSize=4
341 | ttcn-cfg\useDefaultSettings=true
342 | ttcn\indentWithSpaces=false
343 | ttcn\tabSize=4
344 | ttcn\useDefaultSettings=true
345 | turtle\indentWithSpaces=false
346 | turtle\tabSize=4
347 | turtle\useDefaultSettings=true
348 | typescript\indentWithSpaces=false
349 | typescript\tabSize=4
350 | typescript\useDefaultSettings=true
351 | vb\indentWithSpaces=false
352 | vb\tabSize=4
353 | vb\useDefaultSettings=true
354 | vbscript\indentWithSpaces=false
355 | vbscript\tabSize=4
356 | vbscript\useDefaultSettings=true
357 | velocity\indentWithSpaces=false
358 | velocity\tabSize=4
359 | velocity\useDefaultSettings=true
360 | verilog\indentWithSpaces=false
361 | verilog\tabSize=4
362 | verilog\useDefaultSettings=true
363 | xml\indentWithSpaces=false
364 | xml\tabSize=4
365 | xml\useDefaultSettings=true
366 | xquery\indentWithSpaces=false
367 | xquery\tabSize=4
368 | xquery\useDefaultSettings=true
369 | yaml\indentWithSpaces=false
370 | yaml\tabSize=4
371 | yaml\useDefaultSettings=true
372 | z80\indentWithSpaces=false
373 | z80\tabSize=4
374 | z80\useDefaultSettings=true
375 |
376 | [MainWindow]
377 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\0\0\x1\x33\0\0\0\xb2\0\0\x4\a\0\0\x2\x61\0\0\x1\x34\0\0\0\xce\0\0\x4\x6\0\0\x2`\0\0\0\0\0\0\0\0\x5\xa0)
378 | windowState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x1\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0*\0\x64\0o\0\x63\0k\0\x46\0i\0l\0\x65\0S\0\x65\0\x61\0r\0\x63\0h\0R\0\x65\0s\0u\0l\0t\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\0N\0\xff\xff\xff\0\0\x2\xd3\0\0\x1\x44\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0)
379 |
380 | [Search]
381 | SearchAsIType=true
382 |
--------------------------------------------------------------------------------
/others/notepadqqFix/notepadqqFix:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo rm -r ~/.config/Notepadqq/Notepadqq.ini
4 | cp -f Notepadqq.ini ~/.config/Notepadqq
--------------------------------------------------------------------------------
/others/sudoers/ubunsys_sudoers_addition:
--------------------------------------------------------------------------------
1 | usuario ALL = NOPASSWD: ALL
--------------------------------------------------------------------------------
/others/tests/054.enableSudoWithoutPassApt-Fast:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####enableSudoWithoutPass
4 |
5 | #sudo cp /etc/sudoers /etc/sudoers.bak
6 |
7 | #FILE1=/etc/sudoers.d/apt-fast
8 |
9 | #LINE1="usuario ALL = NOPASSWD: /usr/sbin/apt-fast"
10 |
11 | #LINE1="$USER ALL = NOPASSWD: /usr/sbin/apt-fast\n\n#Save this file as apt-fast_sudoers_addition,nor apt-fast_sudoers_addition.tmp\n#apt-fast_sudoers_addition.tmp will be erased"
12 |
13 | #if [ -f "$FILE1" ]
14 | #then
15 | # echo "$FILE1 found."
16 | #read -p "found"
17 | #else
18 | # echo "$FILE1 not found."
19 | #read -p "not found"
20 | #sudo cp ~/.ubunsys/downloads/ubuntuScripts-master/others/sudoers/ubunsys_sudoers_addition /etc/sudoers.d/ubunsys_sudoers_addition
21 | #sudo grep -qF "$LINE1" "$FILE1" || sudo printf "$LINE1" | sudo tee --append "$FILE1"
22 | ##pkexec chown root:root "$FILE2"
23 | ##pkexec chmod 0440 "$FILE2"
24 | #echo "$FILE2 not found."
25 | #read -p "not found"
26 | #fi
27 |
28 | #pkexec visudo -f /etc/sudoers.d/apt-fast_sudoers_addition
29 | #rm /etc/sudoers.d/apt-fast_sudoers_addition.tmp
30 |
31 | #read
--------------------------------------------------------------------------------
/others/unattendedUpgrades/10periodic:
--------------------------------------------------------------------------------
1 | APT::Periodic::Enable "1";
2 | APT::Periodic::Update-Package-Lists "1";
3 | APT::Periodic::Download-Upgradeable-Packages "1";
4 | APT::Periodic::AutocleanInterval "7";
5 | APT::Periodic::RamdomSleep "3600";
6 | APT::Periodic::Unattended-Upgrade "1";
--------------------------------------------------------------------------------
/others/unattendedUpgrades/50unattended-upgrades:
--------------------------------------------------------------------------------
1 | // Automatically upgrade packages from these (origin:archive) pairs
2 | Unattended-Upgrade::Allowed-Origins {
3 | "${distro_id} stable";
4 | "${distro_id}:${distro_codename}-security";
5 | "${distro_id}:${distro_codename}-updates";
6 | // "${distro_id}:${distro_codename}-proposed";
7 | // "${distro_id}:${distro_codename}-backports";
8 | };
9 |
10 | // List of packages to not update (regexp are supported)
11 | Unattended-Upgrade::Package-Blacklist {
12 | // "vim";
13 | // "libc6";
14 | // "libc6-dev";
15 | // "libc6-i686";
16 | };
17 |
18 | // This option allows you to control if on a unclean dpkg exit
19 | // unattended-upgrades will automatically run
20 | // dpkg --force-confold --configure -a
21 | // The default is true, to ensure updates keep getting installed
22 | //Unattended-Upgrade::AutoFixInterruptedDpkg "false";
23 |
24 | // Split the upgrade into the smallest possible chunks so that
25 | // they can be interrupted with SIGUSR1. This makes the upgrade
26 | // a bit slower but it has the benefit that shutdown while a upgrade
27 | // is running is possible (with a small delay)
28 | //Unattended-Upgrade::MinimalSteps "true";
29 |
30 | // Install all unattended-upgrades when the machine is shuting down
31 | // instead of doing it in the background while the machine is running
32 | // This will (obviously) make shutdown slower
33 | //Unattended-Upgrade::InstallOnShutdown "true";
34 |
35 | // Send email to this address for problems or packages upgrades
36 | // If empty or unset then no email is sent, make sure that you
37 | // have a working mail setup on your system. A package that provides
38 | // 'mailx' must be installed. E.g. "user@example.com"
39 | //Unattended-Upgrade::Mail "root";
40 |
41 | // Set this value to "true" to get emails only on errors. Default
42 | // is to always send a mail if Unattended-Upgrade::Mail is set
43 | //Unattended-Upgrade::MailOnlyOnError "true";
44 |
45 | // Do automatic removal of new unused dependencies after the upgrade
46 | // (equivalent to apt-get autoremove)
47 | //Unattended-Upgrade::Remove-Unused-Dependencies "false";
48 |
49 | // Automatically reboot *WITHOUT CONFIRMATION*
50 | // if the file /var/run/reboot-required is found after the upgrade
51 | //Unattended-Upgrade::Automatic-Reboot "false";
52 |
53 | // If automatic reboot is enabled and needed, reboot at the specific
54 | // time instead of immediately
55 | // Default: "now"
56 | //Unattended-Upgrade::Automatic-Reboot-Time "02:00";
57 |
58 | // Use apt bandwidth limit feature, this example limits the download
59 | // speed to 70kb/sec
60 | //Acquire::http::Dl-Limit "70";
61 |
--------------------------------------------------------------------------------
/others/unattendedUpgrades/apt-security-updates:
--------------------------------------------------------------------------------
1 | echo "**************" >> /var/log/apt-security-updates
2 | date >> /var/log/apt-security-updates
3 | apt-fast update >> /var/log/apt-security-updates
4 | apt-fast upgrade -o Apt-fast::Delete-Unused=false --assume-yes --target-release `lsb_release -cs`-security >> /var/log/apt-security-updates
5 | echo "Security updates (if any) installed"
--------------------------------------------------------------------------------
/others/unattendedUpgrades/apt-security-updates2:
--------------------------------------------------------------------------------
1 | /var/log/apt-security-updates2 {
2 | rotate 2
3 | daily
4 | size 250k
5 | compress
6 | notifempty
7 | }
--------------------------------------------------------------------------------
/others/unattendedUpgrades/unattendedUpgrades:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #https://elcampico2inf1314josemiguelgrau.wordpress.com/2014/01/15/como-configurar-actualizaciones-automaticas-en-ubuntu-server/
4 | #https://help.ubuntu.com/community/AutomaticSecurityUpdates
5 |
6 | sudo cp -f 10periodic /etc/apt/apt.conf.d
7 |
8 | sudo cp -f 50unattended-upgrades /etc/apt/apt.conf.d
9 |
10 | sudo cp -f /etc/cron.daily/apt-security-updates
11 |
12 | sudo chmod +x /etc/cron.daily/apt-security-updates
13 |
14 | sudo cp -f /etc/logrotate.d/apt-security-updates2
--------------------------------------------------------------------------------
/others/update & upgrade/dist-upgrade:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####upgrade
4 |
5 | sudo apt-fast -y dist-upgrade
--------------------------------------------------------------------------------
/others/update & upgrade/release-upgrade:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####release-upgrade
4 |
5 | sudo apt-fast -y install update-manager-core
6 | sudo apt-fast -y update
7 | sudo do-release-upgrade -d
--------------------------------------------------------------------------------
/others/update & upgrade/update & dist-upgrade:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####update & upgrade
4 |
5 | sudo apt-fast -y update && sudo apt-fast -y dist-upgrade
--------------------------------------------------------------------------------
/others/update & upgrade/update & upgrade:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####update & upgrade
4 |
5 | sudo apt-fast -y update && sudo apt-fast -y upgrade
--------------------------------------------------------------------------------
/others/update & upgrade/upgrade:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ####upgrade
4 |
5 | sudo apt-fast -y upgrade
--------------------------------------------------------------------------------
/others/utc/to fix/from ubuntu/fix utc:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo sed -i 's/UTC=yes/UTC=no/' /etc/default/rcS
4 |
--------------------------------------------------------------------------------
/others/utc/to fix/from windows/1.WindowsTimeFixUTC.reg:
--------------------------------------------------------------------------------
1 | Windows Registry Editor Version 5.00
2 |
3 | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
4 | "RealTimeIsUniversal"=dword:00000001
5 |
--------------------------------------------------------------------------------
/others/utc/to fix/from windows/2.cmd:
--------------------------------------------------------------------------------
1 | sc config w32time start= disabled
2 |
--------------------------------------------------------------------------------
/others/utc/to revert/from ubuntu/revert utc:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo sed -i 's/UTC=no/UTC=yes/' /etc/default/rcS
4 |
--------------------------------------------------------------------------------
/others/utc/to revert/from windows/1.WindowsTimeFixUTC.reg:
--------------------------------------------------------------------------------
1 | Windows Registry Editor Version 5.00
2 |
3 | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
4 | "RealTimeIsUniversal"=-
5 |
--------------------------------------------------------------------------------
/others/utc/to revert/from windows/2.cmd:
--------------------------------------------------------------------------------
1 | sc config w32time start= demand
2 |
--------------------------------------------------------------------------------
/others/various/129681-templates-modded.tar.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adgellida/ubuntuScripts/1ce7b6cff2dc1995f68c74d49454e1ca120bac80/others/various/129681-templates-modded.tar.gz
--------------------------------------------------------------------------------
/others/various/HoN/HoN fix:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | cp libxml2.so.2 ~/.HoN/libs-x86_64/
4 | cp libxml2.so.2.9.1 ~/.HoN/libs-x86_64/
5 |
6 | mv ~/.HoN/libs-x86_64/libgcc_s.so.1 ~/.HoN/libs-x86_64/libgcc_s.so.1_renamed
7 | mv ~/.HoN/libs-x86_64/libstdc++.so.6 ~/.HoN/libs-x86_64/libstdc++.so.6_renamed
8 |
9 | #rm -i ~/.HoN/libs-x86_64/libgcc_s.so.1
10 | #rm -i ~/.HoN/libs-x86_64/libstdc++.so.6
11 |
--------------------------------------------------------------------------------
/others/various/HoN/libxml2.so.2.9.1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adgellida/ubuntuScripts/1ce7b6cff2dc1995f68c74d49454e1ca120bac80/others/various/HoN/libxml2.so.2.9.1
--------------------------------------------------------------------------------
/others/various/Selectable script:
--------------------------------------------------------------------------------
1 | #Qt Linux
2 |
3 | echo "Select a Qt version to download\n" !Choose 1)option1 2)option2 3)option3
4 | read electionChoosed
5 |
6 | case ${electionChoosed} in
7 | 1) echo "You selected option1"
8 | code to run here
9 | ;;
10 | 2) echo "You selected option2"
11 | code to run here
12 | ;;
13 | 3) echo "You selected option3"
14 | code to run here
15 | ;;
16 | *) echo "INVALID NUMBER!" ;;
17 | esac
18 |
19 | #declaring a variable
20 | fileQt=variableContent here
21 |
22 | #Using a variable
23 | ${fileQt}
--------------------------------------------------------------------------------
/others/various/Where to find logs:
--------------------------------------------------------------------------------
1 | /var/log/apt/term.log
--------------------------------------------------------------------------------
/others/various/commands permissions:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #http://www.ite.educacion.es/formacion/materiales/85/cd/linux/m1/permisos_de_archivos_y_carpetas.html
4 |
5 | #Dar todos los permisos al usuario y de lectura al resto, sobre todos los archivos, incluyendo subcarpetas
6 | chmod -R 744 *
7 |
8 | #Dar todos los permisos al usuario y lectura y ejecución al grupo y al resto, sobre todos los archivos, incluyendo subcarpetas
9 | chmod -R 755 *
--------------------------------------------------------------------------------
/others/various/dirsyncpro launch:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #java -jar ./dirsyncpro.jar
4 | java -Xmx3084M -jar ./dirsyncpro.jar
5 |
--------------------------------------------------------------------------------
/others/various/git gui:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | git gui
--------------------------------------------------------------------------------
/others/various/gitkFix:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | LANG=en_US.UTF-8 gitk --all
--------------------------------------------------------------------------------
/others/various/gitpushubun:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo Pushing changes to ubuntupackages
4 | cd "/home/usuario/Proyectos/github/ubuntupackages"
5 | git add .
6 | git add -u
7 | git commit -m 'Updating'
8 | git push -u origin master
9 |
--------------------------------------------------------------------------------
/others/various/gitpushubun.bat:
--------------------------------------------------------------------------------
1 | @echo off
2 | echo Pushing changes to ubuntupackages
3 | set PATH=%PATH%;"C:\Program Files (x86)\Git\bin\"
4 | cd "D:\PERSONAL\PROYECTOS\github\ubuntupackages"
5 | git add .
6 | git add -u
7 | git commit -m 'Updating'
8 | git push -u origin master
--------------------------------------------------------------------------------
/others/various/installQt:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | sudo apt-fast -y install mesa-common-dev libglu1-mesa-dev
4 | wget http://download.qt.io/official_releases/qt/5.5/5.5.0/qt-opensource-linux-x64-5.5.0-2.run
5 | sudo -s chmod u+x qt-opensource-linux-x64-5.5.0-2.run
6 | sudo -s ./qt-opensource-linux-x64-5.5.0-2.run
7 |
8 | #another ancient way
9 | #to test
10 |
11 | #https://qt-project.org/wiki/Install_Qt_5_on_Ubuntu
12 | #http://www.wikihow.com/Install-Qt-SDK-on-Ubuntu-Linux
13 |
14 | #sudo apt-get -y install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev ### unofficial
15 | #sudo apt-get -y install libgl1-mesa-dev libglu1-mesa-dev ### to test
16 | #wget http://download.qt.io/official_releases/qt/5.5/5.5.0/qt-opensource-linux-x64-5.5.0-2.run
17 | #sudo -s chmod u+x qt-opensource-linux-x64-5.5.0-2.run
18 | #sudo -s ./qt-opensource-linux-x64-5.5.0-2.run -style cleanlooks
19 |
20 | #sudo -s chmod -R 777 /opt/Qt5.5.0
21 | #sudo -s chmod -R 777 ~/.config/QtProject
22 |
23 | #sudo -s pluma /etc/profile
24 | #PATH=/opt/Qt5.3.2/5.3.2/gcc/bin:$PATH
25 | #export PATH
26 | #. /etc/profile
--------------------------------------------------------------------------------
/others/various/mateconfiguration:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | ########mate configuration
3 |
4 | #Not neccesarary if you have mate for default on your distro
5 |
6 | # Set default session in ubuntu for new users - mate - http://askubuntu.com/questions/456766/how-to-set-default-session-in-ubuntu-14-04-lts
7 | #sudo pluma /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
8 | #Replace "ubuntu" with "mate.desktop" or "mate".
9 |
10 | # Folders:
11 | xdg-mime default caja-folder-handler.desktop inode/directory
12 | # SSH sites:
13 | xdg-mime default caja-folder-handler.desktop x-scheme-handler/ssh
14 | #mateconftool-2 --set --type=bool /desktop/mate/url-handlers/ssh/enabled true - ERROR BY NOW
15 | #mateconftool-2 --set --type=string /desktop/mate/url-handlers/ssh/command 'caja "%s"' - ERROR BY NOW
16 | #mateconftool-2 --set --type=bool /desktop/mate/url-handlers/ssh/needs_terminal false - ERROR BY NOW
17 | # FTP sites:
18 | xdg-mime default caja-folder-handler.desktop x-scheme-handler/ftp
19 | #mateconftool-2 --set --type=bool /desktop/mate/url-handlers/ftp/enabled true - ERROR BY NOW
20 | #mateconftool-2 --set --type=string /desktop/mate/url-handlers/ftp/command 'caja "%s"' - ERROR BY NOW
21 | #mateconftool-2 --set --type=bool /desktop/mate/url-handlers/ftp/needs_terminal false - ERROR BY NOW
22 | # Images:
23 | xdg-mime default eom.desktop image/bmp
24 | xdg-mime default eom.desktop image/gif
25 | xdg-mime default eom.desktop image/jpeg
26 | xdg-mime default eom.desktop image/x-pcx
27 | xdg-mime default eom.desktop image/png
28 | xdg-mime default eom.desktop image/tiff
29 | # Plain text:
30 | xdg-mime default pluma.desktop text/plain
31 | xdg-mime default pluma.desktop text/x-log
32 | xdg-mime default pluma.desktop application/x-perl
33 | xdg-mime default pluma.desktop application/javascript
34 | xdg-mime default pluma.desktop application/rdf+xml
35 | # If you want for Wine plain text files:
36 | xdg-mime default pluma.desktop application/x-wine-extension-ini
37 | xdg-mime default pluma.desktop application/x-wine-extension-vbs
38 | xdg-mime default pluma.desktop text/x-csrc
39 | xdg-mime default pluma.desktop application/x-wine-extension-inf
40 | # PDF:
41 | xdg-mime default atril.desktop application/pdf
42 |
--------------------------------------------------------------------------------
/others/various/microsoft_online_apps.deb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/adgellida/ubuntuScripts/1ce7b6cff2dc1995f68c74d49454e1ca120bac80/others/various/microsoft_online_apps.deb
--------------------------------------------------------------------------------
/others/various/mod a repo:
--------------------------------------------------------------------------------
1 | #mod a repo
2 |
3 | #With apt-fast (now compatible with wily
4 |
5 | sudo add-apt-repository -y ppa:saiarcot895/myppa
6 | sudo sed -i 's/wily/vivid/g' /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-wily.list
7 | sudo rename 's/wily/vivid/' /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-wily.list
8 | #sudo rename 's/wily/vivid/' /etc/apt/sources.list.d/saiarcot895-ubuntu-myppa-wily.list.save
9 | sudo apt-get -y update
10 | sudo apt-get -y install apt-fast
--------------------------------------------------------------------------------
/others/various/personalization:
--------------------------------------------------------------------------------
1 | #Linux Mint/ Ubuntu icons
2 |
3 | http://www.noobslab.com/2011/11/themes-collection-for-ubuntu-1110-unity.html#icons
4 |
5 | #Themes
6 |
7 | http://www.noobslab.com/2014/09/another-two-great-dark-themes-sable.html
8 |
9 | http://www.noobslab.com/2014/09/ambiance-radiance-themes-for-gnome.html
10 |
11 | http://www.noobslab.com/2014/09/ambiance-blackout-colors-suite-offers.html
12 |
13 | #Conkys
14 |
15 | http://www.noobslab.com/2014/09/neon-conky-in-three-variants-for.html
16 |
17 | #Wine
18 |
19 | http://www.noobslab.com/2014/09/install-winehq-version-1726-in.html
20 |
21 | #Virualbox
22 |
23 | http://www.noobslab.com/2014/09/latest-virtualbox-for-ubuntu-1404linux.html
--------------------------------------------------------------------------------
/others/various/script test:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # -*- ENCODING: UTF-8 -*-
3 | echo "¿Es usted un usuario básico? Teclee 's' si lo es"
4 | read "texto"
5 | if [ "$texto" = "s" ]; then
6 | echo "Es un usuario básico"
7 | else
8 | echo "Es un usuario avanzado"
9 | fi
10 | exit
11 |
12 |
13 |
--------------------------------------------------------------------------------
/others/various/various1:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | ########configurations
3 |
4 | ####Solve libreoffice size tabs - http://elementaryes.tumblr.com/post/52447857191/como-solucionar-las-pestanas-pequenas-en
5 |
6 | ##mate version
7 | #sudo pluma /usr/share/themes/Ambiant-MATE/gtk-2.0/gtkrc
8 |
9 | #Change to
10 |
11 | #GtkScrollbar::slider-width = 17
12 |
13 | ####Add user to group scanner
14 |
15 | #sudo adduser usuario scanner
16 |
17 | ####Disable amazon lens - http://www.webupd8.org/2013/10/how-to-disable-amazon-shopping.html
18 | ##Step 1
19 | #Open Dash, go to the Applications lens
20 | #(either do it manually using your mouse or use the Super + A keyboard shortcut),
21 | #click "Filter results" on the right and under "Type", select "Dash plugins".
22 | #All the Dash search plugins (scopes) should be listed
23 |
24 | ##Step 2
25 | #gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"
26 |
27 | ####Enable Progress Fancy in Apt & apt-get - http://www.omgubuntu.co.uk/2014/04/how-to-enable-apt-terminal-progress-bar
28 |
29 | #Works
30 | #echo -e 'Dpkg::Progress-Fancy "1";' | sudo tee /etc/apt/apt.conf.d/99progressbar
31 |
32 | #Alternative 1
33 | #sudo echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf.d/99progressbar
34 |
35 | #Alternative 2
36 | ##sudo echo 'Dpkg::Progress-Fancy "1";' > /etc/apt/apt.conf/99progressbar
37 |
--------------------------------------------------------------------------------
/others/various/various2:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | ########configurations
3 |
4 | ###################################################Install the latest stable kernel v3.15.6 - ANCIENT
5 |
6 | #wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15.6-utopic/linux-headers-3.15.6-031506_3.15.6-031506.201407172034_all.deb
7 |
8 | #wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15.6-utopic/linux-headers-3.15.6-031506-generic_3.15.6-031506.201407172034_amd64.deb
9 |
10 | #wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15.6-utopic/linux-image-3.15.6-031506-generic_3.15.6-031506.201407172034_amd64.deb
11 |
12 | #sudo dpkg -i linux-headers-3.15*.deb linux-image-3.15*.deb
13 |
14 | #rm linux-*.deb
15 |
16 | ###################################################Install the latest stable kernel v3.18.1
17 |
18 | wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.1-vivid/linux-headers-3.18.1-031801_3.18.1-031801.201412170637_all.deb
19 |
20 | wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.1-vivid/linux-headers-3.18.1-031801-generic_3.18.1-031801.201412170637_amd64.deb
21 |
22 | wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.1-vivid/linux-image-3.18.1-031801-generic_3.18.1-031801.201412170637_amd64.deb
23 |
24 | sudo dpkg -i linux-*.deb
25 |
26 | rm linux-*.deb
27 |
28 | sudo reboot
29 |
30 | ###################################################Disable guest account & remote login
31 | #http://www.howtogeek.com/117994/how-to-disable-ubuntus-guest-session-account
32 | #http://robersoft.blogcindario.com/2011/10/00036-deshabilitar-la-cuenta-de-invitado-en-ubuntu-11-10-oneiric-ocelot.html
33 | #http://linux-hispano.blogspot.com.es/2013/10/eliminar-cuenta-invitado-e-inicio-de.html
34 |
35 | sudo sh -c 'echo "
36 |
37 | allow-guest=false
38 | greeter-show-remote-login=false
39 |
40 | #" >> /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf' ANCIENT
41 | " >> /etc/lightdm/lightdm.conf'
42 |
43 | #sudo restart lightdm
44 |
45 | ###################################################Disable wireless & bluetooth on startup
46 |
47 | sudo sh -c 'echo "
48 |
49 | rfkill block bluetooth
50 | rfkill block wifi
51 |
52 | " >> /etc/rc.local'
53 |
54 | ###################################################Less brightness ####WORKING
55 |
56 | #sudo sh -c 'echo "
57 |
58 | #" >> /xxx'
59 |
--------------------------------------------------------------------------------
/others/various/various3:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | #### Install ati propietary driver cli
4 | #https://help.ubuntu.com/community/BinaryDriverHowto/AMD
5 |
6 | #### Install nvidia propietary driver cli
7 | ##sudo apt-fast -y install nvidia-graphics-drivers-346 #EXAMPLE
8 |
--------------------------------------------------------------------------------