Εγκατάσταση Ubuntu σε SSD και παραμετροποίηση

...το μέρος για να ξεκινήσετε!

Συντονιστής: adem1

Κανόνες Δ. Συζήτησης
Παρακαλώ να επιλέξετε, με προσοχή, την άδεια που θέλετε να έχουν οι οδηγοί που συγγράφετε.
Πληροφορίες για τις άδειες μπορείτε να βρείτε εδώ.
Άμα επιθυμείτε κάποια άλλη άδεια επικοινωνήστε με κάποιο Διαχειριστή είτε Συντονιστή.

Σημαντικό είναι να χρησιμοποιήσετε την υπηρεσία http://imagebin.ubuntu-gr.org για τις εικόνες.

Re: Εγκατάσταση Ubuntu σε SSD και παραμετροποίηση

Δημοσίευσηαπό the_eye » 13 Δεκ 2017, 17:45

Μάλιστα !
Όσο λιγότερο κλειστό λογισμικό έχεις, τόσα λιγότερα προβλήματα.
1 Γνώσεις ⇛ Linux: Καλό ┃ Προγραμματισμός: Ναι PHP, MySQL ┃ Αγγλικά: Καλά
2 Ubuntu 22.04 Jammy Jellyfish 5.15.0-58-generic 64bit (el_GR.UTF-8, ubuntu:GNOME ubuntu)
3 Intel Core i3-6100 CPU @ 3.70GHz ‖ RAM 7836 MiB ‖ Gigabyte B150M-HD3 DDR3-CF - Gigabyte B150M-HD3 DDR3
4 Intel HD Graphics 530 [8086:1912] {i915}
5 enp1s0: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Οδηγοί Ubuntu Βίντεο Οδηγοί
Άβαταρ μέλους
the_eye
Διαχειριστής
Διαχειριστής
 
Δημοσιεύσεις: 11671
Εγγραφή: 16 Μαρ 2010, 17:19
Launchpad: ntoulasd
IRC: the_eye_
Εκτύπωση

Re: Εγκατάσταση Ubuntu σε SSD και παραμετροποίηση

Δημοσίευσηαπό nikolinux » 13 Δεκ 2017, 21:39

Ωραία, μιας και δεν το 'χω καθόλου, να ξεκινήσω να τα δοκιμάζω? η να κοιτάω την δουλειά μου μην κάνω καμία ζημιά!
1 Γνώσεις Linux: Καθόλου ┃ Προγραμματισμού: Καθόλου ┃ Αγγλικών: Ικανοποιητικό
2 Ubuntu 16.04 64bit (el_GR.UTF-8),
3 Intel Core i7 CPU 920 2.67GHz ‖ RAM 16034 MiB ‖ ASUS INC. P6T SE
4 Advanced Micro Devices, Inc. [AMD/ATI] Curacao XT / Trinidad XT [Radeon R7 370 / R9 270X/370X] [1002:6810]
5 enp6s0: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 02)
Άβαταρ μέλους
nikolinux
babeTUX
babeTUX
 
Δημοσιεύσεις: 10
Εγγραφή: 29 Οκτ 2011, 00:25
Εκτύπωση

Re: Εγκατάσταση Ubuntu σε SSD και παραμετροποίηση

Δημοσίευσηαπό chris1983 » 02 Ιούλ 2018, 17:36

Καλησπέρα...

Σε 18.04 το έχει δοκιμάσει κανείς; Δεν υπάρχει το αρχείο rc.local, άρα έχουμε πρόβλημα σχεδόν από την αρχή των οδηγιών. Καμία ιδέα;

Off topic:
Εδώ και λίγες ώρες έχω περάσει την έκδοση 18.04, μου φαίνεται πολύ διαφορετικό από την 14.04 που είχα κι έχω αρχίσει να χάνω την υπομονή μου... :D
Spoiler: show
1 Γνώσεις Linux: Πρώτα βήματα ┃ Προγραμματισμού: Καθόλου ┃ Αγγλικών: Ικανοποιητικό
2 Ubuntu 14.04 trusty 4.4.0-137-generic 64bit (en_US.UTF-8, Unity ubuntu), Ubuntu 4.4.0-135-generic, Windows 7
3 Intel Core i5-3230M CPU @ 2.60GHz ‖ RAM 7858 MiB ‖ Intel VG10F - TOSHIBA SATELLITE L50-A-108
4 Intel 3rd Gen Core processor Graphics Controller [8086:0166] {i915}
5 eth0: Qualcomm Atheros QCA8171 Gigabit Ethernet [1969:10a1] (rev 10) ⋮ wlan0: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter [168c:0036] (rev 01)
Άβαταρ μέλους
chris1983
babeTUX
babeTUX
 
Δημοσιεύσεις: 91
Εγγραφή: 02 Φεβ 2014, 03:13
Εκτύπωση

Re: Εγκατάσταση Ubuntu σε SSD και παραμετροποίηση

Δημοσίευσηαπό joe iwannou » 14 Ιαν 2020, 18:47

Σε 18.04 δεν υπάρχει το αρχείο rc.local
Η αναζήτηση άρχισε από Εδω
Συνέχεια Εδω
Εδω οι διαφορες με 16.10
Δημιουργία αρχείου rc.local με περιεχόμενο [#!/bin/bash' 'exit 0]
Κώδικας: Επιλογή όλων
printf '%s\n' '#!/bin/bash' 'exit 0' | sudo tee -a /etc/rc.local

Το rc.local γίνεται εκτελέσιμο.
Κώδικας: Επιλογή όλων
sudo chmod +x /etc/rc.local

Κώδικας: Επιλογή όλων
sudo reboot


Κώδικας: Επιλογή όλων
sudo systemctl edit --full rc-local


You can see that the head comment contains lines such as:

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.

This indicates, that in this system, if there is a file called /etc/rc.local which is executable, then it will be pulled into multi-user.target automatically. So you just create the according file (sudo touch...) and make it executable (sudo chmod +x ...).

Εδώ χοντρικά μας λέει ότι λειτουργεί όπως πρέπει

Create a service: Δημιουργία διεργασίας

Κώδικας: Επιλογή όλων
sudo vi /etc/systemd/system/rc-local.service


Add your code there:
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99

[Install]
WantedBy=multi-user.target




Το δικό μου rc-local.service
SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit]
Description=/etc/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.local
After=network.target

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no

Create and make sure /etc/rc.local is executable and add this code inside it:

Κώδικας: Επιλογή όλων
sudo chmod +x /etc/rc.local

Δημιουργία και έλεγχος να είναι εκτελέσιμο το rc.local Έγινε ποιο πάνω συνεχίζουμε ..

Enable the service: Ενεργοποίηση της (υπηρεσίας-διεργασίας)
Κώδικας: Επιλογή όλων
sudo systemctl enable rc-local

Start service and check status: Εκκίνηση (υπηρεσίας-διεργασίας) και έλεγχος κατάστασης.
Κώδικας: Επιλογή όλων
sudo systemctl start rc-local.service

Κώδικας: Επιλογή όλων
sudo systemctl status rc-local.service

If all goes well you can add your code to the /etc/rc.local file then restart it.

Τέλος αν όλα έγιναν σωστά μπορούμε να προσθέσουμε τις εντολές μας στο etc/rc.local και να επανεκινήσουμε
Οποιαδήποτε παρατήρηση (ειδικά στην μετάφραση) καλοδεχούμενη
Off topic:
Το κείμενο αναφέρει 16.10 άλλα θέλω να πιστεύω ότι λειτουργεί και σε18.04
Θα συνεχίσω την έρευνα και αφού εγκαταστήσω Ssd σύντομα
Spoiler: show
1 Γνώσεις Linux: ⅜ Προγραμματισμού: ‱ ┃ Αγγλικών: ⅜
Desktop
Ubuntu-Mate 20.04
Intel Core i3-4150 CPU @ 3.50GHz ‖ RAM 7,5 GB ‖ ASRock H81M-DGS R2.0
Intel Device [8086:041e] {i915}
eth0: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
Άβαταρ μέλους
joe iwannou
daemonTUX
daemonTUX
 
Δημοσιεύσεις: 1179
Εγγραφή: 25 Απρ 2010, 04:54
Τοποθεσία: Πες με τι δεν καταλαβαινεις
Εκτύπωση

Προηγούμενη

  • ΣΧΕΤΙΚΑ ΘΕΜΑΤΑ
    ΑΠΑΝΤΗΣΕΙΣ
    ΠΡΟΒΟΛΕΣ
    ΣΥΓΓΡΑΦΕΑΣ

Επιστροφή στο Οδηγοί - How to - Tutorials