tu je iny navod čo som postupne prichadzal na chuť UBUNTU
nedaval so txt na uloz.to
Ak treba tak to čo sa tyka ubuntu sa môže presunuť do inej temy aby sa to tu nemiešalo
http://www.medibuntu.org/---tvorba live ubuntu
sudo remastersys backup
---prikazy
dmesg
lsusb
cd
sudo gedit
ls
sudo visudo
-inštalovany software
dpkg --set-selections < apps.txt
dselect update
apt-get dselect-upgrade show
cd /etc/apt/sources.list.d/ && cat *.lis
sudo dpkg --get-selections > installed-applications.txt
sudo dpkg --set-selections < installed-applications.txt
sudo apt-get -y update
sudo apt-get dselect-upgrade
-This is also possible through Gui way
dpkg
dpkg --get-selections
-For extra credit, you can find the locations of the files within a package from the list by using dpkg -L command
............
-Backing up your Apps
-(Optional) To list all your installed applications, open a terminal and type:
sudo dpkg --list
-To backup your list of applications to a text file:
sudo dpkg --get-selections > app-backup-list.txt
-This will create a text file of the name “app-backup-list.txt” in your Home folder.
-Restoring your apps
-To restore your applications, first make sure that the app-backup-list.txt file is in your Home folder, then type in the terminal:
sudo dpkg --get-selections < app-backup-list.txt
sudo apt-get -y update
sudo apt-get dselect-upgrade
...................
...........zavadzač grub2 a parametre pre bootovanie v grub-customizer
-zdrojovy kod:
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 2CB03CCBB03C9CF0
linux //boot/syslinux/grub.exe root=UUID=2CB03CCBB03C9CF0
initrd /boot/syslinux/grub.exe
insmod part_msdos
insmod vfat
set root='(hd3,msdos1)'
search --no-floppy --fs-uuid --set=root 1BEC-1F1F
linux //boot/syslinux/grub.exe root=UUID=1BEC-1F1F
initrd /boot/syslinux/grub.exe
insmod part_msdos
insmod ntfs
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 02D0135CD013556F
linux //boot/syslinux/grub.exe root=UUID=02D0135CD013556F
initrd /boot/syslinux/grub.exe
grinsmod part_msdos
insmod ntfs
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set=root 80B87C46B87C3CAA
linux //boot/syslinux/grub.exe root=UUID=80B87C46B87C3CAA
initrd /boot/syslinux/grub.exe
---funguje---
set root='(hd0,5)'
search --no-floppy --fs-uuid --set fed43385-506a-4d0b-ae3f-871ee3562614
loopback loop /home/remastersys/remastersys/custom-backup.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/home/remastersys/remastersys/custom-backup.iso quiet splash locale=en_US bootkbd=us console-setup/layoutcode=us user-setup/encrypt-home=true noeject --
initrd (loop)/casper/initrd.gz
-----------------------------------------------------
................pridanie hdd pre ntfs zapis
sudo apt-get install ntfs-3g
sudo blkid
/dev/sda1: LABEL="MY LABEL" UUID="ABCD-EFGH" Type="ntfs"
sudo mkdir /mnt/pidrive
sudo nano /etc/fstab
UUID=ABCD-EFGH /mnt/pidrive ntfs-3g defaults 0 0
sudo reboot
cd /mnt/pidrive
ls
sudo mount -a
/dev/sdb1: LABEL="asata40gbwin" UUID="02D0135CD013556F" TYPE="ntfs"
/dev/sdb2: LABEL="ubuntu old pc" UUID="3a00f59c-2d0e-46d4-8574-393b62944236" TYPE="ext4"
/dev/sdb3: UUID="535698e2-dddf-4f5e-a888-0cc0b4c5a60f" TYPE="swap"
/dev/sdc1: UUID="80B87C46B87C3CAA" TYPE="ntfs"
/dev/sda1: UUID="2CB03CCBB03C9CF0" TYPE="ntfs"
/dev/sda5: UUID="fed43385-506a-4d0b-ae3f-871ee3562614" TYPE="ext4"
/dev/sda6: UUID="2f8725c7-e05f-4d06-8044-87b175d23aec" TYPE="swap
/dev/sdd1: LABEL="8GB" UUID="1BEC-1F1F" TYPE="vfat"
/dev/sdb1 /media/asata40gbwin ntfs-3g defaults,locale=ca_ES.UTF-8 0 0
/dev/sda1 /media/2CB03CCBB03C9CF0 ntfs-3g defaults,locale=ca_ES.UTF-8 0 0
/dev/sdc1 /media/80B87C46B87C3CAA ntfs-3g defaults,locale=ca_ES.UTF-8 0 0
UUID=02D0135CD013556F /mnt/40gb ntfs-3g defaults 0 0
UUID=2CB03CCBB03C9CF0 /mnt/100gb ntfs-3g defaults 0 0
UUID=80B87C46B87C3CAA /mnt/20gb ntfs-3g defaults 0 0
...................................................................
...použivaj pred prikazmi sudo a na zmenu textu sudo gedit
...inštalacia deb...
dpkg -i package-name-here.deb
dpkg --install package-name-here.deb
dpkg -i -R /path/to/dir/name/with/lots/of/dot-deb-files/
dpkg -i --recursive /path/to/dir/name/with/lots/of/dot-deb-files/
..............
-autoštart aplikacii cez terminal,,to bolo potrebne v inom programe na customizaciu
-,nemusite to robiť cez terminal lebo v Ubuntu pridame autorun aplikacie v graf.programe ,ktory je už nainštalovany
cp
ls
cd .config
ls
cd autostart
ls
rm cheese.desktop
ls
rmdir mc.desktop
ls
rm mc.desktop
ls
rm cheesea.desktop
ls
cd /
ls
cd bin
ls
cd..
cd usr
cd share
cd applications
ls
cp cheese.desktop /home/ubuntu/.config/autostart
cd /
cd home
cd ubuntu
cd .config
ls
cd autostart
ls
..........
-Ak chceme zobraziť zoznam všetkých nainštalovaných balíkov v systéme, zadáme do príkazového riadka príkaz:
dpkg -l
....
-Pridá repozitár
add-apt-repository ppa:user/ppa-name
-Hľadanie balíčka
apt-cache search balíček
-Inštalácia balíčka
apt-get install balíček
-Odstránenie balíčka
apt-get remove balíček
-Aktualizácia systému
apt-get update
-Aktualizácia distribúcie
apt-get upgrade
---inštalacia balička
sudo dpkg -i zip_2.32-1_i386.deb
---inštalacia viac programov-pisať za seba
sudo apt-get install mc ssh centerim
ls -R /path/to/parent/directory > file.txt
lpr file.txt
ffmpeg2theora -v 10 -S 0 -a 10 --sync filename.flv
ffmpeg -i input.flv -vn -acodec vorbis -ac 2 -aq 60 output.ogg
sudo apt-get install winff libavcodec-extra-53
...autoštart sound
Name: GNOME Login sound
Command: /usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login sound"
Comment: Startup Sound
------------rename /usr/share/sounds/ubuntu/stereo/desktop-login.ogg alebo ine
......
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f
.....
-pridanie zastupcu na plochu a aby bol spustitelny
-napr.program gsmartcontrol
cd /home/NAZOVPC/Plocha
sudo chmod +x /home/NAZOVPC/Plocha/gsmartcontrol.desktop
........................................
-----spustenie aplikacie bez hesla---tuto to teba editovat, navod aj na internete
sudo gedit /etc/sudoers
---alebo
sudo visudo
--jedna aplikacia, napr. apache2ctl
YOURNAME ALL = NOPASSWD: /usr/bin/apache2ctl
---You can replace the path to an executable with "ALL" if you choose, giving you complete passwordless sudo.
-Edit sudoers: (You HAVE TO use sudo. This is an admin file.)
sudo visudo
-Add your user with the nopasswd flag after the Admin Line (at the end). For example: cyrex je priklad použivateľa
cyrex ALL = NOPASSWD: ALL
-or
cyrex ALL = (ALL) NOPASSWD: ALL
-----aplikacie bez hesla-použi toto a žiadna aplikacia nebude pytať heslo
username ALL=(ALL) NOPASSWD: ALL
...............................................
....script
-Aby skript správně fungoval, nesmíte mu zapomenout přidat spustitelný příznak, což uděláte pravým klikem na soubor
→ Vlastnosti → Oprávnění → Povolit spouštění souboru jako programu.
---vytvoriť textovy subor napr. vložiť tam toto --v UBUNTU nemaju textove subory priponu
-( na začiatku scriptu je vždy #!/bin/bash a druhy riadok je prazdný)
#!/bin/bash
sleep 15 && conky
...........................
-repozitare pridanie do :
sudo gedit /etc/apt/sources.list
---a pridame do textovehu suboru aktualnu verziu UBUNTU s rôznymi repozitarmi---všetky zmeny uložime a updatneme
deb
http://ubuntu.mirror.cambrium.nl/ubuntu/ raring main universe
.............
---vytvorenie zastupcu zložky, spusti sudo nautilus a pravym tlačidlom vytvor zastupcu---to je filemanager s pravami Admina
sudo nautilus
-Add repository key:
wget -O -
http://www.remastersys.com/ubuntu/remastersys.gpg.key | sudo apt-key add -
-Add repository to /etc/apt/sources.list.d/remastersys.list:
deb
http://www.remastersys.com/ubuntu precise main
-Update Apt and install it:
apt-get update; apt-get install remastersys
-Optionally you can install the GUI:
apt-get install remastersys-gui